@naturalcycles/dev-lib 20.35.2 → 20.36.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.
@@ -36,6 +36,7 @@
36
36
  "@stylistic/lines-between-class-members": [2, "always", { "exceptAfterSingleLine": true }],
37
37
  "complexity": [2, { "max": 40 }],
38
38
  "no-this-alias": 0,
39
+ "no-shadow": 0, // too many shadows in the codebase already
39
40
  "no-async-promise-executor": 0,
40
41
  "no-standalone-expect": 0,
41
42
  "no-conditional-expect": 0,
@@ -96,6 +97,7 @@
96
97
  "oxc/approx-constant": 2,
97
98
  "oxc/misrefactored-assign-op": 2,
98
99
  "promise/spec-only": 2,
100
+ "typescript/class-literal-property-style": 2,
99
101
  "typescript/explicit-function-return-type": [2, { "allowExpressions": true }],
100
102
  // "typescript/explicit-module-boundary-types": [2, {"allowArgumentsExplicitlyTypedAsAny": true}]
101
103
  "typescript/no-empty-object-type": [2, { "allowInterfaces": "always" }],
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.2",
4
+ "version": "20.36.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",
15
+ "oxlint": "1.47.0",
16
16
  "oxlint-tsgolint": "^0"
17
17
  },
18
18
  "peerDependencies": {