Closed frederikhors closed 4 years ago
I wanted to get standard rules as well and had to use https://github.com/sveltejs/eslint-plugin-svelte3 but it issue is that to get it working it needs VS Code to associate svelte files as html so it messes up the way the extension reads the svelte file.
Did you manage to get standard rules with this extension working through a better way?
I have
(which comes from https://github.com/standard/eslint-config-standard#usage) in my
.eslintrc.js
and I'm wondering why this doesn't work in<script></script>
part of my.svelte
files.What rules is this plugin following?
UPDATE:
Reproduction project: https://github.com/frederikhors/svelte3-vscode-eslint
Using this in command line:
npx eslint --fix .\src\*
works good, it changesApp.svelte
andmain.js
as I want: followingstandard.js
rules.