108 lines
2.9 KiB
JSON
108 lines
2.9 KiB
JSON
{
|
|
"rules": {
|
|
"deprecation": true,
|
|
"use-isnan": true,
|
|
"max-line-length": [
|
|
true,
|
|
{
|
|
"limit": 120,
|
|
"ignore-pattern": "^import |^export {(.*?)}",
|
|
"check-strings": false,
|
|
"check-regex": true
|
|
}
|
|
],
|
|
"member-ordering": [true, { "order": "fields-first" }],
|
|
"no-unnecessary-type-assertion": true,
|
|
"no-parameter-reassignment": true,
|
|
"no-string-throw": true,
|
|
"no-unused-expression": true,
|
|
"no-duplicate-variable": true,
|
|
"no-for-in-array": true,
|
|
"no-arg": true,
|
|
"no-any": [true, { "ignore-rest-args": true }],
|
|
"no-shadowed-variable": [
|
|
true,
|
|
{
|
|
"class": true,
|
|
"enum": true,
|
|
"function": true,
|
|
"interface": false,
|
|
"namespace": true,
|
|
"typeAlias": false,
|
|
"typeParameter": false,
|
|
"underscore": false
|
|
}
|
|
],
|
|
"no-sparse-arrays": true,
|
|
"no-string-literal": true,
|
|
"no-for-in": true,
|
|
"no-invalid-this": true,
|
|
"no-switch-case-fall-through": true,
|
|
"no-inferrable-types": [true, "ignore-params", "ignore-properties"],
|
|
"no-non-null-assertion": true,
|
|
"no-this-assignment": [
|
|
true,
|
|
{ "allowed-names": ["^self$"], "allow-destructuring": true }
|
|
],
|
|
"no-var-keyword": true,
|
|
"no-require-imports": true,
|
|
"prefer-for-of": true,
|
|
"prefer-conditional-expression": [true, "check-else-if"],
|
|
"prefer-object-spread": true,
|
|
"typeof-compare": true,
|
|
"cyclomatic-complexity": [true, 20],
|
|
"max-file-line-count": [true, 500],
|
|
"prefer-readonly": true,
|
|
"prefer-const": true,
|
|
"radix": true,
|
|
"space-before-function-paren": [
|
|
true,
|
|
{
|
|
"anonymous": "never",
|
|
"named": "never",
|
|
"asyncArrow": "always",
|
|
"method": "never",
|
|
"constructor": "never"
|
|
}
|
|
],
|
|
"space-within-parens": 1,
|
|
"type-literal-delimiter": true,
|
|
"variable-name": {
|
|
"options": [
|
|
"ban-keywords",
|
|
"check-format",
|
|
"require-const-for-all-caps",
|
|
"allow-pascal-case"
|
|
]
|
|
},
|
|
"curly": true,
|
|
"class-name": true,
|
|
"one-line": [true, "check-catch", "check-finally", "check-else"],
|
|
"arrow-parens": [true, "ban-single-arg-parens"],
|
|
"indent": [true, "spaces", 4],
|
|
"one-variable-per-declaration": true,
|
|
"ban-comma-operator": true,
|
|
"function-constructor": true,
|
|
"semicolon": [true, "always", "ignore-bound-class-methods"],
|
|
"jsdoc-format": [true, "check-multiline-start"],
|
|
"no-irregular-whitespace": true,
|
|
"no-trailing-whitespace": [
|
|
true,
|
|
"ignore-comments",
|
|
"ignore-jsdoc",
|
|
"ignore-template-strings",
|
|
"ignore-blank-lines"
|
|
],
|
|
"triple-equals": true,
|
|
"prefer-template": [true, "allow-single-concat"],
|
|
"quotemark": [
|
|
true,
|
|
"single",
|
|
"jsx-double",
|
|
"avoid-template",
|
|
"avoid-escape"
|
|
]
|
|
},
|
|
"defaultSeverity": "warning"
|
|
}
|