File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ If you want to use this ESLint configuration in a project not built with Create
19
19
First, install this package, ESLint and the necessary plugins.
20
20
21
21
``` sh
22
- npm install --save-dev eslint-config-react-app @typescript-eslint/eslint-plugin@1 .x @typescript-eslint/parser@1 .x babel-eslint@10.x eslint@6.x eslint-plugin-flowtype@3.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@1.x
22
+ npm install --save-dev eslint-config-react-app @typescript-eslint/eslint-plugin@2 .x @typescript-eslint/parser@2 .x babel-eslint@10.x eslint@6.x eslint-plugin-flowtype@3.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@1.x
23
23
```
24
24
25
25
Then create a file named ` .eslintrc.json ` with following contents in the root folder of your project:
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ module.exports = {
78
78
'no-undef' : 'off' ,
79
79
80
80
// Add TypeScript specific rules (and turn off ESLint equivalents)
81
- '@typescript-eslint/no-angle-bracket- type-assertion ' : 'warn' ,
81
+ '@typescript-eslint/consistent- type-assertions ' : 'warn' ,
82
82
'no-array-constructor' : 'off' ,
83
83
'@typescript-eslint/no-array-constructor' : 'warn' ,
84
84
'@typescript-eslint/no-namespace' : 'error' ,
Original file line number Diff line number Diff line change 15
15
" index.js"
16
16
],
17
17
"peerDependencies" : {
18
- "@typescript-eslint/eslint-plugin" : " 1 .x" ,
19
- "@typescript-eslint/parser" : " 1 .x" ,
18
+ "@typescript-eslint/eslint-plugin" : " 2 .x" ,
19
+ "@typescript-eslint/parser" : " 2 .x" ,
20
20
"babel-eslint" : " 10.x" ,
21
21
"eslint" : " 6.x" ,
22
22
"eslint-plugin-flowtype" : " 3.x" ,
Original file line number Diff line number Diff line change 30
30
"dependencies" : {
31
31
"@babel/core" : " 7.6.0" ,
32
32
"@svgr/webpack" : " 4.3.2" ,
33
- "@typescript-eslint/eslint-plugin" : " 1.13 .0" ,
34
- "@typescript-eslint/parser" : " 1.13 .0" ,
33
+ "@typescript-eslint/eslint-plugin" : " ^2.2 .0" ,
34
+ "@typescript-eslint/parser" : " ^2.2 .0" ,
35
35
"babel-eslint" : " 10.0.3" ,
36
36
"babel-jest" : " ^24.8.0" ,
37
37
"babel-loader" : " 8.0.6" ,
You can’t perform that action at this time.
0 commit comments