eslint-config-svelte Svelte Themes

Eslint Config Svelte

🔹Pre-Defined ESLint Flat Config for Svelte

@jill64/eslint-config-svelte

npm-version npm-license npm-download-month npm-min-size

🔹Pre-Defined ESLint Flat Config for Svelte

Installation

npm i -D @jill64/eslint-config-svelte

Usage

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()
  // ...
]

License

MIT

Top categories

Loading Svelte Themes