@naturalcycles/dev-lib 20.20.0 → 20.22.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.
- package/cfg/_cnst.js +1 -1
- package/cfg/eslint-rules.js +101 -101
- package/cfg/eslint.config.js +23 -33
- package/package.json +2 -6
package/cfg/_cnst.js
CHANGED
|
@@ -4,7 +4,7 @@ const prettierExtensionsExclusive = 'js,jsx,json,md,graphql,yml,yaml,html'
|
|
|
4
4
|
// everything that prettier supports:
|
|
5
5
|
const prettierExtensionsAll =
|
|
6
6
|
'ts,tsx,cts,mts,css,scss,js,jsx,cjs,mjs,json,md,graphql,yml,yaml,html,vue'
|
|
7
|
-
const eslintExtensions = 'ts,tsx,cts,mts,
|
|
7
|
+
const eslintExtensions = 'ts,tsx,cts,mts,html'
|
|
8
8
|
const stylelintExtensions = 'css,scss'
|
|
9
9
|
const lintExclude = ['./**/__exclude/**', './**/dist/**', './**/cache/**', './CHANGELOG.md']
|
|
10
10
|
const minActionlintVersion = '1.7.7'
|
package/cfg/eslint-rules.js
CHANGED
|
@@ -326,99 +326,99 @@ export default {
|
|
|
326
326
|
'@typescript-eslint/prefer-find': 2,
|
|
327
327
|
'prefer-promise-reject-errors': 0,
|
|
328
328
|
'@typescript-eslint/prefer-promise-reject-errors': 0, // ox
|
|
329
|
-
'unicorn/prefer-import-meta-properties': 2,
|
|
330
|
-
'unicorn/prefer-response-static-json': 0, // ox
|
|
331
|
-
'unicorn/prefer-keyboard-event-key': 0, // ox
|
|
332
|
-
'unicorn/prefer-default-parameters': 0, // ox
|
|
333
|
-
'unicorn/prefer-includes': 0, // ox
|
|
334
|
-
'unicorn/no-array-callback-reference': 0, // false positives
|
|
335
|
-
'unicorn/no-process-exit': 0,
|
|
336
|
-
'unicorn/prefer-single-call': 0,
|
|
337
|
-
'unicorn/no-abusive-eslint-disable': 0,
|
|
338
|
-
'unicorn/no-negated-condition': 0,
|
|
339
|
-
'unicorn/no-unnecessary-polyfills': 0, // little value, bottleneck performance
|
|
340
|
-
'unicorn/no-array-method-this-argument': 0, // bug: wrongly removes`readable.flatMap` concurrency option
|
|
341
|
-
'unicorn/prefer-array-flat': 0, // bug: messes up with `readable.flatMap`
|
|
342
|
-
'unicorn/number-literal-case': 0, // conflicts with prettier
|
|
343
|
-
'unicorn/prevent-abbreviations': 0,
|
|
344
|
-
'unicorn/prefer-module': 0,
|
|
345
|
-
'unicorn/no-null': 0,
|
|
346
|
-
'unicorn/filename-case': 0,
|
|
347
|
-
'unicorn/prefer-node-protocol': 0, // oxlint
|
|
348
|
-
'unicorn/prefer-set-has': 0,
|
|
349
|
-
'unicorn/explicit-length-check': 0,
|
|
350
|
-
'unicorn/no-array-for-each': 0,
|
|
351
|
-
'unicorn/prefer-at': 0, // iOS 15.4+, oxlint
|
|
352
|
-
'unicorn/import-style': 0, // todo: fix
|
|
353
|
-
'unicorn/prefer-spread': 0, // fails on joiSchema.concat() which is not an array!
|
|
354
|
-
'unicorn/prefer-structured-clone': 0, // no real advantage, plus in most of the cases we want JSON to remove undefined, etc.
|
|
355
|
-
'unicorn/better-regex': 0, // we still believe that [0-9] is clearer than [\d]
|
|
356
|
-
'unicorn/no-for-loop': 0, // oxlint has similar
|
|
357
|
-
'unicorn/no-array-reduce': 0, // oxlint
|
|
358
|
-
'unicorn/consistent-assert': 0, // oxlint
|
|
359
|
-
'unicorn/consistent-date-clone': 0, // oxlint
|
|
360
|
-
'unicorn/consistent-empty-array-spread': 0, // oxlint
|
|
361
|
-
'unicorn/consistent-existence-index-check': 0, // oxlint
|
|
362
|
-
'unicorn/escape-case': 0, // oxlint
|
|
363
|
-
'unicorn/no-console-spaces': 0, // oxlint
|
|
364
|
-
'unicorn/no-hex-escape': 0, // oxlint
|
|
365
|
-
'unicorn/no-instanceof-builtins': 0, // oxlint
|
|
366
|
-
'unicorn/no-lonely-if': 0, // oxlint
|
|
367
|
-
'unicorn/no-named-default': 0, // oxlint
|
|
368
|
-
'unicorn/no-negation-in-equality-check': 0, // oxlint
|
|
369
|
-
'unicorn/no-new-buffer': 0, // oxlint
|
|
370
|
-
'unicorn/no-accessor-recursion': 0, // oxlint
|
|
371
|
-
'unicorn/no-anonymous-default-export': 0, // oxlint
|
|
372
|
-
'unicorn/prefer-string-replace-all': 0, // oxlint
|
|
373
|
-
'unicorn/prefer-math-min-max': 0, // oxlint
|
|
374
|
-
'unicorn/prefer-code-point': 0, // oxlint
|
|
375
|
-
'unicorn/prefer-global-this': 0, // oxlint
|
|
376
|
-
'unicorn/error-message': 0, // oxlint
|
|
377
|
-
'unicorn/no-zero-fractions': 0, // oxlint
|
|
378
|
-
'unicorn/prefer-array-some': 0, // oxlint
|
|
379
|
-
'unicorn/prefer-math-trunc': 0, // oxlint
|
|
380
|
-
'unicorn/no-object-as-default-parameter': 0, // doesn't allow e.g method (opt = { skipValidation: true })
|
|
381
|
-
'unicorn/catch-error-name': [
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
],
|
|
388
|
-
'unicorn/prefer-switch': 0,
|
|
389
|
-
'unicorn/no-useless-undefined': 0,
|
|
390
|
-
'unicorn/prefer-ternary': [0, 'only-single-line'], // single-line doesn't really work, hence disabled
|
|
391
|
-
'unicorn/numeric-separators-style': [2, { onlyIfContainsSeparator: true }],
|
|
392
|
-
'unicorn/consistent-destructuring': 0, // todo: enable later
|
|
393
|
-
'unicorn/no-nested-ternary': 0,
|
|
394
|
-
'unicorn/consistent-function-scoping': 0, // todo: consider enabling later
|
|
395
|
-
'unicorn/no-this-assignment': 0,
|
|
396
|
-
'unicorn/prefer-string-slice': 0, // todo: consider?
|
|
397
|
-
'unicorn/prefer-number-properties': 0,
|
|
398
|
-
'unicorn/prefer-negative-index': 0,
|
|
399
|
-
'unicorn/prefer-regexp-test': 0,
|
|
400
|
-
'unicorn/prefer-query-selector': 0,
|
|
401
|
-
'unicorn/prefer-prototype-methods': 0, // false-positive on node promisify() of callback functions
|
|
402
|
-
'unicorn/expiring-todo-comments': 1, // warning, instead of error
|
|
403
|
-
'unicorn/no-await-in-promise-methods': 0, // oxlint
|
|
404
|
-
'unicorn/no-document-cookie': 0, // oxlint
|
|
405
|
-
'unicorn/no-empty-file': 0, // oxlint
|
|
406
|
-
'unicorn/no-invalid-fetch-options': 0, // oxlint
|
|
407
|
-
'unicorn/no-invalid-remove-event-listener': 0, // oxlint
|
|
408
|
-
'unicorn/no-magic-array-flat-depth': 0, // oxlint
|
|
409
|
-
'unicorn/no-new-array': 0, // oxlint
|
|
410
|
-
'unicorn/no-single-promise-in-promise-methods': 0, // oxlint
|
|
411
|
-
'unicorn/no-unnecessary-await': 0, // oxlint
|
|
412
|
-
'unicorn/no-useless-fallback-in-spread': 0, // oxlint
|
|
413
|
-
'unicorn/no-useless-length-check': 0, // oxlint
|
|
414
|
-
'unicorn/no-useless-spread': 0, // oxlint
|
|
415
|
-
'unicorn/prefer-array-find': 0, // oxlint
|
|
416
|
-
'unicorn/prefer-modern-math-apis': 0, // oxlint
|
|
417
|
-
'unicorn/prefer-set-size': 0, // oxlint
|
|
418
|
-
'unicorn/prefer-string-starts-ends-with': 0, // oxlint
|
|
329
|
+
// 'unicorn/prefer-import-meta-properties': 2,
|
|
330
|
+
// 'unicorn/prefer-response-static-json': 0, // ox
|
|
331
|
+
// 'unicorn/prefer-keyboard-event-key': 0, // ox
|
|
332
|
+
// 'unicorn/prefer-default-parameters': 0, // ox
|
|
333
|
+
// 'unicorn/prefer-includes': 0, // ox
|
|
334
|
+
// 'unicorn/no-array-callback-reference': 0, // false positives
|
|
335
|
+
// 'unicorn/no-process-exit': 0,
|
|
336
|
+
// 'unicorn/prefer-single-call': 0,
|
|
337
|
+
// 'unicorn/no-abusive-eslint-disable': 0,
|
|
338
|
+
// 'unicorn/no-negated-condition': 0,
|
|
339
|
+
// 'unicorn/no-unnecessary-polyfills': 0, // little value, bottleneck performance
|
|
340
|
+
// 'unicorn/no-array-method-this-argument': 0, // bug: wrongly removes`readable.flatMap` concurrency option
|
|
341
|
+
// 'unicorn/prefer-array-flat': 0, // bug: messes up with `readable.flatMap`
|
|
342
|
+
// 'unicorn/number-literal-case': 0, // conflicts with prettier
|
|
343
|
+
// 'unicorn/prevent-abbreviations': 0,
|
|
344
|
+
// 'unicorn/prefer-module': 0,
|
|
345
|
+
// 'unicorn/no-null': 0,
|
|
346
|
+
// 'unicorn/filename-case': 0,
|
|
347
|
+
// 'unicorn/prefer-node-protocol': 0, // oxlint
|
|
348
|
+
// 'unicorn/prefer-set-has': 0,
|
|
349
|
+
// 'unicorn/explicit-length-check': 0,
|
|
350
|
+
// 'unicorn/no-array-for-each': 0,
|
|
351
|
+
// 'unicorn/prefer-at': 0, // iOS 15.4+, oxlint
|
|
352
|
+
// 'unicorn/import-style': 0, // todo: fix
|
|
353
|
+
// 'unicorn/prefer-spread': 0, // fails on joiSchema.concat() which is not an array!
|
|
354
|
+
// 'unicorn/prefer-structured-clone': 0, // no real advantage, plus in most of the cases we want JSON to remove undefined, etc.
|
|
355
|
+
// 'unicorn/better-regex': 0, // we still believe that [0-9] is clearer than [\d]
|
|
356
|
+
// 'unicorn/no-for-loop': 0, // oxlint has similar
|
|
357
|
+
// 'unicorn/no-array-reduce': 0, // oxlint
|
|
358
|
+
// 'unicorn/consistent-assert': 0, // oxlint
|
|
359
|
+
// 'unicorn/consistent-date-clone': 0, // oxlint
|
|
360
|
+
// 'unicorn/consistent-empty-array-spread': 0, // oxlint
|
|
361
|
+
// 'unicorn/consistent-existence-index-check': 0, // oxlint
|
|
362
|
+
// 'unicorn/escape-case': 0, // oxlint
|
|
363
|
+
// 'unicorn/no-console-spaces': 0, // oxlint
|
|
364
|
+
// 'unicorn/no-hex-escape': 0, // oxlint
|
|
365
|
+
// 'unicorn/no-instanceof-builtins': 0, // oxlint
|
|
366
|
+
// 'unicorn/no-lonely-if': 0, // oxlint
|
|
367
|
+
// 'unicorn/no-named-default': 0, // oxlint
|
|
368
|
+
// 'unicorn/no-negation-in-equality-check': 0, // oxlint
|
|
369
|
+
// 'unicorn/no-new-buffer': 0, // oxlint
|
|
370
|
+
// 'unicorn/no-accessor-recursion': 0, // oxlint
|
|
371
|
+
// 'unicorn/no-anonymous-default-export': 0, // oxlint
|
|
372
|
+
// 'unicorn/prefer-string-replace-all': 0, // oxlint
|
|
373
|
+
// 'unicorn/prefer-math-min-max': 0, // oxlint
|
|
374
|
+
// 'unicorn/prefer-code-point': 0, // oxlint
|
|
375
|
+
// 'unicorn/prefer-global-this': 0, // oxlint
|
|
376
|
+
// 'unicorn/error-message': 0, // oxlint
|
|
377
|
+
// 'unicorn/no-zero-fractions': 0, // oxlint
|
|
378
|
+
// 'unicorn/prefer-array-some': 0, // oxlint
|
|
379
|
+
// 'unicorn/prefer-math-trunc': 0, // oxlint
|
|
380
|
+
// 'unicorn/no-object-as-default-parameter': 0, // doesn't allow e.g method (opt = { skipValidation: true })
|
|
381
|
+
// 'unicorn/catch-error-name': [
|
|
382
|
+
// 0, // oxlint
|
|
383
|
+
// {
|
|
384
|
+
// name: 'err',
|
|
385
|
+
// ignore: [/^err\d*$/, /^_/],
|
|
386
|
+
// },
|
|
387
|
+
// ],
|
|
388
|
+
// 'unicorn/prefer-switch': 0,
|
|
389
|
+
// 'unicorn/no-useless-undefined': 0,
|
|
390
|
+
// 'unicorn/prefer-ternary': [0, 'only-single-line'], // single-line doesn't really work, hence disabled
|
|
391
|
+
// 'unicorn/numeric-separators-style': [2, { onlyIfContainsSeparator: true }],
|
|
392
|
+
// 'unicorn/consistent-destructuring': 0, // todo: enable later
|
|
393
|
+
// 'unicorn/no-nested-ternary': 0,
|
|
394
|
+
// 'unicorn/consistent-function-scoping': 0, // todo: consider enabling later
|
|
395
|
+
// 'unicorn/no-this-assignment': 0,
|
|
396
|
+
// 'unicorn/prefer-string-slice': 0, // todo: consider?
|
|
397
|
+
// 'unicorn/prefer-number-properties': 0,
|
|
398
|
+
// 'unicorn/prefer-negative-index': 0,
|
|
399
|
+
// 'unicorn/prefer-regexp-test': 0,
|
|
400
|
+
// 'unicorn/prefer-query-selector': 0,
|
|
401
|
+
// 'unicorn/prefer-prototype-methods': 0, // false-positive on node promisify() of callback functions
|
|
402
|
+
// 'unicorn/expiring-todo-comments': 1, // warning, instead of error
|
|
403
|
+
// 'unicorn/no-await-in-promise-methods': 0, // oxlint
|
|
404
|
+
// 'unicorn/no-document-cookie': 0, // oxlint
|
|
405
|
+
// 'unicorn/no-empty-file': 0, // oxlint
|
|
406
|
+
// 'unicorn/no-invalid-fetch-options': 0, // oxlint
|
|
407
|
+
// 'unicorn/no-invalid-remove-event-listener': 0, // oxlint
|
|
408
|
+
// 'unicorn/no-magic-array-flat-depth': 0, // oxlint
|
|
409
|
+
// 'unicorn/no-new-array': 0, // oxlint
|
|
410
|
+
// 'unicorn/no-single-promise-in-promise-methods': 0, // oxlint
|
|
411
|
+
// 'unicorn/no-unnecessary-await': 0, // oxlint
|
|
412
|
+
// 'unicorn/no-useless-fallback-in-spread': 0, // oxlint
|
|
413
|
+
// 'unicorn/no-useless-length-check': 0, // oxlint
|
|
414
|
+
// 'unicorn/no-useless-spread': 0, // oxlint
|
|
415
|
+
// 'unicorn/prefer-array-find': 0, // oxlint
|
|
416
|
+
// 'unicorn/prefer-modern-math-apis': 0, // oxlint
|
|
417
|
+
// 'unicorn/prefer-set-size': 0, // oxlint
|
|
418
|
+
// 'unicorn/prefer-string-starts-ends-with': 0, // oxlint
|
|
419
419
|
'@typescript-eslint/return-await': [2, 'always'], // ox is not good yet
|
|
420
420
|
'@typescript-eslint/require-await': 0, // ox
|
|
421
|
-
'unicorn/no-array-reverse': 0, // too early
|
|
421
|
+
// 'unicorn/no-array-reverse': 0, // too early
|
|
422
422
|
'@typescript-eslint/no-misused-promises': 0, // ox, but not good rule
|
|
423
423
|
'@typescript-eslint/no-unsafe-assignment': 0,
|
|
424
424
|
'@typescript-eslint/no-unsafe-member-access': 0,
|
|
@@ -438,16 +438,16 @@ export default {
|
|
|
438
438
|
'@typescript-eslint/restrict-plus-operands': 0, // ox
|
|
439
439
|
'@typescript-eslint/unbound-method': 0,
|
|
440
440
|
'@typescript-eslint/no-unsafe-argument': 0, // prevents "legit" use of `any`
|
|
441
|
-
'unicorn/prefer-export-from': 0, // breaks auto-imports in IntelliJ Idea
|
|
442
|
-
'unicorn/require-module-specifiers': 0, // oxlint
|
|
443
|
-
'unicorn/prefer-classlist-toggle': 0, // oxlint
|
|
444
|
-
'unicorn/no-unnecessary-array-splice-count': 0, // oxlint
|
|
445
|
-
'unicorn/no-useless-error-capture-stack-trace': 0, // oxlint
|
|
446
|
-
'unicorn/prefer-top-level-await': 0, // oxlint
|
|
447
|
-
'unicorn/prefer-class-fields': 0, // oxlint
|
|
448
|
-
'unicorn/no-await-expression-member': 0, // some cases are better as-is
|
|
449
|
-
'unicorn/no-array-sort': 0,
|
|
450
|
-
'unicorn/prefer-json-parse-buffer': 0, // typescript doesn't allow it
|
|
441
|
+
// 'unicorn/prefer-export-from': 0, // breaks auto-imports in IntelliJ Idea
|
|
442
|
+
// 'unicorn/require-module-specifiers': 0, // oxlint
|
|
443
|
+
// 'unicorn/prefer-classlist-toggle': 0, // oxlint
|
|
444
|
+
// 'unicorn/no-unnecessary-array-splice-count': 0, // oxlint
|
|
445
|
+
// 'unicorn/no-useless-error-capture-stack-trace': 0, // oxlint
|
|
446
|
+
// 'unicorn/prefer-top-level-await': 0, // oxlint
|
|
447
|
+
// 'unicorn/prefer-class-fields': 0, // oxlint
|
|
448
|
+
// 'unicorn/no-await-expression-member': 0, // some cases are better as-is
|
|
449
|
+
// 'unicorn/no-array-sort': 0,
|
|
450
|
+
// 'unicorn/prefer-json-parse-buffer': 0, // typescript doesn't allow it
|
|
451
451
|
'no-constructor-return': 2,
|
|
452
452
|
// 'no-promise-executor-return': 2,
|
|
453
453
|
'no-self-compare': 2,
|
package/cfg/eslint.config.js
CHANGED
|
@@ -7,15 +7,10 @@
|
|
|
7
7
|
import globals from 'globals'
|
|
8
8
|
import eslint from '@eslint/js'
|
|
9
9
|
import tseslint from 'typescript-eslint'
|
|
10
|
-
import eslintPluginUnicorn from 'eslint-plugin-unicorn'
|
|
11
|
-
import eslintPluginVue from 'eslint-plugin-vue'
|
|
12
10
|
import eslintPluginOxlint from 'eslint-plugin-oxlint'
|
|
13
|
-
import eslintPluginVitest from '@vitest/eslint-plugin'
|
|
14
11
|
import eslintPluginImportX from 'eslint-plugin-import-x'
|
|
15
12
|
import eslintPluginSimpleImportSort from 'eslint-plugin-simple-import-sort'
|
|
16
13
|
import eslintRules from './eslint-rules.js'
|
|
17
|
-
import eslintVueRules from './eslint-vue-rules.js'
|
|
18
|
-
import eslintVitestRules from './eslint-vitest-rules.js'
|
|
19
14
|
import eslintPrettierRules from './eslint-prettier-rules.js'
|
|
20
15
|
import eslintBiomeRules from './eslint-biome-rules.js'
|
|
21
16
|
|
|
@@ -24,7 +19,7 @@ const srcFiles = ['src/**/*.ts', 'src/**/*.tsx', 'src/**/*.cts', 'src/**/*.mts']
|
|
|
24
19
|
const scriptsFiles = ['scripts/**/*.ts', 'scripts/**/*.tsx', 'scripts/**/*.cts', 'scripts/**/*.mts']
|
|
25
20
|
const e2eFiles = ['e2e/**/*.ts', 'e2e/**/*.tsx', 'e2e/**/*.cts', 'e2e/**/*.mts']
|
|
26
21
|
const allFiles = [...srcFiles, ...scriptsFiles, ...e2eFiles]
|
|
27
|
-
const testFiles = ['**/*.test.ts', '**/*.test.tsx', '**/*.test.cts', '**/*.test.mts']
|
|
22
|
+
// const testFiles = ['**/*.test.ts', '**/*.test.tsx', '**/*.test.cts', '**/*.test.mts']
|
|
28
23
|
|
|
29
24
|
// const cwd = process.cwd()
|
|
30
25
|
// const tsconfigSrcPath = `${cwd}/tsconfig.json`
|
|
@@ -54,31 +49,26 @@ function getEslintConfigForDir() {
|
|
|
54
49
|
...c,
|
|
55
50
|
files: defaultFiles,
|
|
56
51
|
})),
|
|
57
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/configs/recommended.js
|
|
58
|
-
{
|
|
59
|
-
...eslintPluginUnicorn.configs.recommended,
|
|
60
|
-
files: defaultFiles,
|
|
61
|
-
},
|
|
62
52
|
// https://eslint.vuejs.org/user-guide/#user-guide
|
|
63
|
-
...eslintPluginVue.configs['flat/recommended'].map(c => ({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
})),
|
|
67
|
-
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
53
|
+
// ...eslintPluginVue.configs['flat/recommended'].map(c => ({
|
|
54
|
+
// ...c,
|
|
55
|
+
// files: defaultFiles,
|
|
56
|
+
// })),
|
|
57
|
+
// {
|
|
58
|
+
// files: testFiles,
|
|
59
|
+
// plugins: {
|
|
60
|
+
// vitest: eslintPluginVitest,
|
|
61
|
+
// },
|
|
62
|
+
// settings: {
|
|
63
|
+
// vitest: {
|
|
64
|
+
// typecheck: true,
|
|
65
|
+
// },
|
|
66
|
+
// },
|
|
67
|
+
// rules: {
|
|
68
|
+
// ...eslintPluginVitest.configs.recommended.rules,
|
|
69
|
+
// ...eslintVitestRules.rules,
|
|
70
|
+
// },
|
|
71
|
+
// },
|
|
82
72
|
{
|
|
83
73
|
files: allFiles,
|
|
84
74
|
...getConfig(),
|
|
@@ -116,7 +106,7 @@ function getConfig(_tsconfigPath) {
|
|
|
116
106
|
globals: {
|
|
117
107
|
...globals.browser,
|
|
118
108
|
...globals.node,
|
|
119
|
-
...globals.vitest,
|
|
109
|
+
// ...globals.vitest,
|
|
120
110
|
NodeJS: 'readonly',
|
|
121
111
|
},
|
|
122
112
|
parserOptions: {
|
|
@@ -124,7 +114,7 @@ function getConfig(_tsconfigPath) {
|
|
|
124
114
|
projectService: true,
|
|
125
115
|
// tsconfigRootDir: cwd,
|
|
126
116
|
parser: tseslint.parser,
|
|
127
|
-
extraFileExtensions: ['.
|
|
117
|
+
extraFileExtensions: ['.html'],
|
|
128
118
|
},
|
|
129
119
|
},
|
|
130
120
|
linterOptions: {
|
|
@@ -132,7 +122,7 @@ function getConfig(_tsconfigPath) {
|
|
|
132
122
|
},
|
|
133
123
|
rules: {
|
|
134
124
|
...eslintRules.rules,
|
|
135
|
-
...eslintVueRules.rules,
|
|
125
|
+
// ...eslintVueRules.rules,
|
|
136
126
|
...eslintPrettierRules.rules, // disable eslint rules already covered by prettier
|
|
137
127
|
...eslintBiomeRules.rules, // disable eslint rules already covered by biome
|
|
138
128
|
...eslintPluginOxlint.configs['flat/all'][0].rules, // disable eslint rules already covered by oxlint
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.22.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@biomejs/biome": "^2",
|
|
7
7
|
"@eslint/js": "^9",
|
|
@@ -9,13 +9,10 @@
|
|
|
9
9
|
"@naturalcycles/js-lib": "^15",
|
|
10
10
|
"@naturalcycles/nodejs-lib": "^15",
|
|
11
11
|
"@vitest/coverage-v8": "^4",
|
|
12
|
-
"@vitest/eslint-plugin": "^1",
|
|
13
12
|
"eslint": "^9",
|
|
14
13
|
"eslint-plugin-import-x": "^4",
|
|
15
14
|
"eslint-plugin-oxlint": "^1",
|
|
16
15
|
"eslint-plugin-simple-import-sort": "^12",
|
|
17
|
-
"eslint-plugin-unicorn": "^62",
|
|
18
|
-
"eslint-plugin-vue": "^10",
|
|
19
16
|
"globals": "^17",
|
|
20
17
|
"lint-staged": "^16",
|
|
21
18
|
"micromatch": "^4",
|
|
@@ -23,8 +20,7 @@
|
|
|
23
20
|
"oxlint": "^1",
|
|
24
21
|
"oxlint-tsgolint": "*",
|
|
25
22
|
"prettier": "^3",
|
|
26
|
-
"typescript-eslint": "^8"
|
|
27
|
-
"vue-eslint-parser": "^10"
|
|
23
|
+
"typescript-eslint": "^8"
|
|
28
24
|
},
|
|
29
25
|
"peerDependencies": {
|
|
30
26
|
"husky": "^9",
|