-
Notifications
You must be signed in to change notification settings - Fork 68
/
.eslintrc.json
90 lines (90 loc) · 3.41 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
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"parser": "@typescript-eslint/parser",
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"createDefaultProgram": true
},
"extends": ["plugin:@angular-eslint/recommended", "plugin:@angular-eslint/template/process-inline-templates"],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "app",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"style": "camelCase",
"type": "attribute"
}
],
// "arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/naming-convention": ["error", { "selector": "class", "format": ["PascalCase"] }],
"spaced-comment": ["error", "always", { "exceptions": ["*"] }],
"curly": ["error", "all"],
"eol-last": ["error", "always"],
"guard-for-in": "error",
"no-restricted-imports": ["error", "rxjs/Rx"],
"indent": "off",
"no-labels": ["error", { "allowLoop": true, "allowSwitch": true }],
"max-len": ["error", { "code": 140 }],
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/member-ordering": [
"error",
{
"default": ["static-field", "instance-field", "static-method", "instance-method"]
}
],
"no-caller": "error",
"no-bitwise": "error",
"no-console": ["error", { "allow": ["warn", "error", "log"] }],
"no-new-wrappers": "error",
"no-debugger": "error",
"no-empty": "off",
"@typescript-eslint/no-empty-interface": "error",
"no-eval": "error",
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreParameters": true }],
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-throw-literal": "error",
"no-fallthrough": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-var": "error",
"sort-keys": "off",
"brace-style": "error",
"radix": "error",
"semi": "error",
"eqeqeq": ["error", "always", { "null": "ignore" }],
"@angular-eslint/no-empty-lifecycle-method": "off",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"@angular-eslint/directive-class-suffix": "error",
"@angular-eslint/component-class-suffix": "error",
"@angular-eslint/use-pipe-transform-interface": "error",
"@angular-eslint/no-output-rename": "error",
"@angular-eslint/no-input-rename": "error",
"@angular-eslint/no-host-metadata-property": "error",
"@angular-eslint/no-outputs-metadata-property": "error",
"@angular-eslint/no-inputs-metadata-property": "error",
"@angular-eslint/no-output-on-prefix": "error"
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {
"@angular-eslint/template/eqeqeq": "off"
}
}
]
}