iancmyers / eslint-grunt

Validate files with ESLint using the Grunt task runner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow formatter output to be written to file

mnadeem opened this issue · comments

The following option
-o
This option specifies the output file name which can be passes for the output of the task to be put into

Example:

eslint -o ./test/test.html
When specified, the given format is output into the provided file name.

Upgrading the eslint version (to v0.12.0) is required

eslint.js

module.exports = {
options: {
format: 'tap',
'output-file' : 'eslint-erros.tap'
},
target: ['app/src/*/.js']
};