Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode .svelte extension plugin doesn't play nice with style tag attributes (heads up) #87

Open
nicobrinkkemper opened this issue Aug 15, 2019 · 2 comments

Comments

@nicobrinkkemper
Copy link

As the title says. Probably a bug on the extension side. Currently all color highlighting drops when adding a attribute to the style tag. The fix: change extension to .html

@skdigital
Copy link

skdigital commented Aug 31, 2019

yep I have the exact same problem and cant get the errors to disappear. All variables and nested statements are marked as errors in vscode.

langSolution-index

@LukasHechenberger
Copy link
Contributor

LukasHechenberger commented Nov 27, 2019

Works fine for me with the svelte extension v0.9.3. If you have issues with the extension, report it in their repo instead.

If the eslint-extension is causing the issue, use .eslintrc.js to ignore scss styles like this:

module.exports = {
  plugins: ['svelte3'],
  settings: {
    'svelte3/ignore-styles': function({ type }) {
      return type === 'text/scss';
    },
  },
  overrides: [
    {
      files: ['*.svelte'],
      processor: 'svelte3/svelte3',
    },
  ],
};

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

No branches or pull requests

3 participants