Linting less as css
RedHatter opened this issue · 5 comments
RedHatter commented
I use less in my style tags and svelte-atom attempts to lint it as normal css.
b-fuze commented
Add type="text/less" or lang="less" to your <style>
RedHatter commented
I already have lang="less"
b-fuze commented
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
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).