@naturalcycles/dev-lib 20.3.0 → 20.4.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
@@ -39,6 +39,7 @@
39
39
  "useImportExtensions": "off", // oxlint
40
40
  "useParseIntRadix": "off",
41
41
  "noUnusedFunctionParameters": "off", // oxlint
42
+ "noConstantCondition": "off", // ox
42
43
  // noUnusedImports + noUnusedVariables can replace eslint-plugin-unused-vars!
43
44
  "noUnusedImports": "off", // oxlint
44
45
  "noUnusedVariables": {
@@ -77,7 +78,8 @@
77
78
  "suspicious": {
78
79
  "useNumberToFixedDigitsArgument": "error",
79
80
  "useIterableCallbackReturn": "off",
80
- "useErrorMessage": "error",
81
+ "useErrorMessage": "off", // ox
82
+ "noControlCharactersInRegex": "off", // ox
81
83
  "noEvolvingTypes": "error",
82
84
  "noExplicitAny": "off",
83
85
  "noAssignInExpressions": "off",
@@ -86,11 +88,14 @@
86
88
  "noThenProperty": "off",
87
89
  "noImportAssign": "off",
88
90
  "noDoubleEquals": "off", // oxlint
91
+ "noDocumentCookie": "off", // ox
89
92
  "noEmptyInterface": "off"
90
93
  },
91
94
  "complexity": {
92
95
  "useDateNow": "error",
96
+ "useArrowFunction": "off", // ox
93
97
  "noUselessUndefinedInitialization": "error",
98
+ "noUselessEscapeInRegex": "off", // ox
94
99
  "noUselessStringConcat": "error",
95
100
  "noForEach": "off",
96
101
  "noUselessThisAlias": "off",
@@ -365,6 +365,14 @@ export default {
365
365
  'unicorn/no-new-buffer': 0, // oxlint
366
366
  'unicorn/no-accessor-recursion': 0, // oxlint
367
367
  'unicorn/no-anonymous-default-export': 0, // oxlint
368
+ 'unicorn/prefer-string-replace-all': 0, // oxlint
369
+ 'unicorn/prefer-math-min-max': 0, // oxlint
370
+ 'unicorn/prefer-code-point': 0, // oxlint
371
+ 'unicorn/prefer-global-this': 0, // oxlint
372
+ 'unicorn/error-message': 0, // oxlint
373
+ 'unicorn/no-zero-fractions': 0, // oxlint
374
+ 'unicorn/prefer-array-some': 0, // oxlint
375
+ 'unicorn/prefer-math-trunc': 0, // oxlint
368
376
  'unicorn/no-object-as-default-parameter': 0, // doesn't allow e.g method (opt = { skipValidation: true })
369
377
  'unicorn/catch-error-name': [
370
378
  0, // oxlint
@@ -109,6 +109,14 @@
109
109
  "unicorn/no-lonely-if": 2,
110
110
  "unicorn/no-negation-in-equality-check": 2,
111
111
  "unicorn/no-new-buffer": 2,
112
+ "unicorn/prefer-string-replace-all": 2,
113
+ "unicorn/prefer-math-min-max": 2,
114
+ "unicorn/prefer-code-point": 2,
115
+ "unicorn/prefer-global-this": 2,
116
+ "unicorn/error-message": 2,
117
+ "unicorn/no-zero-fractions": 2,
118
+ "unicorn/prefer-array-some": 2,
119
+ "unicorn/prefer-math-trunc": 2,
112
120
  "import/no-named-default": 2,
113
121
  "unicorn/catch-error-name": [
114
122
  2,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.3.0",
4
+ "version": "20.4.0",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^20",