|
22 | 22 | "plugin:rxjs/recommended", |
23 | 23 | "plugin:@typescript-eslint/recommended", |
24 | 24 | "plugin:@angular-eslint/recommended", |
25 | | - "plugin:@angular-eslint/recommended--extra", |
26 | | - "plugin:@angular-eslint/ng-cli-compat", |
27 | | - "plugin:@angular-eslint/ng-cli-compat--formatting-add-on", |
28 | 25 | "plugin:@angular-eslint/template/process-inline-templates", |
29 | 26 | "prettier" |
30 | 27 | ], |
31 | | - "plugins": [ "jsdoc", "rxjs-angular", "unicorn" ], |
| 28 | + "plugins": [ |
| 29 | + "jsdoc", |
| 30 | + "rxjs-angular", |
| 31 | + "unicorn" |
| 32 | + ], |
32 | 33 | "rules": { |
33 | | - // Excluded rules |
34 | 34 | "@typescript-eslint/no-empty-interface": "off", |
35 | 35 | "import/no-deprecated": "off", |
36 | 36 | "import/no-unresolved": "off", |
37 | 37 | "rxjs/no-async-subscribe": "off", |
38 | 38 | "rxjs/no-sharereplay": "off", |
39 | | - // Included rules |
40 | 39 | "@angular-eslint/component-selector": [ |
41 | 40 | "error", |
42 | 41 | { |
|
55 | 54 | ], |
56 | 55 | "@angular-eslint/no-host-metadata-property": [ |
57 | 56 | "error", |
58 | | - { "allowStatic": true } |
| 57 | + { |
| 58 | + "allowStatic": true |
| 59 | + } |
| 60 | + ], |
| 61 | + "@angular-eslint/prefer-output-readonly": [ |
| 62 | + "error" |
| 63 | + ], |
| 64 | + "@angular-eslint/use-component-selector": [ |
| 65 | + "error" |
| 66 | + ], |
| 67 | + "@angular-eslint/use-component-view-encapsulation": [ |
| 68 | + "error" |
| 69 | + ], |
| 70 | + "@angular-eslint/use-lifecycle-interface": [ |
| 71 | + "error" |
59 | 72 | ], |
60 | | - "@angular-eslint/prefer-output-readonly": [ "error" ], |
61 | | - "@angular-eslint/use-component-selector": [ "error" ], |
62 | | - "@angular-eslint/use-component-view-encapsulation": [ "error" ], |
63 | | - "@angular-eslint/use-lifecycle-interface": [ "error" ], |
64 | 73 | "@typescript-eslint/array-type": [ |
65 | 74 | "error", |
66 | 75 | { |
|
74 | 83 | "objectLiteralTypeAssertions": "never" |
75 | 84 | } |
76 | 85 | ], |
77 | | - "@typescript-eslint/consistent-type-definitions": [ "error" ], |
| 86 | + "@typescript-eslint/consistent-type-definitions": [ |
| 87 | + "error" |
| 88 | + ], |
78 | 89 | "@typescript-eslint/explicit-function-return-type": [ |
79 | 90 | "error", |
80 | 91 | { |
81 | | - // Only functions which are part of a declaration will be checked. |
82 | 92 | "allowExpressions": true |
83 | 93 | } |
84 | 94 | ], |
85 | 95 | "@typescript-eslint/explicit-member-accessibility": [ |
86 | 96 | "error", |
87 | | - { "accessibility": "explicit" } |
| 97 | + { |
| 98 | + "accessibility": "explicit" |
| 99 | + } |
| 100 | + ], |
| 101 | + "@typescript-eslint/explicit-module-boundary-types": [ |
| 102 | + "error" |
88 | 103 | ], |
89 | | - "@typescript-eslint/explicit-module-boundary-types": [ "error" ], |
90 | 104 | "@typescript-eslint/member-ordering": [ |
91 | 105 | "error", |
92 | 106 | { |
|
103 | 117 | "error", |
104 | 118 | { |
105 | 119 | "selector": "classProperty", |
106 | | - "format": [ "PascalCase", "camelCase" ], |
107 | | - "modifiers": [ "public" ] |
| 120 | + "format": [ |
| 121 | + "PascalCase", |
| 122 | + "camelCase" |
| 123 | + ], |
| 124 | + "modifiers": [ |
| 125 | + "public" |
| 126 | + ] |
108 | 127 | }, |
109 | 128 | { |
110 | 129 | "selector": "function", |
111 | | - "format": [ "camelCase" ] |
| 130 | + "format": [ |
| 131 | + "camelCase" |
| 132 | + ] |
112 | 133 | }, |
113 | 134 | { |
114 | 135 | "selector": "interface", |
115 | | - "format": [ "PascalCase" ], |
| 136 | + "format": [ |
| 137 | + "PascalCase" |
| 138 | + ], |
116 | 139 | "custom": { |
117 | 140 | "regex": "^I[A-Z]", |
118 | 141 | "match": false |
|
123 | 146 | "@typescript-eslint/no-explicit-any": "error", |
124 | 147 | "@typescript-eslint/no-namespace": [ |
125 | 148 | "error", |
126 | | - { "allowDeclarations": true } |
| 149 | + { |
| 150 | + "allowDeclarations": true |
| 151 | + } |
| 152 | + ], |
| 153 | + "@typescript-eslint/no-unused-expressions": [ |
| 154 | + "error" |
127 | 155 | ], |
128 | | - "@typescript-eslint/no-unused-expressions": [ "error" ], |
129 | 156 | "@typescript-eslint/no-unused-vars": [ |
130 | 157 | "error", |
131 | 158 | { |
|
134 | 161 | "varsIgnorePattern": "^_" |
135 | 162 | } |
136 | 163 | ], |
137 | | - "@typescript-eslint/prefer-for-of": [ "warn" ], |
138 | | - "@typescript-eslint/prefer-function-type": [ "warn" ], |
| 164 | + "@typescript-eslint/prefer-for-of": [ |
| 165 | + "warn" |
| 166 | + ], |
| 167 | + "@typescript-eslint/prefer-function-type": [ |
| 168 | + "warn" |
| 169 | + ], |
139 | 170 | "@typescript-eslint/prefer-readonly": "error", |
140 | | - "@typescript-eslint/unified-signatures": [ "warn" ], |
141 | | - "eqeqeq": [ "error" ], |
142 | | - "guard-for-in": [ "error" ], |
143 | | - "import/no-default-export": [ "error" ], |
144 | | - "jsdoc/check-alignment": [ "error" ], |
145 | | - "jsdoc/check-indentation": [ "error" ], |
146 | | - "no-bitwise": [ "error" ], |
147 | | - "no-caller": [ "error" ], |
148 | | - "no-console": ["error", { "allow": ["warn", "error"] }], |
149 | | - "no-duplicate-imports": [ "error" ], |
| 171 | + "@typescript-eslint/unified-signatures": [ |
| 172 | + "warn" |
| 173 | + ], |
| 174 | + "eqeqeq": [ |
| 175 | + "error" |
| 176 | + ], |
| 177 | + "guard-for-in": [ |
| 178 | + "error" |
| 179 | + ], |
| 180 | + "import/no-default-export": [ |
| 181 | + "error" |
| 182 | + ], |
| 183 | + "jsdoc/check-alignment": [ |
| 184 | + "error" |
| 185 | + ], |
| 186 | + "jsdoc/check-indentation": [ |
| 187 | + "error" |
| 188 | + ], |
| 189 | + "no-bitwise": [ |
| 190 | + "error" |
| 191 | + ], |
| 192 | + "no-caller": [ |
| 193 | + "error" |
| 194 | + ], |
| 195 | + "no-console": [ |
| 196 | + "error", |
| 197 | + { |
| 198 | + "allow": [ |
| 199 | + "warn", |
| 200 | + "error" |
| 201 | + ] |
| 202 | + } |
| 203 | + ], |
| 204 | + "no-duplicate-imports": [ |
| 205 | + "error" |
| 206 | + ], |
150 | 207 | "no-empty": "error", |
151 | | - "no-eval": [ "error" ], |
152 | | - "no-new-wrappers": [ "error" ], |
153 | | - "no-throw-literal": [ "error" ], |
154 | | - "no-var": [ "error" ], |
155 | | - "object-shorthand": [ "error" ], |
156 | | - "one-var": [ "error", "never" ], |
| 208 | + "no-eval": [ |
| 209 | + "error" |
| 210 | + ], |
| 211 | + "no-new-wrappers": [ |
| 212 | + "error" |
| 213 | + ], |
| 214 | + "no-throw-literal": [ |
| 215 | + "error" |
| 216 | + ], |
| 217 | + "no-var": [ |
| 218 | + "error" |
| 219 | + ], |
| 220 | + "object-shorthand": [ |
| 221 | + "error" |
| 222 | + ], |
| 223 | + "one-var": [ |
| 224 | + "error", |
| 225 | + "never" |
| 226 | + ], |
157 | 227 | "prefer-arrow/prefer-arrow-functions": "off", |
158 | | - "prefer-const": [ "error" ], |
159 | | - "radix": [ "error" ], |
| 228 | + "prefer-const": [ |
| 229 | + "error" |
| 230 | + ], |
| 231 | + "radix": [ |
| 232 | + "error" |
| 233 | + ], |
160 | 234 | "rxjs-angular/prefer-takeuntil": [ |
161 | 235 | "error", |
162 | | - { "alias": [ "untilDestroyed" ] } |
| 236 | + { |
| 237 | + "alias": [ |
| 238 | + "untilDestroyed" |
| 239 | + ] |
| 240 | + } |
| 241 | + ], |
| 242 | + "rxjs/no-exposed-subjects": [ |
| 243 | + "error" |
| 244 | + ], |
| 245 | + "rxjs/no-finnish": [ |
| 246 | + "error" |
| 247 | + ], |
| 248 | + "rxjs/no-ignored-replay-buffer": [ |
| 249 | + "error" |
| 250 | + ], |
| 251 | + "rxjs/no-tap": [ |
| 252 | + "error" |
163 | 253 | ], |
164 | | - "rxjs/no-exposed-subjects": [ "error" ], |
165 | | - "rxjs/no-finnish": [ "error" ], |
166 | | - "rxjs/no-ignored-replay-buffer": [ "error" ], |
167 | | - "rxjs/no-tap": [ "error" ], |
168 | 254 | "rxjs/no-unsafe-takeuntil": [ |
169 | 255 | "error", |
170 | | - { "alias": [ "untilDestroyed" ] } |
| 256 | + { |
| 257 | + "alias": [ |
| 258 | + "untilDestroyed" |
| 259 | + ] |
| 260 | + } |
171 | 261 | ], |
172 | 262 | "spaced-comment": [ |
173 | 263 | "error", |
174 | 264 | "always", |
175 | | - { "block": { "balanced": true } } |
| 265 | + { |
| 266 | + "block": { |
| 267 | + "balanced": true |
| 268 | + } |
| 269 | + } |
176 | 270 | ], |
177 | 271 | "unicorn/filename-case": [ |
178 | 272 | "error", |
179 | | - { "case": "kebabCase" } |
| 273 | + { |
| 274 | + "case": "kebabCase" |
| 275 | + } |
180 | 276 | ] |
181 | 277 | } |
182 | 278 | }, |
|
0 commit comments