mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-20 21:23:10 +03:00
Fixed linting config, and added a script to hold my beer
This commit is contained in:
1 parent
85ec71db50
commit
089385f9cd
2 files changed
+25
-2
No files matched your search
@@ -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
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user