@naturalcycles/dev-lib 20.78.0 → 20.79.1
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.
|
@@ -304,9 +304,9 @@ const linesBetweenClassMembersRule = {
|
|
|
304
304
|
const sourceCode = context.sourceCode
|
|
305
305
|
const mode = context.options?.[0] || 'always'
|
|
306
306
|
const exceptAfterSingleLine =
|
|
307
|
-
context.options?.[1]?.exceptAfterSingleLine
|
|
308
|
-
?
|
|
309
|
-
:
|
|
307
|
+
context.options?.[1]?.exceptAfterSingleLine === undefined
|
|
308
|
+
? true
|
|
309
|
+
: Boolean(context.options[1].exceptAfterSingleLine)
|
|
310
310
|
const exceptAfterOverload = true
|
|
311
311
|
|
|
312
312
|
if (mode !== 'always') {
|
package/cfg/oxlint.config.js
CHANGED
|
@@ -378,6 +378,8 @@ export const sharedConfig = {
|
|
|
378
378
|
'unicorn/no-hex-escape': 2,
|
|
379
379
|
'unicorn/no-instanceof-builtins': 2,
|
|
380
380
|
'unicorn/no-lonely-if': 2,
|
|
381
|
+
// `if (!a) {} else {}` and `a !== b ? x : y` read better the other way round; autofixable
|
|
382
|
+
'unicorn/no-negated-condition': 2,
|
|
381
383
|
'unicorn/no-negation-in-equality-check': 2,
|
|
382
384
|
'unicorn/no-new-buffer': 2,
|
|
383
385
|
'unicorn/prefer-string-replace-all': 2,
|
package/cfg/vitest.config.js
CHANGED
|
@@ -124,7 +124,7 @@ export function getSharedConfig(cwd) {
|
|
|
124
124
|
unstubEnvs: true,
|
|
125
125
|
unstubGlobals: true,
|
|
126
126
|
setupFiles: getSetupFiles(testType, cwd),
|
|
127
|
-
logHeapUsage: true,
|
|
127
|
+
// logHeapUsage: true,
|
|
128
128
|
testTimeout: 60_000,
|
|
129
129
|
hookTimeout: 60_000,
|
|
130
130
|
injectCjsGlobals: false,
|