2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
"linterOptions": {
|
|
|
|
"exclude": [
|
2019-11-23 02:28:05 -08:00
|
|
|
"node_modules/**/*",
|
2022-04-14 23:22:58 -07:00
|
|
|
"../../node_modules/**/*",
|
|
|
|
"**/*.json"
|
2019-06-23 03:35:23 -07:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"defaultSeverity": "error",
|
|
|
|
"jsRules": {},
|
|
|
|
"rules": {
|
|
|
|
"array-type": [
|
|
|
|
true,
|
|
|
|
"array-simple"
|
|
|
|
],
|
|
|
|
"arrow-return-shorthand": true,
|
|
|
|
"ban": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"name": "Array",
|
|
|
|
"message": "tsstyle#array-constructor"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"ban-types": [
|
|
|
|
true,
|
|
|
|
[
|
|
|
|
"Object",
|
|
|
|
"Use {} instead."
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"String",
|
|
|
|
"Use 'string' instead."
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"Number",
|
|
|
|
"Use 'number' instead."
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"Boolean",
|
|
|
|
"Use 'boolean' instead."
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"class-name": true,
|
|
|
|
"curly": [
|
|
|
|
true,
|
|
|
|
"ignore-same-line"
|
|
|
|
],
|
|
|
|
"forin": true,
|
|
|
|
"jsdoc-format": true,
|
|
|
|
"label-position": true,
|
2020-10-22 06:46:03 -07:00
|
|
|
"indent": [true, "tabs", 2],
|
2019-06-23 03:35:23 -07:00
|
|
|
"member-access": [
|
|
|
|
true,
|
|
|
|
"no-public"
|
|
|
|
],
|
|
|
|
"new-parens": true,
|
|
|
|
"no-angle-bracket-type-assertion": true,
|
|
|
|
"no-any": true,
|
|
|
|
"no-arg": true,
|
|
|
|
"no-conditional-assignment": true,
|
|
|
|
"no-construct": true,
|
|
|
|
"no-debugger": true,
|
|
|
|
// "no-default-export": true,
|
|
|
|
"no-duplicate-variable": true,
|
|
|
|
"no-inferrable-types": true,
|
|
|
|
"no-reference": true,
|
|
|
|
"no-string-throw": true,
|
|
|
|
"no-unused-expression": true,
|
|
|
|
"no-var-keyword": true,
|
|
|
|
"object-literal-shorthand": true,
|
|
|
|
"only-arrow-functions": [
|
|
|
|
true,
|
|
|
|
"allow-declarations",
|
|
|
|
"allow-named-functions"
|
|
|
|
],
|
|
|
|
"prefer-const": true,
|
|
|
|
"radix": true,
|
|
|
|
"semicolon": [
|
|
|
|
true,
|
|
|
|
"always",
|
|
|
|
"ignore-bound-class-methods"
|
|
|
|
],
|
|
|
|
"switch-default": true,
|
2020-10-22 06:46:03 -07:00
|
|
|
"trailing-comma": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"multiline": {
|
|
|
|
"objects": "always",
|
|
|
|
"arrays": "always",
|
|
|
|
"functions": "always",
|
|
|
|
"typeLiterals": "ignore"
|
|
|
|
},
|
|
|
|
"esSpecCompliant": true
|
|
|
|
}
|
|
|
|
],
|
2019-06-23 03:35:23 -07:00
|
|
|
"triple-equals": [
|
|
|
|
true,
|
|
|
|
"allow-null-check"
|
|
|
|
],
|
|
|
|
"use-isnan": true,
|
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"variable-name": [
|
|
|
|
true,
|
|
|
|
"check-format",
|
|
|
|
"ban-keywords",
|
|
|
|
"allow-leading-underscore",
|
|
|
|
"allow-trailing-underscore"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"rulesDirectory": []
|
|
|
|
}
|