https://github.com/sveltejs/eslint-config
An ESLint config for Svelte
https://github.com/sveltejs/eslint-config
Last synced: about 2 months ago
JSON representation
An ESLint config for Svelte
- Host: GitHub
- URL: https://github.com/sveltejs/eslint-config
- Owner: sveltejs
- Fork: true (beyonk-group/eslint-config)
- Created: 2020-05-28T21:59:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T15:27:35.000Z (about 1 year ago)
- Last Synced: 2024-10-29T15:11:21.466Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 411 KB
- Stars: 15
- Watchers: 3
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## ESLint configuration
Common eslint configuration for the Svelte organisation
## Contributing
Want to add an eslint rule? Open a PR and use gh-polls for voting: https://app.gh-polls.com/
## Usage
After installing `@sveltejs/eslint-config` with your package manager of choice,
import it and put it in the configuration array in `eslint.config.js`.
```js
import svelteConfig from '@sveltejs/eslint-config';
export default [
...svelteConfig,
{
// your overrides
}
];
```
## Linting
This project self-lints:
```bash
pnpm install
pnpm lint
```
## Changesets
All PRs with user-facing changes must include a changeset, which can be generated by running `pnpm changeset`.