Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Using rules and config from .eslintrc.js #56

Closed
frederikhors opened this issue Jun 28, 2019 · 1 comment
Closed

Using rules and config from .eslintrc.js #56

frederikhors opened this issue Jun 28, 2019 · 1 comment

Comments

@frederikhors
Copy link

frederikhors commented Jun 28, 2019

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
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants