jamesbirtles / svelte-vscode

Svelte language support for VS Code
https://marketplace.visualstudio.com/items?itemName=JamesBirtles.svelte-vscode
MIT License
208 stars 22 forks source link

Using rules and config from .eslintrc.js #56

Closed frederikhors closed 4 years ago

frederikhors commented 5 years ago

I have

{
  "extends": "standard"
}

(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 changes App.svelte and main.js as I want: following standard.js rules.

jadwahab commented 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?