Skip to content

Commit b3f8ef2

Browse files
pierreneterianschmitz
authored andcommitted
Bump version of @typescript-eslint/* (#7540)
1 parent 0f9e350 commit b3f8ef2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/eslint-config-react-app/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you want to use this ESLint configuration in a project not built with Create
1919
First, install this package, ESLint and the necessary plugins.
2020

2121
```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
2323
```
2424

2525
Then create a file named `.eslintrc.json` with following contents in the root folder of your project:

packages/eslint-config-react-app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = {
7878
'no-undef': 'off',
7979

8080
// 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',
8282
'no-array-constructor': 'off',
8383
'@typescript-eslint/no-array-constructor': 'warn',
8484
'@typescript-eslint/no-namespace': 'error',

packages/eslint-config-react-app/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"index.js"
1616
],
1717
"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",
2020
"babel-eslint": "10.x",
2121
"eslint": "6.x",
2222
"eslint-plugin-flowtype": "3.x",

packages/react-scripts/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"dependencies": {
3131
"@babel/core": "7.6.0",
3232
"@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",
3535
"babel-eslint": "10.0.3",
3636
"babel-jest": "^24.8.0",
3737
"babel-loader": "8.0.6",

0 commit comments

Comments
 (0)