sass / linter

An experimental Sass linter written using the Dart Sass AST
MIT License
39 stars 6 forks source link

Implement "Unknown At Rule" lint rule #7

Open srawlins opened 6 years ago

srawlins commented 6 years ago

Need to implement a lint rule that reports unknown rules that start with @:

@warn("Hello.");    // OK
@warning("Hello."); // LINT

This is similar to stylelint's at-rule-no-unknown.

nex3 commented 6 years ago

It's worth considering whether this might be worth leaving this to the plain CSS linter. Any unknown at-rules will get pushed through to plain CSS, and tracking which ones exist and which ones don't will involve a lot of keeping up to date with the latest CSS specs, which isn't super fun.

srawlins commented 6 years ago

Good point! OK not high priority while I mull this.