Commits

Yura Bondarenko authored ec6327edc2e
87968: Automatic ESLint install

Via CLI suggestion when running `ng lint` w/o ESLint on Angular 13
No tags

.eslintrc.json

Added
1 +{
2 + "root": true,
3 + "ignorePatterns": [
4 + "projects/**/*"
5 + ],
6 + "overrides": [
7 + {
8 + "files": [
9 + "*.ts"
10 + ],
11 + "parserOptions": {
12 + "project": [
13 + "tsconfig.json",
14 + "e2e/tsconfig.json"
15 + ],
16 + "createDefaultProgram": true
17 + },
18 + "extends": [
19 + "plugin:@angular-eslint/recommended",
20 + "plugin:@angular-eslint/template/process-inline-templates"
21 + ],
22 + "rules": {
23 + "@angular-eslint/directive-selector": [
24 + "error",
25 + {
26 + "type": "attribute",
27 + "prefix": "ds",
28 + "style": "camelCase"
29 + }
30 + ],
31 + "@angular-eslint/component-selector": [
32 + "error",
33 + {
34 + "type": "element",
35 + "prefix": "ds",
36 + "style": "kebab-case"
37 + }
38 + ]
39 + }
40 + },
41 + {
42 + "files": [
43 + "*.html"
44 + ],
45 + "extends": [
46 + "plugin:@angular-eslint/template/recommended"
47 + ],
48 + "rules": {}
49 + }
50 + ]
51 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut