Open Arcanemagus opened 8 years ago
It seems that if stylint is run on a file not in the current folder the output completely changes depending on whether or not there is a configuration file specified:
stylint
bad.styl:
accent = hlsa(174, 100%, 29%, 0.2) .test { color red }
.stylintrc:
{ "brackets": "never", "colons": { "expect": "always", "error": true }, "leadingZero": "never", "prefixVarsWithDollar": "always" }
Note that if you attempt this from the directory bad.styl is in, it will still pick up the config as it has the standard name.
bad.styl
Probably because of the somewhat dirty lookup in here: https://github.com/SimenB/stylint/blob/master/src/utils/setConfig.js
It seems that if
stylint
is run on a file not in the current folder the output completely changes depending on whether or not there is a configuration file specified:bad.styl:
.stylintrc:
Note that if you attempt this from the directory
bad.styl
is in, it will still pick up the config as it has the standard name.