Skip to content

Commit ef4d4aa

Browse files
authored
Drop support for Node.js<14.18.0 and 15 (#42)
* Drop support for Node.js<14 * fix * chore: fix support node version * chore: fix support node version
1 parent 9934be3 commit ef4d4aa

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
uses: actions/checkout@v3
1717
- name: Install Node.js
1818
uses: actions/setup-node@v3
19-
with:
20-
node-version: 14
2119
- name: Install Packages
2220
run: npm install
2321
- name: Lint
@@ -28,43 +26,46 @@ jobs:
2826

2927
strategy:
3028
matrix:
31-
eslint: [8]
32-
node: [16]
33-
os: [ubuntu-latest]
3429
include:
30+
- eslint: 8
31+
node: 18
32+
os: ubuntu-latest
3533
# On other platforms
3634
- eslint: 8
37-
node: 16
35+
node: 18
3836
os: windows-latest
3937
- eslint: 8
40-
node: 16
38+
node: 18
4139
os: macos-latest
42-
# On old Node.js versions
40+
# On other Node.js versions
4341
- eslint: 8
44-
node: 14
42+
node: 19
4543
os: ubuntu-latest
46-
- eslint: 7
47-
node: 12
44+
- eslint: 8
45+
node: 16
4846
os: ubuntu-latest
49-
- eslint: 7
50-
node: 10
47+
- eslint: 8
48+
node: 17
49+
os: ubuntu-latest
50+
- eslint: 8
51+
node: 14
5152
os: ubuntu-latest
5253
# On old ESLint versions
5354
- eslint: 7
54-
node: 16
55+
node: 18
5556
os: ubuntu-latest
5657
- eslint: 6
57-
node: 16
58+
node: 18
5859
os: ubuntu-latest
5960
- eslint: 5
60-
node: 16
61+
node: 18
6162
os: ubuntu-latest
6263
- eslint: 4
63-
node: 16
64+
node: 18
6465
os: ubuntu-latest
6566
# On the minimum supported ESLint/Node.js version
6667
- eslint: 4
67-
node: "8.10"
68+
node: 14.18.0
6869
os: ubuntu-latest
6970

7071
runs-on: ${{ matrix.os }}
@@ -78,14 +79,6 @@ jobs:
7879
- name: Uninstall Packages
7980
run: |+
8081
npm r -D vuepress eslint-plugin-eslint-plugin eslint-plugin-prettier vue-eslint-parser eslint-plugin-vue
81-
- name: Install for Node v8
82-
run: |+
83-
npm i -D @typescript-eslint/parser@3 mocha@7
84-
if: "matrix.node == '8.10'"
85-
- name: Install for Node v10
86-
run: |+
87-
npm i -D mocha@9
88-
if: "matrix.node == 10"
8982
- name: Install for ESLint v4
9083
run: |+
9184
npm i -D eslint-utils@2 --legacy-peer-deps
@@ -100,9 +93,9 @@ jobs:
10093
npx rimraf node_modules
10194
- name: Install Packages
10295
run: npm install
103-
if: "matrix.eslint != 4 || matrix.node == '8.10'"
96+
if: "matrix.eslint != 4"
10497
- name: Install Packages --legacy-peer-deps
10598
run: npm install --legacy-peer-deps
106-
if: "matrix.eslint == 4 && matrix.node != '8.10'"
99+
if: "matrix.eslint == 4"
107100
- name: Test
108101
run: npm run -s test:mocha

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ npm install --save-dev eslint eslint-plugin-es-x
2525
```
2626

2727
::: tip Requirements
28-
- Node.js `8.10.0` or newer.
28+
- Node.js `14.18.0` or newer, except `15.x`.
2929
- ESLint `4.19.1` or newer.
3030
:::
3131

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "5.4.0",
44
"description": "ESLint plugin about ECMAScript syntactic features.",
55
"engines": {
6-
"node": ">=8.10.0"
6+
"node": "^14.18.0 || >=16.0.0"
77
},
88
"main": "lib/index.js",
99
"files": [

0 commit comments

Comments
 (0)