import config from 'eslint-config-standard-universal'
import tseslint from 'typescript-eslint'

import svelteConfig from './svelte.config.js'

export default tseslint.config(
  ...config(),
  {
    languageOptions: {
      parserOptions: {
        tsconfigRootDir: import.meta.dirname,
        svelteConfig
      }
    },
    ignores: ['build/', '.svelte-kit/', 'node_modules/']
  }
)
