Skip to content

Commit 61d47aa

Browse files
authored
Drop support for ESLint<8 (#43)
* Drop support for ESLint<6 * change support eslint version to v8
1 parent 4513d69 commit 61d47aa

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,11 @@ jobs:
5151
node: 14
5252
os: ubuntu-latest
5353
# On old ESLint versions
54-
- eslint: 7
55-
node: 18
56-
os: ubuntu-latest
57-
- eslint: 6
58-
node: 18
59-
os: ubuntu-latest
60-
- eslint: 5
61-
node: 18
62-
os: ubuntu-latest
63-
- eslint: 4
54+
- eslint: 8.0.0
6455
node: 18
6556
os: ubuntu-latest
6657
# On the minimum supported ESLint/Node.js version
67-
- eslint: 4
58+
- eslint: 8.0.0
6859
node: 14.18.0
6960
os: ubuntu-latest
7061

@@ -79,23 +70,11 @@ jobs:
7970
- name: Uninstall Packages
8071
run: |+
8172
npm r -D vuepress eslint-plugin-eslint-plugin eslint-plugin-prettier vue-eslint-parser eslint-plugin-vue
82-
- name: Install for ESLint v4
83-
run: |+
84-
npm i -D eslint-utils@2 --legacy-peer-deps
85-
if: "matrix.eslint == 4"
86-
- name: Install for ESLint v5
87-
run: |+
88-
npm i -D @typescript-eslint/parser@4 --legacy-peer-deps
89-
if: "matrix.eslint == 5"
9073
- name: Install ESLint ${{ matrix.eslint }}
9174
run: |+
9275
npm install -D eslint@${{ matrix.eslint }}
9376
npx rimraf node_modules
9477
- name: Install Packages
9578
run: npm install
96-
if: "matrix.eslint != 4"
97-
- name: Install Packages --legacy-peer-deps
98-
run: npm install --legacy-peer-deps
99-
if: "matrix.eslint == 4"
10079
- name: Test
10180
run: npm run -s test:mocha

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-plugin-es-x
2626

2727
::: tip Requirements
2828
- Node.js `14.18.0` or newer, except `15.x`.
29-
- ESLint `4.19.1` or newer.
29+
- ESLint `8.x` or newer.
3030
:::
3131

3232
## 📖 Usage

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lib"
1111
],
1212
"peerDependencies": {
13-
"eslint": ">=4.19.1"
13+
"eslint": ">=8"
1414
},
1515
"dependencies": {
1616
"eslint-utils": "^2.0.0 || ^3.0.0",

0 commit comments

Comments
 (0)