@textback/notification-widget 2.0.0 → 2.0.1-102913
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintrc.js +291 -291
- package/build/index.js +12 -0
- package/build/sdk.js +9 -0
- package/package.json +70 -68
- package/promote_tag.sh +1 -1
- package/readme.md +569 -490
- package/server.js +8 -4
- package/src/libraries/ai.1.0.11.js +4088 -4088
- package/src/libraries/localization/locales/cs.js +14 -12
- package/src/libraries/localization/locales/en.js +14 -12
- package/src/libraries/localization/locales/index.js +8 -8
- package/src/libraries/localization/locales/pl.js +14 -12
- package/src/libraries/localization/locales/ro.js +14 -12
- package/src/libraries/localization/locales/ru.js +13 -12
- package/src/libraries/localization/locales/uk.js +14 -12
- package/src/libraries/localization/text.js +9 -9
- package/src/libraries/t.js +82 -82
- package/src/sdk/channels/channel.js +30 -30
- package/src/sdk/channels/facebook.js +13 -13
- package/src/sdk/channels/factory.js +3 -3
- package/src/sdk/channels/skype.js +12 -12
- package/src/sdk/channels/telegram.js +18 -18
- package/src/sdk/channels/viber.js +12 -12
- package/src/sdk/channels/vk-modal/vk-modal.html +17 -17
- package/src/sdk/channels/vk-modal/vk-modal.js +25 -25
- package/src/sdk/channels/vk-modal/vk-modal.scss +116 -116
- package/src/sdk/channels/vk.js +195 -184
- package/src/sdk/channels/whatsapp.js +16 -10
- package/src/sdk/channels/whatsappb.js +27 -0
- package/src/sdk/events/observer.js +46 -46
- package/src/sdk/index.js +5 -5
- package/src/sdk/sdk.js +67 -30
- package/src/sdk/utils/apiErrorHandler.js +11 -11
- package/src/sdk/utils/appInsights.js +88 -88
- package/src/sdk/utils/browserInfo.js +8 -8
- package/src/sdk/utils/constants.js +17 -17
- package/src/sdk/utils/cookies.js +67 -50
- package/src/sdk/utils/find.js +7 -7
- package/src/sdk/utils/loadConfig.js +20 -20
- package/src/sdk/utils/loadDeepLink.js +48 -21
- package/src/sdk/utils/loadScript.js +25 -25
- package/src/sdk/utils/loadSubscriptions.js +6 -6
- package/src/sdk/utils/parseQueryString.js +33 -33
- package/src/sdk/utils/windowHelper.js +25 -25
- package/src/sdk/widget/widget.js +192 -140
- package/src/widget/components/index.js +6 -2
- package/src/widget/components/tb-notification-button/facebook.js +9 -2
- package/src/widget/components/tb-notification-button/index.js +34 -34
- package/src/widget/components/tb-notification-button/styles.scss +657 -433
- package/src/widget/components/tb-notification-button/telegram.js +9 -2
- package/src/widget/components/tb-notification-button/viber.js +9 -2
- package/src/widget/components/tb-notification-button/vk.js +59 -50
- package/src/widget/components/tb-notification-button/whatsapp.js +15 -8
- package/src/widget/components/tb-notification-button/whatsappb.js +58 -0
- package/src/widget/components/tb-notification-widget/index.js +589 -384
- package/src/widget/components/tb-notification-widget/normalize.scss +395 -394
- package/src/widget/components/tb-notification-widget/styles.scss +502 -139
- package/src/widget/components/tb-nw-wahunter/index.js +259 -0
- package/src/widget/components/tb-nw-wahunter/styles.scss +471 -0
- package/src/widget/config.js +5 -5
- package/src/widget/icons/icon_chat_window.svg +1 -0
- package/src/widget/icons/icon_close.svg +1 -0
- package/src/widget/icons/icon_facebook.svg +7 -7
- package/src/widget/icons/icon_facebook_circle.svg +7 -9
- package/src/widget/icons/icon_instagram_circle.svg +95 -95
- package/src/widget/icons/icon_skype.svg +44 -44
- package/src/widget/icons/icon_skype_circle.svg +46 -46
- package/src/widget/icons/icon_skype_new.svg +113 -113
- package/src/widget/icons/icon_tg.svg +25 -25
- package/src/widget/icons/icon_tg_circle.svg +17 -27
- package/src/widget/icons/icon_viber.svg +75 -75
- package/src/widget/icons/icon_viber_circle.svg +67 -77
- package/src/widget/icons/icon_viber_new.svg +102 -102
- package/src/widget/icons/icon_vk.svg +14 -14
- package/src/widget/icons/icon_vk_circle.svg +16 -16
- package/src/widget/icons/icon_whatsapp.svg +147 -147
- package/src/widget/icons/icon_whatsapp_circle.svg +3 -3
- package/src/widget/icons/icon_whatsapp_hollow.svg +128 -0
- package/src/widget/icons/icon_whatsapp_new.svg +127 -127
- package/src/widget/icons/icon_whatsappb.svg +147 -0
- package/src/widget/icons/icon_whatsappb_circle.svg +4 -0
- package/src/widget/icons/icon_whatsappb_new.svg +127 -0
- package/src/widget/icons/paper-plane-arrow.svg +3 -0
- package/src/widget/icons/tb-logo.svg +21 -0
- package/src/widget/index.js +28 -28
- package/src/widget/locales/cs.js +42 -0
- package/src/widget/locales/en.js +42 -20
- package/src/widget/locales/index.js +2 -2
- package/src/widget/locales/pl.js +41 -19
- package/src/widget/locales/ro.js +41 -20
- package/src/widget/locales/ru.js +40 -19
- package/src/widget/locales/uk.js +40 -19
- package/src/widget/utils/cookiesEx.js +41 -41
- package/src/widget/utils/getLocale.js +4 -2
- package/src/widget/utils/stringifyAttributes.js +19 -19
- package/src/widget/utils/text.js +2 -1
- package/src/widget/utils/widgetsStorage.js +28 -28
- package/src/widget/widget.entry.js +3 -4
- package/tests/gf.html +35 -35
- package/tests/gf.js +21 -21
- package/tests/index.js +61 -61
- package/views/examples.ejs +7 -3
- package/views/sdk.html +274 -256
- package/webpack.common.js +72 -72
- package/webpack.dev.js +15 -15
- package/webpack.prod.js +10 -10
- package/src/widget/components/tb-notification-button/skype.js +0 -47
- package/src/widget/icons/text-back-badge.png +0 -0
- package/src/widget/locales/cz.js +0 -20
package/.eslintrc.js
CHANGED
@@ -1,291 +1,291 @@
|
|
1
|
-
module.exports = {
|
2
|
-
"env": {
|
3
|
-
"browser": true,
|
4
|
-
"commonjs": true,
|
5
|
-
"es6": true,
|
6
|
-
"jest": true
|
7
|
-
},
|
8
|
-
"extends": "eslint:recommended",
|
9
|
-
"rules": {
|
10
|
-
"accessor-pairs": "error",
|
11
|
-
"array-bracket-spacing": "error",
|
12
|
-
"array-callback-return": "error",
|
13
|
-
"arrow-body-style": "off",
|
14
|
-
"arrow-parens": [
|
15
|
-
"error",
|
16
|
-
"as-needed"
|
17
|
-
],
|
18
|
-
"arrow-spacing": [
|
19
|
-
"error",
|
20
|
-
{
|
21
|
-
"after": true,
|
22
|
-
"before": true
|
23
|
-
}
|
24
|
-
],
|
25
|
-
"block-scoped-var": "error",
|
26
|
-
"block-spacing": [
|
27
|
-
"error",
|
28
|
-
"never"
|
29
|
-
],
|
30
|
-
"brace-style": [
|
31
|
-
"error",
|
32
|
-
"1tbs",
|
33
|
-
{
|
34
|
-
"allowSingleLine": true
|
35
|
-
}
|
36
|
-
],
|
37
|
-
"callback-return": "error",
|
38
|
-
"camelcase": "off",
|
39
|
-
"capitalized-comments": "off",
|
40
|
-
"class-methods-use-this": "off",
|
41
|
-
"comma-dangle": "off",
|
42
|
-
"comma-spacing": [
|
43
|
-
"error",
|
44
|
-
{
|
45
|
-
"after": true,
|
46
|
-
"before": false
|
47
|
-
}
|
48
|
-
],
|
49
|
-
"comma-style": [
|
50
|
-
"error",
|
51
|
-
"last"
|
52
|
-
],
|
53
|
-
"complexity": "error",
|
54
|
-
"computed-property-spacing": [
|
55
|
-
"error",
|
56
|
-
"never"
|
57
|
-
],
|
58
|
-
"consistent-return": "error",
|
59
|
-
"consistent-this": "error",
|
60
|
-
"curly": "error",
|
61
|
-
"default-case": "error",
|
62
|
-
"dot-location": [
|
63
|
-
"error",
|
64
|
-
"property"
|
65
|
-
],
|
66
|
-
"dot-notation": "error",
|
67
|
-
"eol-last": "off",
|
68
|
-
"eqeqeq": "off",
|
69
|
-
"func-call-spacing": "error",
|
70
|
-
"func-name-matching": "error",
|
71
|
-
"func-names": [
|
72
|
-
"error",
|
73
|
-
"never"
|
74
|
-
],
|
75
|
-
"func-style": ["error", "declaration"],
|
76
|
-
"generator-star-spacing": "error",
|
77
|
-
"global-require": "off",
|
78
|
-
"guard-for-in": "error",
|
79
|
-
"handle-callback-err": "error",
|
80
|
-
"id-blacklist": "error",
|
81
|
-
"id-length": "off",
|
82
|
-
"id-match": "error",
|
83
|
-
"indent": ["error", 2],
|
84
|
-
"init-declarations": "error",
|
85
|
-
"jsx-quotes": "error",
|
86
|
-
"key-spacing": "error",
|
87
|
-
"keyword-spacing": [
|
88
|
-
"error",
|
89
|
-
{
|
90
|
-
"after": true,
|
91
|
-
"before": true
|
92
|
-
}
|
93
|
-
],
|
94
|
-
"line-comment-position": "error",
|
95
|
-
"linebreak-style": [
|
96
|
-
"error",
|
97
|
-
"unix"
|
98
|
-
],
|
99
|
-
"lines-around-comment": "error",
|
100
|
-
"lines-around-directive": "error",
|
101
|
-
"max-depth": "error",
|
102
|
-
"max-len": "off",
|
103
|
-
"max-lines": "error",
|
104
|
-
"max-nested-callbacks": "error",
|
105
|
-
"max-params": "error",
|
106
|
-
"max-statements": "error",
|
107
|
-
"max-statements-per-line": "off",
|
108
|
-
"multiline-ternary": "off",
|
109
|
-
"new-cap": "error",
|
110
|
-
"new-parens": "error",
|
111
|
-
"newline-after-var": "off",
|
112
|
-
"newline-before-return": "error",
|
113
|
-
"newline-per-chained-call": "error",
|
114
|
-
"no-alert": "error",
|
115
|
-
"no-array-constructor": "error",
|
116
|
-
"no-await-in-loop": "error",
|
117
|
-
"no-bitwise": "error",
|
118
|
-
"no-caller": "error",
|
119
|
-
"no-catch-shadow": "error",
|
120
|
-
"no-compare-neg-zero": "error",
|
121
|
-
"no-confusing-arrow": "error",
|
122
|
-
"no-continue": "error",
|
123
|
-
"no-div-regex": "error",
|
124
|
-
"no-duplicate-imports": "error",
|
125
|
-
"no-else-return": "off",
|
126
|
-
"no-empty-function": "off",
|
127
|
-
"no-eq-null": "error",
|
128
|
-
"no-eval": "error",
|
129
|
-
"no-extend-native": "error",
|
130
|
-
"no-extra-bind": "error",
|
131
|
-
"no-extra-label": "error",
|
132
|
-
"no-extra-parens": "error",
|
133
|
-
"no-floating-decimal": "error",
|
134
|
-
"no-implicit-coercion": "error",
|
135
|
-
"no-implicit-globals": "error",
|
136
|
-
"no-implied-eval": "error",
|
137
|
-
"no-inline-comments": "error",
|
138
|
-
"no-invalid-this": "error",
|
139
|
-
"no-iterator": "error",
|
140
|
-
"no-label-var": "error",
|
141
|
-
"no-labels": "error",
|
142
|
-
"no-lone-blocks": "error",
|
143
|
-
"no-lonely-if": "error",
|
144
|
-
"no-loop-func": "error",
|
145
|
-
"no-magic-numbers": "off",
|
146
|
-
"no-mixed-operators": "off",
|
147
|
-
"no-mixed-requires": "error",
|
148
|
-
"no-multi-assign": "off",
|
149
|
-
"no-multi-spaces": "error",
|
150
|
-
"no-multi-str": "error",
|
151
|
-
"no-multiple-empty-lines": "error",
|
152
|
-
"no-native-reassign": "error",
|
153
|
-
"no-negated-condition": "error",
|
154
|
-
"no-negated-in-lhs": "error",
|
155
|
-
"no-nested-ternary": "error",
|
156
|
-
"no-new": "off",
|
157
|
-
"no-new-func": "error",
|
158
|
-
"no-new-object": "error",
|
159
|
-
"no-new-require": "error",
|
160
|
-
"no-new-wrappers": "error",
|
161
|
-
"no-octal-escape": "error",
|
162
|
-
"no-param-reassign": "off",
|
163
|
-
"no-path-concat": "error",
|
164
|
-
"no-plusplus": [
|
165
|
-
"error",
|
166
|
-
{
|
167
|
-
"allowForLoopAfterthoughts": true
|
168
|
-
}
|
169
|
-
],
|
170
|
-
"no-process-env": "error",
|
171
|
-
"no-process-exit": "error",
|
172
|
-
"no-proto": "error",
|
173
|
-
"no-prototype-builtins": "error",
|
174
|
-
"no-restricted-globals": "error",
|
175
|
-
"no-restricted-imports": "error",
|
176
|
-
"no-restricted-modules": "error",
|
177
|
-
"no-restricted-properties": "error",
|
178
|
-
"no-restricted-syntax": "error",
|
179
|
-
"no-return-assign": "error",
|
180
|
-
"no-return-await": "error",
|
181
|
-
"no-script-url": "error",
|
182
|
-
"no-self-compare": "error",
|
183
|
-
"no-sequences": "error",
|
184
|
-
"no-shadow": "error",
|
185
|
-
"no-shadow-restricted-names": "error",
|
186
|
-
"no-spaced-func": "error",
|
187
|
-
"no-sync": "error",
|
188
|
-
"no-tabs": "error",
|
189
|
-
"no-template-curly-in-string": "error",
|
190
|
-
"no-ternary": "off",
|
191
|
-
"no-throw-literal": "error",
|
192
|
-
"no-trailing-spaces": "error",
|
193
|
-
"no-undef-init": "error",
|
194
|
-
"no-undefined": "error",
|
195
|
-
"no-unmodified-loop-condition": "error",
|
196
|
-
"no-unneeded-ternary": "error",
|
197
|
-
"no-unused-expressions": "error",
|
198
|
-
"no-use-before-define": "error",
|
199
|
-
"no-useless-call": "error",
|
200
|
-
"no-useless-computed-key": "error",
|
201
|
-
"no-useless-concat": "error",
|
202
|
-
"no-useless-constructor": "off",
|
203
|
-
"no-useless-escape": "error",
|
204
|
-
"no-useless-rename": "error",
|
205
|
-
"no-useless-return": "error",
|
206
|
-
"no-var": "error",
|
207
|
-
"no-void": "error",
|
208
|
-
"no-warning-comments": "error",
|
209
|
-
"no-whitespace-before-property": "error",
|
210
|
-
"no-with": "error",
|
211
|
-
"nonblock-statement-body-position": "error",
|
212
|
-
"object-curly-newline": "off",
|
213
|
-
"object-curly-spacing": [
|
214
|
-
"error",
|
215
|
-
"never"
|
216
|
-
],
|
217
|
-
"object-property-newline": [
|
218
|
-
"error",
|
219
|
-
{
|
220
|
-
"allowMultiplePropertiesPerLine": true
|
221
|
-
}
|
222
|
-
],
|
223
|
-
"object-shorthand": "error",
|
224
|
-
"one-var": "off",
|
225
|
-
"one-var-declaration-per-line": "error",
|
226
|
-
"operator-assignment": "error",
|
227
|
-
"operator-linebreak": "error",
|
228
|
-
"padded-blocks": "off",
|
229
|
-
"prefer-arrow-callback": "error",
|
230
|
-
"prefer-const": "error",
|
231
|
-
"prefer-destructuring": "error",
|
232
|
-
"prefer-numeric-literals": "error",
|
233
|
-
"prefer-promise-reject-errors": "off",
|
234
|
-
"prefer-reflect": "off",
|
235
|
-
"prefer-rest-params": "off",
|
236
|
-
"prefer-spread": "error",
|
237
|
-
"prefer-template": "error",
|
238
|
-
"quote-props": "off",
|
239
|
-
"quotes": "off",
|
240
|
-
"radix": "error",
|
241
|
-
"require-await": "error",
|
242
|
-
"require-jsdoc": "off",
|
243
|
-
"rest-spread-spacing": [
|
244
|
-
"error",
|
245
|
-
"never"
|
246
|
-
],
|
247
|
-
"semi": "off",
|
248
|
-
"semi-spacing": [
|
249
|
-
"error",
|
250
|
-
{
|
251
|
-
"after": true,
|
252
|
-
"before": false
|
253
|
-
}
|
254
|
-
],
|
255
|
-
"sort-imports": "error",
|
256
|
-
"sort-keys": "off",
|
257
|
-
"sort-vars": "error",
|
258
|
-
"space-before-blocks": "off",
|
259
|
-
"space-before-function-paren": "off",
|
260
|
-
"space-in-parens": [
|
261
|
-
"error",
|
262
|
-
"never"
|
263
|
-
],
|
264
|
-
"space-infix-ops": "error",
|
265
|
-
"space-unary-ops": "error",
|
266
|
-
"spaced-comment": "off",
|
267
|
-
"strict": [
|
268
|
-
"error",
|
269
|
-
"never"
|
270
|
-
],
|
271
|
-
"symbol-description": "error",
|
272
|
-
"template-curly-spacing": [
|
273
|
-
"error",
|
274
|
-
"never"
|
275
|
-
],
|
276
|
-
"template-tag-spacing": "error",
|
277
|
-
"unicode-bom": [
|
278
|
-
"error",
|
279
|
-
"never"
|
280
|
-
],
|
281
|
-
"valid-jsdoc": "error",
|
282
|
-
"vars-on-top": "error",
|
283
|
-
"wrap-iife": "error",
|
284
|
-
"wrap-regex": "error",
|
285
|
-
"yield-star-spacing": "error",
|
286
|
-
"yoda": [
|
287
|
-
"error",
|
288
|
-
"never"
|
289
|
-
]
|
290
|
-
}
|
291
|
-
};
|
1
|
+
module.exports = {
|
2
|
+
"env": {
|
3
|
+
"browser": true,
|
4
|
+
"commonjs": true,
|
5
|
+
"es6": true,
|
6
|
+
"jest": true
|
7
|
+
},
|
8
|
+
"extends": "eslint:recommended",
|
9
|
+
"rules": {
|
10
|
+
"accessor-pairs": "error",
|
11
|
+
"array-bracket-spacing": "error",
|
12
|
+
"array-callback-return": "error",
|
13
|
+
"arrow-body-style": "off",
|
14
|
+
"arrow-parens": [
|
15
|
+
"error",
|
16
|
+
"as-needed"
|
17
|
+
],
|
18
|
+
"arrow-spacing": [
|
19
|
+
"error",
|
20
|
+
{
|
21
|
+
"after": true,
|
22
|
+
"before": true
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"block-scoped-var": "error",
|
26
|
+
"block-spacing": [
|
27
|
+
"error",
|
28
|
+
"never"
|
29
|
+
],
|
30
|
+
"brace-style": [
|
31
|
+
"error",
|
32
|
+
"1tbs",
|
33
|
+
{
|
34
|
+
"allowSingleLine": true
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"callback-return": "error",
|
38
|
+
"camelcase": "off",
|
39
|
+
"capitalized-comments": "off",
|
40
|
+
"class-methods-use-this": "off",
|
41
|
+
"comma-dangle": "off",
|
42
|
+
"comma-spacing": [
|
43
|
+
"error",
|
44
|
+
{
|
45
|
+
"after": true,
|
46
|
+
"before": false
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"comma-style": [
|
50
|
+
"error",
|
51
|
+
"last"
|
52
|
+
],
|
53
|
+
"complexity": "error",
|
54
|
+
"computed-property-spacing": [
|
55
|
+
"error",
|
56
|
+
"never"
|
57
|
+
],
|
58
|
+
"consistent-return": "error",
|
59
|
+
"consistent-this": "error",
|
60
|
+
"curly": "error",
|
61
|
+
"default-case": "error",
|
62
|
+
"dot-location": [
|
63
|
+
"error",
|
64
|
+
"property"
|
65
|
+
],
|
66
|
+
"dot-notation": "error",
|
67
|
+
"eol-last": "off",
|
68
|
+
"eqeqeq": "off",
|
69
|
+
"func-call-spacing": "error",
|
70
|
+
"func-name-matching": "error",
|
71
|
+
"func-names": [
|
72
|
+
"error",
|
73
|
+
"never"
|
74
|
+
],
|
75
|
+
"func-style": ["error", "declaration"],
|
76
|
+
"generator-star-spacing": "error",
|
77
|
+
"global-require": "off",
|
78
|
+
"guard-for-in": "error",
|
79
|
+
"handle-callback-err": "error",
|
80
|
+
"id-blacklist": "error",
|
81
|
+
"id-length": "off",
|
82
|
+
"id-match": "error",
|
83
|
+
"indent": ["error", 2],
|
84
|
+
"init-declarations": "error",
|
85
|
+
"jsx-quotes": "error",
|
86
|
+
"key-spacing": "error",
|
87
|
+
"keyword-spacing": [
|
88
|
+
"error",
|
89
|
+
{
|
90
|
+
"after": true,
|
91
|
+
"before": true
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"line-comment-position": "error",
|
95
|
+
"linebreak-style": [
|
96
|
+
"error",
|
97
|
+
"unix"
|
98
|
+
],
|
99
|
+
"lines-around-comment": "error",
|
100
|
+
"lines-around-directive": "error",
|
101
|
+
"max-depth": "error",
|
102
|
+
"max-len": "off",
|
103
|
+
"max-lines": "error",
|
104
|
+
"max-nested-callbacks": "error",
|
105
|
+
"max-params": "error",
|
106
|
+
"max-statements": "error",
|
107
|
+
"max-statements-per-line": "off",
|
108
|
+
"multiline-ternary": "off",
|
109
|
+
"new-cap": "error",
|
110
|
+
"new-parens": "error",
|
111
|
+
"newline-after-var": "off",
|
112
|
+
"newline-before-return": "error",
|
113
|
+
"newline-per-chained-call": "error",
|
114
|
+
"no-alert": "error",
|
115
|
+
"no-array-constructor": "error",
|
116
|
+
"no-await-in-loop": "error",
|
117
|
+
"no-bitwise": "error",
|
118
|
+
"no-caller": "error",
|
119
|
+
"no-catch-shadow": "error",
|
120
|
+
"no-compare-neg-zero": "error",
|
121
|
+
"no-confusing-arrow": "error",
|
122
|
+
"no-continue": "error",
|
123
|
+
"no-div-regex": "error",
|
124
|
+
"no-duplicate-imports": "error",
|
125
|
+
"no-else-return": "off",
|
126
|
+
"no-empty-function": "off",
|
127
|
+
"no-eq-null": "error",
|
128
|
+
"no-eval": "error",
|
129
|
+
"no-extend-native": "error",
|
130
|
+
"no-extra-bind": "error",
|
131
|
+
"no-extra-label": "error",
|
132
|
+
"no-extra-parens": "error",
|
133
|
+
"no-floating-decimal": "error",
|
134
|
+
"no-implicit-coercion": "error",
|
135
|
+
"no-implicit-globals": "error",
|
136
|
+
"no-implied-eval": "error",
|
137
|
+
"no-inline-comments": "error",
|
138
|
+
"no-invalid-this": "error",
|
139
|
+
"no-iterator": "error",
|
140
|
+
"no-label-var": "error",
|
141
|
+
"no-labels": "error",
|
142
|
+
"no-lone-blocks": "error",
|
143
|
+
"no-lonely-if": "error",
|
144
|
+
"no-loop-func": "error",
|
145
|
+
"no-magic-numbers": "off",
|
146
|
+
"no-mixed-operators": "off",
|
147
|
+
"no-mixed-requires": "error",
|
148
|
+
"no-multi-assign": "off",
|
149
|
+
"no-multi-spaces": "error",
|
150
|
+
"no-multi-str": "error",
|
151
|
+
"no-multiple-empty-lines": "error",
|
152
|
+
"no-native-reassign": "error",
|
153
|
+
"no-negated-condition": "error",
|
154
|
+
"no-negated-in-lhs": "error",
|
155
|
+
"no-nested-ternary": "error",
|
156
|
+
"no-new": "off",
|
157
|
+
"no-new-func": "error",
|
158
|
+
"no-new-object": "error",
|
159
|
+
"no-new-require": "error",
|
160
|
+
"no-new-wrappers": "error",
|
161
|
+
"no-octal-escape": "error",
|
162
|
+
"no-param-reassign": "off",
|
163
|
+
"no-path-concat": "error",
|
164
|
+
"no-plusplus": [
|
165
|
+
"error",
|
166
|
+
{
|
167
|
+
"allowForLoopAfterthoughts": true
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"no-process-env": "error",
|
171
|
+
"no-process-exit": "error",
|
172
|
+
"no-proto": "error",
|
173
|
+
"no-prototype-builtins": "error",
|
174
|
+
"no-restricted-globals": "error",
|
175
|
+
"no-restricted-imports": "error",
|
176
|
+
"no-restricted-modules": "error",
|
177
|
+
"no-restricted-properties": "error",
|
178
|
+
"no-restricted-syntax": "error",
|
179
|
+
"no-return-assign": "error",
|
180
|
+
"no-return-await": "error",
|
181
|
+
"no-script-url": "error",
|
182
|
+
"no-self-compare": "error",
|
183
|
+
"no-sequences": "error",
|
184
|
+
"no-shadow": "error",
|
185
|
+
"no-shadow-restricted-names": "error",
|
186
|
+
"no-spaced-func": "error",
|
187
|
+
"no-sync": "error",
|
188
|
+
"no-tabs": "error",
|
189
|
+
"no-template-curly-in-string": "error",
|
190
|
+
"no-ternary": "off",
|
191
|
+
"no-throw-literal": "error",
|
192
|
+
"no-trailing-spaces": "error",
|
193
|
+
"no-undef-init": "error",
|
194
|
+
"no-undefined": "error",
|
195
|
+
"no-unmodified-loop-condition": "error",
|
196
|
+
"no-unneeded-ternary": "error",
|
197
|
+
"no-unused-expressions": "error",
|
198
|
+
"no-use-before-define": "error",
|
199
|
+
"no-useless-call": "error",
|
200
|
+
"no-useless-computed-key": "error",
|
201
|
+
"no-useless-concat": "error",
|
202
|
+
"no-useless-constructor": "off",
|
203
|
+
"no-useless-escape": "error",
|
204
|
+
"no-useless-rename": "error",
|
205
|
+
"no-useless-return": "error",
|
206
|
+
"no-var": "error",
|
207
|
+
"no-void": "error",
|
208
|
+
"no-warning-comments": "error",
|
209
|
+
"no-whitespace-before-property": "error",
|
210
|
+
"no-with": "error",
|
211
|
+
"nonblock-statement-body-position": "error",
|
212
|
+
"object-curly-newline": "off",
|
213
|
+
"object-curly-spacing": [
|
214
|
+
"error",
|
215
|
+
"never"
|
216
|
+
],
|
217
|
+
"object-property-newline": [
|
218
|
+
"error",
|
219
|
+
{
|
220
|
+
"allowMultiplePropertiesPerLine": true
|
221
|
+
}
|
222
|
+
],
|
223
|
+
"object-shorthand": "error",
|
224
|
+
"one-var": "off",
|
225
|
+
"one-var-declaration-per-line": "error",
|
226
|
+
"operator-assignment": "error",
|
227
|
+
"operator-linebreak": "error",
|
228
|
+
"padded-blocks": "off",
|
229
|
+
"prefer-arrow-callback": "error",
|
230
|
+
"prefer-const": "error",
|
231
|
+
"prefer-destructuring": "error",
|
232
|
+
"prefer-numeric-literals": "error",
|
233
|
+
"prefer-promise-reject-errors": "off",
|
234
|
+
"prefer-reflect": "off",
|
235
|
+
"prefer-rest-params": "off",
|
236
|
+
"prefer-spread": "error",
|
237
|
+
"prefer-template": "error",
|
238
|
+
"quote-props": "off",
|
239
|
+
"quotes": "off",
|
240
|
+
"radix": "error",
|
241
|
+
"require-await": "error",
|
242
|
+
"require-jsdoc": "off",
|
243
|
+
"rest-spread-spacing": [
|
244
|
+
"error",
|
245
|
+
"never"
|
246
|
+
],
|
247
|
+
"semi": "off",
|
248
|
+
"semi-spacing": [
|
249
|
+
"error",
|
250
|
+
{
|
251
|
+
"after": true,
|
252
|
+
"before": false
|
253
|
+
}
|
254
|
+
],
|
255
|
+
"sort-imports": "error",
|
256
|
+
"sort-keys": "off",
|
257
|
+
"sort-vars": "error",
|
258
|
+
"space-before-blocks": "off",
|
259
|
+
"space-before-function-paren": "off",
|
260
|
+
"space-in-parens": [
|
261
|
+
"error",
|
262
|
+
"never"
|
263
|
+
],
|
264
|
+
"space-infix-ops": "error",
|
265
|
+
"space-unary-ops": "error",
|
266
|
+
"spaced-comment": "off",
|
267
|
+
"strict": [
|
268
|
+
"error",
|
269
|
+
"never"
|
270
|
+
],
|
271
|
+
"symbol-description": "error",
|
272
|
+
"template-curly-spacing": [
|
273
|
+
"error",
|
274
|
+
"never"
|
275
|
+
],
|
276
|
+
"template-tag-spacing": "error",
|
277
|
+
"unicode-bom": [
|
278
|
+
"error",
|
279
|
+
"never"
|
280
|
+
],
|
281
|
+
"valid-jsdoc": "error",
|
282
|
+
"vars-on-top": "error",
|
283
|
+
"wrap-iife": "error",
|
284
|
+
"wrap-regex": "error",
|
285
|
+
"yield-star-spacing": "error",
|
286
|
+
"yoda": [
|
287
|
+
"error",
|
288
|
+
"never"
|
289
|
+
]
|
290
|
+
}
|
291
|
+
};
|