mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 12:02:53 +00:00
144 lines
3.2 KiB
JSON
144 lines
3.2 KiB
JSON
{
|
|
"defaultSeverity": "error",
|
|
"extends": [
|
|
"tslint:recommended",
|
|
"tslint-eslint-rules"
|
|
],
|
|
"rules": {
|
|
"array-type": [
|
|
true,
|
|
"array-simple"
|
|
],
|
|
"arrow-return-shorthand": true,
|
|
"await-promise": true,
|
|
"ban-comma-operator": true,
|
|
"ban-ts-ignore": true,
|
|
"completed-docs": true,
|
|
"curly": true,
|
|
"encoding": true,
|
|
"file-header": true,
|
|
"file-name-casing": [
|
|
true,
|
|
"kebab-case"
|
|
],
|
|
"forin": true,
|
|
"indent": [
|
|
true,
|
|
"spaces",
|
|
2
|
|
],
|
|
"interface-name": [
|
|
true,
|
|
"never-prefix"
|
|
],
|
|
"linebreak-style": [
|
|
true,
|
|
"LF"
|
|
],
|
|
"max-classes-per-file": false,
|
|
"member-access": false,
|
|
"member-ordering": [
|
|
true,
|
|
{
|
|
"alphabetize": true,
|
|
"order": [
|
|
"private-static-field",
|
|
"protected-static-field",
|
|
"public-static-field",
|
|
"private-instance-field",
|
|
"protected-instance-field",
|
|
"public-instance-field",
|
|
"private-static-method",
|
|
"protected-static-method",
|
|
"public-static-method",
|
|
"constructor",
|
|
"private-instance-method",
|
|
"protected-instance-method",
|
|
"public-instance-method"
|
|
]
|
|
}
|
|
],
|
|
"newline-before-return": true,
|
|
"newline-per-chained-call": true,
|
|
"no-angle-bracket-type-assertion": true,
|
|
"no-any": true,
|
|
"no-boolean-literal-compare": true,
|
|
"no-conditional-assignment": true,
|
|
"no-construct": true,
|
|
"no-default-export": true,
|
|
"no-default-import": true,
|
|
"no-duplicate-super": true,
|
|
"no-floating-promises": true,
|
|
"no-implicit-dependencies": true,
|
|
"no-inferrable-types": true,
|
|
"no-magic-numbers": true,
|
|
"no-parameter-reassignment": true,
|
|
"no-redundant-jsdoc": true,
|
|
"no-reference": true,
|
|
"no-return-await": true,
|
|
"no-shadowed-variable": true,
|
|
"no-sparse-arrays": true,
|
|
"no-string-throw": true,
|
|
"no-trailing-whitespace": [
|
|
true,
|
|
"ignore-comments",
|
|
"ignore-jsdoc"
|
|
],
|
|
"object-curly-spacing": [
|
|
true,
|
|
"never"
|
|
],
|
|
"object-literal-key-quotes": false,
|
|
"object-literal-shorthand": false,
|
|
"one-variable-per-declaration": true,
|
|
"ordered-imports": [
|
|
true,
|
|
{
|
|
"import-sources-order": "case-insensitive",
|
|
"named-imports-order": "case-insensitive"
|
|
}
|
|
],
|
|
"prefer-const": true,
|
|
"prefer-for-of": true,
|
|
"prefer-function-over-method": true,
|
|
"prefer-object-spread": true,
|
|
"prefer-readonly": true,
|
|
"prefer-template": true,
|
|
"promise-function-async": true,
|
|
"quotemark": [
|
|
true,
|
|
"single",
|
|
"avoid-escape"
|
|
],
|
|
"semicolon": true,
|
|
"static-this": true,
|
|
"strict-boolean-expressions": true,
|
|
"trailing-comma": [
|
|
true,
|
|
{
|
|
"multiline": "always",
|
|
"singleline": "never"
|
|
}
|
|
],
|
|
"type-literal-delimiter": [
|
|
true,
|
|
{
|
|
"singleLine": "always"
|
|
}
|
|
],
|
|
"unnecessary-bind": true,
|
|
"unnecessary-else": true,
|
|
"variable-name": [
|
|
true,
|
|
"ban-keywords",
|
|
"check-format",
|
|
"allow-leading-underscore"
|
|
]
|
|
},
|
|
"linterOptions": {
|
|
"exclude": [
|
|
"../../../test/**"
|
|
]
|
|
}
|
|
}
|