Validate files with ESLint.
var eslint = new (require('task-eslint'))
eslint.run(inputs, options, logger)
Type: path
Path to your ESLint config file (eslint.json
).
Type: directory
Default: built-in rules directory
Paths to directories with custom rules. Your custom rules will be used in addition to the built-in ones.
Recommended read: Working with Rules
Type: select
Default: 'stylish'
Options: ['stylish', 'compact', 'jslint-xml', 'junit', 'tap']
Use a specific output format.
Type: boolean
Default: 'true'
Fail when eslint error is found.
- 2014-10-11 0.1.2 Add failOnError option
- 2014-10-11 0.1.1 Upgrade eslint to 0.8.2
- 2014-06-27 0.1.0 Initial release.
Copyright (c) 2014 Yuanyan Cao. Licensed under the MIT license.