chore: set up tslint

This commit is contained in:
Jean-Philippe Sirois
2019-08-18 23:57:17 -04:00
parent 8f740b8dc2
commit 4e43178448
3 changed files with 154 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
{
"defaultSeverity": "error",
"extends": [
"tslint:latest",
"tslint-config-prettier",
"tslint-eslint-rules",
"tslint-react-hooks"
],
"linterOptions": {
"exclude": ["node_modules"]
},
"rules": {
"no-constant-condition": true,
"no-console": false,
"interface-name": [true, "always-prefix"],
"object-curly-spacing": true,
"object-literal-sort-keys": false,
"member-access": [true, "no-public"],
"no-var-keyword": true,
"typedef": [
true,
"parameter",
"property-declaration",
"member-variable-declaration"
],
"no-eval": true,
"no-parameter-reassignment": true,
"no-submodule-imports": false,
"react-hooks-nesting": "error"
},
"rulesDirectory": ["node_modules/tslint-eslint-rules/dist/rules"]
}