@naturalcycles/dev-lib 20.36.0 → 20.37.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.
@@ -50,16 +50,7 @@ if (eslintConfigPath) {
50
50
  let oxlintCmd = undefined
51
51
 
52
52
  if (oxlintConfigPath) {
53
- oxlintCmd = [
54
- 'oxlint',
55
- // '--report-unused-disable-directives', // wrongly reports disabled eslint (not oxlint) rules
56
- '--type-aware',
57
- '--type-check',
58
- '--fix',
59
- '--fix-suggestions',
60
- '--fix-dangerously',
61
- '--max-warnings=0',
62
- ]
53
+ oxlintCmd = ['oxlint', '--fix', '--fix-suggestions', '--fix-dangerously']
63
54
  .filter(Boolean)
64
55
  .join(' ')
65
56
  }
@@ -17,10 +17,21 @@
17
17
  "vitest"
18
18
  ],
19
19
  "jsPlugins": ["./oxlint-plugin-stylistic.mjs"],
20
+ "options": {
21
+ "reportUnusedDisableDirectives": "deny",
22
+ "maxWarnings": 0,
23
+ "denyWarnings": true,
24
+ "typeAware": true,
25
+ "typeCheck": true
26
+ },
20
27
  "rules": {
21
28
  "no-unused-vars": [
22
29
  "error",
23
30
  {
31
+ "fix": {
32
+ "imports": "fix",
33
+ "variables": "suggestion"
34
+ },
24
35
  "varsIgnorePattern": "^(_$|__)",
25
36
  "argsIgnorePattern": "^_",
26
37
  "destructuredArrayIgnorePattern": "^_"
@@ -78,7 +89,7 @@
78
89
  "guard-for-in": 2,
79
90
  "max-params": [2, { "max": 5 }],
80
91
  "prefer-spread": 2,
81
- "import/extensions": [2, "always", { "ignorePackages": true }],
92
+ "import/extensions": [0, "always", { "ignorePackages": true }], // disabled as it's buggy; would be nice to enable eventually
82
93
  "import/no-amd": 2,
83
94
  "import/no-commonjs": 2,
84
95
  "import/no-cycle": 2,
@@ -348,6 +359,7 @@
348
359
  ],
349
360
  "jest/max-nested-describe": [0, { "max": 4 }], // not good
350
361
  "jest/no-alias-methods": 2,
362
+ "jest/prefer-mock-return-shorthand": 2,
351
363
  "vue/no-multiple-slot-args": 2,
352
364
  "vue/no-deprecated-destroyed-lifecycle": 2,
353
365
  "vue/define-emits-declaration": [2, "type-based"],
@@ -202,15 +202,7 @@ export function runOxlint(fix = true) {
202
202
  const oxlintPath = findPackageBinPath('oxlint', 'oxlint');
203
203
  exec2.spawn(oxlintPath, {
204
204
  name: ['oxlint', !fix && '--no-fix'].filter(Boolean).join(' '),
205
- args: [
206
- // '--report-unused-disable-directives', // wrongly reports disabled eslint (not oxlint) rules
207
- '--max-warnings=0',
208
- '--type-aware',
209
- '--type-check',
210
- fix && '--fix',
211
- fix && '--fix-suggestions',
212
- fix && '--fix-dangerously',
213
- ].filter(_isTruthy),
205
+ args: [fix && '--fix', fix && '--fix-suggestions', fix && '--fix-dangerously'].filter(_isTruthy),
214
206
  shell: false,
215
207
  });
216
208
  return true;
@@ -1,7 +1,6 @@
1
1
  import { createRequire } from 'node:module';
2
2
  // Use require() to get mutable module objects (ESM namespace objects are frozen)
3
3
  const require = createRequire(import.meta.url);
4
- /* eslint-disable @typescript-eslint/naming-convention -- vendored code uses PascalCase for modules */
5
4
  const Net = require('node:net');
6
5
  const Tls = require('node:tls');
7
6
  const Http = require('node:http');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.36.0",
4
+ "version": "20.37.1",
5
5
  "dependencies": {
6
6
  "prompts": "^2",
7
7
  "@naturalcycles/js-lib": "^15",
@@ -12,7 +12,7 @@
12
12
  "lint-staged": "^16",
13
13
  "micromatch": "^4",
14
14
  "oxfmt": "^0",
15
- "oxlint": "1.47.0",
15
+ "oxlint": "^1",
16
16
  "oxlint-tsgolint": "^0"
17
17
  },
18
18
  "peerDependencies": {
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@types/node": "^25",
53
53
  "@types/prompts": "^2",
54
- "@typescript/native-preview": "7.0.0-dev.20260201.1",
54
+ "@typescript/native-preview": "7.0.0-dev.20260301.1",
55
55
  "typescript": "^5"
56
56
  },
57
57
  "exports": {