Skip to content

Instantly share code, notes, and snippets.

@tomoat
Created April 12, 2019 09:47
Show Gist options
  • Save tomoat/4bd0b50f4084099b7ce1a8768387a0f2 to your computer and use it in GitHub Desktop.
Save tomoat/4bd0b50f4084099b7ce1a8768387a0f2 to your computer and use it in GitHub Desktop.
TsLint 规则
{
"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