Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit db61ccd

Browse files
committed
Add ESLint and MDX plugin
1 parent 390a2fe commit db61ccd

File tree

3 files changed

+4168
-232
lines changed

3 files changed

+4168
-232
lines changed

eslint.config.mjs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import pluginReact from 'eslint-plugin-react';
5+
import eslintConfigPrettier from 'eslint-config-prettier';
6+
import * as mdx from 'eslint-plugin-mdx';
7+
8+
/** @type {import('eslint').Linter.Config[]} */
9+
export default [
10+
{ ignores: ['.docusaurus/', 'build/', 'node_modules/'] },
11+
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
12+
{ languageOptions: { globals: globals.node } },
13+
pluginJs.configs.recommended,
14+
...tseslint.configs.recommended,
15+
pluginReact.configs.flat.recommended,
16+
eslintConfigPrettier,
17+
{
18+
...mdx.flat,
19+
processor: mdx.createRemarkProcessor({
20+
lintCodeBlocks: false,
21+
languageMapper: {},
22+
}),
23+
rules: {
24+
...mdx.flat.rules,
25+
'react/no-unescaped-entities': 'off',
26+
},
27+
},
28+
{
29+
settings: {
30+
react: {
31+
version: 'detect',
32+
},
33+
},
34+
},
35+
];

0 commit comments

Comments
 (0)