mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* simplify tslint and unify main tslint extension in sub folders * remove autofix * fix lint extension and process cloud
226 lines
4.6 KiB
JSON
226 lines
4.6 KiB
JSON
{
|
|
"rulesDirectory": [
|
|
"./node_modules/codelyzer",
|
|
"./tools/tslint-rules/"
|
|
],
|
|
"extends": [
|
|
"rxjs-tslint-rules"
|
|
],
|
|
"rules": {
|
|
"adf-license-banner": [
|
|
true,
|
|
"e2e/**/*.ts",
|
|
"./license-community.txt"
|
|
],
|
|
"align": [
|
|
true,
|
|
"parameters",
|
|
"statements"
|
|
],
|
|
"ban": [
|
|
true,
|
|
"eval",
|
|
"fdescribe",
|
|
"fit"
|
|
],
|
|
"class-name": true,
|
|
"comment-format": [
|
|
true,
|
|
"check-space"
|
|
],
|
|
"curly": true,
|
|
"eofline": true,
|
|
"forin": true,
|
|
"indent": [
|
|
true,
|
|
"spaces"
|
|
],
|
|
"interface-name": false,
|
|
"jsdoc-format": true,
|
|
"label-position": true,
|
|
"max-line-length": [
|
|
true,
|
|
180
|
|
],
|
|
"member-ordering": [
|
|
true,
|
|
{
|
|
"order": [
|
|
"static-field",
|
|
"instance-field",
|
|
"static-method",
|
|
"instance-method"
|
|
]
|
|
}
|
|
],
|
|
"no-any": false,
|
|
"no-arg": true,
|
|
"no-bitwise": false,
|
|
"no-conditional-assignment": true,
|
|
"no-consecutive-blank-lines": true,
|
|
"no-console": [
|
|
true,
|
|
"log",
|
|
"debug",
|
|
"info",
|
|
"time",
|
|
"timeEnd",
|
|
"trace"
|
|
],
|
|
"no-construct": true,
|
|
"no-constructor-vars": false,
|
|
"no-debugger": true,
|
|
"no-duplicate-super": true,
|
|
"no-duplicate-variable": true,
|
|
"no-empty": false,
|
|
"no-eval": true,
|
|
"no-inferrable-types": false,
|
|
"no-internal-module": true,
|
|
"no-require-imports": false,
|
|
"no-shadowed-variable": true,
|
|
"no-switch-case-fall-through": true,
|
|
"no-trailing-whitespace": true,
|
|
"no-unused-expression": true,
|
|
"no-var-keyword": true,
|
|
"no-var-requires": true,
|
|
"object-literal-sort-keys": false,
|
|
"one-line": [
|
|
true,
|
|
"check-open-brace",
|
|
"check-catch",
|
|
"check-else",
|
|
"check-whitespace"
|
|
],
|
|
"quotemark": [
|
|
true,
|
|
"single",
|
|
"avoid-escape"
|
|
],
|
|
"radix": true,
|
|
"semicolon": [
|
|
true,
|
|
"always"
|
|
],
|
|
"switch-default": true,
|
|
"trailing-comma": [
|
|
true,
|
|
{
|
|
"multiline": "never",
|
|
"singleline": "never"
|
|
}
|
|
],
|
|
"triple-equals": [
|
|
true,
|
|
"allow-null-check"
|
|
],
|
|
"typedef": false,
|
|
"typedef-whitespace": [
|
|
true,
|
|
{
|
|
"call-signature": "nospace",
|
|
"index-signature": "nospace",
|
|
"parameter": "nospace",
|
|
"property-declaration": "nospace",
|
|
"variable-declaration": "nospace"
|
|
}
|
|
],
|
|
"use-strict": false,
|
|
"variable-name": [
|
|
true,
|
|
"check-format",
|
|
"allow-leading-underscore",
|
|
"ban-keywords"
|
|
],
|
|
"callable-types": true,
|
|
"import-spacing": true,
|
|
"interface-over-type-literal": true,
|
|
"member-access": false,
|
|
"no-empty-interface": true,
|
|
"no-string-literal": false,
|
|
"no-string-throw": true,
|
|
"prefer-const": false,
|
|
"unified-signatures": true,
|
|
"whitespace": [
|
|
true,
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-separator",
|
|
"check-typecast",
|
|
"check-type",
|
|
"check-typecast",
|
|
"check-module"
|
|
],
|
|
"component-selector": [
|
|
true,
|
|
"element",
|
|
"adf",
|
|
"kebab-case"
|
|
],
|
|
"naming-convention": [
|
|
{
|
|
"type": "enumMember",
|
|
"format": "PascalCase"
|
|
}
|
|
],
|
|
"arrow-parens": true,
|
|
"ordered-imports": false,
|
|
"use-input-property-decorator": true,
|
|
"use-output-property-decorator": true,
|
|
"use-host-property-decorator": false,
|
|
"use-life-cycle-interface": true,
|
|
"use-pipe-transform-interface": true,
|
|
"component-class-suffix": true,
|
|
"directive-class-suffix": true,
|
|
"adf-file-name": true,
|
|
"adf-class-name": true,
|
|
"adf-prefix-name": true,
|
|
"no-input-rename": true,
|
|
"no-output-rename": true,
|
|
"rxjs-ban-operators": {
|
|
"severity": "error"
|
|
},
|
|
"rxjs-no-unsafe-takeuntil": {
|
|
"severity": "error"
|
|
},
|
|
"rxjs-no-create": {
|
|
"severity": "error"
|
|
},
|
|
"rxjs-no-ignored-subscribe": {
|
|
"severity": "error"
|
|
},
|
|
"rxjs-no-subject-unsubscribe": {
|
|
"severity": "error"
|
|
},
|
|
"rxjs-no-subject-value": {
|
|
"severity": "error"
|
|
},
|
|
"rxjs-no-unsafe-catch": {
|
|
"options": [
|
|
{
|
|
"observable": "action(s|\\$)?"
|
|
}
|
|
],
|
|
"severity": "error"
|
|
},
|
|
"rxjs-no-unsafe-switchmap": {
|
|
"options": [
|
|
{
|
|
"disallow": [
|
|
"add",
|
|
"create",
|
|
"delete",
|
|
"post",
|
|
"put",
|
|
"remove",
|
|
"set",
|
|
"update"
|
|
],
|
|
"observable": "action(s|\\$)?"
|
|
}
|
|
],
|
|
"severity": "error"
|
|
}
|
|
}
|
|
}
|