Open nicobrinkkemper opened 5 years ago
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.
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',
},
],
};
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