Skip to content

Commit 1476f10

Browse files
feat: allow @typescript-eslint/utils v7 as a direct dependency (#1567)
* feat: allow @typescript-eslint/utils@7 * fix: typecheck and drop dependencies down * chore: drop back down to one type argument * chore: add utils to matrix * ci: properly install different versions of utils package --------- Co-authored-by: Gareth Jones <[email protected]>
1 parent 27f7e74 commit 1476f10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/nodejs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
test-node:
6767
name:
6868
# prettier-ignore
69-
Test on Node.js v${{ matrix.node-version }}, eslint v${{ matrix.eslint-version }}, and ts-eslint/plugin v${{ matrix.ts-eslint-plugin-version }}
69+
Test on Node.js v${{ matrix.node-version }}, eslint v${{ matrix.eslint-version }}, and ts-eslint v${{ matrix.ts-eslint-plugin-version }}
7070
needs: prepare-yarn-cache-ubuntu
7171
strategy:
7272
fail-fast: false
@@ -100,6 +100,7 @@ jobs:
100100
install with eslint v${{ matrix.eslint-version }} and ts-eslint/plugin v${{ matrix.ts-eslint-plugin-version }}
101101
run: |
102102
yarn
103+
yarn add @typescript-eslint/utils@${{ matrix.ts-eslint-plugin-version }}
103104
yarn add --dev eslint@${{ matrix.eslint-version }} @typescript-eslint/eslint-plugin@${{ matrix.ts-eslint-plugin-version }} @typescript-eslint/parser@${{ matrix.ts-eslint-plugin-version }}
104105
- name: run tests
105106
# only collect coverage on eslint versions that support dynamic import

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
]
6666
},
6767
"dependencies": {
68-
"@typescript-eslint/utils": "^6.0.0"
68+
"@typescript-eslint/utils": "^6.0.0 || ^7.0.0"
6969
},
7070
"devDependencies": {
7171
"@babel/cli": "^7.4.4",
@@ -83,6 +83,7 @@
8383
"@types/node": "^14.18.26",
8484
"@typescript-eslint/eslint-plugin": "^6.0.0",
8585
"@typescript-eslint/parser": "^6.0.0",
86+
"@typescript-eslint/utils": "^6.0.0",
8687
"babel-jest": "^29.0.0",
8788
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
8889
"dedent": "^1.5.0",

0 commit comments

Comments
 (0)