Skip to content

Commit 598f57b

Browse files
authoredApr 9, 2024··
Update ESLint to v9, drop support for Node.js v16 (#2250)
1 parent 29025d9 commit 598f57b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+615
-664
lines changed
 

‎.github/workflows/main.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ jobs:
1616
matrix:
1717
node-version:
1818
- 20
19-
- 16
19+
- 18
2020
os:
2121
- ubuntu-latest
2222
- windows-latest
23-
include:
24-
- os: ubuntu-latest
25-
node-version: 18
23+
# Even numbers of node-version
24+
# include:
25+
# - os: ubuntu-latest
26+
# node-version: 18
2627
steps:
2728
- uses: actions/checkout@v4
2829
- uses: actions/setup-node@v4
2930
with:
3031
node-version: ${{ matrix.node-version }}
31-
- run: npm install
32+
- run: npm install --legacy-peer-deps
3233
- run: npx ava
3334
lint-test:
3435
runs-on: ${{ matrix.os }}
@@ -43,7 +44,7 @@ jobs:
4344
with:
4445
# Locked due to the difference of `zlib.gzipSync()` between Node.js versions
4546
node-version: 20
46-
- run: npm install
47+
- run: npm install --legacy-peer-deps
4748
- run: npm run lint
4849
- run: npx del-cli test/snapshots --verbose
4950
# Force update snapshots, https://github.com/avajs/ava/discussions/2754
@@ -61,7 +62,7 @@ jobs:
6162
steps:
6263
- uses: actions/checkout@v4
6364
- uses: actions/setup-node@v4
64-
- run: npm install
65+
- run: npm install --legacy-peer-deps
6566
- run: npm run run-rules-on-codebase
6667
integration:
6768
name: Integration test (${{ matrix.group }})
@@ -84,5 +85,5 @@ jobs:
8485
steps:
8586
- uses: actions/checkout@v4
8687
- uses: actions/setup-node@v4
87-
- run: npm install
88+
- run: npm install --legacy-peer-deps
8889
- run: npm run integration -- --group ${{ matrix.group }}

‎package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"dependencies": {
5252
"@babel/helper-validator-identifier": "^7.22.20",
5353
"@eslint-community/eslint-utils": "^4.4.0",
54-
"@eslint/eslintrc": "^2.1.4",
54+
"@eslint/eslintrc": "^3.0.0",
5555
"ci-info": "^4.0.0",
5656
"clean-regexp": "^1.0.0",
5757
"core-js-compat": "^3.34.0",
@@ -69,20 +69,21 @@
6969
"devDependencies": {
7070
"@babel/code-frame": "^7.23.5",
7171
"@babel/core": "^7.23.6",
72-
"@babel/eslint-parser": "^7.23.3",
72+
"@babel/eslint-parser": "^7.24.1",
7373
"@lubien/fixture-beta-package": "^1.0.0-beta.1",
7474
"@typescript-eslint/parser": "^7.5.0",
7575
"ava": "^6.0.1",
7676
"c8": "^8.0.1",
7777
"chalk": "^5.3.0",
7878
"enquirer": "^2.4.1",
79-
"eslint": "^8.56.0",
79+
"eslint": "^9.0.0",
8080
"eslint-ava-rule-tester": "^5.0.1",
8181
"eslint-doc-generator": "^1.7.0",
8282
"eslint-plugin-eslint-plugin": "^5.2.1",
8383
"eslint-plugin-internal-rules": "file:./scripts/internal-rules/",
8484
"eslint-remote-tester": "^3.0.1",
8585
"eslint-remote-tester-repositories": "^1.0.1",
86+
"espree": "^10.0.0",
8687
"execa": "^8.0.1",
8788
"listr": "^0.14.3",
8889
"lodash-es": "^4.17.21",

0 commit comments

Comments
 (0)
Please sign in to comment.