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

.csslintrc not working when it's in a directory #38

Open
JoryHogeveen opened this issue Feb 1, 2017 · 2 comments
Open

.csslintrc not working when it's in a directory #38

JoryHogeveen opened this issue Feb 1, 2017 · 2 comments

Comments

@JoryHogeveen
Copy link

ESLint allows a custom location for the config file:

  eslint:
    enabled: true
    config:
      config: FOLDER/.eslintrc

It seems CSSLint doesn't support this:

  csslint:
    enabled: true
    config:
      config: FOLDER/.csslintrc

It only works when the .csslintrc is in the root directory.
Do I need to change it or is it just not supported?

@maxjacobson
Copy link

It's not currently supported. We could support it by passing a --config option on this line providing the path to the config file.

Will you elaborate on what your use-case is for not wanting to keep the config file in the root directory?

@JoryHogeveen
Copy link
Author

Ah ok, no problem, I fixed it in the .codeclimate.yml at the moment.
Not a major issue but since ESLint supported this I thought CSSLint would support it as well.
I like to keep my "testing" files in a tests folder as much as possible to keep the root a bit more clean.

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

2 participants