|
3 | 3 | "overrides": [ |
4 | 4 | { |
5 | 5 | "files": ["*.ts"], |
6 | | - "plugins": ["ban"], |
7 | | - "parserOptions": { |
8 | | - "project": [ |
9 | | - "tsconfig.json" |
10 | | - ], |
11 | | - "createDefaultProgram": true |
12 | | - }, |
13 | 6 | "extends": [ |
14 | | - "plugin:@angular-eslint/ng-cli-compat", |
15 | | - "plugin:@angular-eslint/ng-cli-compat--formatting-add-on", |
| 7 | + "eslint:recommended", |
| 8 | + "plugin:@typescript-eslint/recommended", |
| 9 | + "plugin:@angular-eslint/recommended", |
16 | 10 | "plugin:@angular-eslint/template/process-inline-templates" |
17 | 11 | ], |
18 | 12 | "rules": { |
19 | | - "@angular-eslint/component-class-suffix": "off", |
20 | 13 | "@angular-eslint/component-selector": "off", |
21 | | - "@angular-eslint/directive-class-suffix": "off", |
22 | | - "@angular-eslint/directive-selector": "off", |
23 | | - "@typescript-eslint/dot-notation": "off", |
24 | | - "@angular-eslint/no-host-metadata-property": "off", |
25 | | - "@typescript-eslint/member-delimiter-style": "off", |
26 | | - "@typescript-eslint/naming-convention": [ |
27 | | - "error", |
28 | | - { |
29 | | - "selector": "property", |
30 | | - "format": ["camelCase"], |
31 | | - "filter": { |
32 | | - "regex": "^(\\[attr\\.|\\[class\\.|\\[style\\.)", |
33 | | - "match": false |
34 | | - } |
35 | | - } |
36 | | - ], |
37 | | - "@angular-eslint/no-output-on-prefix": "off", |
38 | | - "@typescript-eslint/explicit-member-accessibility": [ |
39 | | - "off", |
40 | | - { |
41 | | - "accessibility": "explicit" |
42 | | - } |
43 | | - ], |
44 | | - "@typescript-eslint/no-inferrable-types": "off", |
45 | | - "@typescript-eslint/member-ordering": "off", |
46 | | - "@typescript-eslint/no-unused-vars": "error", |
47 | | - "@typescript-eslint/no-non-null-assertion": "off", |
48 | | - "@typescript-eslint/quotes": [ |
49 | | - "error", |
50 | | - "single", |
51 | | - { |
52 | | - "avoidEscape": true, |
53 | | - "allowTemplateLiterals": true |
54 | | - } |
55 | | - ], |
56 | | - "@typescript-eslint/semi": [ |
57 | | - "error" |
58 | | - ], |
59 | | - "arrow-parens": [ |
60 | | - "off", |
61 | | - "always" |
62 | | - ], |
63 | | - "brace-style": [ |
64 | | - "error", |
65 | | - "1tbs" |
66 | | - ], |
67 | | - "import/order": "off", |
68 | | - "linebreak-style": [ |
69 | | - "error", |
70 | | - "unix" |
71 | | - ], |
72 | | - "max-len": [ |
73 | | - "error", |
74 | | - { |
75 | | - "code": 100 |
76 | | - } |
77 | | - ], |
78 | | - "ban/ban": [ |
79 | | - "error", |
80 | | - {"name": "fit"}, |
81 | | - {"name": "fdescribe"}, |
82 | | - {"name": "xit"}, |
83 | | - {"name": "xdescribe"}, |
84 | | - {"name": ["Object", "assign"], "message": "Use the spread operator instead."} |
85 | | - ], |
86 | | - "no-duplicate-imports": "error", |
87 | | - "no-redeclare": "error", |
88 | | - "object-shorthand": "error", |
89 | | - "no-underscore-dangle": "off", |
90 | | - "prefer-arrow/prefer-arrow-functions": "off", |
91 | | - "jsdoc/newline-after-description": "error", |
92 | | - "quote-props": "off" |
| 14 | + "@angular-eslint/no-output-on-prefix": "off" |
93 | 15 | } |
94 | 16 | }, |
95 | 17 | { |
96 | | - "files": [ |
97 | | - "*.html" |
98 | | - ], |
99 | | - "extends": [ |
100 | | - "plugin:@angular-eslint/template/recommended" |
101 | | - ], |
102 | | - "rules": { |
103 | | - "@angular-eslint/template/accessibility-alt-text": "error", |
104 | | - "@angular-eslint/template/accessibility-elements-content": "error", |
105 | | - "@angular-eslint/template/accessibility-label-for": "error", |
106 | | - "@angular-eslint/template/accessibility-table-scope": "error", |
107 | | - "@angular-eslint/template/accessibility-valid-aria": "error", |
108 | | - "@angular-eslint/template/click-events-have-key-events": "error", |
109 | | - "@angular-eslint/template/mouse-events-have-key-events": "error", |
110 | | - "@angular-eslint/template/no-autofocus": "error", |
111 | | - "@angular-eslint/template/no-distracting-elements": "error", |
112 | | - "@angular-eslint/template/no-positive-tabindex": "error" |
113 | | - } |
| 18 | + "files": ["*.html"], |
| 19 | + "extends": ["plugin:@angular-eslint/template/recommended"], |
| 20 | + "rules": {} |
114 | 21 | } |
115 | 22 | ] |
116 | 23 | } |
0 commit comments