Skip to content

Commit d446493

Browse files
committed
fix: support @typescript-eslint/eslint-plugin v6
1 parent 463418f commit d446493

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/nodejs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,18 @@ jobs:
6666
test-node:
6767
name:
6868
# prettier-ignore
69-
Test on Node.js v${{ matrix.node-version }}, eslint v${{ matrix.eslint-version }}
69+
Test on Node.js v${{ matrix.node-version }}, eslint v${{ matrix.eslint-version }} and ts-eslint/plugin v${{ matrix.ts-eslint-plugin-version }}
7070
needs: prepare-yarn-cache-ubuntu
7171
strategy:
7272
fail-fast: false
7373
matrix:
7474
node-version: [14.x, 16.x, 18.x, 19.x, 20.x]
7575
eslint-version: [7, 8]
76+
ts-eslint-plugin-version: [5, 6]
77+
exclude:
78+
# ts-eslint/plugin@6 doesn't support node@14
79+
- node-version: 14.x
80+
ts-eslint-plugin-version: 6
7681
runs-on: ubuntu-latest
7782

7883
steps:
@@ -86,10 +91,10 @@ jobs:
8691
cache: yarn
8792
- name:
8893
# prettier-ignore
89-
install with eslint v${{ matrix.eslint-version }}
94+
install with eslint v${{ matrix.eslint-version }} and ts-eslint/plugin v${{ matrix.ts-eslint-plugin-version }}
9095
run: |
9196
yarn
92-
yarn add --dev eslint@${{ matrix.eslint-version }}
97+
yarn add --dev eslint@${{ matrix.eslint-version }} @typescript-eslint/eslint-plugin@${{ matrix.ts-eslint-plugin-version }} @typescript-eslint/parser@${{ matrix.ts-eslint-plugin-version }}
9398
- name: run tests
9499
# only collect coverage on eslint versions that support dynamic import
95100
run: yarn test --coverage ${{ matrix.eslint-version >= 8 }}

0 commit comments

Comments
 (0)