@naturalcycles/dev-lib 20.35.3 → 20.37.0

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.
@@ -17,10 +17,18 @@
17
17
  "vitest"
18
18
  ],
19
19
  "jsPlugins": ["./oxlint-plugin-stylistic.mjs"],
20
+ "options": {
21
+ "typeAware": true,
22
+ "typeCheck": true
23
+ },
20
24
  "rules": {
21
25
  "no-unused-vars": [
22
26
  "error",
23
27
  {
28
+ "fix": {
29
+ "imports": "fix",
30
+ "variables": "suggestion"
31
+ },
24
32
  "varsIgnorePattern": "^(_$|__)",
25
33
  "argsIgnorePattern": "^_",
26
34
  "destructuredArrayIgnorePattern": "^_"
@@ -78,7 +86,7 @@
78
86
  "guard-for-in": 2,
79
87
  "max-params": [2, { "max": 5 }],
80
88
  "prefer-spread": 2,
81
- "import/extensions": [2, "always", { "ignorePackages": true }],
89
+ "import/extensions": [0, "always", { "ignorePackages": true }], // disabled as it's buggy; would be nice to enable eventually
82
90
  "import/no-amd": 2,
83
91
  "import/no-commonjs": 2,
84
92
  "import/no-cycle": 2,
@@ -348,6 +356,7 @@
348
356
  ],
349
357
  "jest/max-nested-describe": [0, { "max": 4 }], // not good
350
358
  "jest/no-alias-methods": 2,
359
+ "jest/prefer-mock-return-shorthand": 2,
351
360
  "vue/no-multiple-slot-args": 2,
352
361
  "vue/no-deprecated-destroyed-lifecycle": 2,
353
362
  "vue/define-emits-declaration": [2, "type-based"],
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AjvSchema, j } from '@naturalcycles/nodejs-lib/ajv';
1
+ import { j } from '@naturalcycles/nodejs-lib/ajv';
2
2
  import { fs2 } from '@naturalcycles/nodejs-lib/fs2';
3
3
  /**
4
4
  * Returns an empty config if the file is absent.
@@ -10,15 +10,13 @@ export async function readDevLibConfigIfPresent(cwd = process.cwd()) {
10
10
  cfg = (await import(devLibConfigPath)).default;
11
11
  console.log(`read ${devLibConfigPath}`);
12
12
  }
13
- return devLibConfigSchema.validate(cfg);
13
+ return devLibConfigSchema.validate(cfg, { inputName: 'dev-lib.config.js' });
14
14
  }
15
- const devLibConfigSchema = AjvSchema.create(j.object({
15
+ const devLibConfigSchema = j.object({
16
16
  commitlint: j.object
17
17
  .infer({
18
18
  requireScope: j.boolean().optional(),
19
19
  allowedScopes: j.array(j.string()).optional(),
20
20
  })
21
21
  .optional(),
22
- }), {
23
- inputName: 'dev-lib.config.js',
24
22
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.35.3",
4
+ "version": "20.37.0",
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": {