0.1.1 • Published 8 years ago

justo-plugin-bootlint v0.1.1

Weekly downloads
7
License
-
Repository
github
Last release
8 years ago

Build Status

Simple task for the bootlint command.

Proudly made with ♥ in Valencia, Spain, EU.

Install

npm install justo-plugin-bootlint

Dependencies:

npm install -g bootlint

Use

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) : number

Configuration 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 the bootlint output: 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/"]
});