@naturalcycles/dev-lib 20.12.12 → 20.13.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.
- package/cfg/eslint-rules.js +3 -2
- package/cfg/lint-staged.config.js +1 -0
- package/cfg/oxlint.config.json +3 -1
- package/dist/lint.util.js +1 -0
- package/package.json +1 -1
- package/readme.md +1 -0
package/cfg/eslint-rules.js
CHANGED
|
@@ -118,7 +118,7 @@ export default {
|
|
|
118
118
|
modifiers: ['requiresQuotes'],
|
|
119
119
|
},
|
|
120
120
|
],
|
|
121
|
-
'@typescript-eslint/no-array-constructor':
|
|
121
|
+
'@typescript-eslint/no-array-constructor': 0, // ox
|
|
122
122
|
'@typescript-eslint/no-extra-non-null-assertion': 2,
|
|
123
123
|
'@typescript-eslint/no-floating-promises': 0, // oxlint
|
|
124
124
|
'@typescript-eslint/no-inferrable-types': [
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
'@typescript-eslint/prefer-function-type': 0, // ox
|
|
137
137
|
'@typescript-eslint/prefer-namespace-keyword': 0, // ox
|
|
138
138
|
'@typescript-eslint/promise-function-async': [
|
|
139
|
-
|
|
139
|
+
0, // ox
|
|
140
140
|
{
|
|
141
141
|
checkArrowFunctions: false,
|
|
142
142
|
checkFunctionDeclarations: true,
|
|
@@ -328,6 +328,7 @@ export default {
|
|
|
328
328
|
'@typescript-eslint/prefer-promise-reject-errors': 0, // ox
|
|
329
329
|
'unicorn/prefer-import-meta-properties': 2,
|
|
330
330
|
'unicorn/prefer-response-static-json': 0, // ox
|
|
331
|
+
'unicorn/prefer-includes': 0, // ox
|
|
331
332
|
'unicorn/no-array-callback-reference': 0, // false positives
|
|
332
333
|
'unicorn/no-process-exit': 0,
|
|
333
334
|
'unicorn/prefer-single-call': 0,
|
package/cfg/oxlint.config.json
CHANGED
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"prefer-array-find": 2,
|
|
38
38
|
"prefer-array-flat-map": 2,
|
|
39
39
|
"prefer-set-has": 2,
|
|
40
|
+
"no-array-constructor": 2,
|
|
41
|
+
"no-useless-return": 2,
|
|
40
42
|
"no-bitwise": 2,
|
|
41
43
|
"no-empty": [2, { "allowEmptyCatch": true }],
|
|
42
44
|
"no-regex-spaces": 2,
|
|
@@ -87,7 +89,7 @@
|
|
|
87
89
|
"typescript/non-nullable-type-assertion-style": 2,
|
|
88
90
|
"typescript/prefer-literal-enum-member": 2,
|
|
89
91
|
"typescript/promise-function-async": [
|
|
90
|
-
|
|
92
|
+
2,
|
|
91
93
|
{
|
|
92
94
|
"checkArrowFunctions": false,
|
|
93
95
|
"checkFunctionDeclarations": true,
|
package/dist/lint.util.js
CHANGED
package/package.json
CHANGED