Skip to content

Commit 5a9e45f

Browse files
SimenBG-RathMichaelDeBoey
authoredOct 14, 2021
feat: support eslint@8 (#940)
Co-authored-by: Gareth Jones <jones258@gmail.com> Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
1 parent 17cb163 commit 5a9e45f

File tree

3 files changed

+89
-168
lines changed

3 files changed

+89
-168
lines changed
 

‎.github/workflows/nodejs.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ jobs:
6868
fail-fast: false
6969
matrix:
7070
node-version: [12.x, 14.x, 16.x]
71-
eslint-version: [6, 7]
71+
eslint-version: [6, 7, 8]
7272
ts-eslint-plugin-version: [4, 5]
73+
exclude:
74+
# ts-eslint/plugin@4 doesn't support eslint@8
75+
- eslint-version: 8
76+
ts-eslint-plugin-version: 4
7377
runs-on: ubuntu-latest
7478

7579
steps:

‎package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
"projects": [
6161
{
6262
"displayName": "test",
63+
"moduleNameMapper": {
64+
"eslint/use-at-your-own-risk": "eslint/lib/unsupported-api.js"
65+
},
6366
"testPathIgnorePatterns": [
6467
"<rootDir>/lib/.*",
6568
"<rootDir>/src/rules/__tests__/fixtures/*",
@@ -100,7 +103,7 @@
100103
"babel-jest": "^27.0.0",
101104
"babel-plugin-replace-ts-export-assignment": "^0.0.2",
102105
"dedent": "^0.7.0",
103-
"eslint": "^6.0.0 || ^7.0.0",
106+
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0",
104107
"eslint-config-prettier": "^8.3.0",
105108
"eslint-plugin-eslint-comments": "^3.1.2",
106109
"eslint-plugin-eslint-config": "^2.0.0",
@@ -123,7 +126,7 @@
123126
},
124127
"peerDependencies": {
125128
"@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0",
126-
"eslint": "^6.0.0 || ^7.0.0"
129+
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
127130
},
128131
"peerDependenciesMeta": {
129132
"@typescript-eslint/eslint-plugin": {
@@ -149,5 +152,8 @@
149152
"@semantic-release/git",
150153
"@semantic-release/github"
151154
]
155+
},
156+
"resolutions": {
157+
"@typescript-eslint/experimental-utils": "^5.0.0"
152158
}
153159
}

0 commit comments

Comments
 (0)
Please sign in to comment.