csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Feature: Apply ../.csslintrc's up to ~/.csslintrc

Open mcandre opened this issue 9 years ago • 6 comments

My workflows sometimes collide with csslint:

  • My shell is temporarily cd'd several directories deeper than I usually call csslint, 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:

  1. Copy the desired .csslintrc configuration file to the project root.
  2. Write a grunt-exec task in Gruntfile.js to call csslint . This runs csslint . from the project root, regardless of the directory where grunt 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.

mcandre avatar Jul 30 '14 15:07 mcandre

:+1:

dmnd avatar Aug 06 '14 23:08 dmnd

+1

hd-deman avatar Aug 14 '14 09:08 hd-deman

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.

mcandre avatar Aug 19 '14 21:08 mcandre

~~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.

frippz avatar Jan 21 '15 13:01 frippz

I would also like to see this feature.

bignimbus avatar Jul 21 '15 14:07 bignimbus

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?

ghost avatar Mar 12 '18 20:03 ghost