gruntify-eslint
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "gruntify-eslint", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Validate files with ESLint", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -34,3 +34,3 @@ [![NPM version](https://badge.fury.io/js/gruntify-eslint.svg)](http://badge.fury.io/js/gruntify-eslint) | ||
grunt.initConfig({ | ||
eslint: { | ||
eslint: { | ||
src: ["app.js"] | ||
@@ -48,3 +48,3 @@ } | ||
grunt.initConfig({ | ||
eslint: { | ||
eslint: { | ||
options: { | ||
@@ -91,7 +91,7 @@ configFile: "conf/eslint.json", | ||
grunt.initConfig({ | ||
eslint: { | ||
eslint: { | ||
options: { | ||
silent: true | ||
}, | ||
src: ["app.js"] | ||
src: ["app.js"] | ||
} | ||
@@ -141,4 +141,10 @@ }); | ||
#### outputFile | ||
Type: `path::String` | ||
Specify a file path to write the test results to. This option is not passed to the eslint api. | ||
** More information about options: [Eslint options] | ||
[Eslint options]: http://eslint.org/docs/developer-guide/nodejs-api#cliengine |
@@ -52,3 +52,8 @@ var path = require("path"); | ||
console.log(report); | ||
if (options.outputFile) { | ||
grunt.file.write(options.outputFile, report); | ||
grunt.log.writeln('Report written to ' + options.outputFile); | ||
} else { | ||
console.log(report); | ||
} | ||
@@ -55,0 +60,0 @@ if(options.silent){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7096
58
147