Skip to content

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

@JoryHogeveen

Description

@JoryHogeveen

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?

Activity

maxjacobson

maxjacobson commented on Feb 6, 2017

@maxjacobson

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

JoryHogeveen commented on Feb 7, 2017

@JoryHogeveen
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @JoryHogeveen@maxjacobson

        Issue actions

          .csslintrc not working when it's in a directory · Issue #38 · codeclimate/codeclimate-csslint