/
.eslintrc.json
181 lines (181 loc) · 4.82 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"eslint:recommended",
"plugin:rxjs/recommended",
"plugin:@ngrx/recommended-requiring-type-checking",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"plugins": [
"eslint-plugin-rxjs"
],
"rules": {
"semi": "off",
"no-shadow": "off",
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "nbtutor",
"type": "attribute",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "nbtutor",
"style": "kebab-case"
}
],
"@typescript-eslint/semi": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
// Index signature
"signature",
// Fields
"private-static-field",
"private-decorated-field",
"private-instance-field",
"private-field",
"protected-abstract-field",
"protected-static-field",
"protected-decorated-field",
"protected-instance-field",
"protected-field",
"public-abstract-field",
"public-static-field",
"public-decorated-field",
"public-instance-field",
"public-field",
"abstract-field",
"static-field",
"instance-field",
"decorated-field",
"field",
// Constructors
"private-constructor",
"protected-constructor",
"public-constructor",
"constructor",
// Methods
"private-static-method",
"private-decorated-method",
"private-instance-method",
"private-method",
"protected-abstract-method",
"protected-static-method",
"protected-decorated-method",
"protected-instance-method",
"protected-method",
"public-abstract-method",
"public-static-method",
"public-decorated-method",
"public-instance-method",
"public-method",
"abstract-method",
"static-method",
"instance-method",
"decorated-method",
"method"
]
}
],
"brace-style": [
"error",
"1tbs"
],
"id-blacklist": "off",
"id-match": "off",
"no-underscore-dangle": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 0,
"maxBOF": 0
}
],
"rxjs/suffix-subjects": "error",
"rxjs/no-subject-unsubscribe": "error",
"rxjs/no-subject-value": "error",
"rxjs/no-unbound-methods": "error",
"rxjs/no-unsafe-catch": "error",
"rxjs/no-sharereplay": [
"error",
{
"allowConfig": true
}
],
"rxjs/no-exposed-subjects": [
"error",
{
"allowProtected": true
}
],
"rxjs/finnish": [
"error",
{
"functions": false,
"methods": false,
"parameters": true,
"properties": true,
"variables": true,
"names": {
"_$": false,
"store$": false,
"valueChanges$": false
}
}
],
"@ngrx/select-style": [
"error",
"operator"
],
"@ngrx/use-consistent-global-store-name": [
"error",
"_store$"
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}