Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jill64/eslint-config-svelte

🔹Pre-Defined ESLint Flat Config for Svelte
https://github.com/jill64/eslint-config-svelte

config eslint reusable svelte

Last synced: 9 days ago
JSON representation

🔹Pre-Defined ESLint Flat Config for Svelte

Awesome Lists containing this project

README

        

# @jill64/eslint-config-svelte

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

🔹Pre-Defined ESLint Flat Config for Svelte

## Installation

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

## Usage

eslint.config.js

with TypeScript

```js
import { svelteTsConfig } from '@jill64/eslint-config-svelte'

/** @type {import('@jill64/eslint-config-svelte').FlatConfig[]} */
export default svelteTsConfig()
```

To add any configuration, configure as follows

```js
import { svelteTsConfig } from '@jill64/eslint-config-svelte'

/** @type {import('@jill64/eslint-config-svelte').FlatConfig[]} */
export default [
...svelteTsConfig()
// ...
]
```

with JavaScript

```js
import { svelteConfig } from '@jill64/eslint-config-svelte'

/** @type {import('@jill64/eslint-config-svelte').FlatConfig[]} */
export default [
...svelteConfig()
// ...
]
```

## License

[MIT](LICENSE)