voss-node-configs 1.0.61 → 1.0.63

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.
Files changed (2) hide show
  1. package/back-end.js +15 -0
  2. package/package.json +1 -1
package/back-end.js CHANGED
@@ -48,6 +48,21 @@ export default [
48
48
  'no-sync': 'error', // Warn about synchronous methods
49
49
  },
50
50
  },
51
+ {
52
+ // Test + Vitest setup files run in Node; full Node globals (e.g. fetch) like .js/.mjs
53
+ files: [
54
+ '**/*.{test,spec}.ts',
55
+ '**/__tests__/**/*.ts',
56
+ '**/vitest.setup.ts',
57
+ '**/vitest-*-setup.ts',
58
+ '**/*.setup.ts',
59
+ ],
60
+ languageOptions: {
61
+ globals: {
62
+ ...globals.node,
63
+ },
64
+ },
65
+ },
51
66
  {
52
67
  // Override for scripts/cli/migrations - allow sync operations and process.exit() for proper CLI/script error handling
53
68
  files: ['scripts/**/*', 'cli/**/*', 'migrations/**/*'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voss-node-configs",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Shared TypeScript and ESLint configs for Node.js projects",
5
5
  "exports": {
6
6
  "./tsconfig.base": "./tsconfig.base.json",