123 строки
2.5 KiB
JSON
123 строки
2.5 KiB
JSON
{
|
|
"extends": "./tslint.mssdl.required.json",
|
|
"rules": {
|
|
"align": [
|
|
true,
|
|
"parameters",
|
|
"statements"
|
|
],
|
|
"ban": false,
|
|
"class-name": true,
|
|
"comment-format": [
|
|
true,
|
|
"check-space"
|
|
],
|
|
"curly": true,
|
|
"eofline": true,
|
|
"forin": true,
|
|
"function-name": [
|
|
true, {
|
|
"static-method-regex": "^[a-z][\\w\\d]+$"
|
|
}
|
|
],
|
|
"indent": [
|
|
true,
|
|
"spaces"
|
|
],
|
|
"interface-name": true,
|
|
"jsdoc-format": true,
|
|
"label-position": true,
|
|
"max-line-length": [
|
|
true,
|
|
160
|
|
],
|
|
"member-access": false,
|
|
"member-ordering": false,
|
|
"no-any": false,
|
|
"no-arg": true,
|
|
"no-bitwise": true,
|
|
"no-conditional-assignment": true,
|
|
"no-consecutive-blank-lines": false,
|
|
"no-console": [
|
|
true,
|
|
"debug",
|
|
"info",
|
|
"time",
|
|
"timeEnd",
|
|
"trace"
|
|
],
|
|
"no-construct": true,
|
|
"no-constructor-vars": false,
|
|
"no-debugger": true,
|
|
"no-duplicate-variable": true,
|
|
"no-empty": true,
|
|
"no-inferrable-types": false,
|
|
"no-internal-module": true,
|
|
"no-null-keyword": true,
|
|
"no-require-imports": true,
|
|
"no-shadowed-variable": true,
|
|
"no-string-literal": false,
|
|
"no-switch-case-fall-through": false,
|
|
"no-trailing-whitespace": true,
|
|
"no-unused-expression": false,
|
|
"no-var-keyword": true,
|
|
"no-var-requires": false,
|
|
"object-literal-sort-keys": false,
|
|
"one-line": [
|
|
true,
|
|
"check-open-brace",
|
|
"check-catch",
|
|
"check-else",
|
|
"check-finally",
|
|
"check-whitespace"
|
|
],
|
|
"quotemark": [
|
|
true,
|
|
"single",
|
|
"avoid-escape"
|
|
],
|
|
"radix": true,
|
|
"semicolon": true,
|
|
"switch-default": true,
|
|
"trailing-comma": [
|
|
true,
|
|
{
|
|
"multiline": "never",
|
|
"singleline": "never"
|
|
}
|
|
],
|
|
"triple-equals": [
|
|
true,
|
|
"allow-null-check"
|
|
],
|
|
"typedef": [
|
|
true,
|
|
"call-signature",
|
|
"property-declaration"
|
|
],
|
|
"typedef-whitespace": [
|
|
true,
|
|
{
|
|
"call-signature": "nospace",
|
|
"index-signature": "nospace",
|
|
"parameter": "nospace",
|
|
"property-declaration": "nospace",
|
|
"variable-declaration": "nospace"
|
|
}
|
|
],
|
|
"variable-name": [
|
|
true,
|
|
"allow-leading-underscore",
|
|
"ban-keywords",
|
|
"check-format"
|
|
],
|
|
"whitespace": [
|
|
true,
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-separator",
|
|
"check-type"
|
|
]
|
|
}
|
|
} |