diff --git a/.eslintrc.js b/.eslintrc.js index 8dc4c5101e99..6a0b15228fd0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -286,7 +286,7 @@ module.exports = { ], 'import/prefer-default-export': OFF, - 'jest/consistent-test-it': OFF, + 'jest/consistent-test-it': WARNING, 'jest/expect-expect': OFF, 'jest/no-large-snapshots': [ WARNING, diff --git a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts index f2376a2defec..d2db6e176241 100644 --- a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts @@ -33,7 +33,8 @@ const directiveTypes: DirectiveType[] = [ 'textDirective', ]; -const directivePrefixMap: {[key: DirectiveType]: string} = { +// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style +const directivePrefixMap: Record = { textDirective: ':', leafDirective: '::', containerDirective: ':::',