Added my choice of linting rules

This commit is contained in:
Noah Santschi-Cooney 2018-05-17 00:07:58 +01:00
parent a341d66dda
commit d650bae346
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
2 changed files with 32 additions and 17 deletions

View file

@ -13,8 +13,6 @@
/* Additional Checks */
"noUnusedLocals": true, /* Report errors on unused locals. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
},
"exclude": [
"node_modules",

View file

@ -1,17 +1,34 @@
{
"rules": {
"no-string-throw": true,
"no-unused-expression": true,
"no-duplicate-variable": true,
"curly": true,
"prefer-for-of": true,
"no-duplicate-switch-case": true,
"no-shadowed-variable": true,
"no-use-before-declare": true,
"class-name": true,
"semicolon": [
false
],
},
"defaultSeverity": "warning"
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"quotemark": [true, "single"],
"semicolon": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"interface-name": false,
"indent": [true, "spaces", 2],
"max-classes-per-file": false,
"no-console": false,
"eofline": false,
"member-ordering": false,
"trailing-comma": false,
"max-line-length": [true, 170],
"radix": false,
"whitespace": [
true,
"check-decl",
"check-operator",
"check-module",
"check-rest-spread",
"check-type",
"check-typecast",
"check-type-operator",
"check-preblock"
]
},
"rulesDirectory": []
}