Skip to content

Commit 69c7f05

Browse files
authored
Add support for eslint v8 (#2)
* Add test for eslint v8 * eslint peer dep to v8
1 parent dbe9a4f commit 69c7f05

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.github/workflows/test.yml

+21-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,30 @@ env:
88
CI: true
99

1010
jobs:
11+
lint:
12+
name: 'Lint'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Setup Node.js 14
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: 14
21+
- name: Install
22+
run: yarn install
23+
- name: Lint
24+
run: yarn lint
25+
- name: Lint docs
26+
run: yarn lint:docs
1127
test:
12-
name: 'Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
28+
name: 'Test for ESLint ${{ matrix.eslint }} on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
1329
runs-on: ${{ matrix.os }}
1430
strategy:
1531
matrix:
1632
os: [ubuntu-latest]
1733
node: [12, 14, 16]
34+
eslint: [7, ^8.0.0-0]
1835
steps:
1936
- name: Checkout
2037
uses: actions/checkout@v2
@@ -24,10 +41,9 @@ jobs:
2441
node-version: ${{ matrix.node }}
2542
- name: Install
2643
run: yarn install
27-
- name: Lint
28-
run: yarn lint
29-
- name: Lint docs
30-
run: yarn lint:docs
44+
- name: Install ESLint ${{ matrix.eslint }}
45+
run: yarn add -D eslint@${{ matrix.eslint }}
46+
if: matrix.eslint != 7
3147
- name: Test
3248
run: yarn test
3349
- name: Integration Test

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"svelte-eslint-parser": "^0.4.1"
2929
},
3030
"peerDependencies": {
31-
"eslint": "^7.0.0",
31+
"eslint": "^7.0.0 || ^8.0.0-0",
3232
"svelte": "^3.37.0"
3333
},
3434
"peerDependenciesMeta": {

0 commit comments

Comments
 (0)