@naturalcycles/dev-lib 20.48.0 → 20.48.2
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/oxlint.config.js +14 -0
- package/cfg/vitest.config.js +1 -0
- package/package.json +1 -1
package/cfg/oxlint.config.js
CHANGED
|
@@ -93,9 +93,20 @@ export const sharedConfig = {
|
|
|
93
93
|
'valid-title': 0,
|
|
94
94
|
'vitest/valid-title': 0,
|
|
95
95
|
'valid-describe-callback': 0,
|
|
96
|
+
'id-match': [
|
|
97
|
+
2,
|
|
98
|
+
'^.+$',
|
|
99
|
+
{
|
|
100
|
+
classFields: false,
|
|
101
|
+
ignoreDestructuring: false,
|
|
102
|
+
onlyDeclarations: false,
|
|
103
|
+
properties: false,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
96
106
|
'jsdoc/require-yields': 0,
|
|
97
107
|
'no-new-wrappers': 2,
|
|
98
108
|
'no-useless-call': 2,
|
|
109
|
+
'no-implied-eval': 2,
|
|
99
110
|
'no-accumulating-spread': 2,
|
|
100
111
|
'no-map-spread': 0, // todo: consider, check the effect
|
|
101
112
|
'prefer-array-find': 2,
|
|
@@ -142,6 +153,7 @@ export const sharedConfig = {
|
|
|
142
153
|
'max-params': [2, { max: 5 }],
|
|
143
154
|
'prefer-spread': 2,
|
|
144
155
|
'import/extensions': [0, 'always', { ignorePackages: true }], // disabled as it's buggy; would be nice to enable eventually
|
|
156
|
+
'import/newline-after-import': 2,
|
|
145
157
|
'import/no-amd': 2,
|
|
146
158
|
'import/no-commonjs': 2,
|
|
147
159
|
'import/no-cycle': 2,
|
|
@@ -184,6 +196,7 @@ export const sharedConfig = {
|
|
|
184
196
|
'typescript/non-nullable-type-assertion-style': 2,
|
|
185
197
|
'typescript/prefer-literal-enum-member': 2,
|
|
186
198
|
'typescript/prefer-reduce-type-parameter': 2,
|
|
199
|
+
'typescript/method-signature-style': 2,
|
|
187
200
|
'typescript/promise-function-async': [
|
|
188
201
|
2,
|
|
189
202
|
{
|
|
@@ -413,6 +426,7 @@ export const sharedConfig = {
|
|
|
413
426
|
'vitest/no-focused-tests': 2,
|
|
414
427
|
'vitest/no-identical-title': 2,
|
|
415
428
|
'vitest/no-test-return-statement': 2,
|
|
429
|
+
'vitest/padding-around-after-all-blocks': 2,
|
|
416
430
|
'vitest/prefer-hooks-in-order': 2,
|
|
417
431
|
'vitest/prefer-hooks-on-top': 2,
|
|
418
432
|
'vitest/prefer-mock-promise-shorthand': 2,
|
package/cfg/vitest.config.js
CHANGED
|
@@ -3,6 +3,7 @@ import { isAgent } from 'std-env'
|
|
|
3
3
|
import { defineConfig } from 'vitest/config'
|
|
4
4
|
import { SummaryReporter } from './summaryReporter.js'
|
|
5
5
|
import { VitestAlphabeticSequencer } from './vitestAlphabeticSequencer.js'
|
|
6
|
+
|
|
6
7
|
export { SummaryReporter } from './summaryReporter.js'
|
|
7
8
|
export { CollectReporter } from './collectReporter.js'
|
|
8
9
|
|