-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
38 lines (38 loc) · 1.38 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
{
"root": true,
"overrides": [
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["tsconfig.(app|server).json"]
},
"extends": [
"plugin:@angular-eslint/all",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/directive-selector": ["warn", { "type": "attribute", "prefix": "app", "style": "camelCase" }],
"@angular-eslint/component-selector": ["warn", { "type": "element", "prefix": "app", "style": "kebab-case" }],
"@angular-eslint/prefer-standalone":"off",
"@angular-eslint/prefer-standalone-component":"off",
"@typescript-eslint/no-extraneous-class": "off",
"prettier/prettier": ["warn", { "endOfLine": "auto" }]
}
},
{
"files": ["*.html"],
"parser": "@angular-eslint/template-parser",
"extends": ["plugin:@angular-eslint/template/all", "plugin:prettier/recommended"],
"rules": {
"@angular-eslint/template/i18n": "off",
"@angular-eslint/template/prefer-ngsrc": "off",
"@angular-eslint/template/no-inline-styles": "off",
"@angular-eslint/template/no-any": "off",
"prettier/prettier": ["warn", { "endOfLine": "auto" }]
}
}
]
}