Commit 5349fab
authored
Move to ESLint 10 and @microbit/eslint-config 0.2.1 (#26)
Pin the React version the rules key off. eslint-react follows whatever
React resolves in the project, which is 19, but we publish for React
>= 17.0.2: without the pin it flags our forwardRef components, our
Context.Provider and our useContext, none of which our consumers on 17
or 18 can drop.
That leaves one real finding the old plugin never reported: the frame
passed key after the prop spread, which deoptimises the automatic JSX
runtime. Key first. Nothing changes semantically, as a props object
never carries key.
npm cannot resolve this bump in one step. The lockfile pins the old
shared config with its eslint ^9.7 peer and npm tries to reconcile that
rather than replace it, failing with a circular ERESOLVE. Uninstall
eslint and @microbit/eslint-config first, then install the new pair.1 parent cf5b669 commit 5349fab
4 files changed
Lines changed: 598 additions & 2471 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments