diff --git a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts index d2db6e176241..480714df88df 100644 --- a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts @@ -33,8 +33,7 @@ const directiveTypes: DirectiveType[] = [ 'textDirective', ]; -// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style -const directivePrefixMap: Record = { +const directivePrefixMap: {[key in DirectiveType]: string} = { textDirective: ':', leafDirective: '::', containerDirective: ':::',