|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | +<% if (props.tools.includes('prettier')) { -%> |
| 4 | + "tslint:recommended", |
| 5 | + "tslint-config-prettier" |
| 6 | +<% } else { -%> |
| 7 | + "tslint:recommended" |
| 8 | +<% } -%> |
| 9 | + ], |
| 10 | + "rulesDirectory": [ |
| 11 | + "codelyzer" |
| 12 | + ], |
| 13 | + "rules": { |
| 14 | + "array-type": false, |
| 15 | + "arrow-parens": false, |
| 16 | + "deprecation": { |
| 17 | + "severity": "warning" |
| 18 | + }, |
| 19 | + "import-blacklist": [ |
| 20 | + true, |
| 21 | + "rxjs/Rx" |
| 22 | + ], |
| 23 | + "max-line-length": [ |
| 24 | + true, |
| 25 | + 120 |
| 26 | + ], |
| 27 | + "member-access": false, |
| 28 | + "member-ordering": [ |
| 29 | + true, |
| 30 | + { |
| 31 | + "order": [ |
| 32 | + "public-static-field", |
| 33 | + "protected-static-field", |
| 34 | + "private-static-field", |
| 35 | + "public-instance-field", |
| 36 | + "protected-instance-field", |
| 37 | + "private-instance-field", |
| 38 | + "public-static-method", |
| 39 | + "protected-static-method", |
| 40 | + "private-static-method", |
| 41 | + "constructor", |
| 42 | + "public-instance-method", |
| 43 | + "protected-instance-method", |
| 44 | + "private-instance-method" |
| 45 | + ] |
| 46 | + } |
| 47 | + ], |
| 48 | + "interface-name": false, |
| 49 | + "max-classes-per-file": false, |
| 50 | + "no-consecutive-blank-lines": false, |
| 51 | + "no-console": [ |
| 52 | + true, |
| 53 | + "debug", |
| 54 | + "time", |
| 55 | + "timeEnd", |
| 56 | + "trace" |
| 57 | + ], |
| 58 | + "no-duplicate-variable": [ |
| 59 | + true, |
| 60 | + "check-parameters" |
| 61 | + ], |
| 62 | + "no-empty": false, |
| 63 | + "no-inferrable-types": [ |
| 64 | + true, |
| 65 | + "ignore-params" |
| 66 | + ], |
| 67 | + "no-non-null-assertion": true, |
| 68 | + "no-redundant-jsdoc": true, |
| 69 | + "no-switch-case-fall-through": true, |
| 70 | + "no-unnecessary-initializer": true, |
| 71 | + "object-literal-sort-keys": false, |
| 72 | + "quotemark": [ |
| 73 | + true, |
| 74 | + "single" |
| 75 | + ], |
| 76 | + "typedef": [ |
| 77 | + true, |
| 78 | + "parameter", |
| 79 | + "property-declaration" |
| 80 | + ], |
| 81 | + "variable-name": false, |
| 82 | + "no-var-requires": false, |
| 83 | + "object-literal-key-quotes": false, |
| 84 | + "ordered-imports": false, |
| 85 | + "trailing-comma": false, |
| 86 | + "no-conflicting-lifecycle": true, |
| 87 | + "no-output-native": true, |
| 88 | + "directive-selector": [ |
| 89 | + true, |
| 90 | + "attribute", |
| 91 | + "app", |
| 92 | + "camelCase" |
| 93 | + ], |
| 94 | + "component-selector": [ |
| 95 | + true, |
| 96 | + "element", |
| 97 | + "page", |
| 98 | + "app", |
| 99 | + "kebab-case" |
| 100 | + ], |
| 101 | + "template-banana-in-box": true, |
| 102 | + "template-no-negated-async": true, |
| 103 | + "no-output-on-prefix": true, |
| 104 | + "no-inputs-metadata-property": true, |
| 105 | + "no-outputs-metadata-property": true, |
| 106 | + "no-host-metadata-property": true, |
| 107 | + "no-input-rename": true, |
| 108 | + "no-output-rename": true, |
| 109 | + "use-lifecycle-interface": true, |
| 110 | + "use-pipe-transform-interface": true, |
| 111 | + "component-class-suffix": true, |
| 112 | + "contextual-lifecycle": true, |
| 113 | + "directive-class-suffix": true |
| 114 | + } |
| 115 | +} |
0 commit comments