|
1 | 1 | {
|
2 | 2 | "root": true,
|
3 |
| - "ignorePatterns": [ |
4 |
| - "*.js", |
5 |
| - "styleguide/**/*.avoid.ts" |
6 |
| - ], |
| 3 | + "ignorePatterns": ["*.js", "styleguide/**/*.avoid.ts"], |
7 | 4 | "overrides": [
|
8 | 5 | {
|
9 |
| - "files": [ |
10 |
| - "*.html" |
11 |
| - ], |
12 |
| - "extends": [ |
13 |
| - "plugin:@angular-eslint/template/recommended" |
14 |
| - ], |
| 6 | + "files": ["*.html"], |
| 7 | + "extends": ["plugin:@angular-eslint/template/recommended"], |
15 | 8 | "rules": {
|
16 |
| - "@angular-eslint/template/accessibility-alt-text": "error", |
17 |
| - "@angular-eslint/template/accessibility-elements-content": "error", |
18 |
| - "@angular-eslint/template/accessibility-label-has-associated-control": "error", |
19 |
| - "@angular-eslint/template/accessibility-table-scope": "error", |
20 |
| - "@angular-eslint/template/accessibility-valid-aria": "error", |
| 9 | + "@angular-eslint/template/alt-text": "error", |
| 10 | + "@angular-eslint/template/elements-content": "error", |
| 11 | + "@angular-eslint/template/label-has-associated-control": "error", |
| 12 | + "@angular-eslint/template/table-scope": "error", |
| 13 | + "@angular-eslint/template/valid-aria": "error", |
21 | 14 | "@angular-eslint/template/click-events-have-key-events": "error",
|
22 | 15 | "@angular-eslint/template/eqeqeq": "off",
|
23 | 16 | "@angular-eslint/template/mouse-events-have-key-events": "error",
|
|
27 | 20 | }
|
28 | 21 | },
|
29 | 22 | {
|
30 |
| - "files": [ |
31 |
| - "*.ts" |
32 |
| - ], |
| 23 | + "files": ["*.ts"], |
33 | 24 | "extends": [
|
34 |
| - "plugin:@angular-eslint/ng-cli-compat", |
35 |
| - "plugin:@angular-eslint/ng-cli-compat--formatting-add-on", |
36 | 25 | "plugin:@angular-eslint/template/process-inline-templates"
|
37 | 26 | ],
|
38 | 27 | "parserOptions": {
|
39 | 28 | "createDefaultProgram": false,
|
40 | 29 | "project": "content/examples/tsconfig.eslint.json"
|
41 | 30 | },
|
| 31 | + "plugins": [ |
| 32 | + "@typescript-eslint", |
| 33 | + "@angular-eslint", "eslint-plugin-import", "eslint-plugin-jsdoc", "eslint-plugin-prefer-arrow"], |
42 | 34 | "rules": {
|
| 35 | + "@typescript-eslint/interface-name-prefix": "off", |
| 36 | + "@typescript-eslint/explicit-member-accessibility": "off", |
| 37 | + "sort-keys": "off", |
| 38 | + "@angular-eslint/component-class-suffix": "error", |
| 39 | + |
| 40 | + "@angular-eslint/contextual-lifecycle": "error", |
| 41 | + "@angular-eslint/directive-class-suffix": "error", |
| 42 | + |
| 43 | + "@angular-eslint/no-conflicting-lifecycle": "error", |
| 44 | + "@angular-eslint/no-host-metadata-property": "error", |
| 45 | + "@angular-eslint/no-input-rename": "error", |
| 46 | + "@angular-eslint/no-inputs-metadata-property": "error", |
| 47 | + "@angular-eslint/no-output-native": "error", |
| 48 | + "@angular-eslint/no-output-on-prefix": "error", |
| 49 | + "@angular-eslint/no-output-rename": "error", |
| 50 | + "@angular-eslint/no-outputs-metadata-property": "error", |
| 51 | + "@angular-eslint/use-lifecycle-interface": "error", |
| 52 | + "@angular-eslint/use-pipe-transform-interface": "error", |
| 53 | + "@typescript-eslint/adjacent-overload-signatures": "error", |
| 54 | + "@typescript-eslint/array-type": "off", |
| 55 | + |
| 56 | + "@typescript-eslint/consistent-type-assertions": "error", |
| 57 | + "@typescript-eslint/no-empty-function": "off", |
| 58 | + "@typescript-eslint/no-empty-interface": "error", |
| 59 | + "@typescript-eslint/no-explicit-any": "off", |
| 60 | + "@typescript-eslint/no-inferrable-types": [ |
| 61 | + "error", |
| 62 | + { |
| 63 | + "ignoreParameters": true |
| 64 | + } |
| 65 | + ], |
| 66 | + "@typescript-eslint/no-misused-new": "error", |
| 67 | + "@typescript-eslint/no-namespace": "error", |
| 68 | + "@typescript-eslint/no-parameter-properties": "off", |
| 69 | + "@typescript-eslint/no-use-before-define": "off", |
| 70 | + "@typescript-eslint/no-var-requires": "off", |
| 71 | + "@typescript-eslint/prefer-for-of": "error", |
| 72 | + "@typescript-eslint/prefer-function-type": "error", |
| 73 | + "@typescript-eslint/prefer-namespace-keyword": "error", |
| 74 | + "@typescript-eslint/triple-slash-reference": [ |
| 75 | + "error", |
| 76 | + { |
| 77 | + "path": "always", |
| 78 | + "types": "prefer-import", |
| 79 | + "lib": "always" |
| 80 | + } |
| 81 | + ], |
| 82 | + "@typescript-eslint/unified-signatures": "error", |
| 83 | + "complexity": "off", |
| 84 | + "constructor-super": "error", |
| 85 | + "eqeqeq": ["error", "smart"], |
| 86 | + "guard-for-in": "error", |
| 87 | + "id-blacklist": [ |
| 88 | + "error", |
| 89 | + "any", |
| 90 | + "Number", |
| 91 | + "number", |
| 92 | + "String", |
| 93 | + "string", |
| 94 | + "Boolean", |
| 95 | + "boolean", |
| 96 | + "Undefined", |
| 97 | + "undefined" |
| 98 | + ], |
| 99 | + "id-match": "error", |
| 100 | + "import/no-deprecated": "warn", |
| 101 | + "jsdoc/no-types": "error", |
| 102 | + "max-classes-per-file": "off", |
| 103 | + "no-bitwise": "error", |
| 104 | + "no-caller": "error", |
| 105 | + "no-cond-assign": "error", |
| 106 | + |
| 107 | + "no-debugger": "error", |
| 108 | + "no-empty": "off", |
| 109 | + "no-eval": "error", |
| 110 | + "no-fallthrough": "error", |
| 111 | + "no-invalid-this": "off", |
| 112 | + "no-new-wrappers": "error", |
| 113 | + "no-restricted-imports": [ |
| 114 | + "error", |
| 115 | + { |
| 116 | + "name": "rxjs/Rx", |
| 117 | + "message": "Please import directly from 'rxjs' instead" |
| 118 | + } |
| 119 | + ], |
| 120 | + "no-throw-literal": "error", |
| 121 | + "no-undef-init": "error", |
| 122 | + "no-unsafe-finally": "error", |
| 123 | + "no-unused-labels": "error", |
| 124 | + "no-var": "error", |
| 125 | + "object-shorthand": "error", |
| 126 | + "one-var": ["error", "never"], |
| 127 | + "prefer-const": "error", |
| 128 | + "radix": "error", |
| 129 | + "use-isnan": "error", |
| 130 | + "valid-typeof": "off", |
| 131 | + "arrow-body-style": "error", |
| 132 | + "arrow-parens": "off", |
| 133 | + "comma-dangle": "off", |
| 134 | + "curly": "error", |
| 135 | + "eol-last": "error", |
| 136 | + "jsdoc/check-alignment": "error", |
| 137 | + "new-parens": "error", |
| 138 | + "no-multiple-empty-lines": "off", |
| 139 | + "no-trailing-spaces": "error", |
| 140 | + "quote-props": ["error", "as-needed"], |
| 141 | + "space-before-function-paren": [ |
| 142 | + "error", |
| 143 | + { |
| 144 | + "anonymous": "never", |
| 145 | + "asyncArrow": "always", |
| 146 | + "named": "never" |
| 147 | + } |
| 148 | + ], |
| 149 | + "@typescript-eslint/semi": ["error", "always"], |
| 150 | + "@typescript-eslint/type-annotation-spacing": "error", |
| 151 | + |
43 | 152 | "@typescript-eslint/ban-types": "error",
|
44 | 153 | "@angular-eslint/component-selector": [
|
45 | 154 | "error",
|
|
61 | 170 | "@typescript-eslint/dot-notation": ["error", {"allowIndexSignaturePropertyAccess": true}],
|
62 | 171 | "indent": "off",
|
63 | 172 | "max-len": ["error", {"code": 120, "ignoreUrls": true}],
|
64 |
| - "@typescript-eslint/member-delimiter-style": ["error", { |
65 |
| - "singleline": { |
66 |
| - "delimiter": "comma", |
67 |
| - "requireLast": false |
| 173 | + "@typescript-eslint/member-delimiter-style": [ |
| 174 | + "error", |
| 175 | + { |
| 176 | + "singleline": { |
| 177 | + "delimiter": "comma", |
| 178 | + "requireLast": false |
| 179 | + } |
68 | 180 | }
|
69 |
| - }], |
| 181 | + ], |
70 | 182 | "@typescript-eslint/member-ordering": "off",
|
71 | 183 | "@typescript-eslint/naming-convention": "off",
|
72 | 184 | "no-console": ["error", {"allow": ["log", "warn", "error"]}],
|
|
88 | 200 | "no-use-before-define": "off",
|
89 | 201 | "prefer-arrow/prefer-arrow-functions": "off",
|
90 | 202 | "quotes": "off",
|
91 |
| - "@typescript-eslint/quotes": ["error", "single", {"avoidEscape": true, "allowTemplateLiterals": true }], |
| 203 | + "@typescript-eslint/quotes": [ |
| 204 | + "error", |
| 205 | + "single", |
| 206 | + {"avoidEscape": true, "allowTemplateLiterals": true} |
| 207 | + ], |
92 | 208 | "semi": "error"
|
93 | 209 | }
|
94 | 210 | }
|
|
0 commit comments