From 2b4b5fd32c1ccff2e4d3e9e8e2aeb4a1034b5dba Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 1 Oct 2025 20:23:13 -0400 Subject: [PATCH] fix ESLint errors when opening a configuration file in the IDE --- packages/backend/eslint.config.js | 1 + .../backend/test-federation/eslint.config.js | 6 ++++++ packages/backend/test-server/eslint.config.js | 6 ++++++ packages/backend/test/eslint.config.js | 6 ++++++ packages/frontend-embed/eslint.config.js | 1 + packages/frontend-shared/eslint.config.js | 1 + packages/frontend/eslint.config.js | 3 ++- packages/misskey-bubble-game/eslint.config.js | 1 + packages/misskey-js/generator/eslint.config.js | 6 ++++++ packages/misskey-reversi/eslint.config.js | 1 + scripts/changelog-checker/eslint.config.js | 17 ----------------- 11 files changed, 31 insertions(+), 18 deletions(-) delete mode 100644 scripts/changelog-checker/eslint.config.js diff --git a/packages/backend/eslint.config.js b/packages/backend/eslint.config.js index 2531d9bae4..e74ded7874 100644 --- a/packages/backend/eslint.config.js +++ b/packages/backend/eslint.config.js @@ -70,6 +70,7 @@ export default [ "**/coverage/", "**/node_modules/", "**/migration/", + "*.*", ] }, ]; diff --git a/packages/backend/test-federation/eslint.config.js b/packages/backend/test-federation/eslint.config.js index e3bcf4c0fe..6a0962b1c5 100644 --- a/packages/backend/test-federation/eslint.config.js +++ b/packages/backend/test-federation/eslint.config.js @@ -18,4 +18,10 @@ export default [ }, }, }, + { + ignores: [ + 'built/**/*', + '*.*', + ], + }, ]; diff --git a/packages/backend/test-server/eslint.config.js b/packages/backend/test-server/eslint.config.js index b9c16d469f..fd3901cc5f 100644 --- a/packages/backend/test-server/eslint.config.js +++ b/packages/backend/test-server/eslint.config.js @@ -40,4 +40,10 @@ export default [ }], }, }, + { + ignores: [ + 'built/**/*', + '*.*', + ], + }, ]; diff --git a/packages/backend/test/eslint.config.js b/packages/backend/test/eslint.config.js index a0f43babad..90ff7dcb8d 100644 --- a/packages/backend/test/eslint.config.js +++ b/packages/backend/test/eslint.config.js @@ -19,4 +19,10 @@ export default [ }, }, }, + { + ignores: [ + 'built/**/*', + '*.*', + ], + }, ]; diff --git a/packages/frontend-embed/eslint.config.js b/packages/frontend-embed/eslint.config.js index fbe91f3660..8e603ab8e3 100644 --- a/packages/frontend-embed/eslint.config.js +++ b/packages/frontend-embed/eslint.config.js @@ -105,6 +105,7 @@ export default [ "**/built/", "**/coverage/", "**/node_modules/", + "*.*", ] }, ]; diff --git a/packages/frontend-shared/eslint.config.js b/packages/frontend-shared/eslint.config.js index ff4d27443b..f6003046eb 100644 --- a/packages/frontend-shared/eslint.config.js +++ b/packages/frontend-shared/eslint.config.js @@ -109,6 +109,7 @@ export default [ "**/built/", "**/coverage/", "**/node_modules/", + "*.*", ] }, ]; diff --git a/packages/frontend/eslint.config.js b/packages/frontend/eslint.config.js index a5381e14e3..0a844ddf55 100644 --- a/packages/frontend/eslint.config.js +++ b/packages/frontend/eslint.config.js @@ -178,7 +178,8 @@ export default [ "**/coverage/", "**/node_modules/", "**/libopenmpt/", - "**/storybook-static/" + "**/storybook-static/", + "*.*", ] }, ]; diff --git a/packages/misskey-bubble-game/eslint.config.js b/packages/misskey-bubble-game/eslint.config.js index 749971a72b..0b199edf4e 100644 --- a/packages/misskey-bubble-game/eslint.config.js +++ b/packages/misskey-bubble-game/eslint.config.js @@ -32,6 +32,7 @@ export default [ "**/built/", "**/coverage/", "**/node_modules/", + "*.*", ] }, ]; diff --git a/packages/misskey-js/generator/eslint.config.js b/packages/misskey-js/generator/eslint.config.js index 7139f88f5b..25850a95a9 100644 --- a/packages/misskey-js/generator/eslint.config.js +++ b/packages/misskey-js/generator/eslint.config.js @@ -20,4 +20,10 @@ export default [ '@stylistic/indent': 'off', }, }, + { + ignores: [ + 'built/**/*', + '*.*', + ], + }, ]; diff --git a/packages/misskey-reversi/eslint.config.js b/packages/misskey-reversi/eslint.config.js index 8453d9b8e7..a5adcb7c07 100644 --- a/packages/misskey-reversi/eslint.config.js +++ b/packages/misskey-reversi/eslint.config.js @@ -8,6 +8,7 @@ export default [ ignores: [ '**/node_modules', 'built', + '*.*', ], }, { diff --git a/scripts/changelog-checker/eslint.config.js b/scripts/changelog-checker/eslint.config.js deleted file mode 100644 index 813e96981a..0000000000 --- a/scripts/changelog-checker/eslint.config.js +++ /dev/null @@ -1,17 +0,0 @@ -import tsParser from '@typescript-eslint/parser'; -import sharedConfig from '../../packages/shared/eslint.config.js'; - -export default [ - ...sharedConfig, - { - files: ['src/**/*.ts', 'src/**/*.tsx'], - languageOptions: { - parserOptions: { - parser: tsParser, - project: ['./tsconfig.json'], - sourceType: 'module', - tsconfigRootDir: import.meta.dirname, - }, - }, - }, -];