An ESLint plugin for Svelte v3 components.
This is not published to npm. Install from Git tags. See the documentation on npm install
for how to do this.
This plugin needs to be able to require('svelte/compiler')
. It requires Svelte 3.0.0-alpha2 or later.
Just specify it in your .eslintrc
.
plugins:
- svelte3
By default, all .svelte
files will be linted. You can set the svelte3/extensions
setting in your .eslintrc
to an array of file extensions to override this.
settings:
svelte3/extensions:
- .html