🔹Pre-Defined ESLint Flat Config for Svelte
npm i -D @jill64/eslint-config-svelte
eslint.config.js
with TypeScript
import { svelteTsConfig } from '@jill64/eslint-config-svelte'
/** @type {import('@jill64/eslint-config-svelte').FlatConfig[]} */
export default svelteTsConfig()
To add any configuration, configure as follows
import { svelteTsConfig } from '@jill64/eslint-config-svelte'
/** @type {import('@jill64/eslint-config-svelte').FlatConfig[]} */
export default [
...svelteTsConfig()
// ...
]
with JavaScript
import { svelteConfig } from '@jill64/eslint-config-svelte'
/** @type {import('@jill64/eslint-config-svelte').FlatConfig[]} */
export default [
...svelteConfig()
// ...
]