Skip to content

Support jshint style JSON format for .csslintrc file #359

@jzaefferer

Description

@jzaefferer

This came up when adding .csslintrc file support to grunt-contrib-csslint: gruntjs/grunt-contrib-csslint#6

Turns out the format the csslint expects is CLI options in a file. It would be great to instead support a format equivalent to what jshint supports in its .jshintrc file, matching what CSSLint also expects when using it programmatically.

As an usage example of the preferred format, here's a commit in jQuery UI where we moved from options to .csslintrc file: jquery/jquery-ui@39a2f46

Since csslint is still not on a 1.x.x release, I suggest to change the format instead of trying to support both.

Also related is this ticket for SublimeLinter, to add support for .csslintrc files: SublimeLinter/SublimeLinter#386

If this is acceptable, I'll try to put together a pull request.

/cc @tkellen @scottgonzalez

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

    Issue actions