SimenB / stylint

Improve your Stylus code with Stylint
https://simenb.github.io/stylint/
GNU General Public License v2.0
348 stars 61 forks source link

namingConvention fails #332

Closed ghost closed 8 years ago

ghost commented 8 years ago

using namingConventio = camelCase I got erros with varibles like this:

$someColor = #fff

But no error is thrown to this

someColor = #fff

Fails with code that should warn. Like this

some-color = #fff

But complain about this

$some-color = #fff

When set to lowercase-dash it doesn't warn with code a name like

someColor = #fff

But an error is thrown with

$someColor = #fff

It also fails in placeholders

rossPatton commented 8 years ago

see https://github.com/rossPatton/stylint#namingconventionstrict--default-false-true--false-

ghost commented 8 years ago

I don't see what you mean. Doesn't this option set whether or not to check other names than the variables?

I've tested it with namingConventionStrict both true and false and got the same problems. All names in my code (except ids and classes, which is why I rather keep namingConventionStrict false) are in cammel case, and namingConvention is set to cammel, and I got the preferred naming convention is cammel error