From 7191ae55c85ab76ded9c405f8142439eed684e72 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Sat, 2 Aug 2025 16:49:23 -0700 Subject: [PATCH] fix: docs eslint command (#34520) --- docs/eslint.config.js | 9 ++++++--- docs/package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/eslint.config.js b/docs/eslint.config.js index 932b447289f..2f0d01513ec 100644 --- a/docs/eslint.config.js +++ b/docs/eslint.config.js @@ -28,6 +28,9 @@ const globals = require('globals'); const { defineConfig, globalIgnores } = require('eslint/config'); module.exports = defineConfig([ + { + files: ['**/*.{js,jsx,ts,tsx}'], + }, globalIgnores(['build/**/*', '.docusaurus/**/*', 'node_modules/**/*']), js.configs.recommended, ...ts.configs.recommended, @@ -36,7 +39,7 @@ module.exports = defineConfig([ files: ['eslint.config.js'], rules: { '@typescript-eslint/no-require-imports': 'off', - } + }, }, { languageOptions: { @@ -68,5 +71,5 @@ module.exports = defineConfig([ version: 'detect', }, }, - } -]) + }, +]); diff --git a/docs/package.json b/docs/package.json index 3a741da6862..4d3d363cd2b 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,7 +15,7 @@ "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", "typecheck": "tsc", - "eslint": "eslint . --ext .js,.jsx,.ts,.tsx" + "eslint": "eslint ." }, "dependencies": { "@ant-design/icons": "^6.0.0",