@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 !== undefined
308
- ? Boolean(context.options[1].exceptAfterSingleLine)
309
- : true
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') {
@@ -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,
@@ -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,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.78.0",
4
+ "version": "20.79.1",
5
5
  "dependencies": {
6
6
  "prompts": "^2",
7
7
  "@naturalcycles/js-lib": "^15",