Created
April 12, 2019 09:47
-
-
Save tomoat/4bd0b50f4084099b7ce1a8768387a0f2 to your computer and use it in GitHub Desktop.
TsLint 规则
This file contains 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
{ | |
"defaultSeverity": "error", | |
"extends": ["tslint:recommended"], | |
"jsRules": { | |
"no-unused-expression": true | |
}, | |
"rules": { | |
"eofline": true, | |
"semicolon": [true, "never"], | |
"trailing-comma": false, | |
"indent": false, | |
"curly": false, | |
"array-type": false, | |
"import-spacing": true, | |
// "object-curly-spacing": [true, "trailing-comma"], | |
"ban-types":false, | |
"whitespace": [ | |
true, | |
"check-branch", | |
"check-decl", | |
"check-operator", | |
"check-module", | |
"check-separator", | |
"check-typecast", | |
"check-type" | |
], | |
"prefer-object-spread": true, | |
"no-empty-interface": false, | |
"no-empty": false, | |
"max-classes-per-file": false, | |
"variable-name": false, | |
"one-line": false, | |
"one-variable-per-declaration": false, | |
"quotemark": [true, "single"], | |
"member-access": [false], | |
"ordered-imports": [false], | |
"max-line-length": [true, 150], | |
"member-ordering": [false], | |
"interface-name": [false], | |
"arrow-parens": false, | |
"object-literal-sort-keys": false | |
}, | |
"rulesDirectory": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment