@pezkuwi/dev 0.85.11 → 0.86.0

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.
Files changed (69) hide show
  1. package/cjs/packageInfo.js +1 -1
  2. package/cjs/rootJs/index.js +0 -1
  3. package/config/eslint.js +33 -19
  4. package/config/eslint.rules.js +66 -60
  5. package/config/eslint.standard.js +585 -0
  6. package/config/tsconfig.json +8 -0
  7. package/package.json +67 -66
  8. package/packageInfo.js +1 -1
  9. package/rootJs/index.js +1 -2
  10. package/scripts/pezkuwi-dev-build-ts.mjs +46 -21
  11. package/scripts/pezkuwi-exec-node-test.mjs +6 -6
  12. package/scripts/util.mjs +2 -2
  13. package/.skip-deno +0 -0
  14. package/build-deno/README.md +0 -547
  15. package/build-deno/detectOther.ts +0 -2
  16. package/build-deno/index.ts +0 -4
  17. package/build-deno/mod.ts +0 -10
  18. package/build-deno/packageInfo.ts +0 -3
  19. package/build-deno/root.ts +0 -4
  20. package/build-deno/rootJs/Clazz.ts +0 -43
  21. package/build-deno/rootJs/Jsx.tsx +0 -42
  22. package/build-deno/rootJs/JsxChild.tsx +0 -18
  23. package/build-deno/rootJs/augmented.ts +0 -12
  24. package/build-deno/rootJs/dynamic.d.mts +0 -4
  25. package/build-deno/rootJs/dynamic.mjs +0 -13
  26. package/build-deno/rootJs/index.ts +0 -51
  27. package/build-deno/rootJs/testJson.json +0 -5
  28. package/build-deno/rootStatic/zagros.svg +0 -1
  29. package/build-deno/rootTests.ts +0 -57
  30. package/build-deno/types.ts +0 -4
  31. package/build-tsc/detectOther.d.ts +0 -2
  32. package/build-tsc/index.d.ts +0 -1
  33. package/build-tsc/packageInfo.d.ts +0 -6
  34. package/build-tsc/root.d.ts +0 -2
  35. package/build-tsc/rootJs/Clazz.d.ts +0 -18
  36. package/build-tsc/rootJs/Jsx.d.ts +0 -5
  37. package/build-tsc/rootJs/JsxChild.d.ts +0 -9
  38. package/build-tsc/rootJs/augmented.d.ts +0 -8
  39. package/build-tsc/rootJs/index.d.ts +0 -19
  40. package/build-tsc/rootTests.d.ts +0 -2
  41. package/build-tsc/types.d.ts +0 -2
  42. package/build-tsc-cjs/detectOther.js +0 -3
  43. package/build-tsc-cjs/index.js +0 -3
  44. package/build-tsc-cjs/packageInfo.js +0 -4
  45. package/build-tsc-cjs/root.js +0 -6
  46. package/build-tsc-cjs/rootJs/Clazz.js +0 -36
  47. package/build-tsc-cjs/rootJs/Jsx.js +0 -16
  48. package/build-tsc-cjs/rootJs/JsxChild.js +0 -9
  49. package/build-tsc-cjs/rootJs/augmented.js +0 -3
  50. package/build-tsc-cjs/rootJs/index.js +0 -51
  51. package/build-tsc-cjs/rootTests.js +0 -44
  52. package/build-tsc-cjs/types.js +0 -2
  53. package/build-tsc-esm/detectOther.js +0 -1
  54. package/build-tsc-esm/index.js +0 -2
  55. package/build-tsc-esm/packageInfo.js +0 -1
  56. package/build-tsc-esm/root.js +0 -2
  57. package/build-tsc-esm/rootJs/Clazz.js +0 -32
  58. package/build-tsc-esm/rootJs/Jsx.js +0 -13
  59. package/build-tsc-esm/rootJs/JsxChild.js +0 -6
  60. package/build-tsc-esm/rootJs/augmented.js +0 -2
  61. package/build-tsc-esm/rootJs/index.js +0 -39
  62. package/build-tsc-esm/rootTests.js +0 -41
  63. package/build-tsc-esm/types.js +0 -1
  64. package/tsconfig.build.json +0 -18
  65. package/tsconfig.build.tsbuildinfo +0 -1
  66. package/tsconfig.config.json +0 -14
  67. package/tsconfig.scripts.json +0 -14
  68. package/tsconfig.spec.json +0 -18
  69. package/tsconfig.spec.tsbuildinfo +0 -1
@@ -0,0 +1,585 @@
1
+ // Copyright 2017-2026 @pezkuwi/dev authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ // The rules of eslint-config-standard 17.1.0 (MIT, Copyright Feross Aboukhadijeh,
5
+ // https://github.com/standard/eslint-config-standard), carried here once and with
6
+ // the same options, so the lint stays what it was: that package is written for
7
+ // eslint 8. Its formatting rules are deprecated in eslint core and continue in
8
+ // @stylistic under the same names (func-call-spacing is function-call-spacing
9
+ // there). no-new-object and no-new-symbol, deprecated too, are no-object-constructor
10
+ // and no-new-native-nonconstructor here; import/* is import-x/*.
11
+
12
+ export const standardRules = {
13
+ '@stylistic/array-bracket-spacing': [
14
+ 'error',
15
+ 'never'
16
+ ],
17
+ '@stylistic/arrow-spacing': [
18
+ 'error',
19
+ {
20
+ after: true,
21
+ before: true
22
+ }
23
+ ],
24
+ '@stylistic/block-spacing': [
25
+ 'error',
26
+ 'always'
27
+ ],
28
+ '@stylistic/brace-style': [
29
+ 'error',
30
+ '1tbs',
31
+ {
32
+ allowSingleLine: true
33
+ }
34
+ ],
35
+ '@stylistic/comma-dangle': [
36
+ 'error',
37
+ {
38
+ arrays: 'never',
39
+ exports: 'never',
40
+ functions: 'never',
41
+ imports: 'never',
42
+ objects: 'never'
43
+ }
44
+ ],
45
+ '@stylistic/comma-spacing': [
46
+ 'error',
47
+ {
48
+ after: true,
49
+ before: false
50
+ }
51
+ ],
52
+ '@stylistic/comma-style': [
53
+ 'error',
54
+ 'last'
55
+ ],
56
+ '@stylistic/computed-property-spacing': [
57
+ 'error',
58
+ 'never',
59
+ {
60
+ enforceForClassMembers: true
61
+ }
62
+ ],
63
+ '@stylistic/dot-location': [
64
+ 'error',
65
+ 'property'
66
+ ],
67
+ '@stylistic/eol-last': 'error',
68
+ '@stylistic/function-call-spacing': [
69
+ 'error',
70
+ 'never'
71
+ ],
72
+ '@stylistic/generator-star-spacing': [
73
+ 'error',
74
+ {
75
+ after: true,
76
+ before: true
77
+ }
78
+ ],
79
+ '@stylistic/indent': [
80
+ 'error',
81
+ 2,
82
+ {
83
+ ArrayExpression: 1,
84
+ CallExpression: {
85
+ arguments: 1
86
+ },
87
+ FunctionDeclaration: {
88
+ body: 1,
89
+ parameters: 1
90
+ },
91
+ FunctionExpression: {
92
+ body: 1,
93
+ parameters: 1
94
+ },
95
+ ImportDeclaration: 1,
96
+ MemberExpression: 1,
97
+ ObjectExpression: 1,
98
+ SwitchCase: 1,
99
+ VariableDeclarator: 1,
100
+ flatTernaryExpressions: false,
101
+ ignoreComments: false,
102
+ ignoredNodes: [
103
+ 'TemplateLiteral *',
104
+ 'JSXElement',
105
+ 'JSXElement > *',
106
+ 'JSXAttribute',
107
+ 'JSXIdentifier',
108
+ 'JSXNamespacedName',
109
+ 'JSXMemberExpression',
110
+ 'JSXSpreadAttribute',
111
+ 'JSXExpressionContainer',
112
+ 'JSXOpeningElement',
113
+ 'JSXClosingElement',
114
+ 'JSXFragment',
115
+ 'JSXOpeningFragment',
116
+ 'JSXClosingFragment',
117
+ 'JSXText',
118
+ 'JSXEmptyExpression',
119
+ 'JSXSpreadChild'
120
+ ],
121
+ offsetTernaryExpressions: true,
122
+ outerIIFEBody: 1
123
+ }
124
+ ],
125
+ '@stylistic/key-spacing': [
126
+ 'error',
127
+ {
128
+ afterColon: true,
129
+ beforeColon: false
130
+ }
131
+ ],
132
+ '@stylistic/keyword-spacing': [
133
+ 'error',
134
+ {
135
+ after: true,
136
+ before: true
137
+ }
138
+ ],
139
+ '@stylistic/lines-between-class-members': [
140
+ 'error',
141
+ 'always',
142
+ {
143
+ exceptAfterSingleLine: true
144
+ }
145
+ ],
146
+ '@stylistic/multiline-ternary': [
147
+ 'error',
148
+ 'always-multiline'
149
+ ],
150
+ '@stylistic/new-parens': 'error',
151
+ '@stylistic/no-extra-parens': [
152
+ 'error',
153
+ 'functions'
154
+ ],
155
+ '@stylistic/no-floating-decimal': 'error',
156
+ '@stylistic/no-mixed-operators': [
157
+ 'error',
158
+ {
159
+ allowSamePrecedence: true,
160
+ groups: [
161
+ [
162
+ '==',
163
+ '!=',
164
+ '===',
165
+ '!==',
166
+ '>',
167
+ '>=',
168
+ '<',
169
+ '<='
170
+ ],
171
+ [
172
+ '&&',
173
+ '||'
174
+ ],
175
+ [
176
+ 'in',
177
+ 'instanceof'
178
+ ]
179
+ ]
180
+ }
181
+ ],
182
+ '@stylistic/no-mixed-spaces-and-tabs': 'error',
183
+ '@stylistic/no-multi-spaces': 'error',
184
+ '@stylistic/no-multiple-empty-lines': [
185
+ 'error',
186
+ {
187
+ max: 1,
188
+ maxBOF: 0,
189
+ maxEOF: 0
190
+ }
191
+ ],
192
+ '@stylistic/no-tabs': 'error',
193
+ '@stylistic/no-trailing-spaces': 'error',
194
+ '@stylistic/no-whitespace-before-property': 'error',
195
+ '@stylistic/object-curly-newline': [
196
+ 'error',
197
+ {
198
+ consistent: true,
199
+ multiline: true
200
+ }
201
+ ],
202
+ '@stylistic/object-curly-spacing': [
203
+ 'error',
204
+ 'always'
205
+ ],
206
+ // allowMultiplePropertiesPerLine was core's alias for allowAllPropertiesOnSameLine
207
+ // (the two were OR-ed); @stylistic only takes the latter.
208
+ '@stylistic/object-property-newline': [
209
+ 'error',
210
+ {
211
+ allowAllPropertiesOnSameLine: true
212
+ }
213
+ ],
214
+ '@stylistic/operator-linebreak': [
215
+ 'error',
216
+ 'after',
217
+ {
218
+ overrides: {
219
+ ':': 'before',
220
+ '?': 'before',
221
+ '|>': 'before'
222
+ }
223
+ }
224
+ ],
225
+ '@stylistic/padded-blocks': [
226
+ 'error',
227
+ {
228
+ blocks: 'never',
229
+ classes: 'never',
230
+ switches: 'never'
231
+ }
232
+ ],
233
+ '@stylistic/quote-props': [
234
+ 'error',
235
+ 'as-needed'
236
+ ],
237
+ '@stylistic/quotes': [
238
+ 'error',
239
+ 'single',
240
+ {
241
+ allowTemplateLiterals: 'never',
242
+ avoidEscape: true
243
+ }
244
+ ],
245
+ '@stylistic/rest-spread-spacing': [
246
+ 'error',
247
+ 'never'
248
+ ],
249
+ '@stylistic/semi': [
250
+ 'error',
251
+ 'never'
252
+ ],
253
+ '@stylistic/semi-spacing': [
254
+ 'error',
255
+ {
256
+ after: true,
257
+ before: false
258
+ }
259
+ ],
260
+ '@stylistic/space-before-blocks': [
261
+ 'error',
262
+ 'always'
263
+ ],
264
+ '@stylistic/space-before-function-paren': [
265
+ 'error',
266
+ 'always'
267
+ ],
268
+ '@stylistic/space-in-parens': [
269
+ 'error',
270
+ 'never'
271
+ ],
272
+ '@stylistic/space-infix-ops': 'error',
273
+ '@stylistic/space-unary-ops': [
274
+ 'error',
275
+ {
276
+ nonwords: false,
277
+ words: true
278
+ }
279
+ ],
280
+ '@stylistic/spaced-comment': [
281
+ 'error',
282
+ 'always',
283
+ {
284
+ block: {
285
+ balanced: true,
286
+ exceptions: [
287
+ '*'
288
+ ],
289
+ markers: [
290
+ '*package',
291
+ '!',
292
+ ',',
293
+ ':',
294
+ '::',
295
+ 'flow-include'
296
+ ]
297
+ },
298
+ line: {
299
+ markers: [
300
+ '*package',
301
+ '!',
302
+ '/',
303
+ ',',
304
+ '='
305
+ ]
306
+ }
307
+ }
308
+ ],
309
+ '@stylistic/template-curly-spacing': [
310
+ 'error',
311
+ 'never'
312
+ ],
313
+ '@stylistic/template-tag-spacing': [
314
+ 'error',
315
+ 'never'
316
+ ],
317
+ '@stylistic/wrap-iife': [
318
+ 'error',
319
+ 'any',
320
+ {
321
+ functionPrototypeMethods: true
322
+ }
323
+ ],
324
+ '@stylistic/yield-star-spacing': [
325
+ 'error',
326
+ 'both'
327
+ ],
328
+ 'accessor-pairs': [
329
+ 'error',
330
+ {
331
+ enforceForClassMembers: true,
332
+ setWithoutGet: true
333
+ }
334
+ ],
335
+ 'array-callback-return': [
336
+ 'error',
337
+ {
338
+ allowImplicit: false,
339
+ checkForEach: false
340
+ }
341
+ ],
342
+ camelcase: [
343
+ 'error',
344
+ {
345
+ allow: [
346
+ '^UNSAFE_'
347
+ ],
348
+ ignoreGlobals: true,
349
+ properties: 'never'
350
+ }
351
+ ],
352
+ 'constructor-super': 'error',
353
+ curly: [
354
+ 'error',
355
+ 'multi-line'
356
+ ],
357
+ 'default-case-last': 'error',
358
+ 'dot-notation': [
359
+ 'error',
360
+ {
361
+ allowKeywords: true
362
+ }
363
+ ],
364
+ eqeqeq: [
365
+ 'error',
366
+ 'always',
367
+ {
368
+ null: 'ignore'
369
+ }
370
+ ],
371
+ 'import-x/export': 'error',
372
+ 'import-x/first': 'error',
373
+ 'import-x/no-absolute-path': [
374
+ 'error',
375
+ {
376
+ amd: false,
377
+ commonjs: true,
378
+ esmodule: true
379
+ }
380
+ ],
381
+ 'import-x/no-duplicates': 'error',
382
+ 'import-x/no-named-default': 'error',
383
+ 'import-x/no-webpack-loader-syntax': 'error',
384
+ 'n/handle-callback-err': [
385
+ 'error',
386
+ '^(err|error)$'
387
+ ],
388
+ 'n/no-callback-literal': 'error',
389
+ 'n/no-deprecated-api': 'error',
390
+ 'n/no-exports-assign': 'error',
391
+ 'n/no-new-require': 'error',
392
+ 'n/no-path-concat': 'error',
393
+ 'n/process-exit-as-throw': 'error',
394
+ 'new-cap': [
395
+ 'error',
396
+ {
397
+ capIsNew: false,
398
+ newIsCap: true,
399
+ properties: true
400
+ }
401
+ ],
402
+ 'no-array-constructor': 'error',
403
+ 'no-async-promise-executor': 'error',
404
+ 'no-caller': 'error',
405
+ 'no-case-declarations': 'error',
406
+ 'no-class-assign': 'error',
407
+ 'no-compare-neg-zero': 'error',
408
+ 'no-cond-assign': 'error',
409
+ 'no-const-assign': 'error',
410
+ 'no-constant-condition': [
411
+ 'error',
412
+ {
413
+ checkLoops: false
414
+ }
415
+ ],
416
+ 'no-control-regex': 'error',
417
+ 'no-debugger': 'error',
418
+ 'no-delete-var': 'error',
419
+ 'no-dupe-args': 'error',
420
+ 'no-dupe-class-members': 'error',
421
+ 'no-dupe-keys': 'error',
422
+ 'no-duplicate-case': 'error',
423
+ 'no-empty': [
424
+ 'error',
425
+ {
426
+ allowEmptyCatch: true
427
+ }
428
+ ],
429
+ 'no-empty-character-class': 'error',
430
+ 'no-empty-pattern': 'error',
431
+ 'no-eval': 'error',
432
+ 'no-ex-assign': 'error',
433
+ 'no-extend-native': 'error',
434
+ 'no-extra-bind': 'error',
435
+ 'no-extra-boolean-cast': 'error',
436
+ 'no-fallthrough': 'error',
437
+ 'no-func-assign': 'error',
438
+ 'no-global-assign': 'error',
439
+ 'no-implied-eval': 'error',
440
+ 'no-import-assign': 'error',
441
+ 'no-invalid-regexp': 'error',
442
+ 'no-irregular-whitespace': 'error',
443
+ 'no-iterator': 'error',
444
+ 'no-labels': [
445
+ 'error',
446
+ {
447
+ allowLoop: false,
448
+ allowSwitch: false
449
+ }
450
+ ],
451
+ 'no-lone-blocks': 'error',
452
+ 'no-loss-of-precision': 'error',
453
+ 'no-misleading-character-class': 'error',
454
+ 'no-multi-str': 'error',
455
+ 'no-new': 'error',
456
+ 'no-new-func': 'error',
457
+ 'no-new-native-nonconstructor': 'error',
458
+ 'no-new-wrappers': 'error',
459
+ 'no-obj-calls': 'error',
460
+ 'no-object-constructor': 'error',
461
+ 'no-octal': 'error',
462
+ 'no-octal-escape': 'error',
463
+ 'no-proto': 'error',
464
+ 'no-prototype-builtins': 'error',
465
+ 'no-redeclare': [
466
+ 'error',
467
+ {
468
+ builtinGlobals: false
469
+ }
470
+ ],
471
+ 'no-regex-spaces': 'error',
472
+ 'no-return-assign': [
473
+ 'error',
474
+ 'except-parens'
475
+ ],
476
+ 'no-self-assign': [
477
+ 'error',
478
+ {
479
+ props: true
480
+ }
481
+ ],
482
+ 'no-self-compare': 'error',
483
+ 'no-sequences': 'error',
484
+ 'no-shadow-restricted-names': 'error',
485
+ 'no-sparse-arrays': 'error',
486
+ 'no-template-curly-in-string': 'error',
487
+ 'no-this-before-super': 'error',
488
+ 'no-throw-literal': 'error',
489
+ 'no-undef': 'error',
490
+ 'no-undef-init': 'error',
491
+ 'no-unexpected-multiline': 'error',
492
+ 'no-unmodified-loop-condition': 'error',
493
+ 'no-unneeded-ternary': [
494
+ 'error',
495
+ {
496
+ defaultAssignment: false
497
+ }
498
+ ],
499
+ 'no-unreachable': 'error',
500
+ 'no-unreachable-loop': 'error',
501
+ 'no-unsafe-finally': 'error',
502
+ 'no-unsafe-negation': 'error',
503
+ 'no-unused-expressions': [
504
+ 'error',
505
+ {
506
+ allowShortCircuit: true,
507
+ allowTaggedTemplates: true,
508
+ allowTernary: true
509
+ }
510
+ ],
511
+ 'no-unused-vars': [
512
+ 'error',
513
+ {
514
+ args: 'none',
515
+ caughtErrors: 'none',
516
+ ignoreRestSiblings: true,
517
+ vars: 'all'
518
+ }
519
+ ],
520
+ 'no-use-before-define': [
521
+ 'error',
522
+ {
523
+ classes: false,
524
+ functions: false,
525
+ variables: false
526
+ }
527
+ ],
528
+ 'no-useless-backreference': 'error',
529
+ 'no-useless-call': 'error',
530
+ 'no-useless-catch': 'error',
531
+ 'no-useless-computed-key': 'error',
532
+ 'no-useless-constructor': 'error',
533
+ 'no-useless-escape': 'error',
534
+ 'no-useless-rename': 'error',
535
+ 'no-useless-return': 'error',
536
+ 'no-var': 'warn',
537
+ 'no-void': 'error',
538
+ 'no-with': 'error',
539
+ 'object-shorthand': [
540
+ 'warn',
541
+ 'properties'
542
+ ],
543
+ 'one-var': [
544
+ 'error',
545
+ {
546
+ initialized: 'never'
547
+ }
548
+ ],
549
+ 'prefer-const': [
550
+ 'error',
551
+ {
552
+ destructuring: 'all'
553
+ }
554
+ ],
555
+ 'prefer-promise-reject-errors': 'error',
556
+ 'prefer-regex-literals': [
557
+ 'error',
558
+ {
559
+ disallowRedundantWrapping: true
560
+ }
561
+ ],
562
+ 'promise/param-names': 'error',
563
+ 'symbol-description': 'error',
564
+ 'unicode-bom': [
565
+ 'error',
566
+ 'never'
567
+ ],
568
+ 'use-isnan': [
569
+ 'error',
570
+ {
571
+ enforceForIndexOf: true,
572
+ enforceForSwitchCase: true
573
+ }
574
+ ],
575
+ 'valid-typeof': [
576
+ 'error',
577
+ {
578
+ requireStringLiterals: true
579
+ }
580
+ ],
581
+ yoda: [
582
+ 'error',
583
+ 'never'
584
+ ]
585
+ };
@@ -5,6 +5,14 @@
5
5
  */
6
6
  "extends": "@tsconfig/strictest/tsconfig.json",
7
7
  "compilerOptions": {
8
+ /**
9
+ * JavaScript sources are type-checked like the rest. The base set this
10
+ * until @tsconfig/strictest 2.0.8 dropped checkJs, which left every .js and
11
+ * .mjs file outside the program: lint could not parse them with type info.
12
+ */
13
+ "allowJs": true,
14
+ "checkJs": true,
15
+
8
16
  /**
9
17
  * Aligns with packages/dev/scripts/pezkuwi-dev-build-ts & packages/dev-ts/src/loader
10
18
  * (target here is specifically tied to the minimum supported Node version)