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

Commit 8ef77c9

Browse files
authoredJul 13, 2023
feat: support @typescript-eslint to v6 (#325)
1 parent 91fd090 commit 8ef77c9

File tree

4 files changed

+2293
-1265
lines changed

4 files changed

+2293
-1265
lines changed
 

‎DEVELOPING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
### How do I setup the the project?
5+
### How do I setup the project?
66

77
1. Fork the repo
88
1. Install dependencies: `npm install`

‎README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ Make sure you have the regular Airbnb config setup. If you are using React, use
1212

1313
### 2) Install dependencies (and peer dependencies)
1414

15+
```bash
16+
npm install eslint-config-airbnb-typescript \
17+
@typescript-eslint/eslint-plugin@^6.0.0 \
18+
@typescript-eslint/parser@^6.0.0 \
19+
--save-dev
20+
```
21+
22+
or
23+
1524
```bash
1625
npm install eslint-config-airbnb-typescript \
1726
@typescript-eslint/eslint-plugin@^5.13.0 \
@@ -108,8 +117,10 @@ module.exports = {
108117
'airbnb',
109118
'airbnb-typescript',
110119
'airbnb/hooks',
111-
'plugin:@typescript-eslint/recommended',
112-
'plugin:@typescript-eslint/recommended-requiring-type-checking',
120+
'plugin:@typescript-eslint/recommended-type-checked', // @typescript-eslint @v6
121+
'plugin:@typescript-eslint/stylistic-type-checked', // @typescript-eslint @v6
122+
// 'plugin:@typescript-eslint/recommended', // @typescript-eslint @v5
123+
// 'plugin:@typescript-eslint/recommended-requiring-type-checking', // @typescript-eslint @v5
113124
],
114125
};
115126
```

‎package-lock.json

+2,275-1,258
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
"eslint-config-airbnb-base": "^15.0.0"
2727
},
2828
"peerDependencies": {
29-
"@typescript-eslint/eslint-plugin": "^5.13.0",
30-
"@typescript-eslint/parser": "^5.0.0",
29+
"@typescript-eslint/eslint-plugin": "^5.13.0 || ^6.0.0",
30+
"@typescript-eslint/parser": "^5.0.0 || ^6.0.0",
3131
"eslint": "^7.32.0 || ^8.2.0",
3232
"eslint-plugin-import": "^2.25.3"
3333
},
3434
"devDependencies": {
35-
"@typescript-eslint/eslint-plugin": "5.15.0",
36-
"@typescript-eslint/parser": "5.15.0",
35+
"@typescript-eslint/eslint-plugin": "^5.13.0 || ^6.0.0",
36+
"@typescript-eslint/parser": "^5.0.0 || ^6.0.0",
3737
"doctoc": "2.1.0",
3838
"eslint": "8.11.0",
3939
"eslint-config-prettier": "8.5.0",

0 commit comments

Comments
 (0)
This repository has been archived.