40 строки
1.3 KiB
JSON
40 строки
1.3 KiB
JSON
{
|
|
"rules": {
|
|
"no-unused-expression": true,
|
|
"no-duplicate-variable": true,
|
|
"no-unused-variable": true,
|
|
"curly": false,
|
|
"class-name": true,
|
|
"semicolon": [true, "always"],
|
|
"prefer-for-of": true,
|
|
"only-arrow-functions": [true, "allow-declarations"],
|
|
"await-promise": [true, "Thenable", "PromisedAssertion"],
|
|
"ban-comma-operator": true,
|
|
"no-console": [true, "info", "error", "warn"],
|
|
"no-floating-promises": [true, "PromisedAssertion"],
|
|
/// Errors when we use `tsconfig` "paths" option. Check for a fix in newer TSLint:
|
|
// "no-implicit-dependencies": [true, "dev"],
|
|
"no-shadowed-variable": true,
|
|
"no-return-await": true,
|
|
"no-string-throw": true,
|
|
"no-switch-case-fall-through": true,
|
|
"no-unbound-method": true,
|
|
"no-this-assignment": true,
|
|
"no-unnecessary-class": true,
|
|
"no-unsafe-finally": true,
|
|
"no-var-keyword": true,
|
|
"prefer-object-spread": true,
|
|
"restrict-plus-operands": true,
|
|
"strict-type-predicates": true,
|
|
"prefer-const": true,
|
|
"prefer-readonly": true,
|
|
"arrow-parens": [true, "ban-single-arg-parens"],
|
|
"arrow-return-shorthand": true,
|
|
"no-boolean-literal-compare": true,
|
|
"no-angle-bracket-type-assertion": true,
|
|
"no-trailing-whitespace": true,
|
|
"object-literal-shorthand": true,
|
|
"object-literal-key-quotes": [true, "as-needed"],
|
|
"prefer-template": [true, "allow-single-concat"]
|
|
}
|
|
} |