@cars4ever/public-ui 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +637 -0
- package/.husky/pre-push +1 -0
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +13 -0
- package/debug-storybook.log +34 -0
- package/dist/Poppins-Bold-QAA2AGZS.ttf +0 -0
- package/dist/Poppins-Regular-JNHL4IDV.ttf +0 -0
- package/dist/assets/fonts/Poppins-Bold.ttf +0 -0
- package/dist/assets/fonts/Poppins-Regular.ttf +0 -0
- package/dist/assets/scss/adaptive-utils.scss +14 -0
- package/dist/assets/scss/common-utils.scss +17 -0
- package/dist/assets/scss/globals.scss +96 -0
- package/dist/assets/scss/utils.scss +3 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +516 -0
- package/dist/index.js +1 -0
- package/eslint.config.js +392 -0
- package/package.json +96 -0
- package/tsup.config.ts +66 -0
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
const isProduction = process.env.NODE_ENV === 'production'
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
"root": true,
|
|
5
|
+
"parser": "@typescript-eslint/parser",
|
|
6
|
+
"parserOptions": {
|
|
7
|
+
"ecmaVersion": 2018,
|
|
8
|
+
"sourceType": "module",
|
|
9
|
+
"project": "./tsconfig.json"
|
|
10
|
+
},
|
|
11
|
+
"env": {
|
|
12
|
+
"browser": true,
|
|
13
|
+
"commonjs": true,
|
|
14
|
+
"es6": true,
|
|
15
|
+
"jest": true,
|
|
16
|
+
"node": true
|
|
17
|
+
},
|
|
18
|
+
"settings": {
|
|
19
|
+
"react": {
|
|
20
|
+
"version": "detect"
|
|
21
|
+
},
|
|
22
|
+
"import/resolver": {
|
|
23
|
+
"typescript": {
|
|
24
|
+
"alwaysTryTypes": false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"plugins": [
|
|
29
|
+
"@typescript-eslint",
|
|
30
|
+
"import",
|
|
31
|
+
"jsx-a11y",
|
|
32
|
+
"react",
|
|
33
|
+
"react-hooks"
|
|
34
|
+
],
|
|
35
|
+
"ignorePatterns": [
|
|
36
|
+
"!**/*",
|
|
37
|
+
"*.js",
|
|
38
|
+
"*.scss",
|
|
39
|
+
"dist"
|
|
40
|
+
],
|
|
41
|
+
"extends": [
|
|
42
|
+
"eslint:recommended",
|
|
43
|
+
"plugin:@typescript-eslint/eslint-recommended",
|
|
44
|
+
"plugin:@typescript-eslint/recommended",
|
|
45
|
+
"plugin:import/errors",
|
|
46
|
+
"plugin:import/warnings",
|
|
47
|
+
"plugin:import/typescript"
|
|
48
|
+
],
|
|
49
|
+
"rules": {
|
|
50
|
+
"eol-last": [
|
|
51
|
+
"error",
|
|
52
|
+
"always"
|
|
53
|
+
],
|
|
54
|
+
"quotes": [
|
|
55
|
+
"error",
|
|
56
|
+
"single"
|
|
57
|
+
],
|
|
58
|
+
"indent": [
|
|
59
|
+
"error",
|
|
60
|
+
2,
|
|
61
|
+
{
|
|
62
|
+
"SwitchCase": 1
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"operator-linebreak": ["error", "before"],
|
|
66
|
+
"no-console": [
|
|
67
|
+
"warn",
|
|
68
|
+
{
|
|
69
|
+
"allow": [
|
|
70
|
+
"warn",
|
|
71
|
+
"info",
|
|
72
|
+
"error"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"no-param-reassign": "error",
|
|
77
|
+
"comma-dangle": [
|
|
78
|
+
"error",
|
|
79
|
+
"always-multiline"
|
|
80
|
+
],
|
|
81
|
+
"no-nested-ternary": "error",
|
|
82
|
+
"no-unneeded-ternary": "error",
|
|
83
|
+
"multiline-ternary": ["error", "always-multiline"],
|
|
84
|
+
"newline-per-chained-call": "error",
|
|
85
|
+
"curly": "error",
|
|
86
|
+
"arrow-body-style": [
|
|
87
|
+
"error",
|
|
88
|
+
"as-needed"
|
|
89
|
+
],
|
|
90
|
+
"yoda": "error",
|
|
91
|
+
"brace-style": "error",
|
|
92
|
+
"object-property-newline": "error",
|
|
93
|
+
"no-multiple-empty-lines": [
|
|
94
|
+
"error",
|
|
95
|
+
{
|
|
96
|
+
"max": 1,
|
|
97
|
+
"maxBOF": 0
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"prefer-template": "error",
|
|
101
|
+
"padded-blocks": [
|
|
102
|
+
"error",
|
|
103
|
+
"never"
|
|
104
|
+
],
|
|
105
|
+
"newline-before-return": "warn",
|
|
106
|
+
"semi": "error",
|
|
107
|
+
"no-extra-semi": "error",
|
|
108
|
+
"max-lines": [
|
|
109
|
+
"error",
|
|
110
|
+
{
|
|
111
|
+
"max": 170,
|
|
112
|
+
"skipBlankLines": true,
|
|
113
|
+
"skipComments": true
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"max-len": [
|
|
117
|
+
"error",
|
|
118
|
+
{
|
|
119
|
+
"code": 120,
|
|
120
|
+
"ignorePattern": "((const \\w+ = (<.+>)?\\((\\{)?.+(\\})?: .+\\):)|(texts\\..+))",
|
|
121
|
+
"ignoreStrings": true,
|
|
122
|
+
"ignoreComments": true,
|
|
123
|
+
"ignoreTemplateLiterals": true,
|
|
124
|
+
"ignoreRegExpLiterals": true
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"key-spacing": "error",
|
|
128
|
+
"comma-spacing": "error",
|
|
129
|
+
"keyword-spacing": "error",
|
|
130
|
+
"object-curly-spacing": [
|
|
131
|
+
"error",
|
|
132
|
+
"always"
|
|
133
|
+
],
|
|
134
|
+
"object-curly-newline": [
|
|
135
|
+
"error",
|
|
136
|
+
{
|
|
137
|
+
"ObjectExpression": {
|
|
138
|
+
"minProperties": 1
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"function-call-argument-newline": ["error", "consistent"],
|
|
143
|
+
"function-paren-newline": ["error", "multiline"],
|
|
144
|
+
"func-call-spacing": ["error", "never"],
|
|
145
|
+
"no-multi-spaces": "error",
|
|
146
|
+
"no-trailing-spaces": "error",
|
|
147
|
+
"padding-line-between-statements": [
|
|
148
|
+
"error",
|
|
149
|
+
{
|
|
150
|
+
"blankLine": "always",
|
|
151
|
+
"prev": "block-like",
|
|
152
|
+
"next": "*"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"blankLine": "always",
|
|
156
|
+
"prev": "const",
|
|
157
|
+
"next": "block-like"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"import/default": "off",
|
|
161
|
+
"import/newline-after-import": "warn",
|
|
162
|
+
'import/no-cycle': isProduction ? 'error' : 'off',
|
|
163
|
+
"import/order": [
|
|
164
|
+
"warn",
|
|
165
|
+
{
|
|
166
|
+
"newlines-between": "always",
|
|
167
|
+
"groups": [
|
|
168
|
+
"external",
|
|
169
|
+
"builtin",
|
|
170
|
+
"internal",
|
|
171
|
+
"parent",
|
|
172
|
+
"sibling",
|
|
173
|
+
"index"
|
|
174
|
+
],
|
|
175
|
+
"pathGroups": [
|
|
176
|
+
{
|
|
177
|
+
"pattern": "^*",
|
|
178
|
+
"group": "internal"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"pattern": "^*/**/*",
|
|
182
|
+
"group": "internal"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"import/no-unresolved": [
|
|
188
|
+
"error",
|
|
189
|
+
{
|
|
190
|
+
"ignore": [
|
|
191
|
+
".scss"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
196
|
+
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
197
|
+
"@typescript-eslint/explicit-function-return-type": [
|
|
198
|
+
"error",
|
|
199
|
+
{
|
|
200
|
+
"allowTypedFunctionExpressions": false
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"@typescript-eslint/parameter-properties": "off",
|
|
204
|
+
"@typescript-eslint/no-inferrable-types": "off",
|
|
205
|
+
"@typescript-eslint/no-dynamic-delete": "error",
|
|
206
|
+
"@typescript-eslint/no-floating-promises": [
|
|
207
|
+
"error",
|
|
208
|
+
{
|
|
209
|
+
"ignoreVoid": true
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"@typescript-eslint/no-empty-interface": "off",
|
|
213
|
+
"@typescript-eslint/typedef": [
|
|
214
|
+
"error",
|
|
215
|
+
{
|
|
216
|
+
"arrowParameter": true,
|
|
217
|
+
"parameter": true,
|
|
218
|
+
"propertyDeclaration": true,
|
|
219
|
+
"memberVariableDeclaration": false
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"@typescript-eslint/naming-convention": [
|
|
223
|
+
"error",
|
|
224
|
+
{
|
|
225
|
+
"selector": "interface",
|
|
226
|
+
"format": [
|
|
227
|
+
"PascalCase"
|
|
228
|
+
],
|
|
229
|
+
"custom": {
|
|
230
|
+
"regex": "^I[A-Z]",
|
|
231
|
+
"match": true
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
236
|
+
"react/boolean-prop-naming": [
|
|
237
|
+
"error",
|
|
238
|
+
{
|
|
239
|
+
"rule": "^(is|are|has|have|with|no|hide|show|shrink)[A-Z]([A-Za-z0-9]?)+"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"react/jsx-closing-bracket-location": "error",
|
|
243
|
+
"react/jsx-first-prop-new-line": [
|
|
244
|
+
"error",
|
|
245
|
+
"multiline"
|
|
246
|
+
],
|
|
247
|
+
"react/jsx-max-props-per-line": [
|
|
248
|
+
"error",
|
|
249
|
+
{
|
|
250
|
+
"maximum": 1
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"react/jsx-curly-spacing": [
|
|
254
|
+
"error",
|
|
255
|
+
{
|
|
256
|
+
"when": "never"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"react/jsx-equals-spacing": [
|
|
260
|
+
"error",
|
|
261
|
+
"never"
|
|
262
|
+
],
|
|
263
|
+
"react/jsx-filename-extension": [
|
|
264
|
+
"error",
|
|
265
|
+
{
|
|
266
|
+
"extensions": [
|
|
267
|
+
".tsx"
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"react/jsx-fragments": [
|
|
272
|
+
"error",
|
|
273
|
+
"syntax"
|
|
274
|
+
],
|
|
275
|
+
"react/jsx-key": "error",
|
|
276
|
+
"react/jsx-newline": "error",
|
|
277
|
+
"react/jsx-no-literals": "error",
|
|
278
|
+
"react/jsx-no-useless-fragment": "error",
|
|
279
|
+
"react/jsx-one-expression-per-line": "error",
|
|
280
|
+
"react/jsx-props-no-multi-spaces": "error",
|
|
281
|
+
"react/jsx-tag-spacing": [
|
|
282
|
+
"error",
|
|
283
|
+
{
|
|
284
|
+
"beforeClosing": "never"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"react/jsx-wrap-multilines": [
|
|
288
|
+
"error",
|
|
289
|
+
{
|
|
290
|
+
"declaration": "parens-new-line",
|
|
291
|
+
"assignment": "parens-new-line",
|
|
292
|
+
"return": "parens-new-line",
|
|
293
|
+
"arrow": "parens-new-line",
|
|
294
|
+
"condition": "parens-new-line",
|
|
295
|
+
"logical": "parens-new-line",
|
|
296
|
+
"prop": "parens-new-line"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"react/destructuring-assignment": [
|
|
300
|
+
"error",
|
|
301
|
+
"always"
|
|
302
|
+
],
|
|
303
|
+
"react/no-multi-comp": ["error"],
|
|
304
|
+
"react/self-closing-comp": ["error"],
|
|
305
|
+
"react/jsx-boolean-value": "error",
|
|
306
|
+
"react/jsx-closing-tag-location": "error",
|
|
307
|
+
"react/jsx-curly-brace-presence": "error",
|
|
308
|
+
"react/jsx-curly-newline": [
|
|
309
|
+
"error",
|
|
310
|
+
"consistent"
|
|
311
|
+
],
|
|
312
|
+
"dot-location": [
|
|
313
|
+
"warn",
|
|
314
|
+
"property"
|
|
315
|
+
],
|
|
316
|
+
"eqeqeq": "error",
|
|
317
|
+
"new-parens": "warn",
|
|
318
|
+
"no-caller": "warn",
|
|
319
|
+
"no-cond-assign": [
|
|
320
|
+
"warn",
|
|
321
|
+
"except-parens"
|
|
322
|
+
],
|
|
323
|
+
"no-const-assign": "warn",
|
|
324
|
+
"no-control-regex": "warn",
|
|
325
|
+
"no-delete-var": "warn",
|
|
326
|
+
"no-dupe-args": "warn",
|
|
327
|
+
"no-dupe-keys": "warn",
|
|
328
|
+
"no-duplicate-case": "warn",
|
|
329
|
+
"no-empty-character-class": "warn",
|
|
330
|
+
"no-empty-pattern": "warn",
|
|
331
|
+
"no-eval": "warn",
|
|
332
|
+
"no-ex-assign": "warn",
|
|
333
|
+
"no-extend-native": "warn",
|
|
334
|
+
"no-extra-bind": "warn",
|
|
335
|
+
"no-extra-label": "warn",
|
|
336
|
+
"no-fallthrough": "warn",
|
|
337
|
+
"no-func-assign": "warn",
|
|
338
|
+
"no-implied-eval": "warn",
|
|
339
|
+
"no-invalid-regexp": "warn",
|
|
340
|
+
"no-iterator": "warn",
|
|
341
|
+
"no-label-var": "warn",
|
|
342
|
+
"no-labels": [
|
|
343
|
+
"warn",
|
|
344
|
+
{
|
|
345
|
+
"allowLoop": true,
|
|
346
|
+
"allowSwitch": false
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"no-lone-blocks": "warn",
|
|
350
|
+
"no-loop-func": "warn",
|
|
351
|
+
"no-mixed-operators": [
|
|
352
|
+
"warn",
|
|
353
|
+
{
|
|
354
|
+
"groups": [
|
|
355
|
+
[
|
|
356
|
+
"&",
|
|
357
|
+
"|",
|
|
358
|
+
"^",
|
|
359
|
+
"~",
|
|
360
|
+
"<<",
|
|
361
|
+
">>",
|
|
362
|
+
">>>"
|
|
363
|
+
],
|
|
364
|
+
[
|
|
365
|
+
"==",
|
|
366
|
+
"!=",
|
|
367
|
+
"===",
|
|
368
|
+
"!==",
|
|
369
|
+
">",
|
|
370
|
+
">=",
|
|
371
|
+
"<",
|
|
372
|
+
"<="
|
|
373
|
+
],
|
|
374
|
+
[
|
|
375
|
+
"&&",
|
|
376
|
+
"||"
|
|
377
|
+
],
|
|
378
|
+
[
|
|
379
|
+
"in",
|
|
380
|
+
"instanceof"
|
|
381
|
+
]
|
|
382
|
+
],
|
|
383
|
+
"allowSamePrecedence": false
|
|
384
|
+
}
|
|
385
|
+
],
|
|
386
|
+
"no-multi-str": "warn",
|
|
387
|
+
"no-global-assign": "warn",
|
|
388
|
+
"no-unsafe-negation": "warn",
|
|
389
|
+
"no-new-func": "warn",
|
|
390
|
+
"no-new-object": "warn",
|
|
391
|
+
"no-new-symbol": "warn",
|
|
392
|
+
"no-new-wrappers": "warn",
|
|
393
|
+
"no-obj-calls": "warn",
|
|
394
|
+
"no-octal": "warn",
|
|
395
|
+
"no-octal-escape": "warn",
|
|
396
|
+
"no-redeclare": "warn",
|
|
397
|
+
"no-regex-spaces": "warn",
|
|
398
|
+
"no-restricted-syntax": [
|
|
399
|
+
"warn",
|
|
400
|
+
"WithStatement"
|
|
401
|
+
],
|
|
402
|
+
"no-script-url": "warn",
|
|
403
|
+
"no-self-assign": "warn",
|
|
404
|
+
"no-self-compare": "warn",
|
|
405
|
+
"no-sequences": "warn",
|
|
406
|
+
"no-shadow-restricted-names": "warn",
|
|
407
|
+
"no-sparse-arrays": "warn",
|
|
408
|
+
"no-template-curly-in-string": "warn",
|
|
409
|
+
"no-this-before-super": "warn",
|
|
410
|
+
"no-throw-literal": "warn",
|
|
411
|
+
"no-restricted-globals": [
|
|
412
|
+
"error",
|
|
413
|
+
"addEventListener",
|
|
414
|
+
"blur",
|
|
415
|
+
"close",
|
|
416
|
+
"closed",
|
|
417
|
+
"confirm",
|
|
418
|
+
"defaultStatus",
|
|
419
|
+
"defaultstatus",
|
|
420
|
+
"event",
|
|
421
|
+
"external",
|
|
422
|
+
"find",
|
|
423
|
+
"focus",
|
|
424
|
+
"frameElement",
|
|
425
|
+
"frames",
|
|
426
|
+
"history",
|
|
427
|
+
"innerHeight",
|
|
428
|
+
"innerWidth",
|
|
429
|
+
"length",
|
|
430
|
+
"location",
|
|
431
|
+
"locationbar",
|
|
432
|
+
"menubar",
|
|
433
|
+
"moveBy",
|
|
434
|
+
"moveTo",
|
|
435
|
+
"name",
|
|
436
|
+
"onblur",
|
|
437
|
+
"onerror",
|
|
438
|
+
"onfocus",
|
|
439
|
+
"onload",
|
|
440
|
+
"onresize",
|
|
441
|
+
"onunload",
|
|
442
|
+
"open",
|
|
443
|
+
"opener",
|
|
444
|
+
"opera",
|
|
445
|
+
"outerHeight",
|
|
446
|
+
"outerWidth",
|
|
447
|
+
"pageXOffset",
|
|
448
|
+
"pageYOffset",
|
|
449
|
+
"parent",
|
|
450
|
+
"print",
|
|
451
|
+
"removeEventListener",
|
|
452
|
+
"resizeBy",
|
|
453
|
+
"resizeTo",
|
|
454
|
+
"screen",
|
|
455
|
+
"screenLeft",
|
|
456
|
+
"screenTop",
|
|
457
|
+
"screenX",
|
|
458
|
+
"screenY",
|
|
459
|
+
"scroll",
|
|
460
|
+
"scrollbars",
|
|
461
|
+
"scrollBy",
|
|
462
|
+
"scrollTo",
|
|
463
|
+
"scrollX",
|
|
464
|
+
"scrollY",
|
|
465
|
+
"self",
|
|
466
|
+
"status",
|
|
467
|
+
"statusbar",
|
|
468
|
+
"stop",
|
|
469
|
+
"toolbar",
|
|
470
|
+
"top"
|
|
471
|
+
],
|
|
472
|
+
"no-unexpected-multiline": "warn",
|
|
473
|
+
"no-unreachable": "warn",
|
|
474
|
+
"no-unused-expressions": [
|
|
475
|
+
"error",
|
|
476
|
+
{
|
|
477
|
+
"allowShortCircuit": true,
|
|
478
|
+
"allowTernary": true,
|
|
479
|
+
"allowTaggedTemplates": true
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
"no-unused-labels": "warn",
|
|
483
|
+
"no-useless-computed-key": "warn",
|
|
484
|
+
"no-useless-concat": "warn",
|
|
485
|
+
"no-useless-escape": "warn",
|
|
486
|
+
"no-useless-rename": [
|
|
487
|
+
"warn",
|
|
488
|
+
{
|
|
489
|
+
"ignoreDestructuring": false,
|
|
490
|
+
"ignoreImport": false,
|
|
491
|
+
"ignoreExport": false
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"no-with": "warn",
|
|
495
|
+
"no-whitespace-before-property": "warn",
|
|
496
|
+
"react-hooks/exhaustive-deps": "warn",
|
|
497
|
+
"require-yield": "warn",
|
|
498
|
+
"rest-spread-spacing": [
|
|
499
|
+
"warn",
|
|
500
|
+
"never"
|
|
501
|
+
],
|
|
502
|
+
"strict": [
|
|
503
|
+
"warn",
|
|
504
|
+
"never"
|
|
505
|
+
],
|
|
506
|
+
"unicode-bom": [
|
|
507
|
+
"warn",
|
|
508
|
+
"never"
|
|
509
|
+
],
|
|
510
|
+
"use-isnan": "warn",
|
|
511
|
+
"valid-typeof": "warn",
|
|
512
|
+
"no-restricted-properties": [
|
|
513
|
+
"error",
|
|
514
|
+
{
|
|
515
|
+
"object": "require",
|
|
516
|
+
"property": "ensure",
|
|
517
|
+
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"object": "System",
|
|
521
|
+
"property": "import",
|
|
522
|
+
"message": "Please use import() instead. More info: https://facebook.github.io/create-react-app/docs/code-splitting"
|
|
523
|
+
}
|
|
524
|
+
],
|
|
525
|
+
"getter-return": "warn",
|
|
526
|
+
"import/first": "error",
|
|
527
|
+
"import/no-amd": "error",
|
|
528
|
+
"import/no-webpack-loader-syntax": "error",
|
|
529
|
+
"react/forbid-foreign-prop-types": [
|
|
530
|
+
"warn",
|
|
531
|
+
{
|
|
532
|
+
"allowInPropTypes": true
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"react/jsx-no-comment-textnodes": "warn",
|
|
536
|
+
"react/jsx-no-duplicate-props": "warn",
|
|
537
|
+
"react/jsx-no-target-blank": "warn",
|
|
538
|
+
"react/jsx-no-undef": "error",
|
|
539
|
+
"react/jsx-pascal-case": [
|
|
540
|
+
"warn",
|
|
541
|
+
{
|
|
542
|
+
"allowAllCaps": true,
|
|
543
|
+
"ignore": []
|
|
544
|
+
}
|
|
545
|
+
],
|
|
546
|
+
"react/jsx-uses-react": "off",
|
|
547
|
+
"react/jsx-uses-vars": "warn",
|
|
548
|
+
"react/no-danger-with-children": "warn",
|
|
549
|
+
"react/no-direct-mutation-state": "warn",
|
|
550
|
+
"react/no-is-mounted": "warn",
|
|
551
|
+
"react/no-typos": "error",
|
|
552
|
+
"react/react-in-jsx-scope": "off",
|
|
553
|
+
"react/require-render-return": "error",
|
|
554
|
+
"react/style-prop-object": "warn",
|
|
555
|
+
"space-in-parens": [
|
|
556
|
+
"error",
|
|
557
|
+
"never"
|
|
558
|
+
],
|
|
559
|
+
"array-bracket-newline": [
|
|
560
|
+
"error",
|
|
561
|
+
{
|
|
562
|
+
"multiline": true
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
"array-element-newline": ["error", "consistent"],
|
|
566
|
+
"jsx-a11y/alt-text": "warn",
|
|
567
|
+
"jsx-a11y/anchor-is-valid": [
|
|
568
|
+
"warn",
|
|
569
|
+
{
|
|
570
|
+
"aspects": [
|
|
571
|
+
"noHref",
|
|
572
|
+
"invalidHref"
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
],
|
|
576
|
+
"jsx-a11y/aria-activedescendant-has-tabindex": "warn",
|
|
577
|
+
"jsx-a11y/aria-props": "warn",
|
|
578
|
+
"jsx-a11y/aria-proptypes": "warn",
|
|
579
|
+
"jsx-a11y/aria-role": "warn",
|
|
580
|
+
"jsx-a11y/aria-unsupported-elements": "warn",
|
|
581
|
+
"jsx-a11y/heading-has-content": "warn",
|
|
582
|
+
"jsx-a11y/iframe-has-title": "warn",
|
|
583
|
+
"jsx-a11y/img-redundant-alt": "warn",
|
|
584
|
+
"jsx-a11y/no-access-key": "warn",
|
|
585
|
+
"jsx-a11y/no-distracting-elements": "warn",
|
|
586
|
+
"jsx-a11y/no-redundant-roles": "warn",
|
|
587
|
+
"jsx-a11y/role-has-required-aria-props": "warn",
|
|
588
|
+
"jsx-a11y/role-supports-aria-props": "warn",
|
|
589
|
+
"jsx-a11y/scope": "warn",
|
|
590
|
+
"react-hooks/rules-of-hooks": "error",
|
|
591
|
+
"default-case": "off",
|
|
592
|
+
"no-dupe-class-members": "off",
|
|
593
|
+
"no-undef": "off",
|
|
594
|
+
"@typescript-eslint/consistent-type-assertions": "warn",
|
|
595
|
+
"no-array-constructor": "off",
|
|
596
|
+
"@typescript-eslint/no-array-constructor": "warn",
|
|
597
|
+
"@typescript-eslint/no-namespace": "error",
|
|
598
|
+
"no-use-before-define": "off",
|
|
599
|
+
"@typescript-eslint/no-use-before-define": [
|
|
600
|
+
"warn",
|
|
601
|
+
{
|
|
602
|
+
"functions": false,
|
|
603
|
+
"classes": false,
|
|
604
|
+
"variables": false,
|
|
605
|
+
"typedefs": false
|
|
606
|
+
}
|
|
607
|
+
],
|
|
608
|
+
"no-unused-vars": "off",
|
|
609
|
+
"@typescript-eslint/no-unused-vars": [
|
|
610
|
+
"warn",
|
|
611
|
+
{
|
|
612
|
+
"args": "none",
|
|
613
|
+
"ignoreRestSiblings": true
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
"no-useless-constructor": "off",
|
|
617
|
+
"@typescript-eslint/no-useless-constructor": "warn",
|
|
618
|
+
"@typescript-eslint/no-empty-object-type": "off"
|
|
619
|
+
},
|
|
620
|
+
"overrides": [
|
|
621
|
+
{
|
|
622
|
+
"files": ["src/types/*.ts"],
|
|
623
|
+
"rules": {
|
|
624
|
+
"semi": "off"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"files": [
|
|
629
|
+
"sagas.ts"
|
|
630
|
+
],
|
|
631
|
+
"rules": {
|
|
632
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
633
|
+
"@typescript-eslint/explicit-module-boundary-types": "off"
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
}
|
package/.husky/pre-push
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
yarn lint
|
|
Binary file
|
package/.yarnrc.yml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
approvedGitRepositories:
|
|
2
|
+
- "**"
|
|
3
|
+
|
|
4
|
+
enableScripts: true
|
|
5
|
+
|
|
6
|
+
nodeLinker: node-modules
|
|
7
|
+
|
|
8
|
+
# Suppress the sass-embedded optional peer dep warning — we use sass instead
|
|
9
|
+
packageExtensions:
|
|
10
|
+
"esbuild-sass-plugin@*":
|
|
11
|
+
peerDependenciesMeta:
|
|
12
|
+
sass-embedded:
|
|
13
|
+
optional: true
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[13:54:11.138] [INFO] storybook v10.3.6
|
|
2
|
+
[13:54:20.989] [PROMPT] Port 6006 is not available.
|
|
3
|
+
Would you like to run Storybook on port 6007 instead? {"choice":true}
|
|
4
|
+
[13:54:21.024] [ERROR] [38;2;241;97;97mSB_CORE-SERVER_0007 (MainFileEvaluationError): Storybook couldn't evaluate your .storybook/main.js file.
|
|
5
|
+
|
|
6
|
+
Original error:
|
|
7
|
+
ReferenceError: resolve is not defined
|
|
8
|
+
at file:///.storybook/main.js:36:21
|
|
9
|
+
at ModuleJob.run (node:internal/modules/esm/module_job:437:25)
|
|
10
|
+
at async node:internal/modules/esm/loader:639:26
|
|
11
|
+
at async importModule (file:///node_modules/storybook/dist/_node-chunks/chunk-OWMIR4VJ.js:737:11)
|
|
12
|
+
at async loadMainConfig (file:///node_modules/storybook/dist/_node-chunks/chunk-H4PWFMMO.js:11703:12)
|
|
13
|
+
at async buildDevStandalone (file:///node_modules/storybook/dist/core-server/index.js:7953:16)
|
|
14
|
+
at async withTelemetry (file:///node_modules/storybook/dist/_node-chunks/chunk-UYONHJJP.js:225:12)
|
|
15
|
+
at async dev (file:///node_modules/storybook/dist/bin/core.js:2736:3)
|
|
16
|
+
at async _Command.<anonymous> (file:///node_modules/storybook/dist/bin/core.js:2806:92)[39m
|
|
17
|
+
at loadMainConfig (file://./node_modules/storybook/dist/_node-chunks/chunk-H4PWFMMO.js:11734:11)
|
|
18
|
+
at async buildDevStandalone (file://./node_modules/storybook/dist/core-server/index.js:7953:16)
|
|
19
|
+
at async withTelemetry (file://./node_modules/storybook/dist/_node-chunks/chunk-UYONHJJP.js:225:12)
|
|
20
|
+
at async dev (file://./node_modules/storybook/dist/bin/core.js:2736:3)
|
|
21
|
+
at async _Command.<anonymous> (file://./node_modules/storybook/dist/bin/core.js:2806:92)
|
|
22
|
+
[13:54:21.025] [WARN] Broken build, fix the error above.
|
|
23
|
+
You may need to refresh the browser.
|
|
24
|
+
[13:54:21.027] [WARN] Failed to load preset: "/Users/oleksandr/Documents/Projects/publicui/.storybook/main.js"
|
|
25
|
+
[13:54:21.027] [ERROR] [38;2;241;97;97mReferenceError: resolve is not defined[39m
|
|
26
|
+
at file://./.storybook/main.js:36:21
|
|
27
|
+
at ModuleJob.run (node:internal/modules/esm/module_job:437:25)
|
|
28
|
+
at async node:internal/modules/esm/loader:639:26
|
|
29
|
+
at async importModule (file://./node_modules/storybook/dist/_node-chunks/chunk-OWMIR4VJ.js:737:11)
|
|
30
|
+
at async loadMainConfig (file://./node_modules/storybook/dist/_node-chunks/chunk-H4PWFMMO.js:11703:12)
|
|
31
|
+
at async buildDevStandalone (file://./node_modules/storybook/dist/core-server/index.js:7953:16)
|
|
32
|
+
at async withTelemetry (file://./node_modules/storybook/dist/_node-chunks/chunk-UYONHJJP.js:225:12)
|
|
33
|
+
at async dev (file://./node_modules/storybook/dist/bin/core.js:2736:3)
|
|
34
|
+
at async _Command.<anonymous> (file://./node_modules/storybook/dist/bin/core.js:2806:92)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|