0.1.1 • Published 10 years ago
justo-plugin-bootlint v0.1.1
Simple task for the bootlint command.
Proudly made with ♥ in Valencia, Spain, EU.
Install
npm install justo-plugin-bootlintDependencies:
npm install -g bootlintUse
const bootlint = require("justo-plugin-bootlint");To run bootlint, the task must be called as follows:
bootlint(opts, src : ...string) : number
bootlint(opts, config : object) : numberConfiguration object:
src(string or string[]). Files to check. To lint a directory, this must end with/.disable(string or string[]). Disable the linter IDs.output(boolean). Display thebootlintoutput:true, yep;false, nope. Default:true.ignore(string or string[]). Exclude the files.
The task returns 0 if all the lint checks have passed; otherwise, !0.
Examples:
bootlint("Check Bootstrap", {
src: ["app/index.html", "app/about.html)"],
disable: "W002"
});
bootlint("Check Bootstrap", {
src: "app/",
ignore: ["app/styles/", "app/scripts/", "app/fonts/"]
});