Skip to content

Commit 797295a

Browse files
unhappychoiceclaude
andcommitted
chore(deps-dev): bump eslint from 9.39.2 to 10.10.0 in /packages/frontend
ESLint 10 removes `context.getFilename()`. Three dev dependencies still cap their peer range at ESLint 9 and blocked `npm ci`: - eslint-plugin-import and eslint-plugin-jsx-a11y were registered as plugins but enabled no rules, so both are dropped rather than pinned. - eslint-plugin-react is used (recommended config plus react/jsx-no-bind) and has no ESLint 10 release, so its rules are wrapped with fixupConfigRules from @eslint/compat, which restores the removed context methods. Its peer range is relaxed through an override alongside the existing jest-runner-eslint one. Lint reports the same results as before: 124 lint suites and 321 tests pass. Co-Authored-By: Claude Opus 5 <[email protected]>
1 parent 730f6c1 commit 797295a

3 files changed

Lines changed: 589 additions & 609 deletions

File tree

‎packages/frontend/eslint.config.js‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
const globals = require("globals");
2+
const { fixupConfigRules } = require("@eslint/compat");
23
const pluginJs = require("@eslint/js");
34
const stylistic = require('@stylistic/eslint-plugin');
45
const tseslint = require("typescript-eslint");
56
const pluginReactConfig = require("eslint-plugin-react/configs/recommended.js");
67
const hooksPlugin = require("eslint-plugin-react-hooks");
78
const jestPlugin = require("eslint-plugin-jest");
8-
const importPlugin = require("eslint-plugin-import");
9-
const jsxA11yPlugin = require("eslint-plugin-jsx-a11y");
109

1110
module.exports = tseslint.config(
1211
{
1312
files: ["src/**/*.{js,mjs,cjs,ts,tsx}", "test/**/*.{js,mjs,cjs,ts,tsx}"],
1413
extends: [
1514
pluginJs.configs.recommended,
1615
...tseslint.configs.recommended,
17-
pluginReactConfig,
16+
// eslint-plugin-react still calls context.getFilename(), removed in ESLint 10.
17+
...fixupConfigRules(pluginReactConfig),
1818
],
1919
plugins: {
2020
'@stylistic': stylistic,
2121
"react-hooks": hooksPlugin,
2222
jest: jestPlugin,
23-
import: importPlugin,
24-
"jsx-a11y": jsxA11yPlugin,
2523
},
2624
languageOptions: {
2725
parser: tseslint.parser,

0 commit comments

Comments
 (0)