sveltejs / svelte-atom

Syntax, diagnostics, and other smarts for Svelte in Atom
MIT License
30 stars 11 forks source link

Linting less as css #1

Closed RedHatter closed 2 years ago

RedHatter commented 5 years ago

I use less in my style tags and svelte-atom attempts to lint it as normal css.

b-fuze commented 5 years ago

Add type="text/less" or lang="less" to your <style>

RedHatter commented 5 years ago

I already have lang="less"

b-fuze commented 5 years ago

I see, the difference it makes for me is that the language highlight works and 10+ errors become one. Doesn't solve the issue, but less noise for me is better than nothing.

b-fuze commented 5 years ago

This is actually a Language Server issue, I just observed the same behaviour in VSCode.

rixo commented 2 years ago

I believe Language Server update in the last version of the plugin has fixed this long standing issue. I don't see lint error after a quick test with the new version (setting lang="lesse" and using a less specific variable).