2020-04-20 12:51:28 +02:00
|
|
|
{
|
2020-06-11 22:41:41 +02:00
|
|
|
"extends": ["tslint:recommended", "tslint-config-prettier"],
|
2020-04-20 12:51:28 +02:00
|
|
|
"rules": {
|
|
|
|
"align": {
|
2020-06-11 22:41:41 +02:00
|
|
|
"options": ["parameters", "statements"]
|
2020-04-20 12:51:28 +02:00
|
|
|
},
|
|
|
|
"array-type": false,
|
|
|
|
"arrow-return-shorthand": true,
|
|
|
|
"curly": true,
|
|
|
|
"deprecation": {
|
|
|
|
"severity": "warning"
|
|
|
|
},
|
|
|
|
"component-class-suffix": true,
|
|
|
|
"contextual-lifecycle": true,
|
|
|
|
"directive-class-suffix": true,
|
2020-06-11 22:41:41 +02:00
|
|
|
"directive-selector": [true, "attribute", "app", "camelCase"],
|
|
|
|
"component-selector": [true, "element", "app", "kebab-case"],
|
2020-04-20 12:51:28 +02:00
|
|
|
"eofline": true,
|
2020-06-11 22:41:41 +02:00
|
|
|
"import-blacklist": [true, "rxjs/Rx"],
|
2020-04-20 12:51:28 +02:00
|
|
|
"import-spacing": true,
|
|
|
|
"indent": {
|
2020-06-11 22:41:41 +02:00
|
|
|
"options": ["spaces"]
|
2020-04-20 12:51:28 +02:00
|
|
|
},
|
|
|
|
"max-classes-per-file": false,
|
2020-06-11 22:41:41 +02:00
|
|
|
"max-line-length": [true, 140],
|
2020-04-20 12:51:28 +02:00
|
|
|
"member-ordering": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"order": [
|
|
|
|
"static-field",
|
|
|
|
"instance-field",
|
|
|
|
"static-method",
|
|
|
|
"instance-method"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2020-06-11 22:41:41 +02:00
|
|
|
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
|
2020-04-20 12:51:28 +02:00
|
|
|
"no-empty": false,
|
2020-06-11 22:41:41 +02:00
|
|
|
"no-inferrable-types": [true, "ignore-params"],
|
2020-04-20 12:51:28 +02:00
|
|
|
"no-non-null-assertion": true,
|
|
|
|
"no-redundant-jsdoc": true,
|
|
|
|
"no-switch-case-fall-through": true,
|
|
|
|
"no-var-requires": false,
|
2020-06-11 22:41:41 +02:00
|
|
|
"object-literal-key-quotes": [true, "as-needed"],
|
|
|
|
"quotemark": [true, "single"],
|
2020-04-20 12:51:28 +02:00
|
|
|
"semicolon": {
|
2020-06-11 22:41:41 +02:00
|
|
|
"options": ["always"]
|
2020-04-20 12:51:28 +02:00
|
|
|
},
|
|
|
|
"space-before-function-paren": {
|
|
|
|
"options": {
|
|
|
|
"anonymous": "never",
|
|
|
|
"asyncArrow": "always",
|
|
|
|
"constructor": "never",
|
|
|
|
"method": "never",
|
|
|
|
"named": "never"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2020-06-11 22:41:41 +02:00
|
|
|
"options": ["ban-keywords", "check-format", "allow-pascal-case"]
|
2020-04-20 12:51:28 +02:00
|
|
|
},
|
|
|
|
"whitespace": {
|
|
|
|
"options": [
|
|
|
|
"check-branch",
|
|
|
|
"check-decl",
|
|
|
|
"check-operator",
|
|
|
|
"check-separator",
|
|
|
|
"check-type",
|
|
|
|
"check-typecast"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"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
|
|
|
|
},
|
2020-06-11 22:41:41 +02:00
|
|
|
"rulesDirectory": ["codelyzer"]
|
|
|
|
}
|