1
1
{
2
- "env" : {
3
- "browser" : true ,
4
- "node" : true ,
5
- "es6" : true ,
6
- "es2017" : true
7
- },
2
+ "root" : true ,
3
+ "ignorePatterns" : [
4
+ " projects/**/*"
5
+ ],
8
6
"overrides" : [
9
7
{
10
8
"files" : [
11
9
" *.ts"
12
10
],
13
- "extends" : [
14
- " eslint:recommended" ,
15
- " plugin:@typescript-eslint/eslint-recommended" ,
16
- " plugin:@typescript-eslint/recommended" ,
17
- " plugin:@typescript-eslint/recommended-requiring-type-checking"
18
- ],
19
- "parser" : " @typescript-eslint/parser" ,
20
11
"parserOptions" : {
21
- "ecmaVersion" : 10 ,
22
12
"project" : [
23
13
" ./tsconfig.serve.json" ,
24
14
" ./src/tsconfig.app.json" ,
25
15
" ./src/tsconfig.spec.json" ,
26
16
" ./e2e/tsconfig.e2e.json"
27
17
],
28
- "sourceType" : " module" ,
29
- "ecmaFeatures" : {
30
- "modules" : true
31
- }
18
+ "createDefaultProgram" : true
32
19
},
33
- "plugins " : [
34
- " @typescript -eslint" ,
35
- " @angular-eslint/eslint-plugin "
20
+ "extends " : [
21
+ " plugin:@angular -eslint/recommended " ,
22
+ " plugin: @angular-eslint/template/process-inline-templates "
36
23
],
37
24
"rules" : {
38
- "@typescript-eslint/indent" : [
25
+ "@angular-eslint/directive-selector" : 0 ,
26
+ "@angular-eslint/component-selector" : [
39
27
" error" ,
40
- 2 ,
41
28
{
42
- "SwitchCase" : 1 ,
43
- "CallExpression" : {
44
- "arguments" : " first"
45
- },
46
- "FunctionExpression" : {
47
- "parameters" : " first"
48
- },
49
- "FunctionDeclaration" : {
50
- "parameters" : " first"
51
- }
29
+ "type" : " element" ,
30
+ "prefix" : " app" ,
31
+ "style" : " kebab-case"
52
32
}
53
- ],
54
- "@typescript-eslint/no-empty-function" : 0 ,
55
- "@typescript-eslint/no-explicit-any" : 0 ,
56
- "@typescript-eslint/no-var-requires" : 0 ,
57
- "@typescript-eslint/no-unsafe-call" : 0 ,
58
- "@typescript-eslint/no-unsafe-member-access" : 0 ,
59
- "@typescript-eslint/no-unsafe-assignment" : 0 ,
60
- "@typescript-eslint/no-unsafe-return" : 0 ,
61
- "@typescript-eslint/no-floating-promises" : 0 ,
62
- "@typescript-eslint/semi" : " error" ,
63
- "@angular-eslint/use-injectable-provided-in" : " error" ,
64
- "@angular-eslint/no-attribute-decorator" : " error"
33
+ ]
65
34
}
66
35
},
67
36
{
68
37
"files" : [
69
38
" *.component.html"
70
39
],
71
- "parser" : " @angular-eslint/template-parser" ,
72
- "plugins" : [
73
- " @angular-eslint/template"
40
+ "extends" : [
41
+ " plugin:@angular-eslint/template/recommended"
74
42
],
75
43
"rules" : {
76
44
"@angular-eslint/template/banana-in-box" : " error" ,
77
45
"@angular-eslint/template/no-negated-async" : " error"
78
46
}
79
47
}
80
48
]
81
- }
49
+ }
0 commit comments