grunt-eslint - Fluid Community Edition
This differs from the upstream version of grunt-eslint in that
- It binds to fluid-eslint rather than ESLint, in order to include a fully working fix for issue 4931
- It includes a fix for issue 19, outputting the number of linted files, which the grunt-eslint maintainer has refused a fix for
Validate files with ESLint
Install
$ npm install --save-dev grunt-eslint
Usage
grunt; // npm install --save-dev load-grunt-tasks grunt; grunt;
Examples
Custom config and rules
grunt;
Custom formatter
grunt;
Options
See the ESLint options.
In addition the following options are supported:
format
Type: string
Default: 'stylish'
Name of a built-in formatter or path to a custom one.
Some formatters you might find useful: eslint-json, eslint-tap.
outputFile
Type: string
Default: ''
Output the report to a file.
quiet
Type: boolean
Default: false
Report errors only.
maxWarnings
Type: number
Default: -1
(means no limit)
Number of warnings to trigger non-zero exit code.
License
MIT © Sindre Sorhus