-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy path.eslintrc.json
98 lines (92 loc) · 3 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": ["tsconfig.(app|spec).json"]
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:@angular-eslint/all",
"plugin:@angular-eslint/recommended--extra",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@typescript-eslint/no-extraneous-class": "off",
"@angular-eslint/prefer-on-push-component-change-detection": "off",
"@angular-eslint/prefer-output-readonly": "off",
"@angular-eslint/component-selector": [
"error",
{
"type": ["element", "attribute"],
"prefix": ["app", "eva"],
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": ["element", "attribute"],
"prefix": ["app", "eva"],
"style": "kebab-case"
}
],
// @angular-eslint/sort-ngmodule-metadata-arrays is supposed to
// eventually be replaced by @angular-eslint/sort-imports-metadata,
// at which point this rule may be reinstated (especially if it
// allows for import groups). Here's the related issue:
// https://github.com/angular-eslint/angular-eslint/issues/1232
"@angular-eslint/sort-ngmodule-metadata-arrays": "off"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {
"@angular-eslint/template/accessibility-elements-content": "error",
"@angular-eslint/template/accessibility-table-scope": "error",
"@angular-eslint/template/banana-in-box": "error",
"@angular-eslint/template/button-has-type": "error",
"@angular-eslint/template/no-any": "error",
"@angular-eslint/template/no-autofocus": "error",
"@angular-eslint/template/no-call-expression": "error",
"@angular-eslint/template/no-distracting-elements": "error",
"@angular-eslint/template/no-duplicate-attributes": "error",
"@angular-eslint/template/no-interpolation-in-attributes": "error",
"@angular-eslint/template/no-negated-async": "error",
"@angular-eslint/template/no-positive-tabindex": "error",
"@angular-eslint/template/conditional-complexity": [
"error",
{
"maxComplexity": 3
}
],
"@angular-eslint/template/cyclomatic-complexity": [
"error",
{
"maxComplexity": 3
}
],
"@angular-eslint/template/no-inline-styles": [
"error",
{
"allowBindToStyle": true
}
]
}
}
]
}