task-jshint

0.1.0 • Public • Published

task-jshint

Validate files with JSHint.

The "jshint" task

Usage Examples

var jshint = new (require('task-jshint'))
jshint.run(inputs, options, logger)

Options

options.config

Type: file

Custom configuration file.

options.reporter

Type: string Default: 'jslint'

Custom reporter (|jslint|checkstyle).

options.extensions

Type: string Default: '.js'

Comma-separated list of file extensions to use.

options.ignores

Type: array

A list of files and dirs to ignore. This will override your .jshintignore file if set and does not merge..

options.showNonErrors

Type: boolean Default: false

Show additional data generated by jshint.

options.extract

Type: select Default: 'never' Options: 'never', 'auto', 'always'

Extract inline scripts contained in HTML.

options.verbose

Type: boolean Default: false

Show message codes.

Release History

  • 2014-04-08 0.1.0 Initial release.

License

Copyright (c) 2014 Yuanyan Cao. Licensed under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i task-jshint

Weekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • yuanyan