265 lines
5.5 KiB
JSON
265 lines
5.5 KiB
JSON
{
|
|
"rules": {
|
|
"no-unnecessary-class": [
|
|
true,
|
|
"allow-constructor-only",
|
|
"allow-static-only",
|
|
"allow-empty-class"
|
|
],
|
|
"member-access": [
|
|
true,
|
|
"no-public"
|
|
],
|
|
"member-ordering": [
|
|
true,
|
|
"public-before-private",
|
|
"static-before-instance",
|
|
"variables-before-functions"
|
|
],
|
|
"adjacent-overload-signatures": true,
|
|
"unified-signatures": true,
|
|
"prefer-function-over-method": [
|
|
true,
|
|
"allow-public",
|
|
"allow-protected"
|
|
],
|
|
"no-invalid-this": [
|
|
true,
|
|
"check-function-in-method"
|
|
],
|
|
"no-duplicate-super": true,
|
|
"new-parens": true,
|
|
"no-misused-new": true,
|
|
"no-construct": true,
|
|
"no-empty-interface": true,
|
|
"prefer-method-signature": true,
|
|
"interface-over-type-literal": true,
|
|
"no-arg": true,
|
|
"only-arrow-functions": [
|
|
true,
|
|
"allow-declarations",
|
|
"allow-named-functions"
|
|
],
|
|
"arrow-parens": [
|
|
true,
|
|
"ban-single-arg-parens"
|
|
],
|
|
"arrow-return-shorthand": true,
|
|
"no-return-await": true,
|
|
"prefer-const": true,
|
|
"no-shadowed-variable": [
|
|
true,
|
|
{
|
|
"temporalDeadZone": false
|
|
}
|
|
],
|
|
"one-variable-per-declaration": [
|
|
true,
|
|
"ignore-for-loop"
|
|
],
|
|
"no-duplicate-variable": [
|
|
true,
|
|
"check-parameters"
|
|
],
|
|
"no-unnecessary-initializer": true,
|
|
"no-implicit-dependencies": true,
|
|
"ordered-imports": [
|
|
true,
|
|
{
|
|
"import-sources-order": "any",
|
|
"named-imports-order": "case-insensitive",
|
|
"grouped-imports": true
|
|
}
|
|
],
|
|
"no-duplicate-imports": true,
|
|
"import-blacklist": [
|
|
true,
|
|
"rxjs"
|
|
],
|
|
"no-require-imports": true,
|
|
"no-default-export": true,
|
|
"no-reference": true,
|
|
"typedef": [
|
|
true,
|
|
"call-signature",
|
|
"property-declaration"
|
|
],
|
|
"no-inferrable-types": true,
|
|
"no-angle-bracket-type-assertion": true,
|
|
"callable-types": true,
|
|
"no-null-keyword": true,
|
|
"no-non-null-assertion": true,
|
|
"array-type": [
|
|
true,
|
|
"generic"
|
|
],
|
|
"prefer-object-spread": true,
|
|
"object-literal-shorthand": true,
|
|
"object-literal-key-quotes": [
|
|
true,
|
|
"as-needed"
|
|
],
|
|
"quotemark": [
|
|
true,
|
|
"single",
|
|
"avoid-template",
|
|
"avoid-escape"
|
|
],
|
|
"prefer-template": true,
|
|
"no-invalid-template-strings": true,
|
|
"triple-equals": [
|
|
true,
|
|
"allow-null-check"
|
|
],
|
|
"binary-expression-operand-order": true,
|
|
"no-dynamic-delete": true,
|
|
"no-bitwise": true,
|
|
"use-isnan": true,
|
|
"no-conditional-assignment": true,
|
|
"prefer-conditional-expression": [
|
|
true,
|
|
"check-else-if"
|
|
],
|
|
"prefer-for-of": true,
|
|
"forin": true,
|
|
"switch-default": true,
|
|
"no-switch-case-fall-through": true,
|
|
"no-unsafe-finally": true,
|
|
"no-duplicate-switch-case": true,
|
|
"encoding": true,
|
|
"cyclomatic-complexity": [
|
|
true,
|
|
20
|
|
],
|
|
"max-file-line-count": [
|
|
true,
|
|
1000
|
|
],
|
|
"max-line-length": [
|
|
true,
|
|
300
|
|
],
|
|
"indent": [
|
|
true,
|
|
"spaces",
|
|
2
|
|
],
|
|
"eofline": true,
|
|
"curly": [
|
|
true,
|
|
],
|
|
"whitespace": [
|
|
true,
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-module",
|
|
"check-separator",
|
|
"check-rest-spread",
|
|
"check-type",
|
|
"check-typecast",
|
|
"check-type-operator",
|
|
"check-preblock"
|
|
],
|
|
"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"
|
|
}
|
|
],
|
|
"space-before-function-paren": [
|
|
true,
|
|
{
|
|
"anonymous": "never",
|
|
"named": "never",
|
|
"asyncArrow": "always",
|
|
"method": "never",
|
|
"constructor": "never"
|
|
}
|
|
],
|
|
"space-within-parens": 0,
|
|
"import-spacing": true,
|
|
"no-trailing-whitespace": true,
|
|
"newline-before-return": true,
|
|
"newline-per-chained-call": true,
|
|
"one-line": [
|
|
true,
|
|
"check-open-brace",
|
|
"check-whitespace",
|
|
"check-else",
|
|
"check-catch",
|
|
"check-finally"
|
|
],
|
|
"no-consecutive-blank-lines": [
|
|
true,
|
|
1
|
|
],
|
|
"semicolon": [
|
|
true,
|
|
"always",
|
|
"strict-bound-class-methods"
|
|
],
|
|
"align": [
|
|
true,
|
|
"parameters",
|
|
"statements"
|
|
],
|
|
"trailing-comma": [
|
|
true,
|
|
{
|
|
"multiline": "never",
|
|
"singleline": "never",
|
|
"esSpecCompliant": true
|
|
}
|
|
],
|
|
"class-name": true,
|
|
"variable-name": [
|
|
true,
|
|
"check-format",
|
|
"allow-leading-underscore",
|
|
"ban-keywords"
|
|
],
|
|
"comment-format": [
|
|
true,
|
|
"check-space"
|
|
],
|
|
"jsdoc-format": [
|
|
true,
|
|
"check-multiline-start"
|
|
],
|
|
"no-redundant-jsdoc": true,
|
|
"no-console": [
|
|
true,
|
|
"log",
|
|
"debug",
|
|
"info",
|
|
"time",
|
|
"timeEnd",
|
|
"trace"
|
|
],
|
|
"no-debugger": true,
|
|
"no-eval": true,
|
|
"no-string-throw": true,
|
|
"no-namespace": true,
|
|
"no-internal-module": true,
|
|
"radix": true,
|
|
"no-unused-expression": [
|
|
true,
|
|
"allow-fast-null-checks"
|
|
],
|
|
"no-empty": true,
|
|
"no-sparse-arrays": true
|
|
}
|
|
}
|