forked from doubtfire-lms/doubtfire-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
79 lines (79 loc) · 2.08 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
{
"root": true,
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.*?.json"],
"createDefaultProgram": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"jasmine": true
},
"rules": {
"@angular-eslint/no-empty-lifecycle-method": "warn",
"@angular-eslint/component-class-suffix": "warn",
"@angular-eslint/no-output-on-prefix": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@angular-eslint/directive-selector": [
"warn",
{
"type": "attribute",
"prefix": "f",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"warn",
{
"type": "element",
"prefix": "f",
"style": "kebab-case"
}
],
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-this-alias": "warn",
"no-dupe-class-members": "warn",
"no-prototype-builtins": "warn",
"no-unused-vars": "off",
"no-useless-escape": "warn",
"no-var": "warn",
"quotes": [
"warn",
"single",
{
"allowTemplateLiterals": true
}
],
"prefer-const": "warn",
"prettier/prettier": "warn"
}
},
{
"files": ["*.component.html"],
"extends": ["plugin:@angular-eslint/template/recommended", "plugin:prettier/recommended"],
"rules": {
"max-len": [
"warn",
{
"code": 140
}
],
"prettier/prettier": "warn"
}
},
{
"files": ["*.component.ts"],
"extends": ["plugin:@angular-eslint/template/process-inline-templates"]
}
]
}