Commit f3f3caf
committed
refactor: Upgrade to ESLint v10 and disable noisy new rules
Update companion packages alongside eslint v10:
- @eslint/js: ^9.8.0 → ^10.0.1
- eslint-plugin-ava: ^15.1.0 → ^17.0.1
- eslint-plugin-jsdoc: ^62.5.4 → ^63.0.2
Adapt eslint.common.config.js for ESLint v10 behavior:
- Scope js.configs.recommended and eslint-config-google to JS files only,
since ava v17 now introduces a json/json language config for package.json
files that would otherwise cause JS-only rules to error on JSON
- Change ava.configs["flat/recommended"] to ...ava.configs.recommended
(the config key was renamed in ava v17)
- Disable rules that are new or stricter in ESLint v10 / ava v17 and
produce too much noise against the existing codebase
Also fix one genuine ava/test-title violation (trailing whitespace in
a test title) in packages/cli/test/lib/cli/commands/build.js.1 parent 614585b commit f3f3caf
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments