Skip to content

Commit 947d2fd

Browse files
committed
cleanup eslint config for web-app
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent 8305aa5 commit 947d2fd

File tree

5 files changed

+24
-244
lines changed

5 files changed

+24
-244
lines changed

Diff for: .eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
33
plugins: ['prettier'],
44
extends: [
5+
'react-app',
56
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
67
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
78
'plugin:prettier/recommended',

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
},
5757
"devDependencies": {
5858
"eslint-config-prettier": "^6.11.0",
59+
"eslint-config-react-app": "^5.2.1",
5960
"eslint-plugin-prettier": "^3.1.4",
6061
"prettier": "2.0.5",
6162
"vscode": "^1.1.37",

Diff for: web-app/package.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,15 @@
5959
"@types/react": "^16.9.41",
6060
"@types/react-addons-css-transition-group": "^15.0.5",
6161
"@types/react-dom": "^16.9.8",
62-
"@typescript-eslint/eslint-plugin": "^3.4.0",
63-
"@typescript-eslint/parser": "^3.4.0",
6462
"babel-loader": "8.1.0",
6563
"babel-plugin-import": "^1.13.0",
6664
"customize-cra": "^1.0.0",
67-
"eslint": "^7.3.1",
68-
"eslint-config-prettier": "^6.11.0",
69-
"eslint-plugin-prettier": "^3.1.4",
7065
"mini-css-extract-plugin": "^0.9.0",
7166
"node-sass": "^4.14.1",
7267
"prettier": "2.0.5",
7368
"react-app-rewired": "^2.1.6",
7469
"react-scripts": "^3.4.1",
7570
"sass-loader": "^8.0.2",
76-
"typescript": "^3.9.5",
77-
"typescript-eslint-parser": "^22.0.0"
71+
"typescript": "^3.9.5"
7872
}
7973
}

0 commit comments

Comments
 (0)