mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-15 18:17:35 +02:00
chore(v2): Fix linter warnings (#4442)
* chore(v2): Fix linter warnings 223 warnings to 145 warnings * Remove explicit type annotations * Do not prefetch when targetLink == null
This commit is contained in:
parent
f041a37622
commit
5e73c72f26
39 changed files with 146 additions and 71 deletions
|
@ -33,11 +33,11 @@ Available document ids=
|
|||
);
|
||||
}
|
||||
|
||||
const {title, permalink, sidebar_label} = docMetadata;
|
||||
const {title, permalink, sidebar_label: sidebarLabel} = docMetadata;
|
||||
|
||||
return {
|
||||
type: 'link',
|
||||
label: sidebar_label || title,
|
||||
label: sidebarLabel || title,
|
||||
href: permalink,
|
||||
customProps: item.customProps,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue