-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc
43 lines (42 loc) · 1.33 KB
/
.eslintrc
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
{
"root": true,
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.*?.json"],
"createDefaultProgram": true,
},
"extends": [
"plugin:@angular-eslint/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
"rules": {
"@angular-eslint/prefer-on-push-component-change-detection": ["error"],
// TODO add rule for vflow prefix
"@angular-eslint/component-selector": "off",
// TODO add rule for vflow prefix
"@angular-eslint/directive-selector": "off",
"@angular-eslint/prefer-standalone": "error",
"@angular-eslint/prefer-output-readonly": "warn",
"@angular-eslint/no-duplicates-in-metadata-arrays": "warn",
"@typescript-eslint/no-explicit-any": "off",
},
},
{
"files": ["*.component.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {
"@angular-eslint/template/prefer-control-flow": "error",
"@angular-eslint/template/attributes-order": "error",
"@angular-eslint/template/prefer-self-closing-tags": "warn",
},
},
{
"files": ["*.component.ts"],
"extends": ["plugin:@angular-eslint/template/process-inline-templates"],
},
],
}