Skip to content

Commit e025b2f

Browse files
committed
Drop support old eslint and node
1 parent 45f10de commit e025b2f

File tree

4 files changed

+15
-147
lines changed

4 files changed

+15
-147
lines changed

.circleci/config.yml

Lines changed: 2 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -2,126 +2,13 @@ workflows:
22
version: 2
33
node-multi-build:
44
jobs:
5-
- eslint-v6
6-
- eslint-v7
7-
- ts-eslint-v4
8-
- node-v14
9-
- node-v16
105
- lint
116

127
version: 2
138
jobs:
14-
node-base: &node-base
15-
docker:
16-
- image: node
17-
steps:
18-
- run:
19-
name: Versions
20-
command: npm version
21-
- checkout
22-
# - restore_cache:
23-
# keys:
24-
# - v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
25-
- run:
26-
name: Install dependencies
27-
command: npm install --legacy-peer-deps
28-
- run:
29-
name: Test
30-
command: npm test
31-
# - save_cache:
32-
# key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
33-
# paths:
34-
# - node_modules
35-
36-
eslint-v6:
37-
docker:
38-
- image: node:14
39-
steps:
40-
- run:
41-
name: Versions
42-
command: npm version
43-
- checkout
44-
- run:
45-
name: Uninstall @stylistic/eslint-plugin
46-
command: npm uninstall -D @stylistic/eslint-plugin
47-
- run:
48-
name: Install eslint@6
49-
command: |
50-
npm install --save-exact [email protected] @typescript-eslint/parser@5
51-
- run:
52-
name: Install dependencies
53-
command: npm install
54-
- run:
55-
name: Test
56-
command: npm test
57-
eslint-v7:
58-
docker:
59-
- image: node:14
60-
steps:
61-
- run:
62-
name: Versions
63-
command: npm version
64-
- checkout
65-
- run:
66-
name: Uninstall @stylistic/eslint-plugin
67-
command: npm uninstall -D @stylistic/eslint-plugin
68-
- run:
69-
name: Install eslint@7
70-
command: |
71-
npm install eslint@7 @typescript-eslint/parser@5
72-
- run:
73-
name: Install dependencies
74-
command: npm install
75-
- run:
76-
name: Test
77-
command: npm test
78-
ts-eslint-v4:
79-
docker:
80-
- image: node:14
81-
steps:
82-
- run:
83-
name: Versions
84-
command: npm version
85-
- checkout
86-
- run:
87-
name: Uninstall @stylistic/eslint-plugin
88-
command: npm uninstall -D @stylistic/eslint-plugin
89-
- run:
90-
name: Install @typescript-eslint/parser@4 eslint@7 [email protected]
91-
command: |
92-
npm install @typescript-eslint/parser@4 eslint@7 [email protected] --save-exact
93-
- run:
94-
name: Install dependencies
95-
command: npm install
96-
- run:
97-
name: Test
98-
command: npm test
99-
node-v14:
100-
docker:
101-
- image: node:14
102-
steps:
103-
- run:
104-
name: Versions
105-
command: npm version
106-
- checkout
107-
- run:
108-
name: Install @typescript-eslint/parser@5
109-
command: |
110-
npm install @typescript-eslint/parser@5 --save-exact
111-
- run:
112-
name: Install dependencies
113-
command: npm install
114-
- run:
115-
name: Test
116-
command: npm test
117-
node-v16:
118-
<<: *node-base
119-
docker:
120-
- image: node:16
121-
1229
lint:
12310
docker:
124-
- image: node:16
11+
- image: node:latest
12512
steps:
12613
- run:
12714
name: Versions
@@ -132,7 +19,7 @@ jobs:
13219
- v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
13320
- run:
13421
name: Install dependencies
135-
command: npm install
22+
command: npm install -f
13623
- save_cache:
13724
key: v2-npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
13825
paths:

.github/workflows/CI.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
name: Test
3131
strategy:
3232
matrix:
33-
node: [18, 20]
34-
eslint: [8, 9]
33+
node: [18, 20, 21]
34+
eslint: [9]
3535
include:
36-
# On old Node version
37-
- node: 17
36+
# On old ESLint version
37+
- node: 18
3838
eslint: 8
3939

4040
runs-on: ubuntu-latest
@@ -46,42 +46,23 @@ jobs:
4646
with:
4747
node-version: ${{ matrix.node }}
4848
- name: Install Packages
49-
run: npm install --legacy-peer-deps
49+
run: npm install -f
5050
- name: Install ESLint v${{ matrix.eslint }}
51-
run: npm install --save-dev eslint@${{ matrix.eslint }} --legacy-peer-deps
52-
- name: Test
53-
run: npm test
54-
55-
test-for-ts-eslint-v5:
56-
name: Test
57-
runs-on: ubuntu-latest
58-
steps:
59-
- name: Checkout
60-
uses: actions/checkout@v3
61-
- name: Install Node.js
62-
uses: actions/setup-node@v3
63-
with:
64-
node-version: 18
65-
- name: Install Packages
66-
run: npm install --legacy-peer-deps
67-
- name: Install typescript-eslint v5
68-
run: npm install -D @typescript-eslint/parser
51+
run: npm install --save-dev eslint@${{ matrix.eslint }} -f
6952
- name: Test
7053
run: npm test
7154

72-
test-for-eslint-v8-without-eslint-stylistic:
73-
name: Test
55+
test-without-eslint-stylistic:
56+
name: Test without ESLint Stylistic
7457
runs-on: ubuntu-latest
7558
steps:
7659
- name: Checkout
7760
uses: actions/checkout@v3
7861
- name: Install Node.js
7962
uses: actions/setup-node@v3
8063
- name: Install Packages
81-
run: npm install --legacy-peer-deps
64+
run: npm install -f
8265
- name: Uninstall @stylistic/eslint-plugin
8366
run: npm uninstall -D @stylistic/eslint-plugin
84-
- name: Install eslint v8
85-
run: npm install -D eslint@8
8667
- name: Test
8768
run: npm test

docs/user-guide/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ yarn add -D eslint eslint-plugin-vue
1616

1717
::: tip Requirements
1818

19-
- ESLint v6.2.0 and above
20-
- Node.js v14.17.x, v16.x and above
19+
- ESLint: `^8.57.0 || ^9.0.0`
20+
- Node.js: `^18.18.0 || ^20.9.0 || >=21.1.0`
2121

2222
:::
2323

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
"url": "https://github.com/vuejs/eslint-plugin-vue/issues"
5252
},
5353
"engines": {
54-
"node": "^14.17.0 || >=16.0.0"
54+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
5555
},
5656
"peerDependencies": {
57-
"eslint": "^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0"
57+
"eslint": "^8.57.0 || ^9.0.0"
5858
},
5959
"dependencies": {
6060
"@eslint-community/eslint-utils": "^4.4.0",

0 commit comments

Comments
 (0)