@naturalcycles/dev-lib 20.46.0 → 20.47.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/oxlint.config.js +12 -5
- package/cfg/vitest.config.js +1 -1
- package/package.json +2 -2
package/cfg/oxlint.config.js
CHANGED
|
@@ -70,6 +70,13 @@ export const sharedConfig = {
|
|
|
70
70
|
],
|
|
71
71
|
'@stylistic/lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }],
|
|
72
72
|
complexity: [2, { max: 40 }],
|
|
73
|
+
'logical-assignment-operators': [
|
|
74
|
+
2,
|
|
75
|
+
'always',
|
|
76
|
+
{
|
|
77
|
+
enforceForIfStatements: true,
|
|
78
|
+
},
|
|
79
|
+
],
|
|
73
80
|
'no-this-alias': 0,
|
|
74
81
|
'no-shadow': 0, // too many shadows in the codebase already
|
|
75
82
|
'no-async-promise-executor': 0,
|
|
@@ -409,6 +416,8 @@ export const sharedConfig = {
|
|
|
409
416
|
'vitest/prefer-hooks-in-order': 2,
|
|
410
417
|
'vitest/prefer-hooks-on-top': 2,
|
|
411
418
|
'vitest/prefer-mock-promise-shorthand': 2,
|
|
419
|
+
'vitest/prefer-mock-return-shorthand': 2,
|
|
420
|
+
'vitest/prefer-snapshot-hint': 0, // annoying
|
|
412
421
|
'vitest/prefer-to-have-length': 2,
|
|
413
422
|
'vitest/require-to-throw-message': 2,
|
|
414
423
|
'vitest/valid-describe-callback': 0,
|
|
@@ -421,17 +430,15 @@ export const sharedConfig = {
|
|
|
421
430
|
'vitest/prefer-called-exactly-once-with': 2,
|
|
422
431
|
'vitest/consistent-test-filename': 2,
|
|
423
432
|
'vitest/warn-todo': 0,
|
|
424
|
-
'
|
|
433
|
+
'vitest/consistent-test-it': [
|
|
425
434
|
2,
|
|
426
435
|
{
|
|
427
436
|
fn: 'test',
|
|
428
437
|
withinDescribe: 'test',
|
|
429
438
|
},
|
|
430
439
|
],
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'jest/prefer-mock-return-shorthand': 2,
|
|
434
|
-
'jest/prefer-snapshot-hint': 0, // annoying
|
|
440
|
+
'vitest/max-nested-describe': [0, { max: 4 }], // not good
|
|
441
|
+
'vitest/no-alias-methods': 2,
|
|
435
442
|
'vue/no-multiple-slot-args': 2,
|
|
436
443
|
'vue/no-deprecated-destroyed-lifecycle': 2,
|
|
437
444
|
'vue/define-emits-declaration': [2, 'type-based'],
|
package/cfg/vitest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.47.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@naturalcycles/js-lib": "^15",
|
|
7
7
|
"@naturalcycles/nodejs-lib": "^15",
|
|
8
8
|
"@vitest/coverage-v8": "^4",
|
|
9
9
|
"eslint-plugin-oxlint": "^1",
|
|
10
10
|
"globals": "^17",
|
|
11
|
-
"lint-staged": "^
|
|
11
|
+
"lint-staged": "^17",
|
|
12
12
|
"oxfmt": "^0",
|
|
13
13
|
"oxlint": "^1",
|
|
14
14
|
"oxlint-tsgolint": "^0",
|