@naturalcycles/dev-lib 20.12.4 → 20.12.6

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/biome.jsonc CHANGED
@@ -41,6 +41,7 @@
41
41
  "useParseIntRadix": "off",
42
42
  "noUnusedFunctionParameters": "off", // oxlint
43
43
  "noConstantCondition": "off", // ox
44
+ "noUnusedPrivateClassMembers": "off", // buggy in 2.3.6
44
45
  // noUnusedImports + noUnusedVariables can replace eslint-plugin-unused-vars!
45
46
  "noUnusedImports": "error", // oxlint ignoreVars ^_ pattern also applies to imports named with _ prefix. Support for no-unused-imports tracked here https://github.com/oxc-project/oxc/issues/1117
46
47
  "noUnusedVariables": {
@@ -327,6 +327,7 @@ export default {
327
327
  'prefer-promise-reject-errors': 0,
328
328
  '@typescript-eslint/prefer-promise-reject-errors': 0, // ox
329
329
  'unicorn/prefer-import-meta-properties': 2,
330
+ 'unicorn/prefer-response-static-json': 0, // ox
330
331
  'unicorn/no-array-callback-reference': 0, // false positives
331
332
  'unicorn/no-process-exit': 0,
332
333
  'unicorn/prefer-single-call': 0,
@@ -482,7 +483,7 @@ export default {
482
483
  // '@typescript-eslint/no-unnecessary-condition': [2, {
483
484
  // allowConstantLoopConditions: true,
484
485
  // }],
485
- '@typescript-eslint/prefer-includes': 2,
486
+ '@typescript-eslint/prefer-includes': 0, // ox
486
487
  '@typescript-eslint/prefer-optional-chain': 2,
487
488
  '@typescript-eslint/prefer-string-starts-ends-with': 2,
488
489
  '@typescript-eslint/prefer-ts-expect-error': 0, // ox
@@ -160,6 +160,8 @@
160
160
  "unicorn/no-zero-fractions": 2,
161
161
  "unicorn/prefer-array-some": 2,
162
162
  "unicorn/prefer-math-trunc": 2,
163
+ "unicorn/prefer-includes": 2,
164
+ "unicorn/prefer-response-static-json": 2,
163
165
  "import/no-named-default": 2,
164
166
  "unicorn/no-new-array": 0, // it's actually ok
165
167
  "unicorn/catch-error-name": [
@@ -24,6 +24,7 @@
24
24
  // Support for external compilers (e.g esbuild)
25
25
  // Speedup in Jest by using "isolatedModules" in 'ts-jest' config
26
26
  "isolatedModules": true,
27
+ "types": ["node"],
27
28
 
28
29
  // Emit
29
30
  "sourceMap": false,
@@ -65,7 +65,7 @@ const commands = [
65
65
  desc: 'Run "lint-staged", which runs linter on git staged files.',
66
66
  },
67
67
  { name: 'eslint', fn: eslintAll, desc: 'Run eslint on all files.' },
68
- { name: 'eslint-no-fix', deprecated: true, fn: () => eslintAll({ fix: false }) },
68
+ { name: 'eslint-no-fix', cliOnly: true, fn: () => eslintAll({ fix: false }) },
69
69
  {
70
70
  name: 'eslint --no-fix',
71
71
  fn: () => eslintAll({ fix: false }),
@@ -73,7 +73,7 @@ const commands = [
73
73
  interactiveOnly: true,
74
74
  },
75
75
  { name: 'oxlint', fn: runOxlint, desc: 'Run oxlint on all files.' },
76
- { name: 'oxlint-no-fix', deprecated: true, fn: () => runOxlint(false) },
76
+ { name: 'oxlint-no-fix', cliOnly: true, fn: () => runOxlint(false) },
77
77
  {
78
78
  name: 'oxlint --no-fix',
79
79
  fn: () => runOxlint(false),
@@ -85,7 +85,7 @@ const commands = [
85
85
  fn: () => runBiome(),
86
86
  desc: 'Run biome linter on all files.',
87
87
  },
88
- { name: 'biome-no-fix', deprecated: true, fn: () => runBiome(false) },
88
+ { name: 'biome-no-fix', cliOnly: true, fn: () => runBiome(false) },
89
89
  {
90
90
  name: 'biome --no-fix',
91
91
  fn: () => runBiome(false),
@@ -99,7 +99,7 @@ const commands = [
99
99
  fn: () => stylelintAll(false),
100
100
  desc: 'Run stylelint with auto-fix disabled.',
101
101
  },
102
- { name: 'stylelint-no-fix', deprecated: true, fn: () => stylelintAll(false) },
102
+ { name: 'stylelint-no-fix', cliOnly: true, fn: () => stylelintAll(false) },
103
103
  { name: 'commitlint', fn: runCommitlintCommand, desc: 'Run commitlint.', cliOnly: true },
104
104
  new Separator(), // interactive-only
105
105
  {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.12.4",
4
+ "version": "20.12.6",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^20",
8
8
  "@commitlint/config-conventional": "^20",
9
9
  "@eslint/js": "^9",
10
- "@inquirer/prompts": "^7",
10
+ "@inquirer/prompts": "^8",
11
11
  "@naturalcycles/js-lib": "^15",
12
12
  "@naturalcycles/nodejs-lib": "^15",
13
13
  "@vitest/coverage-v8": "^4",
@@ -23,7 +23,7 @@
23
23
  "micromatch": "^4",
24
24
  "mitm": "^1",
25
25
  "oxlint": "^1",
26
- "oxlint-tsgolint": "^0.6",
26
+ "oxlint-tsgolint": "^0.7",
27
27
  "prettier": "^3",
28
28
  "typescript-eslint": "^8",
29
29
  "vue-eslint-parser": "^10"