more linting

applying some recomendations from https://www.robertcooper.me/using-eslint-and-prettier-in-a-typescript-project
This commit is contained in:
David Lechner
2020-04-08 19:23:19 -05:00
parent dc50b5787f
commit 79df44c22a
10 changed files with 169 additions and 65 deletions
+8 -1
View File
@@ -21,7 +21,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"lint": "tsc --noEmit && eslint '*/**/*.{js,ts,tsx}' --quiet --fix"
},
"eslintConfig": {
"extends": "react-app"
@@ -39,6 +40,12 @@
]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"prettier": "^2.0.4"
}
}