From 764e9abfcdfbe2b11ae0d8998d023100ef7d7494 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Tue, 24 Oct 2023 11:09:54 +0200 Subject: [PATCH] eslint --- .eslintrc.js | 2 +- .../docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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: ':::',