|
3 | 3 | // Consider using cognitive-complexity and refactor |
4 | 4 | // Consider using no-useless-cast but it's annoying |
5 | 5 | "extends": [ |
6 | | - "tslint-no-circular-imports", |
7 | | - "tslint-config-prettier" |
| 6 | + "tslint-no-circular-imports" |
8 | 7 | ], |
9 | 8 | "rulesDirectory": [ |
10 | 9 | "dist/etc/rules", |
11 | 10 | "node_modules/tslint-sonarts/lib/rules" |
12 | 11 | ], |
13 | | - "linterOptions": { |
14 | | - "exclude": ["dist-schema/**"], |
15 | | - "format": "codeFrame" |
16 | | - }, |
17 | 12 | "rules": { |
18 | 13 | // ================================================================================================== |
19 | 14 | // custom rules defined in etc/rules/** |
20 | 15 | "defocus": true, |
21 | 16 | "import-groups": true, |
22 | 17 | "no-global-tslint-disable": true, |
| 18 | + "single-eof-line": true, |
23 | 19 | // ================================================================================================== |
24 | 20 | // tslint-sonarts rules. See https://github.com/SonarSource/SonarTS |
25 | 21 | // These rules are part of the bug detection section of tslint-sonarts |
|
56 | 52 | "no-floating-promises": true, |
57 | 53 | "no-implicit-dependencies": true, |
58 | 54 | "no-import-side-effect": [true, {"ignore-module": "^(?!rxjs\/)"}], |
| 55 | + "align": [ |
| 56 | + true, |
| 57 | + "elements", |
| 58 | + "members", |
| 59 | + "parameters", |
| 60 | + "statements" |
| 61 | + ], |
| 62 | + "max-line-length": [true, 100], |
59 | 63 | "no-inferrable-types": true, |
60 | 64 | "class-name": true, |
61 | 65 | "comment-format": [ |
62 | 66 | true, |
63 | 67 | "check-space" |
64 | 68 | ], |
| 69 | + "indent": [ |
| 70 | + true, |
| 71 | + "spaces" |
| 72 | + ], |
| 73 | + "eofline": true, |
| 74 | + "import-spacing": true, |
65 | 75 | "match-default-export-name": true, |
66 | 76 | "newline-before-return": true, |
| 77 | + "no-consecutive-blank-lines": [true, 2], |
67 | 78 | "no-duplicate-variable": true, |
68 | 79 | "no-eval": true, |
69 | 80 | "no-any": true, |
70 | 81 | "no-arg": true, |
71 | 82 | "no-internal-module": true, |
| 83 | + "no-trailing-whitespace": true, |
72 | 84 | "no-unused-expression": true, |
73 | 85 | "no-var-keyword": true, |
| 86 | + "one-line": [ |
| 87 | + true, |
| 88 | + "check-catch", |
| 89 | + "check-else", |
| 90 | + "check-finally", |
| 91 | + "check-open-brace", |
| 92 | + "check-whitespace" |
| 93 | + ], |
74 | 94 | "ordered-imports": [ |
75 | 95 | true, |
76 | 96 | { |
|
79 | 99 | } |
80 | 100 | ], |
81 | 101 | "prefer-const": true, |
| 102 | + "quotemark": [ |
| 103 | + true, |
| 104 | + "single", |
| 105 | + "avoid-escape" |
| 106 | + ], |
| 107 | + "semicolon": [true, "always"], |
| 108 | + "trailing-comma": [ |
| 109 | + true, |
| 110 | + { |
| 111 | + "multiline": "always", |
| 112 | + "singleline": "never" |
| 113 | + } |
| 114 | + ], |
| 115 | + "typedef-whitespace": [ |
| 116 | + true, |
| 117 | + { |
| 118 | + "call-signature": "nospace", |
| 119 | + "index-signature": "nospace", |
| 120 | + "parameter": "nospace", |
| 121 | + "property-declaration": "nospace", |
| 122 | + "variable-declaration": "nospace" |
| 123 | + } |
| 124 | + ], |
82 | 125 | "curly": true, |
83 | 126 | "file-header": [ |
84 | 127 | true, |
|
90 | 133 | "check-format", |
91 | 134 | "allow-leading-underscore", |
92 | 135 | "allow-pascal-case" |
| 136 | + ], |
| 137 | + "whitespace": [ |
| 138 | + true, |
| 139 | + "check-branch", |
| 140 | + "check-decl", |
| 141 | + "check-module", |
| 142 | + "check-preblock", |
| 143 | + "check-operator", |
| 144 | + "check-separator", |
| 145 | + "check-type", |
| 146 | + "check-typecast" |
93 | 147 | ] |
94 | 148 | } |
95 | 149 | } |
0 commit comments