0.1.9 • Published 8 years ago

justo-plugin-jshint v0.1.9

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

Build Status

Simple task to run the jshint command.

Proudly made with ♥ in Valencia, Spain, EU.

Install

npm install justo-plugin-jshint

Dependencies:

npm install -g jshint

Use

const jshint = require("justo-plugin-jshint");

To run jshint, the task must be called as follows:

jshint(opts, ...files) : number
jshint(opts, config) : number

The config object can have the following properties:

  • files (string[]). The files to check. Default: ".".
  • src (string or string[]). Alias of files.
  • output (boolean). Show the standard output: true, yep; false, nope. Default: true.

The task returns the exit code.

Example:

jshint("JSHint", "lib/index.js", "lib/module.js");
jshint("JSHint", {
  files: [
    "lib/index.js",
    "lib/modules.js"
  ],
  output: false
});
0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

9 years ago