-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.json
110 lines (110 loc) · 3.19 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
99
100
101
102
103
104
105
106
107
108
109
110
{
"root": true,
"ignorePatterns": [
"projects/**/*",
"set-env.js",
"src/environments/*",
"src/**/*.spec.ts"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "vc",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "vc",
"style": "kebab-case"
}
],
"no-duplicate-imports": 2,
"no-cond-assign": 2,
"no-sparse-arrays": 2,
"no-import-assign": 2,
"no-var": 2,
"no-param-reassign": 2,
"no-await-in-loop": 2,
"no-compare-neg-zero": 2,
"no-duplicate-case": 2,
"no-delete-var": 2,
"no-eval": 2,
"no-extra-boolean-cast": 2,
"no-extra-semi": 2,
"no-global-assign": 2,
"no-lonely-if": 2,
"no-nonoctal-decimal-escape": 2,
"no-octal": 2,
"no-shadow-restricted-names": 2,
"no-shadow": 1,
"no-script-url": 2,
"no-unused-labels": 2,
"no-useless-catch": 2,
"no-with": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": 2,
"no-mixed-spaces-and-tabs": 0,
"complexity": ["error", 8],
"prefer-spread": 2,
"prefer-arrow-callback": 2,
"prefer-destructuring": 2,
"max-classes-per-file": ["error", 1],
"max-depth": ["error", 4],
"max-lines": ["error", {"max": 400, "skipComments": true}],
"max-lines-per-function": ["error", {"max": 70, "IIFEs": true, "skipComments": true}],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 6],
"max-statements": ["error", 10],
"max-len": ["error", {
"code": 140,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true
}],
"max-statements-per-line": ["error", { "max": 1 }],
"linebreak-style": ["error", "unix"],
"operator-linebreak": ["error", "after"],
"no-irregular-whitespace": ["error", { "skipComments": true }],
"no-trailing-spaces": ["error", {
"ignoreComments": true
}],
"no-whitespace-before-property": 2,
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}],
"indent": ["error", "tab"],
"no-unused-private-class-members": 2,
"quotes": ["error", "single"],
"radix": "error",
"semi": ["error", "always"]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}