|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "ignorePatterns": [ |
| 4 | + "*.d.ts", |
| 5 | + "src/assets/stack-blitz/**/*.ts" |
| 6 | + ], |
| 7 | + "overrides": [ |
| 8 | + { |
| 9 | + "files": [ |
| 10 | + "*.ts" |
| 11 | + ], |
| 12 | + "plugins": [ |
| 13 | + "@stylistic", |
| 14 | + "@typescript-eslint", |
| 15 | + "ban" |
| 16 | + ], |
| 17 | + "parserOptions": { |
| 18 | + "project": [ |
| 19 | + "tsconfig.json", |
| 20 | + "e2e/tsconfig.json" |
| 21 | + ], |
| 22 | + "createDefaultProgram": true |
| 23 | + }, |
| 24 | + "extends": [ |
| 25 | + "plugin:@angular-eslint/ng-cli-compat", |
| 26 | + "plugin:@angular-eslint/ng-cli-compat--formatting-add-on", |
| 27 | + "plugin:@angular-eslint/template/process-inline-templates", |
| 28 | + "plugin:@stylistic/disable-legacy" |
| 29 | + ], |
| 30 | + "rules": { |
| 31 | + "@angular-eslint/component-class-suffix": "off", |
| 32 | + "@angular-eslint/component-selector": "off", |
| 33 | + "@angular-eslint/directive-class-suffix": "off", |
| 34 | + "@angular-eslint/directive-selector": "off", |
| 35 | + "@typescript-eslint/dot-notation": "off", |
| 36 | + "@typescript-eslint/member-delimiter-style": "off", |
| 37 | + "@typescript-eslint/explicit-member-accessibility": [ |
| 38 | + "off", |
| 39 | + { |
| 40 | + "accessibility": "explicit" |
| 41 | + } |
| 42 | + ], |
| 43 | + "@typescript-eslint/no-inferrable-types": "off", |
| 44 | + "@typescript-eslint/member-ordering": "off", |
| 45 | + "@typescript-eslint/no-unused-vars": "error", |
| 46 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 47 | + "@typescript-eslint/ban-types": "off", |
| 48 | + "@stylistic/quotes": [ |
| 49 | + "error", |
| 50 | + "single", |
| 51 | + { |
| 52 | + "avoidEscape": true, |
| 53 | + "allowTemplateLiterals": true |
| 54 | + } |
| 55 | + ], |
| 56 | + "@stylistic/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 | + { |
| 81 | + "name": "fit" |
| 82 | + }, |
| 83 | + { |
| 84 | + "name": "fdescribe" |
| 85 | + }, |
| 86 | + { |
| 87 | + "name": "xit" |
| 88 | + }, |
| 89 | + { |
| 90 | + "name": "xdescribe" |
| 91 | + }, |
| 92 | + { |
| 93 | + "name": [ |
| 94 | + "Object", |
| 95 | + "assign" |
| 96 | + ], |
| 97 | + "message": "Use the spread operator instead." |
| 98 | + } |
| 99 | + ], |
| 100 | + "no-duplicate-imports": "error", |
| 101 | + "no-redeclare": "error", |
| 102 | + "object-shorthand": "off", |
| 103 | + "no-underscore-dangle": "off", |
| 104 | + "prefer-arrow/prefer-arrow-functions": "off", |
| 105 | + "jsdoc/newline-after-description": "off", |
| 106 | + "quote-props": "off" |
| 107 | + } |
| 108 | + }, |
| 109 | + { |
| 110 | + "files": [ |
| 111 | + "*.html" |
| 112 | + ], |
| 113 | + "extends": [ |
| 114 | + "plugin:@angular-eslint/template/recommended" |
| 115 | + ], |
| 116 | + "rules": { |
| 117 | + "@angular-eslint/template/accessibility-alt-text": "error", |
| 118 | + "@angular-eslint/template/accessibility-elements-content": "error", |
| 119 | + "@angular-eslint/template/accessibility-label-for": "error", |
| 120 | + "@angular-eslint/template/accessibility-table-scope": "error", |
| 121 | + "@angular-eslint/template/accessibility-valid-aria": "error", |
| 122 | + "@angular-eslint/template/click-events-have-key-events": "error", |
| 123 | + "@angular-eslint/template/mouse-events-have-key-events": "error", |
| 124 | + "@angular-eslint/template/no-autofocus": "error", |
| 125 | + "@angular-eslint/template/no-distracting-elements": "error", |
| 126 | + "@angular-eslint/template/no-positive-tabindex": "error" |
| 127 | + } |
| 128 | + } |
| 129 | + ] |
| 130 | +} |
0 commit comments