Fixed linting config, and added a script to hold my beer

This commit is contained in:
Alicia Sykes committed 2025-10-11 19:59:36 +01:00
1 parent 85ec71db50
commit 089385f9cd
2 files changed
+25 -2

No files matched your search

+22
View File
@@ -29,6 +29,28 @@ export default [
'svelte/no-navigation-without-resolve': 'off'
}
},
{
files: ['**/*.svelte.ts'],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
extraFileExtensions: ['.svelte']
},
globals: {
...globals.browser,
...globals.es2023,
// Svelte 5 runes globals
$state: 'readonly',
$derived: 'readonly',
$effect: 'readonly',
$props: 'readonly',
$bindable: 'readonly',
$inspect: 'readonly'
}
}
},
{
rules: {
// Prefer TS version of unused-vars, and ignore _-prefixed
+3 -2
View File
@@ -15,10 +15,11 @@
"build-check": "vite build --minify=false --sourcemap=false --logLevel error",
"build:node": "DEPLOY_ENV='node' npm run build",
"build:static": "DEPLOY_ENV='static' npm run build",
"test": "vitest",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:api": "vitest run --config tests/vitest.api.config.ts",
"test:e2e": "playwright test"
"test:e2e": "playwright test",
"hold-my-beer": "npm run format && npm run lint && npm run types && npm run check && npm run build-check && npm run test"
},
"devDependencies": {
"@axe-core/playwright": "^4.10.2",