TypeScript/tslint.json
2017-04-18 09:48:21 -07:00

68 lines
2 KiB
JSON

{
"rulesDirectory": "built/local/tslint",
"rules": {
"no-bom": true,
"class-name": true,
"comment-format": [true,
"check-space"
],
"indent": [true,
"spaces"
],
"linebreak-style": [true, "CRLF"],
"one-line": [true,
"check-open-brace",
"check-whitespace"
],
"no-var-keyword": true,
"quotemark": [true,
"double",
"avoid-escape"
],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"next-line": [true,
"check-catch",
"check-else"
],
"no-internal-module": true,
"no-trailing-whitespace": [true, "ignore-template-strings"],
"no-inferrable-types": true,
"no-null-keyword": true,
"boolean-trivia": true,
"type-operator-spacing": true,
"prefer-const": true,
"no-increment-decrement": true,
"object-literal-surrounding-space": true,
"no-type-assertion-whitespace": true,
"no-in-operator": true,
"no-switch-case-fall-through": true,
"triple-equals": true,
"jsdoc-format": true
}
}