The react-script
uses typescript-eslint
internally which trows warnings/error and you see it in the terminal where the app is running.
I did create react app with create-react-app --typescript
and did set up a tslint.json
as follow:
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-react",
"tslint-eslint-rules",
"tslint-plugin-prettier",
"tslint-config-prettier"
],
"jsRules": {},
"linterOptions": {
"exclude": ["node_modules", "dist", "build", "src/serviceWorker.ts"]
},
"rules": {
"prettier": [true, "./.prettierrc"]
},
"rulesDirectory": []
}
and a lint check script like "lint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.{ts,tsx}'"
in package.json
.
But not all typescript-eslint
from react-script
is covered by tslint
and the lint script passes while there exists some warning.
Should I completely dump the usage of tslint
and go for eslint
? If so can someone provide a snippet for the settings?
Or if Tslint has any plan to be update and cover all those warnings from typescript-eslint