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 js from '@eslint/js';
import ts from 'typescript-eslint';
import svelte from 'eslint-plugin-svelte'; 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'; 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, js.configs.recommended,
...ts.configs.recommended, ...ts.configs.recommended,
...svelte.configs.recommended, ...svelte.configs.recommended,
eslintConfigPrettier, prettier,
...svelte.configs.prettier,
{ {
languageOptions: { languageOptions: {
ecmaVersion: 2020, globals: { ...globals.browser, ...globals.node }
sourceType: 'module', },
globals: { rules: {
...globals.browser, // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
...globals.es2017, // 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
...globals.node 'no-undef': 'off'
}
} }
}, },
{ {
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'], files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
ignores: ['eslint.config.js', 'svelte.config.js'],
languageOptions: { languageOptions: {
parserOptions: { parserOptions: {
projectService: true, projectService: true,
@@ -32,8 +37,5 @@ export default ts.config(
svelteConfig svelteConfig
} }
} }
},
{
ignores: ['.svelte-kit/*', 'build/*', 'dist/*'] // Add common ignore patterns
} }
); );

View File

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

966
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff