|
16 | 16 | "createDefaultProgram": true |
17 | 17 | }, |
18 | 18 | "extends": [ |
| 19 | + "eslint:recommended", |
| 20 | + "airbnb-base", |
| 21 | + "airbnb-typescript/base", |
19 | 22 | "plugin:@angular-eslint/ng-cli-compat", |
20 | 23 | "plugin:@angular-eslint/ng-cli-compat--formatting-add-on", |
21 | | - "plugin:@angular-eslint/template/process-inline-templates" |
| 24 | + "plugin:@angular-eslint/template/process-inline-templates", |
| 25 | + "plugin:rxjs/recommended" |
| 26 | + ], |
| 27 | + "plugins": [ |
| 28 | + "rxjs-angular" |
22 | 29 | ], |
23 | 30 | "rules": { |
24 | | - "@typescript-eslint/consistent-type-definitions": "error", |
25 | | - "@typescript-eslint/dot-notation": "off", |
26 | | - "@typescript-eslint/explicit-member-accessibility": [ |
27 | | - "off", |
| 31 | + "@angular-eslint/component-class-suffix": [ |
| 32 | + "error", |
28 | 33 | { |
29 | | - "accessibility": "explicit" |
| 34 | + "suffixes": [ |
| 35 | + "Page", |
| 36 | + "Component" |
| 37 | + ] |
30 | 38 | } |
31 | 39 | ], |
32 | | - "brace-style": [ |
| 40 | + "@angular-eslint/component-selector": [ |
33 | 41 | "error", |
34 | | - "1tbs" |
| 42 | + { |
| 43 | + "type": "element", |
| 44 | + "prefix": "app", |
| 45 | + "style": "kebab-case" |
| 46 | + } |
35 | 47 | ], |
36 | | - "id-blacklist": "off", |
37 | | - "id-match": "off", |
38 | | - "no-underscore-dangle": "off" |
| 48 | + "@angular-eslint/directive-selector": [ |
| 49 | + "error", |
| 50 | + { |
| 51 | + "type": "attribute", |
| 52 | + "prefix": "app", |
| 53 | + "style": "camelCase" |
| 54 | + } |
| 55 | + ], |
| 56 | + "import/prefer-default-export": "off", |
| 57 | + "rxjs-angular/prefer-async-pipe": "off", |
| 58 | + "rxjs-angular/prefer-composition": "off", |
| 59 | + "rxjs-angular/prefer-takeuntil": "error", |
| 60 | + "@typescript-eslint/no-unused-vars": [ |
| 61 | + "error", |
| 62 | + { |
| 63 | + "vars": "all", |
| 64 | + "args": "after-used", |
| 65 | + "ignoreRestSiblings": true, |
| 66 | + "varsIgnorePattern": "[iI]gnored", |
| 67 | + "argsIgnorePattern": "^_" |
| 68 | + } |
| 69 | + ], |
| 70 | + "ngrx/prefer-effect-callback-in-block-statement": "off", |
| 71 | + "@typescript-eslint/explicit-function-return-type":"error" |
39 | 72 | } |
40 | 73 | }, |
41 | 74 | { |
|
45 | 78 | "extends": [ |
46 | 79 | "plugin:@angular-eslint/template/recommended" |
47 | 80 | ], |
48 | | - "rules": {} |
| 81 | + "rules": { |
| 82 | + "@angular-eslint/template/conditional-complexity": "error", |
| 83 | + "@angular-eslint/template/no-call-expression": "error", |
| 84 | + "@angular-eslint/template/use-track-by-function": "error", |
| 85 | + "@angular-eslint/template/cyclomatic-complexity": [ |
| 86 | + "error", |
| 87 | + { |
| 88 | + "maxComplexity": 25 |
| 89 | + } |
| 90 | + ] |
| 91 | + } |
49 | 92 | } |
50 | 93 | ] |
51 | 94 | } |
0 commit comments