Skip to content

Add support for eslint v8 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,30 @@ env:
CI: true

jobs:
lint:
name: 'Lint'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install
run: yarn install
- name: Lint
run: yarn lint
- name: Lint docs
run: yarn lint:docs
test:
name: 'Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
name: 'Test for ESLint ${{ matrix.eslint }} on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [12, 14, 16]
eslint: [7, ^8.0.0-0]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -24,10 +41,9 @@ jobs:
node-version: ${{ matrix.node }}
- name: Install
run: yarn install
- name: Lint
run: yarn lint
- name: Lint docs
run: yarn lint:docs
- name: Install ESLint ${{ matrix.eslint }}
run: yarn add -D eslint@${{ matrix.eslint }}
if: matrix.eslint != 7
- name: Test
run: yarn test
- name: Integration Test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"svelte-eslint-parser": "^0.4.1"
},
"peerDependencies": {
"eslint": "^7.0.0",
"eslint": "^7.0.0 || ^8.0.0-0",
"svelte": "^3.37.0"
},
"peerDependenciesMeta": {
Expand Down