Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 5a32ce0

Browse files
stianjensengund
authored andcommitted
feat: migrate to typescript-eslint/utils 6.x (#71)
BREAKING CHANGE: Dropped support for ESLint v6 and Typescript v3.7.5, please make sure to use at least ESLint v7 with Typescript v4.2 or downgrade to a previous major version.
1 parent df4dc23 commit 5a32ce0

File tree

8 files changed

+465
-345
lines changed

8 files changed

+465
-345
lines changed

.github/workflows/test.yml

+3-33
Original file line numberDiff line numberDiff line change
@@ -47,49 +47,19 @@ jobs:
4747
- name: 'Test with Eslint v7'
4848
cmd: |
4949
npm i eslint@^7 \
50-
@typescript-eslint/parser@^4 \
51-
@typescript-eslint/eslint-plugin@^4
50+
typescript-eslint-utils-5@npm:@typescript-eslint/utils@^5.57.0
5251
cat package-lock.json | grep -A 1 \
5352
-e "\"node_modules/eslint\": {" \
54-
-e "\"node_modules/@typescript-eslint/parser\": {" \
55-
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {"
56-
test: npm run test
57-
build: npm run build
58-
- name: 'Test with Eslint v6'
59-
cmd: |
60-
npm i eslint@^6 \
61-
@typescript-eslint/parser@^3 \
62-
@typescript-eslint/eslint-plugin@^3
63-
cat package-lock.json | grep -A 1 \
64-
-e "\"node_modules/eslint\": {" \
65-
-e "\"node_modules/@typescript-eslint/parser\": {" \
66-
-e "\"node_modules/@typescript-eslint/eslint-plugin\": {"
53+
-e "\"node_modules/typescript-eslint-utils-5\": {" \
6754
test: npm run test
6855
build: npm run build
6956
- name: 'Test with Typescript v4'
7057
cmd: |
71-
npm i typescript@^4
58+
npm i typescript@^4.2
7259
cat package-lock.json | grep -A 1 \
7360
-e "\"node_modules/typescript\": {"
7461
test: npm run test
7562
build: npm run build
76-
- name: 'Test with Typescript v3.7.5'
77-
cmd: |
78-
npm i -D jest@~27.0.0 \
79-
ts-jest@~27.0.0 \
80-
@types/jest@~27.0.0 \
81-
@types/node@^16.0.0 \
82-
@typescript-eslint/eslint-plugin@5.0.0 \
83-
@typescript-eslint/parser@5.0.0 \
84-
eslint@~8.0.0 \
85-
--force
86-
npm i typescript@3.7.5 --force
87-
cat package-lock.json | grep -A 1 \
88-
-e "\"node_modules/typescript\": {" \
89-
-e "\"node_modules/jest\": {" \
90-
-e "\"node_modules/ts-jest\": {"
91-
test: BC_MODE=1 npm run test
92-
build: false
9363
name: '[BC] ${{ matrix.name }}'
9464
steps:
9565
- uses: actions/setup-node@v3

0 commit comments

Comments
 (0)