Skip to content

Commit 259bc2e

Browse files
amilajackclaude
andcommitted
feat!: drop support for ESLint 4-8
BREAKING CHANGE: Minimum supported ESLint version is now 9.0.0. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0596805 commit 259bc2e

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,13 @@ npm install eslint-plugin-compat
2121

2222
### 2. Update ESLint Config
2323

24-
#### New Config (`eslint.config.mjs`)
25-
2624
```js
25+
// eslint.config.mjs
2726
import compat from "eslint-plugin-compat";
2827

2928
export default [compat.configs["flat/recommended"]];
3029
```
3130

32-
#### Legacy Config (`.eslintrc.json`)
33-
34-
```jsonc
35-
{
36-
"plugins": ["compat"],
37-
"extends": ["plugin:compat/recommended"],
38-
"env": {
39-
"browser": true,
40-
},
41-
// ...
42-
}
43-
```
44-
4531
### 3. Configure Target Browsers
4632

4733
Browser targets are configured using [browserslist](https://github.com/browserslist/browserslist). You can configure browser targets in your `package.json`:

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"typescript-eslint": "^8.56.0"
114114
},
115115
"peerDependencies": {
116-
"eslint": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
116+
"eslint": "^9.0.0 || ^10.0.0"
117117
},
118118
"engines": {
119119
"node": ">=18.x"

0 commit comments

Comments
 (0)