Set node options

This commit is contained in:
Alicia Sykes committed 2025-09-21 21:59:00 +01:00
1 parent 21ed078cd8
commit ad0172b3c8
3 files changed
+23 -7

No files matched your search

+11
View File
@@ -1 +1,12 @@
engine-strict=true
node-options=--max_old_space_size=8192
scripts-prepend-node-path=true
# Disable telemetry, noisy crap and other non-essential features
fund=false
update-notifier=false
loglevel=notice
# Dependency layout (bit tidier and faster to resolve)
prefer-dedupe=true
install-strategy=hoisted
+6 -2
View File
@@ -24,14 +24,18 @@ export default [
},
rules: {
// Typical useful TS rules in Svelte files
'@typescript-eslint/consistent-type-imports': 'error'
'@typescript-eslint/consistent-type-imports': 'error',
// Disable navigation without resolve for internal links
'svelte/no-navigation-without-resolve': 'off'
}
},
{
rules: {
// Prefer TS version of unused-vars, and ignore _-prefixed
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }]
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
// Temporarily disable no-explicit-any for API response types
'@typescript-eslint/no-explicit-any': 'off'
}
},
prettier // turn off formatting-related ESLint rules (let Prettier own formatting)
+6 -5
View File
@@ -13,12 +13,13 @@
"format": "prettier --check src --write",
"types": "tsc -p tsconfig.json --noEmit",
"build-check": "vite build --minify=false --sourcemap=false --logLevel error",
"test": "NODE_OPTIONS='--max_old_space_size=8192' vitest",
"test:ui": "NODE_OPTIONS='--max_old_space_size=8192' vitest --ui",
"test:coverage": "NODE_OPTIONS='--max_old_space_size=8192' vitest --coverage",
"test:e2e": "NODE_OPTIONS='--max_old_space_size=8192' playwright test",
"test:e2e:ui": "NODE_OPTIONS='--max_old_space_size=8192' playwright test --ui"
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest --coverage",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
},
"dependencies": {},
"devDependencies": {
"@axe-core/playwright": "^4.10.2",
"@eslint/js": "^9.36.0",