-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.04 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
{
"extends": "./.eslintrc-recommended-angular.json",
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "sudoku",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "sudoku",
"style": "camelCase",
"type": "attribute"
}
],
"@angular-eslint/prefer-on-push-component-change-detection": "off", // Currently the components do not work with OnPush
"import/no-extraneous-dependencies": "off", // TODO
"max-params": "warn", // TODO (warns for AppComponent.constructor, https://github.com/eslint/eslint/issues/7392 is closed)
"unicorn/no-null": "off" // "null" is needed for Firebase
}
},
{
"files": [
"*.component.html"
],
"rules": {
"@angular-eslint/template/use-track-by-function": "off" // Is not very useful, because often a number is used
}
},
{
"files": [
"*.component.ts"
],
"rules": {}
}
]
}