2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
"linterOptions": {
|
2022-11-22 03:44:35 -08:00
|
|
|
"exclude": ["node_modules/**/*"]
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
"defaultSeverity": "error",
|
|
|
|
"jsRules": {},
|
|
|
|
"rules": {
|
2022-11-22 03:44:35 -08:00
|
|
|
"array-type": [true, "array-simple"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"arrow-return-shorthand": true,
|
|
|
|
"ban": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"name": "Array",
|
|
|
|
"message": "tsstyle#array-constructor"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"ban-types": [
|
|
|
|
true,
|
2022-11-22 03:44:35 -08:00
|
|
|
["Object", "Use {} instead."],
|
|
|
|
["String", "Use 'string' instead."],
|
|
|
|
["Number", "Use 'number' instead."],
|
|
|
|
["Boolean", "Use 'boolean' instead."]
|
2019-06-23 03:35:23 -07:00
|
|
|
],
|
|
|
|
"class-name": true,
|
2022-11-22 03:44:35 -08:00
|
|
|
"curly": [true, "ignore-same-line"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"forin": true,
|
|
|
|
"jsdoc-format": true,
|
|
|
|
"label-position": true,
|
2022-11-22 03:44:35 -08:00
|
|
|
"indent": [true, "tabs", 2],
|
|
|
|
"member-access": [true, "no-public"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"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,
|
2022-08-03 09:08:51 -07:00
|
|
|
"ordered-imports": [
|
2019-06-23 03:35:23 -07:00
|
|
|
true,
|
2022-08-03 09:08:51 -07:00
|
|
|
{
|
|
|
|
"import-sources-order": "any",
|
|
|
|
"named-imports-order": "case-insensitive"
|
|
|
|
}
|
|
|
|
],
|
2022-11-22 03:44:35 -08:00
|
|
|
"no-namespace": [false, "allow-declarations"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"no-reference": true,
|
|
|
|
"no-string-throw": true,
|
|
|
|
"no-unused-expression": true,
|
|
|
|
"no-var-keyword": true,
|
|
|
|
"object-literal-shorthand": true,
|
2022-11-22 03:44:35 -08:00
|
|
|
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"prefer-const": true,
|
|
|
|
"radix": true,
|
2022-11-22 03:44:35 -08:00
|
|
|
"semicolon": [true, "always", "ignore-bound-class-methods"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"switch-default": true,
|
2020-10-22 06:25:21 -07:00
|
|
|
"trailing-comma": [
|
|
|
|
true,
|
|
|
|
{
|
2022-08-03 09:08:51 -07:00
|
|
|
"multiline": {
|
|
|
|
"objects": "always",
|
|
|
|
"arrays": "always",
|
|
|
|
"functions": "always",
|
|
|
|
"typeLiterals": "ignore"
|
|
|
|
},
|
|
|
|
"esSpecCompliant": true
|
2020-10-22 06:25:21 -07:00
|
|
|
}
|
|
|
|
],
|
2022-11-22 03:44:35 -08:00
|
|
|
"triple-equals": [true, "allow-null-check"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"use-isnan": true,
|
2022-11-22 03:44:35 -08:00
|
|
|
"quotes": ["error", "single"],
|
2019-06-23 03:35:23 -07:00
|
|
|
"variable-name": [
|
|
|
|
true,
|
|
|
|
"check-format",
|
|
|
|
"ban-keywords",
|
|
|
|
"allow-leading-underscore",
|
|
|
|
"allow-trailing-underscore"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"rulesDirectory": []
|
|
|
|
}
|