@naturalcycles/dev-lib 20.48.0 → 20.48.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/oxlint.config.js +13 -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,
|
|
@@ -413,6 +425,7 @@ export const sharedConfig = {
|
|
|
413
425
|
'vitest/no-focused-tests': 2,
|
|
414
426
|
'vitest/no-identical-title': 2,
|
|
415
427
|
'vitest/no-test-return-statement': 2,
|
|
428
|
+
'vitest/padding-around-after-all-blocks': 2,
|
|
416
429
|
'vitest/prefer-hooks-in-order': 2,
|
|
417
430
|
'vitest/prefer-hooks-on-top': 2,
|
|
418
431
|
'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
|
|