@naturalcycles/dev-lib 20.1.3 → 20.1.5

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.
@@ -278,7 +278,7 @@ export default {
278
278
  'rxjs/observable/interval',
279
279
  'rxjs/observable/forkJoin',
280
280
  ],
281
- curly: [2, 'multi-line'], // this one is an exception that can conflict with prettier
281
+ curly: [0, 'multi-line'], // this one is an exception that can conflict with prettier, oxlint
282
282
  'no-self-assign': 2,
283
283
  'no-setter-return': 2,
284
284
  'no-shadow': 0, // it is buggy with TypeScript enums
@@ -319,7 +319,7 @@ export default {
319
319
  'valid-typeof': 2,
320
320
  'no-await-in-loop': 0, // it's actually often ok
321
321
  'no-extend-native': 0, // oxlint
322
- 'guard-for-in': 2,
322
+ 'guard-for-in': 0, // oxlint
323
323
  '@typescript-eslint/no-namespace': [
324
324
  2,
325
325
  {
@@ -446,7 +446,7 @@ export default {
446
446
  enforceForIfStatements: true,
447
447
  },
448
448
  ],
449
- 'max-params': [2, { max: 5 }],
449
+ 'max-params': [0, { max: 5 }], // oxlint
450
450
  'no-else-return': 2,
451
451
  'no-sequences': 2,
452
452
  'no-useless-concat': 0, // oxlint
@@ -14,6 +14,7 @@ export default {
14
14
  'vitest/no-commented-out-tests': 0,
15
15
  'vitest/no-duplicate-hooks': 2,
16
16
  'vitest/no-test-return-statement': 2,
17
+ 'vitest/no-import-node-test': 0, // oxlint
17
18
  'vitest/padding-around-before-all-blocks': 2,
18
19
  'vitest/padding-around-after-all-blocks': 2,
19
20
  'vitest/padding-around-before-each-blocks': 2,
@@ -25,6 +26,7 @@ export default {
25
26
  'vitest/prefer-spy-on': 2,
26
27
  'vitest/prefer-strict-boolean-matchers': 2,
27
28
  'vitest/prefer-to-be': 2,
29
+ 'vitest/prefer-called-exactly-once-with': 0, // todo: enable
28
30
  'vitest/prefer-to-contain': 2,
29
31
  'vitest/prefer-to-have-length': 2,
30
32
  'vitest/prefer-vi-mocked': 2,
@@ -65,7 +65,9 @@ if (eslintConfigPath) {
65
65
  let oxlintCmd = undefined
66
66
 
67
67
  if (oxlintConfigPath) {
68
- oxlintCmd = ['oxlint', '--fix', '--fix-suggestions', '--max-warnings=1'].filter(Boolean).join(' ')
68
+ oxlintCmd = ['oxlint', '--fix', '--fix-suggestions', '--fix-dangerously', '--max-warnings=0']
69
+ .filter(Boolean)
70
+ .join(' ')
69
71
  }
70
72
 
71
73
  const stylelintExists =
@@ -42,6 +42,9 @@
42
42
  "no-useless-constructor": 2,
43
43
  "preserve-caught-error": 2,
44
44
  "eqeqeq": [2, "smart"],
45
+ "curly": [2, "multi-line"],
46
+ "guard-for-in": 2,
47
+ "max-params": [2, { "max": 5 }],
45
48
  "import/extensions": [2, "always"],
46
49
  "import/no-amd": 2,
47
50
  "import/no-commonjs": 2,
@@ -96,6 +99,7 @@
96
99
  }
97
100
  ],
98
101
  "unicorn/no-accessor-recursion": 2,
102
+ "vitest/no-import-node-test": 2,
99
103
  "vue/no-multiple-slot-args": 2
100
104
  },
101
105
  "settings": {
package/dist/lint.util.js CHANGED
@@ -42,8 +42,8 @@ export async function lintAllCommand() {
42
42
  const fix = !CI;
43
43
  // Fast linters (that run in <1 second) go first
44
44
  runActionLint();
45
- runOxlint(fix);
46
45
  runBiome(fix);
46
+ runOxlint(fix);
47
47
  // From this point we start the "slow" linters, with ESLint leading the way
48
48
  // We run eslint BEFORE Prettier, because eslint can delete e.g unused imports.
49
49
  eslintAll({
@@ -141,9 +141,10 @@ export function runOxlint(fix = true) {
141
141
  name: ['oxlint', !fix && '--no-fix'].filter(Boolean).join(' '),
142
142
  args: [
143
143
  // '--report-unused-disable-directives',
144
- '--max-warnings=1',
144
+ '--max-warnings=0',
145
145
  fix && '--fix',
146
146
  fix && '--fix-suggestions',
147
+ fix && '--fix-dangerously',
147
148
  ].filter(_isTruthy),
148
149
  shell: false,
149
150
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.1.3",
4
+ "version": "20.1.5",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^20",