csslint
csslint copied to clipboard
Feature: Apply ../.csslintrc's up to ~/.csslintrc
My workflows sometimes collide with csslint:
- My shell is temporarily
cd
'd several directories deeper than I usually callcsslint
, but I want to call it regardless, using the project root's.csslintrc
configuration. - I work on multiple CSS projects, and want to use a single
~/.csslintrc
for each one of them.
We could make csslint behave more intuitively in these situations, by having it search for .csslintrc
files in order from .
, to ..
, and so on, until it finds one, or hits $HOME
and can't find one.
As a workaround, I can:
- Copy the desired
.csslintrc
configuration file to the project root. - Write a grunt-exec task in
Gruntfile.js
to callcsslint .
This runscsslint .
from the project root, regardless of the directory wheregrunt
is called from, and automatically applies the project root's.csslintrc
.
But I would prefer csslint to simply work this way out-of-the-box.
:+1:
+1
I've got a (quite awful) reference implementation working for rc files scanned up to $HOME
, for my cowl
linter:
https://github.com/mcandre/cowl
It's a start.
~~Hang on a second. Why did this get closed? As far as I can tell, this still doesn't work in v0.10.0.~~
edit: Nevermind. I was misinterpreting Github's UI a bit. Still, this feature is sorely missed.
I would also like to see this feature.
Is this issue the same as https://github.com/CSSLint/csslint/issues/704? Why has this no reply? Why is this so different from other Sublime linters?