Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mcandre opened this issue Jul 30, 2014 · 6 comments
Open

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

mcandre opened this issue Jul 30, 2014 · 6 comments

Comments

@mcandre
Copy link

mcandre commented Jul 30, 2014

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.

@dmnd
Copy link

dmnd commented Aug 6, 2014

👍

@hd-deman
Copy link

+1

@mcandre
Copy link
Author

mcandre commented Aug 19, 2014

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.

@frippz
Copy link

frippz commented Jan 21, 2015

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.

@bignimbus
Copy link
Contributor

I would also like to see this feature.

@ghost
Copy link

ghost commented Mar 12, 2018

Is this issue the same as #704? Why has this no reply? Why is this so different from other Sublime linters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants