Commit 7273675
🔧 Migrate ESLint config to flat config for v10
At the moment, `npm run lint` fails outright under the ESLint v10 bump:
v9 dropped the `--ignore-path` flag and v10 removed support for the
`.eslintrc.*` format entirely, so ESLint can't even load its config.
This change ports the config to the flat `eslint.config.js` format. The
Google ruleset is a bare `rules` bag, so we can spread `google.rules`
directly rather than pulling in `FlatCompat`. The ShareDB overrides and
the ES6-option disables are carried over verbatim, `ecmaVersion` stays
at 3, and the `coverage/` ignore (previously sourced from `.gitignore`
via `--ignore-path`) moves into the config. The `lint` script drops the
removed flag and becomes a plain `eslint .`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1b97d5f commit 7273675
2 files changed
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments