From 16a9fce0e104a38371a9e5a567ec611ae3fc7f33 Mon Sep 17 00:00:00 2001 From: ys9693 Date: Sun, 19 Jan 2020 13:50:02 +0200 Subject: Catalog alignment Issue-ID: SDC-2724 Signed-off-by: ys9693 Change-Id: I52b4aacb58cbd432ca0e1ff7ff1f7dd52099c6fe --- catalog-ui/tslint.json | 89 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 53 insertions(+), 36 deletions(-) (limited to 'catalog-ui/tslint.json') diff --git a/catalog-ui/tslint.json b/catalog-ui/tslint.json index 86bc1841f3..1aebca880c 100644 --- a/catalog-ui/tslint.json +++ b/catalog-ui/tslint.json @@ -1,8 +1,10 @@ { - "rulesDirectory": [ - "node_modules/codelyzer" + "extends": [ + "tslint:recommended" ], "rules": { + "cognitive-complexity": false, + "trailing-comma": true, "callable-types": true, "class-name": true, "comment-format": [ @@ -12,23 +14,24 @@ "curly": true, "eofline": true, "forin": true, - "import-blacklist": [true, "rxjs"], "import-spacing": true, "indent": [ true, "spaces" ], - "interface-over-type-literal": true, - "label-position": true, + //"interface-over-type-literal": true, + //"label-position": true, + "interface-name": [true, "never-prefix"], "max-line-length": [ true, - 140 + 200 ], "member-access": false, "member-ordering": [ true, - "static-before-instance", - "variables-before-functions" + { + "order": "fields-first" + } ], "no-arg": true, "no-bitwise": true, @@ -42,18 +45,19 @@ ], "no-construct": true, "no-debugger": true, - "no-duplicate-variable": true, - "no-empty": false, + "no-empty": true, "no-empty-interface": true, "no-eval": true, - "no-inferrable-types": true, + "no-inferrable-types": false, "no-shadowed-variable": true, - "no-string-literal": false, + "no-string-literal": true, "no-string-throw": true, "no-switch-case-fall-through": true, "no-trailing-whitespace": true, - "no-unused-expression": true, - "no-use-before-declare": true, + "no-unused-expression": [ + true, + "allow-fast-null-checks" + ], "no-var-keyword": true, "object-literal-sort-keys": false, "one-line": [ @@ -68,13 +72,14 @@ true, "single" ], - "radix": true, "semicolon": [ + true, "always" ], "triple-equals": [ true, - "allow-null-check" + "allow-null-check", + "allow-undefined-check" ], "typedef-whitespace": [ true, @@ -86,31 +91,43 @@ "variable-declaration": "nospace" } ], - "typeof-compare": true, - "unified-signatures": true, - "variable-name": false, + "variable-name": [ + true, + "check-format", + "ban-keywords" + ], "whitespace": [ true, "check-branch", "check-decl", "check-operator", + "check-module", "check-separator", - "check-type" + "check-type", + "check-preblock" ], - - "directive-selector": [true, "attribute", "app", "camelCase"], - "component-selector": [true, "element", "app", "kebab-case"], - "use-input-property-decorator": true, - "use-output-property-decorator": true, - "use-host-property-decorator": true, - "no-input-rename": true, - "no-output-rename": true, - "use-life-cycle-interface": true, - "use-pipe-transform-interface": true, - "component-class-suffix": true, - "directive-class-suffix": true, - "no-access-missing-member": true, - "templates-use-public": true, - "invoke-injectable": true + "ban-types": [ + true, + [ + "Object", + "Avoid using the `Object` type. Did you mean `object`?" + ], + [ + "Boolean", + "Avoid using the `Boolean` type. Did you mean `boolean`?" + ], + [ + "Number", + "Avoid using the `Number` type. Did you mean `number`?" + ], + [ + "String", + "Avoid using the `String` type. Did you mean `string`?" + ], + [ + "Symbol", + "Avoid using the `Symbol` type. Did you mean `symbol`?" + ] + ] } -} +} \ No newline at end of file -- cgit 1.2.3-korg