sveltejs/svelte-atom

Linting less as css

RedHatter opened this issue · 5 comments

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

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

I already have lang="less"

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.

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

rixo commented

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).