Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jill64/eslint-config-svelte
- Owner: jill64
- License: mit
- Created: 2023-11-30T12:08:25.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-31T16:28:05.000Z (19 days ago)
- Last Synced: 2024-10-31T18:05:04.852Z (19 days ago)
- Topics: config, eslint, reusable, svelte
- Language: TypeScript
- Homepage: https://npmjs.com/package/@jill64/eslint-config-svelte
- Size: 277 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @jill64/eslint-config-svelte
🔹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)