Skip to content

Commit 1bd17ca

Browse files
committed
update docusaurus
1 parent 22f1e4b commit 1bd17ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

website/eslint.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default tseslint.config(
1212
eslintPluginImport.flatConfigs.recommended,
1313
...tseslint.configs.strictTypeChecked,
1414
...tseslint.configs.stylisticTypeChecked,
15+
eslintPluginReact.configs.flat.recommended,
1516
{
1617
languageOptions: {
1718
parserOptions: {
@@ -20,13 +21,15 @@ export default tseslint.config(
2021
tsconfigRootDir: import.meta.name,
2122
},
2223
},
24+
settings: {
25+
react: { version: 'detect' },
26+
},
2327
},
2428
{
2529
files: ['**/*.{js,ts,tsx}'],
2630
ignores: ['!.*', 'node_modules', 'dist', 'compiled', 'build', '.docusaurus'],
2731

2832
plugins: {
29-
react: eslintPluginReact,
3033
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
3134
'react-hooks': eslintPluginReactHooks,
3235
prettier: eslintPluginPrettierRecommended,
@@ -38,6 +41,7 @@ export default tseslint.config(
3841
...eslintPluginReactHooks.configs.recommended.rules,
3942

4043
'react/prop-types': 'off',
44+
'react/sort-prop-types': 'error',
4145

4246
'no-undef': 'off',
4347
'prefer-template': 'error',
@@ -55,9 +59,5 @@ export default tseslint.config(
5559
'import/no-default-export': 'error',
5660
'import/no-unresolved': 'off',
5761
},
58-
59-
settings: {
60-
react: { version: 'detect' },
61-
},
6262
},
6363
);

0 commit comments

Comments
 (0)