gulp-eslint
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "gulp-eslint", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A gulp plugin for processing files with ESLint", | ||
@@ -5,0 +5,0 @@ "repository": "adametry/gulp-eslint", |
@@ -260,3 +260,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) | ||
The `output` argument may be a `WritableStream`, `Function`, or `undefined`. As a `WritableStream`, the formatter results will be written to the stream. If `undefined`, the formatter results will be written to [gulp’s log](https://github.com/wearefractal/gulp-util#logmsg). A `Function` will be called with the formatter results as the only parameter. | ||
The `output` argument may be a `WritableStream`, `Function`, or `undefined`. As a `WritableStream`, the formatter results will be written to the stream. If `undefined`, the formatter results will be written to [gulp’s log](https://github.com/gulpjs/gulp-util#logmsg). A `Function` will be called with the formatter results as the only parameter. | ||
@@ -284,3 +284,3 @@ ```javascript | ||
ESLint will ignore files that do not have a `.js` file extension at the point of linting ([some plugins](https://github.com/wearefractal/gulp-coffee) may change file extensions mid-stream). This avoids unintentional linting of non-JavaScript files. | ||
ESLint will ignore files that do not have a `.js` file extension at the point of linting ([some plugins](https://github.com/contra/gulp-coffee) may change file extensions mid-stream). This avoids unintentional linting of non-JavaScript files. | ||
@@ -294,2 +294,2 @@ ESLint will also detect an `.eslintignore` file at the cwd or a parent directory. See the [ESLint docs](http://eslint.org/docs/user-guide/configuring#ignoring-files-and-directories) to learn how to construct this file. | ||
#### Gulp-Eslint Extensions: | ||
* [gulp-eslint-threshold](https://github.com/krmbkt/gulp-eslint-threshold) | ||
* [gulp-eslint-threshold](https://github.com/krmbkt/gulp-eslint-threshold) |
10
util.js
@@ -64,2 +64,7 @@ 'use strict'; | ||
if (options.extends || options.ecmaFeatures) { | ||
// nest options as baseConfig, since it's basically an .eslintrc config file | ||
options.baseConfig = objectAssign(options.baseConfig || {}, options, {baseConfig: null}); | ||
} | ||
options.globals = options.globals || options.global; | ||
@@ -98,7 +103,2 @@ if (options.globals != null && !Array.isArray(options.globals)) { | ||
if (options.extends || options.ecmaFeatures) { | ||
// nest options as baseConfig, since it's basically an .eslintrc config file | ||
options.baseConfig = objectAssign(options.baseConfig || {}, options, {baseConfig: null}); | ||
} | ||
return options; | ||
@@ -105,0 +105,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
293
31349