@naturalcycles/dev-lib 20.47.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.
@@ -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,
@@ -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
 
@@ -458,7 +458,7 @@ export function runTest(opt = {}) {
458
458
  function runVitest(opt) {
459
459
  const { integration, manual } = opt;
460
460
  const processArgs = process.argv.slice(3);
461
- const args = [...processArgs];
461
+ const args = processArgs.slice();
462
462
  const env = {};
463
463
  if (integration) {
464
464
  Object.assign(env, {
@@ -41,7 +41,7 @@ export function validateCommitMessage(input, cfg = {}) {
41
41
  const [, type, scope, _breaking, description] = match;
42
42
  // Step 2: Validate type
43
43
  if (!ALLOWED_TYPES.has(type)) {
44
- errors.push(`Invalid type "${type}". Allowed types: ${[...ALLOWED_TYPES].join(', ')}`);
44
+ errors.push(`Invalid type "${type}". Allowed types: ${Array.from(ALLOWED_TYPES).join(', ')}`);
45
45
  }
46
46
  // Step 3: Validate subject line length
47
47
  if (subjectLine.length > SUBJECT_MAX_LENGTH) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.47.0",
4
+ "version": "20.48.1",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@naturalcycles/nodejs-lib": "^15",