@naturalcycles/dev-lib 15.13.1 → 15.14.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.
package/cfg/biome.jsonc CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
3
3
  "files": {
4
4
  "ignore": ["**/tsconfig.json", "**/tsconfig.*.json", "**/__exclude", "**/try.ts", "*.compact.json"]
5
5
  },
@@ -18,15 +18,23 @@
18
18
  "rules": {
19
19
  "recommended": true,
20
20
  "performance": {
21
+ // "useTopLevelRegex": "error" // consider
21
22
  "noDelete": "off" // todo
22
23
  },
23
24
  "correctness": {
25
+ // "useImportExtensions": "error", // consider for esm later
26
+ "noUnusedFunctionParameters": "error",
24
27
  // noUnusedImports + noUnusedVariables can replace eslint-plugin-unused-vars!
25
28
  "noUnusedImports": "error",
26
29
  "noUnusedVariables": "error",
27
30
  "useArrayLiterals": "error"
28
31
  },
29
32
  "style": {
33
+ // "useDefaultSwitchClause": "error", // consider`
34
+ "useThrowNewError": "error",
35
+ "useThrowOnlyError": "error",
36
+ "useConsistentBuiltinInstantiation": "error",
37
+ "noDoneCallback": "error",
30
38
  "useShorthandFunctionType": "error",
31
39
  "useShorthandAssign": "error",
32
40
  "useForOf": "error",
@@ -43,6 +51,9 @@
43
51
  "noUnusedTemplateLiteral": "off"
44
52
  },
45
53
  "suspicious": {
54
+ "useNumberToFixedDigitsArgument": "error",
55
+ "useErrorMessage": "error",
56
+ "noEvolvingTypes": "error",
46
57
  "noExplicitAny": "off",
47
58
  "noAssignInExpressions": "off",
48
59
  "noPrototypeBuiltins": "off",
@@ -52,6 +63,9 @@
52
63
  "noEmptyInterface": "off"
53
64
  },
54
65
  "complexity": {
66
+ "useDateNow": "error",
67
+ "noUselessUndefinedInitialization": "error",
68
+ "noUselessStringConcat": "error",
55
69
  "noForEach": "off",
56
70
  "noUselessThisAlias": "off",
57
71
  "useLiteralKeys": "off",
@@ -57,6 +57,7 @@ module.exports = {
57
57
  'no-shadow-restricted-names': 0,
58
58
  'no-sparse-array': 0,
59
59
  'no-this-before-super': 0,
60
+ 'no-undef-init': 0,
60
61
  'no-unneeded-ternary': 0,
61
62
  'no-unreachable': 0,
62
63
  'no-unsafe-finally': 0,
@@ -158,6 +159,8 @@ module.exports = {
158
159
  'react-hooks/exhaustive-deps': 0,
159
160
  // "simple-import-sort/imports": 0, // we need it
160
161
  'stylistic/jsx-self-closing-comp': 0,
162
+ 'unicorn/error-message': 0,
163
+ 'unicorn/new-for-builtins': 0,
161
164
  'unicorn/no-array-for-each': 0,
162
165
  'unicorn/no-instanceof-array': 0,
163
166
  'unicorn/no-static-only-class': 0,
@@ -165,7 +168,10 @@ module.exports = {
165
168
  'unicorn/no-typeof-undefined': 0,
166
169
  'unicorn/no-useless-switch-case': 0,
167
170
  'unicorn/prefer-array-flat-map': 0,
171
+ 'unicorn/prefer-date-now': 0,
168
172
  'unicorn/prefer-node-protocol': 0,
169
173
  'unicorn/prefer-number-properties': 0,
174
+ 'unicorn/require-number-to-fixed-digits-argument': 0,
175
+ 'unicorn/throw-new-error': 0,
170
176
  },
171
177
  }
@@ -228,7 +228,6 @@ module.exports = {
228
228
  'no-irregular-whitespace': 2,
229
229
  'no-misleading-character-class': 2,
230
230
  'no-new-symbol': 2,
231
- 'no-new-wrappers': 2,
232
231
  'no-obj-calls': 2,
233
232
  'no-octal': 2,
234
233
  'no-prototype-builtins': 2,
@@ -267,9 +266,8 @@ module.exports = {
267
266
  'no-shadow-restricted-names': 2,
268
267
  'no-sparse-arrays': 2,
269
268
  'no-this-before-super': 2,
270
- '@typescript-eslint/only-throw-error': 2,
269
+ '@typescript-eslint/only-throw-error': 0, // biome
271
270
  'no-undef': 0, // covered by TS, conflicts with typescript-eslint
272
- 'no-undef-init': 2,
273
271
  'no-underscore-dangle': 0,
274
272
  'no-unreachable': 2,
275
273
  'no-unsafe-finally': 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "15.13.1",
3
+ "version": "15.14.0",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "tsn-debug": "tsn testScript.ts",