2017-05-03 13:31:02 -04:00
|
|
|
{
|
2020-07-30 06:03:23 -04:00
|
|
|
"extends": "tslint:recommended",
|
2020-09-21 13:52:26 -04:00
|
|
|
"rulesDirectory": [
|
|
|
|
"codelyzer"
|
|
|
|
],
|
2017-05-03 13:31:02 -04:00
|
|
|
"rules": {
|
2020-07-30 06:03:23 -04:00
|
|
|
"align": {
|
|
|
|
"options": [
|
|
|
|
"parameters",
|
|
|
|
"statements"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"array-type": false,
|
|
|
|
"arrow-return-shorthand": true,
|
|
|
|
"curly": true,
|
|
|
|
"deprecation": {
|
|
|
|
"severity": "warning"
|
|
|
|
},
|
2017-05-03 13:31:02 -04:00
|
|
|
"eofline": true,
|
2020-07-30 06:03:23 -04:00
|
|
|
"import-blacklist": [
|
2017-05-03 13:31:02 -04:00
|
|
|
true,
|
2020-07-30 06:03:23 -04:00
|
|
|
"rxjs/Rx"
|
2017-05-03 13:31:02 -04:00
|
|
|
],
|
2020-07-30 06:03:23 -04:00
|
|
|
"import-spacing": true,
|
|
|
|
"indent": {
|
|
|
|
"options": [
|
|
|
|
"spaces"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"max-classes-per-file": false,
|
2017-05-03 13:31:02 -04:00
|
|
|
"max-line-length": [
|
|
|
|
true,
|
|
|
|
140
|
|
|
|
],
|
2020-07-30 06:03:23 -04:00
|
|
|
"member-ordering": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"order": [
|
|
|
|
"static-field",
|
|
|
|
"instance-field",
|
|
|
|
"static-method",
|
|
|
|
"instance-method"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2017-05-03 13:31:02 -04:00
|
|
|
"no-console": [
|
|
|
|
true,
|
|
|
|
"debug",
|
|
|
|
"info",
|
|
|
|
"time",
|
|
|
|
"timeEnd",
|
|
|
|
"trace"
|
|
|
|
],
|
|
|
|
"no-empty": false,
|
2020-07-30 06:03:23 -04:00
|
|
|
"no-inferrable-types": [
|
|
|
|
true,
|
|
|
|
"ignore-params"
|
|
|
|
],
|
2021-05-08 10:02:03 -04:00
|
|
|
"no-non-null-assertion": false,
|
2020-07-30 06:03:23 -04:00
|
|
|
"no-redundant-jsdoc": true,
|
2017-05-03 13:31:02 -04:00
|
|
|
"no-switch-case-fall-through": true,
|
2020-07-30 06:03:23 -04:00
|
|
|
"no-var-requires": false,
|
|
|
|
"object-literal-key-quotes": [
|
2017-05-03 13:31:02 -04:00
|
|
|
true,
|
2020-07-30 06:03:23 -04:00
|
|
|
"as-needed"
|
2017-05-03 13:31:02 -04:00
|
|
|
],
|
|
|
|
"quotemark": [
|
|
|
|
true,
|
|
|
|
"single"
|
|
|
|
],
|
2020-07-30 06:03:23 -04:00
|
|
|
"semicolon": {
|
|
|
|
"options": [
|
|
|
|
"always"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"space-before-function-paren": {
|
|
|
|
"options": {
|
|
|
|
"anonymous": "never",
|
|
|
|
"asyncArrow": "always",
|
|
|
|
"constructor": "never",
|
|
|
|
"method": "never",
|
|
|
|
"named": "never"
|
2017-05-03 13:31:02 -04:00
|
|
|
}
|
2020-07-30 06:03:23 -04:00
|
|
|
},
|
2020-09-21 13:52:26 -04:00
|
|
|
// TODO(gkalpak): Fix the code and enable this.
|
|
|
|
// "typedef": [
|
|
|
|
// true,
|
|
|
|
// "call-signature"
|
|
|
|
// ],
|
2020-07-30 06:03:23 -04: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"
|
|
|
|
]
|
|
|
|
},
|
2020-09-21 13:52:26 -04:00
|
|
|
"component-class-suffix": true,
|
|
|
|
"contextual-lifecycle": true,
|
|
|
|
"directive-class-suffix": true,
|
2020-07-30 06:03:23 -04:00
|
|
|
"no-conflicting-lifecycle": true,
|
|
|
|
"no-host-metadata-property": true,
|
|
|
|
"no-input-rename": true,
|
2019-04-24 08:27:24 -04:00
|
|
|
"no-inputs-metadata-property": true,
|
2020-07-30 06:03:23 -04:00
|
|
|
"no-output-native": true,
|
|
|
|
"no-output-on-prefix": true,
|
|
|
|
"no-output-rename": true,
|
2019-04-24 08:27:24 -04:00
|
|
|
"no-outputs-metadata-property": true,
|
2020-07-30 06:03:23 -04:00
|
|
|
"template-banana-in-box": true,
|
|
|
|
"template-no-negated-async": true,
|
|
|
|
"use-lifecycle-interface": true,
|
2020-09-21 13:52:26 -04:00
|
|
|
"use-pipe-transform-interface": true,
|
|
|
|
"directive-selector": [
|
|
|
|
true,
|
|
|
|
"attribute",
|
|
|
|
["app", "toh"],
|
|
|
|
"camelCase"
|
|
|
|
],
|
|
|
|
"component-selector": [
|
|
|
|
true,
|
|
|
|
"element",
|
|
|
|
// TODO: Fix the code and change the prefix to `"app"` (or whatever makes sense).
|
|
|
|
"",
|
|
|
|
"kebab-case"
|
|
|
|
]
|
|
|
|
}
|
2017-05-03 13:31:02 -04:00
|
|
|
}
|