Skip to content

Commit 4517c3f

Browse files
feat: drop Node 6, 8 & 10 support (#16)
BREAKING CHANGE: Requires Node@^12.22.0 || ^14.17.0 || >=16.0.0
1 parent 52628c3 commit 4517c3f

File tree

4 files changed

+5
-109
lines changed

4 files changed

+5
-109
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
matrix:
4444
eslint: [7]
45-
node: [10, 12.0.0, 12, 14.0.0, 14, 16.0.0, 16, 18.0.0, 18]
45+
node: [12.22.0, 12, 14.17.0, 14, 16.0.0, 16, 18.0.0, 18]
4646
os: [ubuntu-latest]
4747
include:
4848
# On other platforms
@@ -62,16 +62,9 @@ jobs:
6262
- eslint: 4
6363
node: 18
6464
os: ubuntu-latest
65-
# On old Node.js versions
66-
- eslint: 6
67-
node: 8
68-
os: ubuntu-latest
69-
- eslint: 5
70-
node: 6
71-
os: ubuntu-latest
7265
# On the minimum supported ESLint/Node.js version
7366
- eslint: 4.19.1
74-
node: 6.5.0
67+
node: 12.22.0
7568
os: ubuntu-latest
7669
runs-on: ${{ matrix.os }}
7770
steps:
@@ -86,31 +79,11 @@ jobs:
8679
with:
8780
node-version: ${{ matrix.node }}
8881

89-
# - name: 📥 Install dependencies
90-
# run: npm install
91-
- name: 📥 Install Packages for Node v6
92-
run: |
93-
sudo npm i [email protected]
94-
./node_modules/.bin/npm -v
95-
./node_modules/.bin/npm uninstall vuepress
96-
./node_modules/.bin/npm install
97-
if: ${{ matrix.node == '6.5.0' || matrix.node == '6' }}
98-
- name: 📥 Uninstall Packages for Node v8
99-
run: |
100-
npm uninstall vuepress
101-
if: ${{ matrix.node == '8.O.O' || matrix.node == '8' }}
102-
- name: 📥 Install Packages
82+
- name: 📥 Install dependencies
10383
run: npm install --legacy-peer-deps
104-
if: ${{ matrix.node != '6.5.0' && matrix.node != '6' }}
10584

106-
# - name: 📥 Install ESLint v${{ matrix.eslint }}
107-
# run: npm install --save-dev eslint@${{ matrix.eslint }}
108-
- name: 📥 Install ESLint v${{ matrix.eslint }} for Node v6
109-
run: ./node_modules/.bin/npm install --save-dev eslint@${{ matrix.eslint }}
110-
if: ${{ matrix.node == '6.5.0' || matrix.node == '6' }}
11185
- name: 📥 Install ESLint v${{ matrix.eslint }}
11286
run: npm install --save-dev eslint@${{ matrix.eslint }}
113-
if: ${{ matrix.node != '6.5.0' && matrix.node != '6' }}
11487

11588
- name: ▶️ Run test script
11689
run: npm run test

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ npm install --save-dev eslint @eslint-community/eslint-plugin-eslint-comments
2626
```
2727

2828
::: tip Requirements
29-
- Node.js `6.5.0` or newer.
29+
- Node.js `^12.22.0 || ^14.17.0 || >=16.0.0`
3030
- ESLint `4.19.1` or newer.
3131
:::
3232

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0-semantically-released",
44
"description": "Additional ESLint rules for ESLint directive comments.",
55
"engines": {
6-
"node": ">=6.5.0"
6+
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
77
},
88
"main": "index.js",
99
"files": [
@@ -41,7 +41,6 @@
4141
"clean": "rimraf .nyc_output coverage docs/.vuepress/dist",
4242
"docs:build": "vuepress build docs",
4343
"docs:watch": "vuepress dev docs",
44-
"docs:deploy": "node scripts/deploy",
4544
"lint": "eslint lib scripts tests",
4645
"test": "nyc mocha \"tests/lib/**/*.js\" --reporter dot --timeout 8000",
4746
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",

scripts/deploy.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)