Skip to content

Commit 41ceed7

Browse files
aladdin-addscagood
andauthoredJan 8, 2024
feat!: drop eslint v7 & node.js < 18 (#161)
chore: switch to new rule-tester. Signed-off-by: 唯然 <weiran.zsd@outlook.com> Co-authored-by: Sebastian Good <2230835+scagood@users.noreply.github.com>
1 parent c191101 commit 41ceed7

Some content is hidden

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

45 files changed

+542
-549
lines changed
 

‎.github/workflows/CI.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ on:
88
- cron: 0 0 * * 0
99

1010
jobs:
11+
1112
lint:
1213
name: Lint
1314
runs-on: ubuntu-latest
15+
timeout-minutes: 30
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v4
1719
with:
1820
fetch-depth: 1
1921
- name: Install Node.js
20-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2123
with:
2224
node-version: 20.x
2325
- name: Install Packages
@@ -31,31 +33,34 @@ jobs:
3133
strategy:
3234
matrix:
3335
os: [ubuntu-latest, windows-latest, macOS-latest]
34-
eslint: [8.x]
36+
eslint: [8.x, "9.0.0-alpha.0"]
3537
node: [18.x, 20.x]
3638
include:
3739
- os: ubuntu-latest
38-
node: "16.0.x"
40+
node: "18.18.0"
3941
eslint: "8.x"
4042
- os: ubuntu-latest
41-
node: "16.x"
43+
node: "20.9.0"
4244
eslint: "8.x"
4345
- os: ubuntu-latest
44-
node: "19.x"
46+
node: "21.1.0"
4547
eslint: "8.x"
4648
- os: ubuntu-latest
47-
node: "20.x"
48-
eslint: "7.0.x"
49+
node: "21.x"
50+
eslint: "8.x"
4951
runs-on: ${{ matrix.os }}
52+
timeout-minutes: 30
5053
steps:
5154
- name: Checkout
5255
uses: actions/checkout@v4
5356
with:
5457
fetch-depth: 1
5558
- name: Install Node.js ${{ matrix.node }}
56-
uses: actions/setup-node@v3
59+
uses: actions/setup-node@v4
5760
with:
5861
node-version: ${{ matrix.node }}
62+
- name: npm latest
63+
run: npm i -g npm@latest # use latest npm
5964
- name: Install Packages
6065
run: npm install
6166
- name: Install ESLint ${{ matrix.eslint }}

‎.npmrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
registry=https://registry.npmjs.org/
1+
registry = https://registry.npmjs.org/
22
package-lock = false
3+
force = true
4+
legacy-peer-deps = true

0 commit comments

Comments
 (0)
Please sign in to comment.