gulp-eslint
Advanced tools
Comparing version 0.4.2 to 0.4.3
# Changelog | ||
## 0.4.3 | ||
* Fix "rulePaths" typo | ||
## 0.4.2 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "gulp-eslint", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "A gulp plugin for processing files with eslint", | ||
@@ -5,0 +5,0 @@ "repository": "adametry/gulp-eslint", |
@@ -38,3 +38,3 @@ # gulp-eslint [![Build Status](https://travis-ci.org/adametry/gulp-eslint.svg)](https://travis-ci.org/adametry/gulp-eslint) [![Coverage Status](https://img.shields.io/coveralls/adametry/gulp-eslint.svg)](https://coveralls.io/r/adametry/gulp-eslint) | ||
.pipe(eslint({ | ||
rulesPaths: [ | ||
rulePaths: [ | ||
'custom-rules/' | ||
@@ -65,3 +65,3 @@ ], | ||
#### options.rulesPaths | ||
#### options.rulePaths | ||
@@ -159,2 +159,14 @@ Type: `Array` | ||
### eslint.failAfterError() | ||
Stop a task/stream if an eslint error has been reported for any file, but wait for all of them to be processed first. | ||
```javascript | ||
// Cause the stream to stop(/fail) when the stream ends if any eslint error(s) occurred. | ||
gulp.src('**/*.js') | ||
.pipe(eslint()) | ||
.pipe(eslint.failAfterError()) | ||
.pipe(gulp.dest('../output')); | ||
``` | ||
### eslint.format(formatter, output) | ||
@@ -161,0 +173,0 @@ |
@@ -77,7 +77,7 @@ 'use strict'; | ||
if (options.rulesdir != null) { | ||
// The "rulesdir" option has been deprecated. Use "rulesPaths". | ||
// The "rulesdir" option has been deprecated. Use "rulePaths". | ||
if (typeof options.rulesdir === 'string') { | ||
options.rulesPaths = [options.rulesdir]; | ||
options.rulePaths = [options.rulesdir]; | ||
} else { | ||
options.rulesPaths = options.rulesdir; | ||
options.rulePaths = options.rulesdir; | ||
} | ||
@@ -84,0 +84,0 @@ } |
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
19486
217