import { config as svelteConfigBase } from '@sgse-app/eslint-config/svelte';
import svelteConfig from './svelte.config.js';
import ts from 'typescript-eslint';
import { defineConfig } from "eslint/config";
 
/** @type {import("eslint").Linter.Config} */
export default defineConfig([
  ...svelteConfigBase,
  {
    files: ['**/*.svelte'],
    languageOptions: {
      parserOptions: {
        parser: ts.parser,
        extraFileExtensions: ['.svelte'],
        svelteConfig
      }
    }
  },
  {
    ignores: [
      '**/node_modules/**',
      '**/.svelte-kit/**',
      '**/build/**',
      '**/dist/**',
      '**/.turbo/**'
    ]
  }
])
