-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
216 lines (205 loc) · 6.97 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"env": {
"browser": true,
"es6": true,
"commonjs": true,
"amd": true,
"phantomjs": true,
"jquery": true,
"node": false,
"mocha": false,
"jasmine": false,
"qunit": true
},
"plugins": ["prettier", "jsdoc", "angular", "@typescript-eslint", "@typescript-eslint/tslint"],
"extends": ["prettier", "eslint:recommended", "plugin:jsdoc/recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"angular": "readonly",
"sdk": "readonly",
"DetectRTC": "readonly",
"chrome": true,
"$iq": true,
"$pres": true,
"$msg": true,
"config": true,
"app": true,
"emojione": true,
"requirejs": true,
"MediaStreamTrack": true,
"Strophe": true,
"process": true,
"adapter": true,
"Base64": true,
"Ba64": true,
"RBError": true,
"VCard": true,
"version": true,
"FileTransfert": true,
"moment": true,
"MD5": true,
"toByteArray": true,
"Uint8Array": true,
"Console.Re": true,
"base64EncArr": true,
"base64DecToArr": true,
"anonymizePhoneNumber": true,
"Clipboard": true,
"webkitSpeechRecognition": true,
"SpeechRecognition": true,
"parseInt": true,
"AuthenticationContext": true,
"CryptoJS": true,
"sortObjectByProperty": true,
"imprint": true,
"_escape": true
},
"rules": {
"semi": [2, "always"],
"max-len": [2, {"code": 300}],
"no-multiple-empty-lines": "error",
"no-extra-parens": [2, "functions"],
"no-inner-declarations": [2, "functions"],
"max-depth": [2, 6],
"no-shadow": 2,
"no-label-var": 2,
"no-undef-init": 2,
"no-unused-vars": [2, {
"vars": "all",
"args": "all",
"argsIgnorePattern": "^__"
}
],
"strict": 2,
"accessor-pairs": 2,
"consistent-return": 1,
"default-case": 2,
"dot-location": [2, "property"],
"dot-notation": [2, { "allowKeywords": true }],
"curly": 0,
"eofline": 0,
"eqeqeq": 2,
"guard-for-in": 1,
"no-alert": 2,
"no-caller": 2,
"no-cond-assign": 2,
"no-div-regex": 2,
"no-debugger": 2,
"no-else-return": 2,
"no-labels": 2,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": [2, { "exceptions": [ "String" ]}],
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-implicit-coercion": 2,
"no-implied-eval": 2,
"no-iterator": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-str": 2,
"no-new-func": 2,
"no-new-wrappers": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-return-assign": 2,
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-throw-literal": 2,
"no-unused-expressions": 2,
"no-useless-call": 2,
"radix": 2,
"wrap-iife": 2,
"yoda": [2, "never"],
"array-bracket-spacing": [2, "never"],
"block-spacing": [2, "always"],
"brace-style": [0, "1tbs"],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"id-length": [1, { "min": 2, "properties": "never", "exceptions": [ "i", "j", "$", "_" ]}],
"new-cap": [ 2, {
"newIsCap": true,
"capIsNew": false,
"capIsNewExceptions": [
"Event"
]
}
],
"new-parens": 2,
"no-array-constructor": 2,
"no-new-object": 2,
"func-call-spacing": 2,
"no-unneeded-ternary": 2,
"one-var": [2, "never"],
"operator-linebreak": [2, "after"],
"quote-props": [2, "as-needed", { "keywords": true, "unnecessary": false } ],
"quotes": [0, "double", "avoid-escape"],
"semi-spacing": [1, { "before": false, "after": true }],
"space-before-blocks": [1, "always" ],
"space-before-function-paren": [1, "never"],
"keyword-spacing": 1,
"space-infix-ops": [1, { "int32Hint": true }],
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"wrap-regex": 2,
"no-console": 0,
"no-unused-labels": 2,
"@typescript-eslint/class-name-casing": 2,
"@typescript-eslint/array-type": "error",
"@typescript-eslint/explicit-member-accessibility": ["off",{ "accessibility": "explicit" }],
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-delimiter-style": [ "error", {
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/quotes": ["off", "double"],
"@typescript-eslint/semi": "error",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/no-use-before-define": [0, "call-signature", "parameter", "property-declaration", "variable-declaration", "member-variable-declaration" ],
"@typescript-eslint/type-annotation-spacing": 2,
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/prefer-includes": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/prefer-string-starts-ends-with": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"no-var": "error",
"space-in-parens": ["error", "never"],
"prefer-const": ["error"],
"arrow-spacing": ["error"],
"angular/module-getter": 1,
"angular/module-setter": 1,
"angular/on-watch": 2
}
}