Created
November 15, 2018 08:26
-
-
Save zbarbuto/e3e2d052fe6193b9c8175627b9d4d378 to your computer and use it in GitHub Desktop.
Some TSLint rules that I like
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"rulesDirectory": [ | |
"tslint-no-focused-test" | |
], | |
"rules": { | |
"array-type": [true, "array"], | |
"arrow-return-shorthand": [true, "multiline"], | |
"class-name": true, | |
"comment-format": [true, "check-space"], | |
"indent": [true, "spaces"], | |
"no-consecutive-blank-lines": true, | |
"no-debugger": true, | |
"no-duplicate-variable": true, | |
"no-eval": true, | |
"no-focused-test": true, | |
"no-internal-module": true, | |
"no-return-await": true, | |
"no-string-throw": true, | |
"no-switch-case-fall-through": true, | |
"no-trailing-whitespace": true, | |
"no-var-keyword": true, | |
"object-literal-key-quotes": [true, "as-needed"], | |
"one-line": [true, "check-open-brace", "check-whitespace"], | |
"quotemark": [true, "single"], | |
"semicolon": [true, "always"], | |
"space-before-function-paren": false, | |
"ordered-imports": true, | |
"triple-equals": [true, "allow-null-check"], | |
"typedef-whitespace": [ | |
true, | |
{ | |
"call-signature": "nospace", | |
"index-signature": "nospace", | |
"parameter": "nospace", | |
"property-declaration": "nospace", | |
"variable-declaration": "nospace" | |
} | |
], | |
"variable-name": [true, "ban-keywords"], | |
"whitespace": [ | |
true, | |
"check-branch", | |
"check-decl", | |
"check-operator", | |
"check-separator", | |
"check-type" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment