mocha-csslint -------- Run CSSLint as a Mocha test.
Run CSSLint as Mocha tests.
To install in your node.js project as devDependency, run this command, in the root of your project
npm install mocha-csslint --save-dev
Mocha defaults to looking for your test specs in the
test folder of your project.
Add this file as
test/csslint.spec.js in your project, with the following content:
You should point to the place where you keep your css files instead of
That is it you are done.
You can still specify you csslint options in a
.csslintrc file in the root of your project (see this project for an example)
To grep only the CSSLint test, just do
mocha --grep csslint
If you want to run CSSLint on several separate folders you can do:
This module was created to: