// @ts-check import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; import svelte from 'eslint-plugin-svelte'; import prettier from 'eslint-config-prettier'; import globals from 'globals'; export default tseslint.config( eslint.configs.recommended, ...tseslint.configs.recommended, svelte.configs['flat/recommended'], prettier, { languageOptions: { globals: { ...globals.browser, ...globals.node } } }, { files: ['**/*.svelte'], languageOptions: { parserOptions: { parser: tseslint.parser } } }, { ignores: ['build/', '.svelte-kit/', 'node_modules/'] }, { rules: { '@typescript-eslint/no-unused-vars': 'warn', // No base path configured — this rule is not applicable to this project 'svelte/no-navigation-without-resolve': 'off' } } );