92 строки
2.3 KiB
JSON
92 строки
2.3 KiB
JSON
{
|
|
"extends": "tslint-microsoft-contrib",
|
|
"rules": {
|
|
"await-promise": [
|
|
true,
|
|
"Thenable"
|
|
],
|
|
"no-backbone-get-set-outside-model": false,
|
|
"radix": false,
|
|
"strict-boolean-expressions": [
|
|
true,
|
|
"allow-string",
|
|
"allow-undefined-union",
|
|
"allow-mix",
|
|
"allow-null-union"
|
|
],
|
|
"completed-docs": [
|
|
false,
|
|
"classes"
|
|
],
|
|
"import-name": false,
|
|
"max-line-length": [
|
|
false,
|
|
140
|
|
],
|
|
"missing-jsdoc": false,
|
|
"no-relative-imports": false,
|
|
"no-void-expression": [
|
|
true,
|
|
"ignore-arrow-function-shorthand"
|
|
],
|
|
"variable-name": [
|
|
true,
|
|
"ban-keywords",
|
|
"check-format",
|
|
"allow-leading-underscore"
|
|
],
|
|
"linebreak-style": false,
|
|
"newline-before-return": false,
|
|
"no-single-line-block-comment": false,
|
|
"quotemark": [
|
|
false,
|
|
"single"
|
|
],
|
|
"no-unexternalized-strings": [
|
|
true,
|
|
{
|
|
"signatures": [
|
|
"localize",
|
|
"nls.localize"
|
|
],
|
|
"keyIndex": 0,
|
|
"messageIndex": 1
|
|
}
|
|
],
|
|
"no-implicit-dependencies": [
|
|
true,
|
|
[
|
|
"vscode"
|
|
]
|
|
],
|
|
"switch-final-break": false,
|
|
"prefer-object-spread": false,
|
|
"no-return-await": false,
|
|
"no-parameter-reassignment": false,
|
|
"no-object-literal-type-assertion": false,
|
|
"function-name": [
|
|
true,
|
|
{
|
|
"static-method-regex": "^[a-z][\\w_]+$"
|
|
}
|
|
],
|
|
"typedef": [
|
|
true,
|
|
"call-signature",
|
|
"arrow-call-signature",
|
|
"parameter",
|
|
// "arrow-parameter",
|
|
"property-declaration",
|
|
"variable-declaration",
|
|
"member-variable-declaration"
|
|
],
|
|
"prefer-template": [
|
|
true,
|
|
"allow-single-concat"
|
|
],
|
|
"no-use-before-declare": false,
|
|
"newline-per-chained-call": false,
|
|
"no-dynamic-delete": false
|
|
}
|
|
}
|