sass / linter

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

Add a lint for non-idiomatic identifier names #32

Open nex3 opened 5 years ago

nex3 commented 5 years ago

Sass allows either underscores or hyphens to be used interchangeably as identifier separators, but hyphens are preferred as they match CSS's own naming conventions. We should have a lint for any Sass identifier (variable, mixin, function, or placeholder name) that complains about underscores and suggests using hyphens instead.

nex3 commented 5 years ago

It's probably also a good idea to complain about camel-case names.