Ale: Add support for sass

Created on 13 Sep 2017  路  5Comments  路  Source: dense-analysis/ale

I see that there is already support for a variety of CSS / SASS linters, but I can't find anything which actually validates the validity of the SCSS code itself. For example, even with the various sass linters installed, the following wouldn't trigger any errors, even though the $font-foo variable is undefined and causes a SASS parsing error:

body {
    font-family: $font-foo;
}

The SASS executable does have a --check option to only validate (no emitting CSS), so I would expect (from what I can tell) that it shouldn't be a difficult integration.

new tool

Most helpful comment

... I would expect (from what I can tell) that it shouldn't be a difficult integration.

Famous last words.

All 5 comments

... I would expect (from what I can tell) that it shouldn't be a difficult integration.

Famous last words.

Would this be possible via the LanguageServer support here? https://github.com/Microsoft/vscode-css-languageservice

Would that bring auto-completion too?

How exactly do I enable linting for sass files?

All supported linters are enabled by default, if installed. Check :help ale-sass for more details on what is supported.

GitHub issues is not really the proper place for tech support. Feel free to hop on gitter to get help with configuring ALE, or ask a question on Stack Exchange if your problem is more with Sass linters in general.

Thanks for your quick response. I checked again today and noticed that 6days ago there was a commit that made my settings work. I just had to update my ALE. That commit might solve this issue in general.

PS: Great Plugin!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sodiumjoe picture sodiumjoe  路  4Comments

lervag picture lervag  路  3Comments

ianchanning picture ianchanning  路  3Comments

amerov picture amerov  路  4Comments

kronos29296 picture kronos29296  路  4Comments