Repository navigation
Commit 8ae13d2
Bump eslint to 10 and @eslint/js to 10, migrating the lint stack
Closes the Dependabot updates for eslint 9.39.4 -> 10.8.1 (#172) and
@eslint/js 9.39.4 -> 10.0.1 (#114), which failed at `npm ci` with
ERESOLVE because several plugins still cap eslint at ^9.
Breaking changes handled:
- eslint-plugin-import -> eslint-plugin-import-x. eslint-plugin-import
2.32.0 is the latest release and peers on eslint <=^9; import-x is the
maintained fork that supports eslint 10. Rules and settings renamed
from `import/*` to `import-x/*`.
- eslint-plugin-react -> @eslint-react/eslint-plugin. eslint-plugin-react
7.37.5 does not merely have a stale peer range: under eslint 10 it
throws "contextOrFilename.getFilename is not a function" on the first
React rule, because eslint 10 removed the deprecated context methods.
@eslint-react is the ESLint 10 compatible replacement.
* `react/no-array-index-key` disable comments renamed to
`@eslint-react/no-array-index-key`.
* The `react/destructuring-assignment` disable comment is dropped;
the rule has no @eslint-react equivalent.
* `static-components`, `set-state-in-effect` and `no-use-context` are
turned off: they are new rules with no eslint-plugin-react
counterpart, so leaving them on would not be a like-for-like
migration. Worth triaging in a follow-up.
* @eslint-react/no-missing-key found a real bug in ArrayInput: the
mapped element was a keyless `<>` with the key on the inner
<Input>. Now a keyed <React.Fragment>.
- overrides for eslint-plugin-jsx-a11y and eslint-plugin-import.
jsx-a11y 6.10.2 peers on eslint <=^9 but works fine under 10, so its
peer is pinned to the root eslint. eslint-plugin-import is no longer a
direct dependency but is still pulled in as an optional peer of
eslint-import-resolver-typescript, where its eslint <=^9 peer would
otherwise re-break `npm ci`.
`npm ci`, `npm run build`, `npm test` and `npm run lint` all pass; lint
is left with the same 8 pre-existing errors as before the migration.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 5e83453 commit 8ae13d2
7 files changed
Lines changed: 633 additions & 430 deletions
File tree
- src
- components/querity-builder
- widgets
- utils/context
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
41 | | - | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | | - | |
83 | | - | |
| 81 | + | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
92 | | - | |
93 | 89 | | |
94 | | - | |
95 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
0 commit comments