justo-plugin-bootlint

0.1.1 • Public • Published

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/"]
});

Package Sidebar

Install

npm i justo-plugin-bootlint

Weekly Downloads

2

Version

0.1.1

License

none

Last publish

Collaborators

  • justojs