forked from crexi-dev/angular-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
115 lines (115 loc) · 4.73 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
111
112
113
114
115
{
"root": true,
"overrides": [
{
"files": ["*.ts"],
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "crx",
"style": "camelCase",
"type": "attribute"
}
],
"@angular-eslint/component-selector": [
"error",
{
"prefix": "crx",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/use-pipe-transform-interface": ["off"], // currently broken
"@typescript-eslint/adjacent-overload-signatures": ["off"],
"@typescript-eslint/ban-types": ["error"],
"@typescript-eslint/member-ordering": ["off"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "property",
"format": ["camelCase", "PascalCase", "snake_case"]
},
{
"selector": "property",
"modifiers": ["readonly"],
"format": ["UPPER_CASE"]
},
{
"selector": "property",
"modifiers": ["requiresQuotes"],
"format": null
}
],
"@typescript-eslint/no-empty-interface": ["off"],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "_" }],
"arrow-body-style": ["error", "as-needed"],
"array-bracket-spacing": ["error"],
"arrow-parens": ["error"],
"arrow-spacing": ["error"],
"brace-style": ["error"],
"comma-dangle": ["error"],
"computed-property-spacing": ["error"],
"curly": ["error"],
"eol-last": ["error"],
"eqeqeq": ["error", "smart"],
"func-call-spacing": ["error"],
"function-call-argument-newline": ["error", "consistent"],
"function-paren-newline": ["error", "multiline"],
"indent": [
"error",
4,
{
"MemberExpression": 0,
"SwitchCase": 1
}
],
"key-spacing": ["error", { "afterColon": true, "beforeColon": false }],
"linebreak-style": ["error"],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"max-len": ["error", 120, { "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true }],
"new-parens": ["error"],
"no-caller": ["error"],
"no-case-declarations": ["off"],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-eval": ["error"],
"no-extra-boolean-cast": ["error"],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0,
"maxBOF": 0
}
],
"no-var": ["error"],
"no-unused-expressions": ["error"],
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "always"],
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error"],
"prefer-arrow-callback": ["error"],
"prefer-const": ["error"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"quote-props": ["error", "as-needed"],
"semi": ["error"],
"sort-keys": ["error", "asc", { "caseSensitive": false, "natural": true }],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error"],
"space-in-parens": ["error"],
"space-infix-ops": ["error"],
"spaced-comment": ["error"]
}
},
{
"files": ["*.html"],
"plugins": ["@angular-eslint/template"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}