2017-06-11 04:32:56 +08:00
|
|
|
{
|
2021-04-11 21:59:30 +08:00
|
|
|
"extends": "tslint:recommended",
|
2017-06-11 04:32:56 +08:00
|
|
|
"rulesDirectory": [
|
2021-04-11 21:59:30 +08:00
|
|
|
"codelyzer"
|
2017-06-11 04:32:56 +08:00
|
|
|
],
|
|
|
|
"rules": {
|
2021-04-11 21:59:30 +08:00
|
|
|
"align": {
|
|
|
|
"options": [
|
|
|
|
"parameters",
|
|
|
|
"statements"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"array-type": false,
|
2017-06-11 04:32:56 +08:00
|
|
|
"arrow-return-shorthand": true,
|
|
|
|
"curly": true,
|
2018-03-31 03:30:30 +08:00
|
|
|
"deprecation": {
|
2021-04-11 21:59:30 +08:00
|
|
|
"severity": "warning"
|
2018-03-31 03:30:30 +08:00
|
|
|
},
|
2017-06-11 04:32:56 +08:00
|
|
|
"eofline": true,
|
|
|
|
"import-blacklist": [
|
|
|
|
true,
|
2018-03-31 03:30:30 +08:00
|
|
|
"rxjs/Rx"
|
2017-06-11 04:32:56 +08:00
|
|
|
],
|
|
|
|
"import-spacing": true,
|
2021-04-11 21:59:30 +08:00
|
|
|
"indent": {
|
|
|
|
"options": [
|
|
|
|
"spaces"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"max-classes-per-file": false,
|
2017-06-11 04:32:56 +08:00
|
|
|
"max-line-length": [
|
|
|
|
true,
|
|
|
|
140
|
|
|
|
],
|
|
|
|
"member-ordering": [
|
|
|
|
true,
|
2018-03-31 03:30:30 +08:00
|
|
|
{
|
|
|
|
"order": [
|
|
|
|
"static-field",
|
|
|
|
"instance-field",
|
|
|
|
"static-method",
|
|
|
|
"instance-method"
|
|
|
|
]
|
|
|
|
}
|
2017-06-11 04:32:56 +08:00
|
|
|
],
|
|
|
|
"no-console": [
|
|
|
|
true,
|
|
|
|
"debug",
|
|
|
|
"info",
|
|
|
|
"time",
|
|
|
|
"timeEnd",
|
|
|
|
"trace"
|
|
|
|
],
|
|
|
|
"no-empty": false,
|
|
|
|
"no-inferrable-types": [
|
|
|
|
true,
|
|
|
|
"ignore-params"
|
|
|
|
],
|
|
|
|
"no-non-null-assertion": true,
|
2021-04-11 21:59:30 +08:00
|
|
|
"no-redundant-jsdoc": true,
|
2017-06-11 04:32:56 +08:00
|
|
|
"no-switch-case-fall-through": true,
|
2021-04-11 21:59:30 +08:00
|
|
|
"no-var-requires": false,
|
|
|
|
"object-literal-key-quotes": [
|
2017-06-11 04:32:56 +08:00
|
|
|
true,
|
2021-04-11 21:59:30 +08:00
|
|
|
"as-needed"
|
2017-06-11 04:32:56 +08:00
|
|
|
],
|
|
|
|
"quotemark": [
|
|
|
|
true,
|
|
|
|
"single"
|
|
|
|
],
|
2021-04-11 21:59:30 +08:00
|
|
|
"semicolon": {
|
|
|
|
"options": [
|
|
|
|
"always"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"space-before-function-paren": {
|
|
|
|
"options": {
|
|
|
|
"anonymous": "never",
|
|
|
|
"asyncArrow": "always",
|
|
|
|
"constructor": "never",
|
|
|
|
"method": "never",
|
|
|
|
"named": "never"
|
2017-06-11 04:32:56 +08:00
|
|
|
}
|
2021-04-11 21:59:30 +08:00
|
|
|
},
|
|
|
|
"typedef": [
|
2017-06-11 04:32:56 +08:00
|
|
|
true,
|
2021-04-11 21:59:30 +08:00
|
|
|
"call-signature"
|
2017-06-11 04:32:56 +08:00
|
|
|
],
|
2021-04-11 21:59:30 +08:00
|
|
|
"typedef-whitespace": {
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"variable-name": {
|
|
|
|
"options": [
|
|
|
|
"ban-keywords",
|
|
|
|
"check-format",
|
|
|
|
"allow-pascal-case"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"whitespace": {
|
|
|
|
"options": [
|
|
|
|
"check-branch",
|
|
|
|
"check-decl",
|
|
|
|
"check-operator",
|
|
|
|
"check-separator",
|
|
|
|
"check-type",
|
|
|
|
"check-typecast"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"component-class-suffix": true,
|
|
|
|
"contextual-lifecycle": true,
|
|
|
|
"directive-class-suffix": true,
|
|
|
|
"no-conflicting-lifecycle": true,
|
|
|
|
"no-host-metadata-property": true,
|
|
|
|
"no-input-rename": true,
|
|
|
|
"no-inputs-metadata-property": true,
|
|
|
|
"no-output-native": true,
|
|
|
|
"no-output-on-prefix": true,
|
|
|
|
"no-output-rename": true,
|
|
|
|
"no-outputs-metadata-property": true,
|
|
|
|
"template-banana-in-box": true,
|
|
|
|
"template-no-negated-async": true,
|
|
|
|
"use-lifecycle-interface": true,
|
|
|
|
"use-pipe-transform-interface": true,
|
2017-06-11 04:32:56 +08:00
|
|
|
"directive-selector": [
|
|
|
|
true,
|
|
|
|
"attribute",
|
|
|
|
"app",
|
|
|
|
"camelCase"
|
|
|
|
],
|
|
|
|
"component-selector": [
|
|
|
|
true,
|
|
|
|
"element",
|
|
|
|
"app",
|
|
|
|
"kebab-case"
|
2021-04-11 21:59:30 +08:00
|
|
|
]
|
2017-06-11 04:32:56 +08:00
|
|
|
}
|
|
|
|
}
|