mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 03:12: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
|
@ -22,7 +22,7 @@ describe('docusaurus-plugin-content-pages', () => {
|
|||
path: pluginPath,
|
||||
}),
|
||||
);
|
||||
const pagesMetadatas = (await plugin.loadContent?.())!;
|
||||
const pagesMetadatas = await plugin.loadContent?.();
|
||||
|
||||
expect(pagesMetadatas).toEqual([
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ describe('docusaurus-plugin-content-pages', () => {
|
|||
path: pluginPath,
|
||||
}),
|
||||
);
|
||||
const pagesMetadatas = (await plugin.loadContent?.())!;
|
||||
const pagesMetadatas = await plugin.loadContent?.();
|
||||
|
||||
const frTranslationsPath = path.posix.join(
|
||||
'@site',
|
||||
|
|
|
@ -14,6 +14,7 @@ declare module '@theme/MDXPage' {
|
|||
readonly title: string;
|
||||
readonly description: string;
|
||||
readonly wrapperClassName?: string;
|
||||
// eslint-disable-next-line camelcase
|
||||
readonly hide_table_of_contents?: string;
|
||||
};
|
||||
readonly metadata: {readonly permalink: string};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue