Skip to content

Commit 7191ae5

Browse files
authored
fix: docs eslint command (#34520)
1 parent 17725eb commit 7191ae5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/eslint.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const globals = require('globals');
2828
const { defineConfig, globalIgnores } = require('eslint/config');
2929

3030
module.exports = defineConfig([
31+
{
32+
files: ['**/*.{js,jsx,ts,tsx}'],
33+
},
3134
globalIgnores(['build/**/*', '.docusaurus/**/*', 'node_modules/**/*']),
3235
js.configs.recommended,
3336
...ts.configs.recommended,
@@ -36,7 +39,7 @@ module.exports = defineConfig([
3639
files: ['eslint.config.js'],
3740
rules: {
3841
'@typescript-eslint/no-require-imports': 'off',
39-
}
42+
},
4043
},
4144
{
4245
languageOptions: {
@@ -68,5 +71,5 @@ module.exports = defineConfig([
6871
version: 'detect',
6972
},
7073
},
71-
}
72-
])
74+
},
75+
]);

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"write-translations": "docusaurus write-translations",
1616
"write-heading-ids": "docusaurus write-heading-ids",
1717
"typecheck": "tsc",
18-
"eslint": "eslint . --ext .js,.jsx,.ts,.tsx"
18+
"eslint": "eslint ."
1919
},
2020
"dependencies": {
2121
"@ant-design/icons": "^6.0.0",

0 commit comments

Comments
 (0)