-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy path.eslintrc.json
73 lines (73 loc) · 2.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
{
"root": true,
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
"static-field",
"instance-field",
"static-method",
"instance-method"
]
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase"]
}
],
"@angular-eslint/component-class-suffix": "off",
"@angular-eslint/no-host-metadata-property": "error",
"@angular-eslint/no-inputs-metadata-property": "error",
"@angular-eslint/no-output-rename": "error",
"@angular-eslint/use-lifecycle-interface": "error",
"@angular-eslint/use-pipe-transform-interface": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"max-len": ["error", { "code": 140 }],
"no-console": "off",
"curly": "error",
"eqeqeq": "error",
"no-empty": "off",
"arrow-parens": ["error", "as-needed"],
"object-shorthand": "error",
"eol-last": "error",
"import/order": "off",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-trailing-spaces": "error"
}
},
{
"files": ["*.html"],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}