update svelte flow dev dependencies

This commit is contained in:
peterkogo
2025-10-21 13:06:34 +02:00
committed by moklick
parent 820627fede
commit 4f0b0a98f2
3 changed files with 334 additions and 708 deletions

View File

@@ -1,29 +1,34 @@
import globals from 'globals';
import prettier from 'eslint-config-prettier';
import { fileURLToPath } from 'node:url';
import { includeIgnoreFile } from '@eslint/compat';
import js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte';
import eslintConfigPrettier from 'eslint-config-prettier';
import { defineConfig } from 'eslint/config';
import globals from 'globals';
import ts from 'typescript-eslint';
import svelteConfig from './svelte.config.js';
export default ts.config(
const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
export default defineConfig(
includeIgnoreFile(gitignorePath),
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs.recommended,
eslintConfigPrettier,
prettier,
...svelte.configs.prettier,
{
languageOptions: {
ecmaVersion: 2020,
sourceType: 'module',
globals: {
...globals.browser,
...globals.es2017,
...globals.node
}
globals: { ...globals.browser, ...globals.node }
},
rules: {
// typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
// see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
'no-undef': 'off'
}
},
{
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
ignores: ['eslint.config.js', 'svelte.config.js'],
languageOptions: {
parserOptions: {
projectService: true,
@@ -32,8 +37,5 @@ export default ts.config(
svelteConfig
}
}
},
{
ignores: ['.svelte-kit/*', 'build/*', 'dist/*'] // Add common ignore patterns
}
);

View File

@@ -55,35 +55,35 @@
"@xyflow/system": "workspace:*"
},
"devDependencies": {
"@eslint/js": "^9.28.0",
"@sveltejs/adapter-auto": "^6.0.1",
"@sveltejs/kit": "^2.21.4",
"@sveltejs/package": "^2.3.11",
"@sveltejs/vite-plugin-svelte": "^5.1.0",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"@eslint/js": "^9.38.0",
"@sveltejs/adapter-auto": "^7.0.0",
"@sveltejs/kit": "^2.47.2",
"@sveltejs/package": "^2.5.4",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@typescript-eslint/eslint-plugin": "^8.46.2",
"@typescript-eslint/parser": "^8.46.2",
"autoprefixer": "^10.4.21",
"cssnano": "^7.0.7",
"dotenv": "^16.5.0",
"eslint": "^9.28.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-svelte": "^3.9.2",
"globals": "^16.2.0",
"postcss": "^8.5.4",
"cssnano": "^7.1.1",
"dotenv": "^17.2.3",
"eslint": "^9.38.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.12.5",
"globals": "^16.4.0",
"postcss": "^8.5.6",
"postcss-cli": "^11.0.1",
"postcss-combine-duplicated-selectors": "^10.0.3",
"postcss-import": "^16.1.0",
"postcss-import": "^16.1.1",
"postcss-nested": "^7.0.2",
"postcss-rename": "^0.8.0",
"prettier": "^3.5.3",
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"svelte": "^5.33.19",
"svelte-check": "^4.2.1",
"svelte-eslint-parser": "^1.2.0",
"svelte": "^5.41.1",
"svelte-check": "^4.3.3",
"svelte-eslint-parser": "^1.4.0",
"svelte-preprocess": "^6.0.3",
"tslib": "^2.8.1",
"typescript": "^5.8.3",
"typescript-eslint": "^8.34.0"
"typescript": "^5.9.3",
"typescript-eslint": "^8.46.2"
},
"peerDependencies": {
"svelte": "^5.25.0"