|
1 | 1 | { |
2 | 2 | "root": true, |
3 | 3 | "ignorePatterns": ["projects/**/*"], |
4 | | - "plugins": ["unused-imports", "cypress", "jasmine"], |
5 | | - "env": { |
6 | | - "jasmine": true |
7 | | - }, |
| 4 | + "plugins": ["unused-imports"], |
8 | 5 | "overrides": [ |
9 | 6 | { |
10 | 7 | "files": ["*.ts"], |
|
16 | 13 | "eslint:recommended", |
17 | 14 | "plugin:@typescript-eslint/recommended-requiring-type-checking", |
18 | 15 | "plugin:@angular-eslint/all", |
19 | | - "plugin:cypress/recommended", |
20 | | - "plugin:jasmine/recommended", |
21 | 16 | "plugin:prettier/recommended" // This should always be the last in the extends array |
22 | 17 | ], |
23 | 18 | "rules": { |
24 | 19 | "@angular-eslint/sort-ngmodule-metadata-arrays": "off", |
25 | 20 | "@angular-eslint/prefer-on-push-component-change-detection": "off", |
26 | 21 | "unused-imports/no-unused-imports": "error", |
27 | 22 | "no-console": ["error", { "allow": ["warn", "error"] }], |
28 | | - "jasmine/no-spec-dupes": [1, "branch"], |
29 | 23 | "@typescript-eslint/unbound-method": "off" |
30 | 24 | } |
31 | 25 | }, |
| 26 | + { |
| 27 | + "files": ["*.spec.ts", "**/mocks/*.ts"], |
| 28 | + "parserOptions": { |
| 29 | + "project": ["tsconfig.json"], |
| 30 | + "createDefaultProgram": true |
| 31 | + }, |
| 32 | + "extends": [ |
| 33 | + "eslint:recommended", |
| 34 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 35 | + "plugin:@angular-eslint/all", |
| 36 | + "plugin:prettier/recommended" // This should always be the last in the extends array |
| 37 | + ], |
| 38 | + "rules": { |
| 39 | + "@angular-eslint/sort-ngmodule-metadata-arrays": "off", |
| 40 | + "@angular-eslint/prefer-on-push-component-change-detection": "off", |
| 41 | + "unused-imports/no-unused-imports": "error", |
| 42 | + "no-console": ["error", { "allow": ["warn", "error"] }], |
| 43 | + "@typescript-eslint/unbound-method": "off", |
| 44 | + "@typescript-eslint/no-explicit-any": "off", |
| 45 | + "@typescript-eslint/ban-types": "off" |
| 46 | + } |
| 47 | + }, |
32 | 48 | { |
33 | 49 | "files": ["*.html"], |
34 | 50 | "extends": [ |
|
39 | 55 | "@angular-eslint/template/i18n": "off", |
40 | 56 | "@angular-eslint/template/cyclomatic-complexity": "off", |
41 | 57 | "@angular-eslint/template/no-call-expression": "off", |
42 | | - "@angular-eslint/template/no-autofocus": "off" |
| 58 | + "@angular-eslint/template/no-autofocus": "off", |
| 59 | + "@angular-eslint/template/no-interpolation-in-attributes": "off", |
| 60 | + "@angular-eslint/template/button-has-type": "off", |
| 61 | + "@angular-eslint/template/no-inline-styles": "off", |
| 62 | + "@angular-eslint/template/accessibility-interactive-supports-focus": "off", |
| 63 | + "@angular-eslint/template/attributes-order": "off" |
43 | 64 | } |
44 | 65 | } |
45 | 66 | ] |
|
0 commit comments