Mirror of csslint package for pre-commit.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.npmignore
.pre-commit-hooks.yaml
.version
README.md
hooks.yaml
package.json

README.md

csslint mirror

Mirror of csslint package for pre-commit.

For pre-commit: see https://github.com/pre-commit/pre-commit

For csslint: see https://github.com/CSSLint/csslint

Using csslint with pre-commit

Add this to your .pre-commit-config.yaml:

-   repo: https://github.com/pre-commit/mirrors-csslint
    rev: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: csslint

Note that csslint does not exit with a non-zero return code unless the issue is an error. A lot of common mistakes are considered warnings. We suggest you add a .csslintrc file to your project. See https://github.com/CSSLint/csslint/wiki/Command-line-interface#configuration-files