target) {
+ NODE_SET_METHOD(target, "ensureAllocation", EnsureAllocation);
+}
+
+NODE_MODULE(binding, init);
diff --git a/test/addons/stringbytes-external-exceed-max/binding.gyp b/test/addons/stringbytes-external-exceed-max/binding.gyp
new file mode 100644
index 00000000000000..3bfb84493f3e87
--- /dev/null
+++ b/test/addons/stringbytes-external-exceed-max/binding.gyp
@@ -0,0 +1,8 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'binding',
+ 'sources': [ 'binding.cc' ]
+ }
+ ]
+}
diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js
new file mode 100644
index 00000000000000..a5d937d521d887
--- /dev/null
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-at-max.js
@@ -0,0 +1,34 @@
+'use strict';
+
+const common = require('../../common');
+const binding = require('./build/Release/binding');
+const assert = require('assert');
+
+// v8 fails silently if string length > v8::String::kMaxLength
+// v8::String::kMaxLength defined in v8.h
+const kStringMaxLength = process.binding('buffer').kStringMaxLength;
+
+const skipMessage =
+ '1..0 # Skipped: intensive toString tests due to memory confinements';
+if (!common.enoughTestMem) {
+ console.log(skipMessage);
+ return;
+}
+
+try {
+ var buf = new Buffer(kStringMaxLength);
+} catch (e) {
+ // If the exception is not due to memory confinement then rethrow it.
+ if (e.message !== 'Invalid array buffer length') throw (e);
+ console.log(skipMessage);
+ return;
+}
+
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
+const maxString = buf.toString('binary');
+assert.equal(maxString.length, kStringMaxLength);
diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js
new file mode 100644
index 00000000000000..dee30d9fef0f97
--- /dev/null
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-ascii.js
@@ -0,0 +1,35 @@
+'use strict';
+
+const common = require('../../common');
+const binding = require('./build/Release/binding');
+const assert = require('assert');
+
+const skipMessage =
+ '1..0 # Skipped: intensive toString tests due to memory confinements';
+if (!common.enoughTestMem) {
+ console.log(skipMessage);
+ return;
+}
+
+// v8 fails silently if string length > v8::String::kMaxLength
+// v8::String::kMaxLength defined in v8.h
+const kStringMaxLength = process.binding('buffer').kStringMaxLength;
+
+try {
+ var buf = new Buffer(kStringMaxLength + 1);
+} catch (e) {
+ // If the exception is not due to memory confinement then rethrow it.
+ if (e.message !== 'Invalid array buffer length') throw (e);
+ console.log(skipMessage);
+ return;
+}
+
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
+assert.throws(function() {
+ buf.toString('ascii');
+}, /toString failed/);
diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js
new file mode 100644
index 00000000000000..f06052d31611fc
--- /dev/null
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-base64.js
@@ -0,0 +1,35 @@
+'use strict';
+
+const common = require('../../common');
+const binding = require('./build/Release/binding');
+const assert = require('assert');
+
+const skipMessage =
+ '1..0 # Skipped: intensive toString tests due to memory confinements';
+if (!common.enoughTestMem) {
+ console.log(skipMessage);
+ return;
+}
+
+// v8 fails silently if string length > v8::String::kMaxLength
+// v8::String::kMaxLength defined in v8.h
+const kStringMaxLength = process.binding('buffer').kStringMaxLength;
+
+try {
+ var buf = new Buffer(kStringMaxLength + 1);
+} catch (e) {
+ // If the exception is not due to memory confinement then rethrow it.
+ if (e.message !== 'Invalid array buffer length') throw (e);
+ console.log(skipMessage);
+ return;
+}
+
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
+assert.throws(function() {
+ buf.toString('base64');
+}, /toString failed/);
diff --git a/test/sequential/test-stringbytes-external-exceed-max-by-1-binary.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js
similarity index 79%
rename from test/sequential/test-stringbytes-external-exceed-max-by-1-binary.js
rename to test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js
index f4904b672cfea7..9af82da07eb706 100644
--- a/test/sequential/test-stringbytes-external-exceed-max-by-1-binary.js
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-binary.js
@@ -1,7 +1,7 @@
'use strict';
-// Flags: --expose-gc
-const common = require('../common');
+const common = require('../../common');
+const binding = require('./build/Release/binding');
const assert = require('assert');
const skipMessage =
@@ -10,7 +10,6 @@ if (!common.enoughTestMem) {
console.log(skipMessage);
return;
}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
// v8 fails silently if string length > v8::String::kMaxLength
// v8::String::kMaxLength defined in v8.h
@@ -18,9 +17,6 @@ const kStringMaxLength = process.binding('buffer').kStringMaxLength;
try {
var buf = new Buffer(kStringMaxLength + 1);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
} catch (e) {
// If the exception is not due to memory confinement then rethrow it.
if (e.message !== 'Invalid array buffer length') throw (e);
@@ -28,6 +24,12 @@ try {
return;
}
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
assert.throws(function() {
buf.toString('binary');
}, /toString failed/);
diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js
new file mode 100644
index 00000000000000..a1d54460a22d8e
--- /dev/null
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-hex.js
@@ -0,0 +1,35 @@
+'use strict';
+
+const common = require('../../common');
+const binding = require('./build/Release/binding');
+const assert = require('assert');
+
+const skipMessage =
+ '1..0 # Skipped: intensive toString tests due to memory confinements';
+if (!common.enoughTestMem) {
+ console.log(skipMessage);
+ return;
+}
+
+// v8 fails silently if string length > v8::String::kMaxLength
+// v8::String::kMaxLength defined in v8.h
+const kStringMaxLength = process.binding('buffer').kStringMaxLength;
+
+try {
+ var buf = new Buffer(kStringMaxLength + 1);
+} catch (e) {
+ // If the exception is not due to memory confinement then rethrow it.
+ if (e.message !== 'Invalid array buffer length') throw (e);
+ console.log(skipMessage);
+ return;
+}
+
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
+assert.throws(function() {
+ buf.toString('hex');
+}, /toString failed/);
diff --git a/test/sequential/test-stringbytes-external-exceed-max-by-1-utf8.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js
similarity index 75%
rename from test/sequential/test-stringbytes-external-exceed-max-by-1-utf8.js
rename to test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js
index 3ff6f4978878ee..546e2a1a134fbd 100644
--- a/test/sequential/test-stringbytes-external-exceed-max-by-1-utf8.js
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-1-utf8.js
@@ -1,7 +1,7 @@
'use strict';
-// Flags: --expose-gc
-const common = require('../common');
+const common = require('../../common');
+const binding = require('./build/Release/binding');
const assert = require('assert');
const skipMessage =
@@ -10,7 +10,6 @@ if (!common.enoughTestMem) {
console.log(skipMessage);
return;
}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
// v8 fails silently if string length > v8::String::kMaxLength
// v8::String::kMaxLength defined in v8.h
@@ -18,9 +17,6 @@ const kStringMaxLength = process.binding('buffer').kStringMaxLength;
try {
var buf = new Buffer(kStringMaxLength + 1);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
} catch (e) {
// If the exception is not due to memory confinement then rethrow it.
if (e.message !== 'Invalid array buffer length') throw (e);
@@ -28,6 +24,12 @@ try {
return;
}
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
assert.throws(function() {
buf.toString();
}, /toString failed|Invalid array buffer length/);
diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js
new file mode 100644
index 00000000000000..94f6602cda40c6
--- /dev/null
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max-by-2.js
@@ -0,0 +1,34 @@
+'use strict';
+
+const common = require('../../common');
+const binding = require('./build/Release/binding');
+const assert = require('assert');
+
+const skipMessage =
+ '1..0 # Skipped: intensive toString tests due to memory confinements';
+if (!common.enoughTestMem) {
+ console.log(skipMessage);
+ return;
+}
+
+// v8 fails silently if string length > v8::String::kMaxLength
+// v8::String::kMaxLength defined in v8.h
+const kStringMaxLength = process.binding('buffer').kStringMaxLength;
+
+try {
+ var buf = new Buffer(kStringMaxLength + 2);
+} catch (e) {
+ // If the exception is not due to memory confinement then rethrow it.
+ if (e.message !== 'Invalid array buffer length') throw (e);
+ console.log(skipMessage);
+ return;
+}
+
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
+const maxString = buf.toString('utf16le');
+assert.equal(maxString.length, (kStringMaxLength + 2) / 2);
diff --git a/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js
new file mode 100644
index 00000000000000..41a14118cf538a
--- /dev/null
+++ b/test/addons/stringbytes-external-exceed-max/test-stringbytes-external-exceed-max.js
@@ -0,0 +1,35 @@
+'use strict';
+
+const common = require('../../common');
+const binding = require('./build/Release/binding');
+const assert = require('assert');
+
+const skipMessage =
+ '1..0 # Skipped: intensive toString tests due to memory confinements';
+if (!common.enoughTestMem) {
+ console.log(skipMessage);
+ return;
+}
+
+// v8 fails silently if string length > v8::String::kMaxLength
+// v8::String::kMaxLength defined in v8.h
+const kStringMaxLength = process.binding('buffer').kStringMaxLength;
+
+try {
+ var buf = new Buffer(kStringMaxLength * 2 + 2);
+} catch (e) {
+ // If the exception is not due to memory confinement then rethrow it.
+ if (e.message !== 'Invalid array buffer length') throw (e);
+ console.log(skipMessage);
+ return;
+}
+
+// Ensure we have enough memory available for future allocations to succeed.
+if (!binding.ensureAllocation(2 * kStringMaxLength)) {
+ console.log(skipMessage);
+ return;
+}
+
+assert.throws(function() {
+ buf.toString('utf16le');
+}, /toString failed/);
diff --git a/test/common.js b/test/common.js
index 96915099359f9e..d56bc15329af52 100644
--- a/test/common.js
+++ b/test/common.js
@@ -239,6 +239,9 @@ exports.platformTimeout = function(ms) {
if (process.config.target_defaults.default_configuration === 'Debug')
ms = 2 * ms;
+ if (exports.isAix)
+ return 2 * ms; // default localhost speed is slower on AIX
+
if (process.arch !== 'arm')
return ms;
diff --git a/test/message/nexttick_throw.js b/test/message/nexttick_throw.js
index 22f61a36f947df..49cd6dd0f7cbd6 100644
--- a/test/message/nexttick_throw.js
+++ b/test/message/nexttick_throw.js
@@ -5,6 +5,7 @@ process.nextTick(function() {
process.nextTick(function() {
process.nextTick(function() {
process.nextTick(function() {
+ // eslint-disable-next-line
undefined_reference_error_maker;
});
});
diff --git a/test/message/timeout_throw.js b/test/message/timeout_throw.js
index 5c345ac8c0c376..14291fabd12565 100644
--- a/test/message/timeout_throw.js
+++ b/test/message/timeout_throw.js
@@ -2,5 +2,6 @@
require('../common');
setTimeout(function() {
+ // eslint-disable-next-line no-undef
undefined_reference_error_maker;
});
diff --git a/test/parallel/test-assert.js b/test/parallel/test-assert.js
index d37b179899ca70..460829a16ea884 100644
--- a/test/parallel/test-assert.js
+++ b/test/parallel/test-assert.js
@@ -27,39 +27,46 @@ assert.doesNotThrow(makeBlock(a.ok, true),
assert.doesNotThrow(makeBlock(a.ok, 'test'), 'ok(\'test\')');
-assert.throws(makeBlock(a.equal, true, false), a.AssertionError, 'equal');
+assert.throws(makeBlock(a.equal, true, false),
+ a.AssertionError, 'equal(true, false)');
-assert.doesNotThrow(makeBlock(a.equal, null, null), 'equal');
+assert.doesNotThrow(makeBlock(a.equal, null, null),
+ 'equal(null, null)');
-assert.doesNotThrow(makeBlock(a.equal, undefined, undefined), 'equal');
+assert.doesNotThrow(makeBlock(a.equal, undefined, undefined),
+ 'equal(undefined, undefined)');
-assert.doesNotThrow(makeBlock(a.equal, null, undefined), 'equal');
+assert.doesNotThrow(makeBlock(a.equal, null, undefined),
+ 'equal(null, undefined)');
-assert.doesNotThrow(makeBlock(a.equal, true, true), 'equal');
+assert.doesNotThrow(makeBlock(a.equal, true, true), 'equal(true, true)');
-assert.doesNotThrow(makeBlock(a.equal, 2, '2'), 'equal');
+assert.doesNotThrow(makeBlock(a.equal, 2, '2'), 'equal(2, \'2\')');
-assert.doesNotThrow(makeBlock(a.notEqual, true, false), 'notEqual');
+assert.doesNotThrow(makeBlock(a.notEqual, true, false),
+ 'notEqual(true, false)');
assert.throws(makeBlock(a.notEqual, true, true),
- a.AssertionError, 'notEqual');
+ a.AssertionError, 'notEqual(true, true)');
assert.throws(makeBlock(a.strictEqual, 2, '2'),
- a.AssertionError, 'strictEqual');
+ a.AssertionError, 'strictEqual(2, \'2\')');
assert.throws(makeBlock(a.strictEqual, null, undefined),
- a.AssertionError, 'strictEqual');
+ a.AssertionError, 'strictEqual(null, undefined)');
-assert.doesNotThrow(makeBlock(a.notStrictEqual, 2, '2'), 'notStrictEqual');
+assert.doesNotThrow(makeBlock(a.notStrictEqual, 2, '2'),
+ 'notStrictEqual(2, \'2\')');
// deepEquals joy!
// 7.2
assert.doesNotThrow(makeBlock(a.deepEqual, new Date(2000, 3, 14),
- new Date(2000, 3, 14)), 'deepEqual date');
+ new Date(2000, 3, 14)),
+ 'deepEqual(new Date(2000, 3, 14), new Date(2000, 3, 14))');
assert.throws(makeBlock(a.deepEqual, new Date(), new Date(2000, 3, 14)),
a.AssertionError,
- 'deepEqual date');
+ 'deepEqual(new Date(), new Date(2000, 3, 14))');
// 7.3
assert.doesNotThrow(makeBlock(a.deepEqual, /a/, /a/));
@@ -81,11 +88,11 @@ assert.throws(makeBlock(a.deepEqual, /a/igm, /a/im));
// 7.4
-assert.doesNotThrow(makeBlock(a.deepEqual, 4, '4'), 'deepEqual == check');
-assert.doesNotThrow(makeBlock(a.deepEqual, true, 1), 'deepEqual == check');
+assert.doesNotThrow(makeBlock(a.deepEqual, 4, '4'), 'deepEqual(4, \'4\')');
+assert.doesNotThrow(makeBlock(a.deepEqual, true, 1), 'deepEqual(true, 1)');
assert.throws(makeBlock(a.deepEqual, 4, '5'),
a.AssertionError,
- 'deepEqual == check');
+ 'deepEqual( 4, \'5\')');
// 7.5
// having the same number of owned properties && the same set of keys
@@ -156,11 +163,13 @@ assert.doesNotThrow(makeBlock(a.deepEqual, new Boolean(true), {}),
//deepStrictEqual
assert.doesNotThrow(makeBlock(a.deepStrictEqual, new Date(2000, 3, 14),
- new Date(2000, 3, 14)), 'deepStrictEqual date');
+ new Date(2000, 3, 14)),
+ 'deepStrictEqual(new Date(2000, 3, 14),\
+ new Date(2000, 3, 14))');
assert.throws(makeBlock(a.deepStrictEqual, new Date(), new Date(2000, 3, 14)),
a.AssertionError,
- 'deepStrictEqual date');
+ 'deepStrictEqual(new Date(), new Date(2000, 3, 14))');
// 7.3 - strict
assert.doesNotThrow(makeBlock(a.deepStrictEqual, /a/, /a/));
@@ -183,15 +192,15 @@ assert.throws(makeBlock(a.deepStrictEqual, /a/igm, /a/im));
// 7.4 - strict
assert.throws(makeBlock(a.deepStrictEqual, 4, '4'),
a.AssertionError,
- 'deepStrictEqual === check');
+ 'deepStrictEqual(4, \'4\')');
assert.throws(makeBlock(a.deepStrictEqual, true, 1),
a.AssertionError,
- 'deepStrictEqual === check');
+ 'deepStrictEqual(true, 1)');
assert.throws(makeBlock(a.deepStrictEqual, 4, '5'),
a.AssertionError,
- 'deepStrictEqual === check');
+ 'deepStrictEqual(4, \'5\')');
// 7.5 - strict
// having the same number of owned properties && the same set of keys
@@ -321,6 +330,11 @@ assert.throws(function() {assert.ifError(new Error('test error'));});
assert.doesNotThrow(function() {assert.ifError(null);});
assert.doesNotThrow(function() {assert.ifError();});
+assert.throws(() => {
+ assert.doesNotThrow(makeBlock(thrower, Error), 'user message');
+}, /Got unwanted exception. user message/,
+ 'a.doesNotThrow ignores user message');
+
// make sure that validating using constructor really works
threw = false;
try {
diff --git a/test/parallel/test-async-wrap-disabled-propagate-parent.js b/test/parallel/test-async-wrap-disabled-propagate-parent.js
index 70d82befe72a63..55d2e59efb9ee7 100644
--- a/test/parallel/test-async-wrap-disabled-propagate-parent.js
+++ b/test/parallel/test-async-wrap-disabled-propagate-parent.js
@@ -7,7 +7,6 @@ const async_wrap = process.binding('async_wrap');
const providers = Object.keys(async_wrap.Providers);
let cntr = 0;
-let server;
let client;
function init(type, id, parent) {
@@ -27,7 +26,7 @@ function noop() { }
async_wrap.setupHooks(init, noop, noop);
async_wrap.enable();
-server = net.createServer(function(c) {
+const server = net.createServer(function(c) {
client = c;
// Allow init callback to run before closing.
setImmediate(() => {
diff --git a/test/parallel/test-async-wrap-propagate-parent.js b/test/parallel/test-async-wrap-propagate-parent.js
index beeb27ba7866a9..6001539c624678 100644
--- a/test/parallel/test-async-wrap-propagate-parent.js
+++ b/test/parallel/test-async-wrap-propagate-parent.js
@@ -6,7 +6,6 @@ const net = require('net');
const async_wrap = process.binding('async_wrap');
let cntr = 0;
-let server;
let client;
function init(type, id, parent) {
@@ -25,7 +24,7 @@ function noop() { }
async_wrap.setupHooks(init, noop, noop);
async_wrap.enable();
-server = net.createServer(function(c) {
+const server = net.createServer(function(c) {
client = c;
// Allow init callback to run before closing.
setImmediate(() => {
diff --git a/test/parallel/test-buffer-indexof.js b/test/parallel/test-buffer-indexof.js
index 999d6590a9c69d..06dfc3af0896c5 100644
--- a/test/parallel/test-buffer-indexof.js
+++ b/test/parallel/test-buffer-indexof.js
@@ -233,6 +233,15 @@ var allCharsBufferUcs2 = new Buffer(allCharsString, 'ucs2');
assert.equal(-1, allCharsBufferUtf8.indexOf('notfound'));
assert.equal(-1, allCharsBufferUcs2.indexOf('notfound'));
+// Needle is longer than haystack, but only because it's encoded as UTF-16
+assert.strictEqual(new Buffer('aaaa').indexOf('a'.repeat(4), 'ucs2'), -1);
+
+assert.strictEqual(new Buffer('aaaa').indexOf('a'.repeat(4), 'utf8'), 0);
+assert.strictEqual(new Buffer('aaaa').indexOf('你好', 'ucs2'), -1);
+
+// Haystack has odd length, but the needle is UCS2.
+assert.strictEqual(new Buffer('aaaaa').indexOf('b', 'ucs2'), -1);
+
{
// Find substrings in Utf8.
const lengths = [1, 3, 15]; // Single char, simple and complex.
diff --git a/test/parallel/test-child-process-fork-net.js b/test/parallel/test-child-process-fork-net.js
index 09ec8e24b9b46c..f815f76a664d9f 100644
--- a/test/parallel/test-child-process-fork-net.js
+++ b/test/parallel/test-child-process-fork-net.js
@@ -1,8 +1,8 @@
'use strict';
-var assert = require('assert');
-var common = require('../common');
-var fork = require('child_process').fork;
-var net = require('net');
+const assert = require('assert');
+const common = require('../common');
+const fork = require('child_process').fork;
+const net = require('net');
// progress tracker
function ProgressTracker(missing, callback) {
@@ -76,9 +76,9 @@ if (process.argv[2] === 'child') {
server.close();
});
- // we expect 10 connections and close events
- var connections = new ProgressTracker(10, progress.done.bind(progress));
- var closed = new ProgressTracker(10, progress.done.bind(progress));
+ // we expect 4 connections and close events
+ var connections = new ProgressTracker(4, progress.done.bind(progress));
+ var closed = new ProgressTracker(4, progress.done.bind(progress));
// create server and send it to child
var server = net.createServer();
@@ -99,7 +99,7 @@ if (process.argv[2] === 'child') {
if (msg.what === 'listening') {
// make connections
var socket;
- for (var i = 0; i < 10; i++) {
+ for (var i = 0; i < 4; i++) {
socket = net.connect(common.PORT, function() {
console.log('CLIENT: connected');
});
diff --git a/test/sequential/test-cluster-listening-port.js b/test/parallel/test-cluster-listening-port.js
similarity index 100%
rename from test/sequential/test-cluster-listening-port.js
rename to test/parallel/test-cluster-listening-port.js
diff --git a/test/parallel/test-console.js b/test/parallel/test-console.js
index b906d837562ef9..5f908442339e03 100644
--- a/test/parallel/test-console.js
+++ b/test/parallel/test-console.js
@@ -73,3 +73,11 @@ assert.ok(/^__proto__: \d+ms$/.test(strings.shift().trim()));
assert.ok(/^constructor: \d+ms$/.test(strings.shift().trim()));
assert.ok(/^hasOwnProperty: \d+ms$/.test(strings.shift().trim()));
assert.equal(strings.length, 0);
+
+assert.throws(() => {
+ console.assert(false, 'should throw');
+}, /should throw/);
+
+assert.doesNotThrow(() => {
+ console.assert(true, 'this should not throw');
+});
diff --git a/test/sequential/test-debug-args.js b/test/parallel/test-debug-args.js
similarity index 100%
rename from test/sequential/test-debug-args.js
rename to test/parallel/test-debug-args.js
diff --git a/test/parallel/test-debug-port-cluster.js b/test/parallel/test-debug-port-cluster.js
index 05e1627265b524..ba87a1ea3bff42 100644
--- a/test/parallel/test-debug-port-cluster.js
+++ b/test/parallel/test-debug-port-cluster.js
@@ -1,12 +1,12 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
-var spawn = require('child_process').spawn;
+const common = require('../common');
+const assert = require('assert');
+const spawn = require('child_process').spawn;
-const PORT_MIN = common.PORT + 1337;
+const PORT_MIN = common.PORT;
const PORT_MAX = PORT_MIN + 2;
-var args = [
+const args = [
'--debug=' + PORT_MIN,
common.fixturesDir + '/clustered-server/app.js'
];
@@ -14,14 +14,18 @@ var args = [
const child = spawn(process.execPath, args);
child.stderr.setEncoding('utf8');
+const checkMessages = common.mustCall(() => {
+ for (let port = PORT_MIN; port <= PORT_MAX; port += 1) {
+ assert(stderr.includes(`Debugger listening on port ${port}`));
+ }
+});
+
let stderr = '';
child.stderr.on('data', (data) => {
+ process.stderr.write(`[DATA] ${data}`);
stderr += data;
- if (child.killed !== true && stderr.includes('all workers are running'))
+ if (child.killed !== true && stderr.includes('all workers are running')) {
child.kill();
-});
-
-process.on('exit', () => {
- for (let port = PORT_MIN; port <= PORT_MAX; port += 1)
- assert(stderr.includes(`Debugger listening on port ${port}`));
+ checkMessages();
+ }
});
diff --git a/test/parallel/test-domain-crypto.js b/test/parallel/test-domain-crypto.js
index 4dd979dafeab73..e6dbccf86ca39e 100644
--- a/test/parallel/test-domain-crypto.js
+++ b/test/parallel/test-domain-crypto.js
@@ -1,4 +1,6 @@
-/* eslint-disable strict, required-modules */
+/* eslint-disable required-modules */
+'use strict';
+
try {
var crypto = require('crypto');
} catch (e) {
diff --git a/test/parallel/test-domain-exit-dispose-again.js b/test/parallel/test-domain-exit-dispose-again.js
index e5b1affc0afb55..7360e79412296d 100644
--- a/test/parallel/test-domain-exit-dispose-again.js
+++ b/test/parallel/test-domain-exit-dispose-again.js
@@ -56,7 +56,7 @@ setTimeout(function firstTimer() {
// Make V8 throw an unreferenced error. As a result, the domain's error
// handler is called, which disposes the domain "d" and should prevent the
// nested timer that is attached to it from running.
- err3();
+ err3(); // eslint-disable-line no-undef
});
}, TIMEOUT_DURATION);
diff --git a/test/parallel/test-domain-exit-dispose.js b/test/parallel/test-domain-exit-dispose.js
index 2bddb01cbd8ca5..94b3dbd4ca5a37 100644
--- a/test/parallel/test-domain-exit-dispose.js
+++ b/test/parallel/test-domain-exit-dispose.js
@@ -29,7 +29,7 @@ function err() {
});
// this function doesn't exist, and throws an error as a result.
- err3();
+ err3(); // eslint-disable-line no-undef
}
function handle(e) {
diff --git a/test/parallel/test-exception-handler2.js b/test/parallel/test-exception-handler2.js
index 3ed2c9520461f8..1dabedf4c68730 100644
--- a/test/parallel/test-exception-handler2.js
+++ b/test/parallel/test-exception-handler2.js
@@ -1,22 +1,14 @@
'use strict';
-require('../common');
-var assert = require('assert');
+const common = require('../common');
process.on('uncaughtException', function(err) {
console.log('Caught exception: ' + err);
});
-var timeoutFired = false;
-setTimeout(function() {
+setTimeout(common.mustCall(function() {
console.log('This will still run.');
- timeoutFired = true;
-}, 500);
-
-process.on('exit', function() {
- assert.ok(timeoutFired);
-});
+}), 50);
// Intentionally cause an exception, but don't catch it.
-nonexistentFunc();
-console.log('This will not run.');
-
+nonexistentFunc(); // eslint-disable-line no-undef
+common.fail('This will not run.');
diff --git a/test/parallel/test-file-write-stream3.js b/test/parallel/test-file-write-stream3.js
index 72f869ecf78559..caa0f106f4d91e 100644
--- a/test/parallel/test-file-write-stream3.js
+++ b/test/parallel/test-file-write-stream3.js
@@ -5,21 +5,20 @@ const path = require('path');
const fs = require('fs');
-var filepath = path.join(common.tmpDir, 'write_pos.txt');
+const filepath = path.join(common.tmpDir, 'write_pos.txt');
const cb_expected = 'write open close write open close write open close ';
-let cb_occurred = '';
+var cb_occurred = '';
-var fileDataInitial = 'abcdefghijklmnopqrstuvwxyz';
+const fileDataInitial = 'abcdefghijklmnopqrstuvwxyz';
-var fileDataExpected_1 = 'abcdefghijklmnopqrstuvwxyz';
-var fileDataExpected_2 = 'abcdefghij123456qrstuvwxyz';
-var fileDataExpected_3 = 'abcdefghij\u2026\u2026qrstuvwxyz';
+const fileDataExpected_1 = 'abcdefghijklmnopqrstuvwxyz';
+const fileDataExpected_2 = 'abcdefghij123456qrstuvwxyz';
+const fileDataExpected_3 = 'abcdefghij\u2026\u2026qrstuvwxyz';
process.on('exit', function() {
- removeTestFile();
if (cb_occurred !== cb_expected) {
console.log(' Test callback events missing or out of order:');
console.log(' expected: %j', cb_expected);
@@ -30,12 +29,6 @@ process.on('exit', function() {
}
});
-function removeTestFile() {
- try {
- fs.unlinkSync(filepath);
- } catch (ex) { }
-}
-
common.refreshTmpDir();
@@ -164,20 +157,14 @@ function run_test_3() {
}
-function run_test_4() {
- var options;
-
- options = { start: -5,
- flags: 'r+' };
-
+const run_test_4 = common.mustCall(function() {
// Error: start must be >= zero
assert.throws(
function() {
- file = fs.createWriteStream(filepath, options);
+ fs.createWriteStream(filepath, { start: -5, flags: 'r+' });
},
/start must be/
);
-
-}
+});
run_test_1();
diff --git a/test/sequential/test-force-repl.js b/test/parallel/test-force-repl.js
similarity index 100%
rename from test/sequential/test-force-repl.js
rename to test/parallel/test-force-repl.js
diff --git a/test/parallel/test-global.js b/test/parallel/test-global.js
index 4eeecf36e0ac22..c8135ed89fa893 100644
--- a/test/parallel/test-global.js
+++ b/test/parallel/test-global.js
@@ -4,12 +4,14 @@ var assert = require('assert');
common.globalCheck = false;
-baseFoo = 'foo';
+baseFoo = 'foo'; // eslint-disable-line no-undef
global.baseBar = 'bar';
assert.equal('foo', global.baseFoo, 'x -> global.x in base level not working');
-assert.equal('bar', baseBar, 'global.x -> x in base level not working');
+assert.equal('bar',
+ baseBar, // eslint-disable-line no-undef
+ 'global.x -> x in base level not working');
var module = require('../fixtures/global/plain');
const fooBar = module.fooBar;
diff --git a/test/parallel/test-http-client-abort.js b/test/parallel/test-http-client-abort.js
index c3353bb72201b6..a7d0510070e8ee 100644
--- a/test/parallel/test-http-client-abort.js
+++ b/test/parallel/test-http-client-abort.js
@@ -1,11 +1,11 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
+const common = require('../common');
+const assert = require('assert');
+const http = require('http');
var clientAborts = 0;
-var server = http.Server(function(req, res) {
+const server = http.Server(function(req, res) {
console.log('Got connection');
res.writeHead(200);
res.write('Working on it...');
@@ -30,8 +30,8 @@ var server = http.Server(function(req, res) {
});
var responses = 0;
-var N = 16;
-var requests = [];
+const N = 8;
+const requests = [];
server.listen(common.PORT, function() {
console.log('Server listening.');
diff --git a/test/parallel/test-http-end-throw-socket-handling.js b/test/parallel/test-http-end-throw-socket-handling.js
index 204c0f73335480..d6cc81d98a8fb9 100644
--- a/test/parallel/test-http-end-throw-socket-handling.js
+++ b/test/parallel/test-http-end-throw-socket-handling.js
@@ -1,6 +1,6 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
+const common = require('../common');
+const assert = require('assert');
// Make sure that throwing in 'end' handler doesn't lock
// up the socket forever.
@@ -8,40 +8,32 @@ var assert = require('assert');
// This is NOT a good way to handle errors in general, but all
// the same, we should not be so brittle and easily broken.
-var http = require('http');
+const http = require('http');
-var n = 0;
-var server = http.createServer(function(req, res) {
+let n = 0;
+const server = http.createServer((req, res) => {
if (++n === 10) server.close();
res.end('ok');
});
-server.listen(common.PORT, function() {
- for (var i = 0; i < 10; i++) {
- var options = { port: common.PORT };
-
- var req = http.request(options, function(res) {
+server.listen(common.PORT, common.mustCall(() => {
+ for (let i = 0; i < 10; i++) {
+ const options = { port: common.PORT };
+ const req = http.request(options, (res) => {
res.resume();
- res.on('end', function() {
+ res.on('end', common.mustCall(() => {
throw new Error('gleep glorp');
- });
+ }));
});
req.end();
}
-});
+}));
-setTimeout(function() {
- process.removeListener('uncaughtException', catcher);
- throw new Error('Taking too long!');
-}, common.platformTimeout(1000)).unref();
-
-process.on('uncaughtException', catcher);
-var errors = 0;
-function catcher() {
+let errors = 0;
+process.on('uncaughtException', () => {
errors++;
-}
+});
-process.on('exit', function() {
+process.on('exit', () => {
assert.equal(errors, 10);
- console.log('ok');
});
diff --git a/test/parallel/test-http-exceptions.js b/test/parallel/test-http-exceptions.js
index 922dc2095714be..b01d31e030b627 100644
--- a/test/parallel/test-http-exceptions.js
+++ b/test/parallel/test-http-exceptions.js
@@ -3,7 +3,7 @@ var common = require('../common');
var http = require('http');
var server = http.createServer(function(req, res) {
- intentionally_not_defined();
+ intentionally_not_defined(); // eslint-disable-line no-undef
res.writeHead(200, {'Content-Type': 'text/plain'});
res.write('Thank you, come again.');
res.end();
diff --git a/test/parallel/test-http-host-header-ipv6-fail.js b/test/parallel/test-http-host-header-ipv6-fail.js
new file mode 100644
index 00000000000000..8a1a9a61afe5af
--- /dev/null
+++ b/test/parallel/test-http-host-header-ipv6-fail.js
@@ -0,0 +1,40 @@
+'use strict';
+/*
+ * When using the object form of http.request and using an IPv6 address
+ * as a hostname, and using a non-standard port, the Host header
+ * is improperly formatted.
+ * Issue: https://github.com/nodejs/node/issues/5308
+ * As per https://tools.ietf.org/html/rfc7230#section-5.4 and
+ * https://tools.ietf.org/html/rfc3986#section-3.2.2
+ * the IPv6 address should be enclosed in square brackets
+ */
+
+const common = require('../common');
+const assert = require('assert');
+const http = require('http');
+
+const hostname = '::1';
+const port = common.PORT;
+
+function httpreq() {
+ var req = http.request({
+ host: hostname,
+ port: port,
+ path: '/',
+ method: 'GET'
+ });
+ req.end();
+}
+
+if (!common.hasIPv6) {
+ console.error('Skipping test, no IPv6 support');
+ return;
+}
+
+const server = http.createServer(common.mustCall(function(req, res) {
+ assert.ok(req.headers.host, `[${hostname}]`);
+ res.end();
+ server.close(true);
+}));
+
+server.listen(port, hostname, () => httpreq());
diff --git a/test/parallel/test-http-response-statuscode.js b/test/parallel/test-http-response-statuscode.js
new file mode 100644
index 00000000000000..3314506339b564
--- /dev/null
+++ b/test/parallel/test-http-response-statuscode.js
@@ -0,0 +1,91 @@
+'use strict';
+const common = require('../common');
+const assert = require('assert');
+const http = require('http');
+
+const MAX_REQUESTS = 12;
+var reqNum = 0;
+
+const server = http.Server(common.mustCall(function(req, res) {
+ switch (reqNum) {
+ case 0:
+ assert.throws(common.mustCall(() => {
+ res.writeHead(-1);
+ }, /invalid status code/i));
+ break;
+ case 1:
+ assert.throws(common.mustCall(() => {
+ res.writeHead(Infinity);
+ }, /invalid status code/i));
+ break;
+ case 2:
+ assert.throws(common.mustCall(() => {
+ res.writeHead(NaN);
+ }, /invalid status code/i));
+ break;
+ case 3:
+ assert.throws(common.mustCall(() => {
+ res.writeHead({});
+ }, /invalid status code/i));
+ break;
+ case 4:
+ assert.throws(common.mustCall(() => {
+ res.writeHead(99);
+ }, /invalid status code/i));
+ break;
+ case 5:
+ assert.throws(common.mustCall(() => {
+ res.writeHead(1000);
+ }, /invalid status code/i));
+ break;
+ case 6:
+ assert.throws(common.mustCall(() => {
+ res.writeHead('1000');
+ }, /invalid status code/i));
+ break;
+ case 7:
+ assert.throws(common.mustCall(() => {
+ res.writeHead(null);
+ }, /invalid status code/i));
+ break;
+ case 8:
+ assert.throws(common.mustCall(() => {
+ res.writeHead(true);
+ }, /invalid status code/i));
+ break;
+ case 9:
+ assert.throws(common.mustCall(() => {
+ res.writeHead([]);
+ }, /invalid status code/i));
+ break;
+ case 10:
+ assert.throws(common.mustCall(() => {
+ res.writeHead('this is not valid');
+ }, /invalid status code/i));
+ break;
+ case 11:
+ assert.throws(common.mustCall(() => {
+ res.writeHead('404 this is not valid either');
+ }, /invalid status code/i));
+ this.close();
+ break;
+ default:
+ throw new Error('Unexpected request');
+ }
+ res.statusCode = 200;
+ res.end();
+}, MAX_REQUESTS));
+server.listen();
+
+server.on('listening', function makeRequest() {
+ http.get({
+ port: this.address().port
+ }, (res) => {
+ assert.strictEqual(res.statusCode, 200);
+ res.on('end', () => {
+ if (++reqNum < MAX_REQUESTS)
+ makeRequest.call(this);
+ });
+ res.resume();
+ });
+});
diff --git a/test/parallel/test-http-server-consumed-timeout.js b/test/parallel/test-http-server-consumed-timeout.js
new file mode 100644
index 00000000000000..26110b32e7fba4
--- /dev/null
+++ b/test/parallel/test-http-server-consumed-timeout.js
@@ -0,0 +1,36 @@
+'use strict';
+
+const common = require('../common');
+const assert = require('assert');
+const http = require('http');
+
+const server = http.createServer((req, res) => {
+ server.close();
+
+ res.writeHead(200);
+ res.flushHeaders();
+
+ req.setTimeout(common.platformTimeout(200), () => {
+ assert(false, 'Should not happen');
+ });
+ req.resume();
+ req.once('end', common.mustCall(() => {
+ res.end();
+ }));
+});
+
+server.listen(common.PORT, common.mustCall(() => {
+ const req = http.request({
+ port: common.PORT,
+ method: 'POST'
+ }, (res) => {
+ const interval = setInterval(() => {
+ req.write('a');
+ }, common.platformTimeout(25));
+ setTimeout(() => {
+ clearInterval(interval);
+ req.end();
+ }, common.platformTimeout(400));
+ });
+ req.write('.');
+}));
diff --git a/test/parallel/test-http-set-timeout-server.js b/test/parallel/test-http-set-timeout-server.js
index 67db16d2a26111..d530503aa1e9aa 100644
--- a/test/parallel/test-http-set-timeout-server.js
+++ b/test/parallel/test-http-set-timeout-server.js
@@ -30,7 +30,9 @@ test(function serverTimeout(cb) {
var server = http.createServer(function(req, res) {
// just do nothing, we should get a timeout event.
});
- server.listen(common.PORT);
+ server.listen(common.mustCall(function() {
+ http.get({ port: server.address().port }).on('error', function() {});
+ }));
var s = server.setTimeout(50, function(socket) {
caughtTimeout = true;
socket.destroy();
@@ -38,7 +40,6 @@ test(function serverTimeout(cb) {
cb();
});
assert.ok(s instanceof http.Server);
- http.get({ port: common.PORT }).on('error', function() {});
});
test(function serverRequestTimeout(cb) {
@@ -56,11 +57,13 @@ test(function serverRequestTimeout(cb) {
});
assert.ok(s instanceof http.IncomingMessage);
});
- server.listen(common.PORT);
- var req = http.request({ port: common.PORT, method: 'POST' });
- req.on('error', function() {});
- req.write('Hello');
- // req is in progress
+ server.listen(common.mustCall(function() {
+ var port = server.address().port;
+ var req = http.request({ port: port, method: 'POST' });
+ req.on('error', function() {});
+ req.write('Hello');
+ // req is in progress
+ }));
});
test(function serverResponseTimeout(cb) {
@@ -78,8 +81,10 @@ test(function serverResponseTimeout(cb) {
});
assert.ok(s instanceof http.OutgoingMessage);
});
- server.listen(common.PORT);
- http.get({ port: common.PORT }).on('error', function() {});
+ server.listen(common.mustCall(function() {
+ var port = server.address().port;
+ http.get({ port: port }).on('error', function() {});
+ }));
});
test(function serverRequestNotTimeoutAfterEnd(cb) {
@@ -104,8 +109,10 @@ test(function serverRequestNotTimeoutAfterEnd(cb) {
server.close();
cb();
});
- server.listen(common.PORT);
- http.get({ port: common.PORT }).on('error', function() {});
+ server.listen(common.mustCall(function() {
+ var port = server.address().port;
+ http.get({ port: port }).on('error', function() {});
+ }));
});
test(function serverResponseTimeoutWithPipeline(cb) {
@@ -125,12 +132,14 @@ test(function serverResponseTimeoutWithPipeline(cb) {
server.close();
cb();
});
- server.listen(common.PORT);
- var c = net.connect({ port: common.PORT, allowHalfOpen: true }, function() {
- c.write('GET /1 HTTP/1.1\r\nHost: localhost\r\n\r\n');
- c.write('GET /2 HTTP/1.1\r\nHost: localhost\r\n\r\n');
- c.write('GET /3 HTTP/1.1\r\nHost: localhost\r\n\r\n');
- });
+ server.listen(common.mustCall(function() {
+ var port = server.address().port;
+ var c = net.connect({ port: port, allowHalfOpen: true }, function() {
+ c.write('GET /1 HTTP/1.1\r\nHost: localhost\r\n\r\n');
+ c.write('GET /2 HTTP/1.1\r\nHost: localhost\r\n\r\n');
+ c.write('GET /3 HTTP/1.1\r\nHost: localhost\r\n\r\n');
+ });
+ }));
});
test(function idleTimeout(cb) {
@@ -158,9 +167,11 @@ test(function idleTimeout(cb) {
cb();
});
assert.ok(s instanceof http.Server);
- server.listen(common.PORT);
- var c = net.connect({ port: common.PORT, allowHalfOpen: true }, function() {
- c.write('GET /1 HTTP/1.1\r\nHost: localhost\r\n\r\n');
- // Keep-Alive
- });
+ server.listen(common.mustCall(function() {
+ var port = server.address().port;
+ var c = net.connect({ port: port, allowHalfOpen: true }, function() {
+ c.write('GET /1 HTTP/1.1\r\nHost: localhost\r\n\r\n');
+ // Keep-Alive
+ });
+ }));
});
diff --git a/test/parallel/test-listen-fd-cluster.js b/test/parallel/test-listen-fd-cluster.js
index c321f699d7a89d..419efc7c099bf0 100644
--- a/test/parallel/test-listen-fd-cluster.js
+++ b/test/parallel/test-listen-fd-cluster.js
@@ -21,7 +21,6 @@ if (common.isWindows) {
switch (process.argv[2]) {
case 'master': return master();
case 'worker': return worker();
- case 'parent': return parent();
}
var ok;
diff --git a/test/sequential/test-memory-usage-emfile.js b/test/parallel/test-memory-usage-emfile.js
similarity index 100%
rename from test/sequential/test-memory-usage-emfile.js
rename to test/parallel/test-memory-usage-emfile.js
diff --git a/test/sequential/test-net-listen-exclusive-random-ports.js b/test/parallel/test-net-listen-exclusive-random-ports.js
similarity index 100%
rename from test/sequential/test-net-listen-exclusive-random-ports.js
rename to test/parallel/test-net-listen-exclusive-random-ports.js
diff --git a/test/sequential/test-net-localport.js b/test/parallel/test-net-localport.js
similarity index 100%
rename from test/sequential/test-net-localport.js
rename to test/parallel/test-net-localport.js
diff --git a/test/sequential/test-net-server-bind.js b/test/parallel/test-net-server-bind.js
similarity index 100%
rename from test/sequential/test-net-server-bind.js
rename to test/parallel/test-net-server-bind.js
diff --git a/test/parallel/test-net-settimeout.js b/test/parallel/test-net-settimeout.js
index 76ed7b020fb89e..db0329deea0466 100644
--- a/test/parallel/test-net-settimeout.js
+++ b/test/parallel/test-net-settimeout.js
@@ -8,22 +8,24 @@ const assert = require('assert');
const T = 100;
-const server = net.createServer(function(c) {
+const server = net.createServer(common.mustCall((c) => {
c.write('hello');
-});
+}));
+
server.listen(common.PORT);
const socket = net.createConnection(common.PORT, 'localhost');
-const s = socket.setTimeout(T, function() {
+const s = socket.setTimeout(T, () => {
common.fail('Socket timeout event is not expected to fire');
});
assert.ok(s instanceof net.Socket);
-socket.setTimeout(0);
-
-setTimeout(function() {
- socket.destroy();
- server.close();
-}, T * 2);
+socket.on('data', common.mustCall(() => {
+ setTimeout(function() {
+ socket.destroy();
+ server.close();
+ }, T * 2);
+}));
+socket.setTimeout(0);
diff --git a/test/parallel/test-next-tick-errors.js b/test/parallel/test-next-tick-errors.js
index fe13d6ed4dac93..5898762eeb5e5a 100644
--- a/test/parallel/test-next-tick-errors.js
+++ b/test/parallel/test-next-tick-errors.js
@@ -10,7 +10,7 @@ let exceptionHandled = false;
process.nextTick(function() {
order.push('A');
// cause an error
- what();
+ what(); // eslint-disable-line no-undef
});
// This nextTick function should remain in the queue when the first one
diff --git a/test/parallel/test-npm-install.js b/test/parallel/test-npm-install.js
index 0c2e4df52f9863..b6ef67bf322ea3 100644
--- a/test/parallel/test-npm-install.js
+++ b/test/parallel/test-npm-install.js
@@ -33,7 +33,10 @@ const pkgPath = path.join(common.tmpDir, 'package.json');
fs.writeFileSync(pkgPath, pkgContent);
const proc = spawn(process.execPath, args, {
- cwd: common.tmpDir
+ cwd: common.tmpDir,
+ env: {
+ PATH: path.dirname(process.execPath)
+ }
});
function handleExit(code, signalCode) {
diff --git a/test/sequential/test-pipe-address.js b/test/parallel/test-pipe-address.js
similarity index 100%
rename from test/sequential/test-pipe-address.js
rename to test/parallel/test-pipe-address.js
diff --git a/test/sequential/test-pipe-head.js b/test/parallel/test-pipe-head.js
similarity index 100%
rename from test/sequential/test-pipe-head.js
rename to test/parallel/test-pipe-head.js
diff --git a/test/sequential/test-pipe-stream.js b/test/parallel/test-pipe-stream.js
similarity index 99%
rename from test/sequential/test-pipe-stream.js
rename to test/parallel/test-pipe-stream.js
index 693066c2fb25d0..6298495087ac06 100644
--- a/test/sequential/test-pipe-stream.js
+++ b/test/parallel/test-pipe-stream.js
@@ -65,4 +65,3 @@ function test(clazz, cb) {
test(net.Stream, function() {
test(net.Socket);
});
-
diff --git a/test/sequential/test-pipe-unref.js b/test/parallel/test-pipe-unref.js
similarity index 100%
rename from test/sequential/test-pipe-unref.js
rename to test/parallel/test-pipe-unref.js
diff --git a/test/sequential/test-regress-GH-1531.js b/test/parallel/test-regress-GH-1531.js
similarity index 100%
rename from test/sequential/test-regress-GH-1531.js
rename to test/parallel/test-regress-GH-1531.js
diff --git a/test/sequential/test-regress-GH-1899.js b/test/parallel/test-regress-GH-1899.js
similarity index 99%
rename from test/sequential/test-regress-GH-1899.js
rename to test/parallel/test-regress-GH-1899.js
index 98396aae13b8f9..3f9d936e632b0a 100644
--- a/test/sequential/test-regress-GH-1899.js
+++ b/test/parallel/test-regress-GH-1899.js
@@ -17,4 +17,3 @@ child.on('exit', function(code, signal) {
assert.equal(code, 0);
assert.equal(output, 'hello, world!\n');
});
-
diff --git a/test/parallel/test-regress-GH-2245.js b/test/parallel/test-regress-GH-2245.js
index a7f54caa5fdeb6..1ee26983ae336e 100644
--- a/test/parallel/test-regress-GH-2245.js
+++ b/test/parallel/test-regress-GH-2245.js
@@ -3,7 +3,7 @@ require('../common');
var assert = require('assert');
/*
-in node 0.10 a bug existed that caused strict functions to not capture
+In Node.js 0.10, a bug existed that caused strict functions to not capture
their environment when evaluated. When run in 0.10 `test()` fails with a
`ReferenceError`. See https://github.com/nodejs/node/issues/2245 for details.
*/
@@ -21,7 +21,7 @@ function test() {
eval(code);
- return bar();
+ return bar(); // eslint-disable-line no-undef
}
diff --git a/test/sequential/test-regress-GH-3542.js b/test/parallel/test-regress-GH-3542.js
similarity index 100%
rename from test/sequential/test-regress-GH-3542.js
rename to test/parallel/test-regress-GH-3542.js
diff --git a/test/sequential/test-regress-GH-4948.js b/test/parallel/test-regress-GH-4948.js
similarity index 100%
rename from test/sequential/test-regress-GH-4948.js
rename to test/parallel/test-regress-GH-4948.js
diff --git a/test/sequential/test-regress-GH-746.js b/test/parallel/test-regress-GH-746.js
similarity index 99%
rename from test/sequential/test-regress-GH-746.js
rename to test/parallel/test-regress-GH-746.js
index 4b79f3c4e355d1..0070be30f8329f 100644
--- a/test/sequential/test-regress-GH-746.js
+++ b/test/parallel/test-regress-GH-746.js
@@ -27,4 +27,3 @@ server.listen(common.PORT, function() {
process.on('exit', function() {
assert.ok(accepted);
});
-
diff --git a/test/sequential/test-regress-GH-819.js b/test/parallel/test-regress-GH-819.js
similarity index 100%
rename from test/sequential/test-regress-GH-819.js
rename to test/parallel/test-regress-GH-819.js
diff --git a/test/sequential/test-setproctitle.js b/test/parallel/test-setproctitle.js
similarity index 100%
rename from test/sequential/test-setproctitle.js
rename to test/parallel/test-setproctitle.js
diff --git a/test/sequential/test-sigint-infinite-loop.js b/test/parallel/test-sigint-infinite-loop.js
similarity index 99%
rename from test/sequential/test-sigint-infinite-loop.js
rename to test/parallel/test-sigint-infinite-loop.js
index 1570f9c59dd5d3..a284367e563b26 100644
--- a/test/sequential/test-sigint-infinite-loop.js
+++ b/test/parallel/test-sigint-infinite-loop.js
@@ -35,4 +35,3 @@ process.on('exit', function() {
assert.ok(sentKill);
assert.ok(gotChildExit);
});
-
diff --git a/test/sequential/test-socket-write-after-fin-error.js b/test/parallel/test-socket-write-after-fin-error.js
similarity index 100%
rename from test/sequential/test-socket-write-after-fin-error.js
rename to test/parallel/test-socket-write-after-fin-error.js
diff --git a/test/sequential/test-socket-write-after-fin.js b/test/parallel/test-socket-write-after-fin.js
similarity index 100%
rename from test/sequential/test-socket-write-after-fin.js
rename to test/parallel/test-socket-write-after-fin.js
diff --git a/test/parallel/test-stdin-child-proc.js b/test/parallel/test-stdin-child-proc.js
new file mode 100644
index 00000000000000..35ae0c99d3c8ff
--- /dev/null
+++ b/test/parallel/test-stdin-child-proc.js
@@ -0,0 +1,13 @@
+'use strict';
+// This tests that pausing and resuming stdin does not hang and timeout
+// when done in a child process. See test/parallel/test-stdin-pause-resume.js
+const common = require('../common');
+const assert = require('assert');
+const child_process = require('child_process');
+const path = require('path');
+const cp = child_process.spawn(process.execPath,
+ [path.resolve(__dirname, 'test-stdin-pause-resume.js')]);
+
+cp.on('exit', common.mustCall((code) => {
+ assert.equal(code, 0);
+}));
diff --git a/test/sequential/test-stdin-from-file.js b/test/parallel/test-stdin-from-file.js
similarity index 95%
rename from test/sequential/test-stdin-from-file.js
rename to test/parallel/test-stdin-from-file.js
index 07b044769b3791..862405b5d9b71a 100644
--- a/test/sequential/test-stdin-from-file.js
+++ b/test/parallel/test-stdin-from-file.js
@@ -6,7 +6,7 @@ var childProcess = require('child_process');
var fs = require('fs');
var stdoutScript = join(common.fixturesDir, 'echo-close-check.js');
-var tmpFile = join(common.fixturesDir, 'stdin.txt');
+var tmpFile = join(common.tmpDir, 'stdin.txt');
var cmd = '"' + process.argv[0] + '" "' + stdoutScript + '" < "' +
tmpFile + '"';
@@ -24,6 +24,8 @@ var string = 'abc\nümlaut.\nsomething else\n' +
'有效的改善了岭南地区落后的政治、##济现状。\n';
+common.refreshTmpDir();
+
console.log(cmd + '\n\n');
try {
diff --git a/test/sequential/test-stdin-pipe-resume.js b/test/parallel/test-stdin-pipe-resume.js
similarity index 99%
rename from test/sequential/test-stdin-pipe-resume.js
rename to test/parallel/test-stdin-pipe-resume.js
index cd409a1d236f53..cb288070450a1f 100644
--- a/test/sequential/test-stdin-pipe-resume.js
+++ b/test/parallel/test-stdin-pipe-resume.js
@@ -25,4 +25,3 @@ if (process.argv[2] === 'child') {
child.stdin.end();
}, 10);
}
-
diff --git a/test/sequential/test-stdin-script-child.js b/test/parallel/test-stdin-script-child.js
similarity index 100%
rename from test/sequential/test-stdin-script-child.js
rename to test/parallel/test-stdin-script-child.js
diff --git a/test/sequential/test-stdout-cannot-be-closed-child-process-pipe.js b/test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js
similarity index 100%
rename from test/sequential/test-stdout-cannot-be-closed-child-process-pipe.js
rename to test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js
diff --git a/test/sequential/test-stdout-close-catch.js b/test/parallel/test-stdout-close-catch.js
similarity index 100%
rename from test/sequential/test-stdout-close-catch.js
rename to test/parallel/test-stdout-close-catch.js
diff --git a/test/sequential/test-stdout-stderr-reading.js b/test/parallel/test-stdout-stderr-reading.js
similarity index 100%
rename from test/sequential/test-stdout-stderr-reading.js
rename to test/parallel/test-stdout-stderr-reading.js
diff --git a/test/sequential/test-stdout-to-file.js b/test/parallel/test-stdout-to-file.js
similarity index 100%
rename from test/sequential/test-stdout-to-file.js
rename to test/parallel/test-stdout-to-file.js
diff --git a/test/parallel/test-stream-pipe-await-drain.js b/test/parallel/test-stream-pipe-await-drain.js
new file mode 100644
index 00000000000000..0e8d3497123538
--- /dev/null
+++ b/test/parallel/test-stream-pipe-await-drain.js
@@ -0,0 +1,40 @@
+'use strict';
+const common = require('../common');
+const stream = require('stream');
+
+// This is very similar to test-stream-pipe-cleanup-pause.js.
+
+const reader = new stream.Readable();
+const writer1 = new stream.Writable();
+const writer2 = new stream.Writable();
+
+// 560000 is chosen here because it is larger than the (default) highWaterMark
+// and will cause `.write()` to return false
+// See: https://github.com/nodejs/node/issues/5820
+const buffer = Buffer(560000);
+
+reader._read = function(n) {};
+
+writer1._write = common.mustCall(function(chunk, encoding, cb) {
+ this.emit('chunk-received');
+ cb();
+}, 1);
+writer1.once('chunk-received', function() {
+ setImmediate(function() {
+ // This one should *not* get through to writer1 because writer2 is not
+ // "done" processing.
+ reader.push(buffer);
+ });
+});
+
+// A "slow" consumer:
+writer2._write = common.mustCall(function(chunk, encoding, cb) {
+ // Not calling cb here to "simulate" slow stream.
+
+ // This should be called exactly once, since the first .write() call
+ // will return false.
+}, 1);
+
+reader.pipe(writer1);
+reader.pipe(writer2);
+reader.push(buffer);
diff --git a/test/parallel/test-stream-writev.js b/test/parallel/test-stream-writev.js
index 2aa992b4a9a785..295bed2959398c 100644
--- a/test/parallel/test-stream-writev.js
+++ b/test/parallel/test-stream-writev.js
@@ -43,25 +43,24 @@ function test(decode, uncork, multi, next) {
assert(false, 'Should not call _write');
};
- var expectChunks = decode ?
- [
- { encoding: 'buffer',
- chunk: [104, 101, 108, 108, 111, 44, 32] },
- { encoding: 'buffer',
- chunk: [119, 111, 114, 108, 100] },
- { encoding: 'buffer',
- chunk: [33] },
- { encoding: 'buffer',
- chunk: [10, 97, 110, 100, 32, 116, 104, 101, 110, 46, 46, 46] },
- { encoding: 'buffer',
- chunk: [250, 206, 190, 167, 222, 173, 190, 239, 222, 202, 251, 173]}
- ] : [
- { encoding: 'ascii', chunk: 'hello, ' },
- { encoding: 'utf8', chunk: 'world' },
- { encoding: 'buffer', chunk: [33] },
- { encoding: 'binary', chunk: '\nand then...' },
- { encoding: 'hex', chunk: 'facebea7deadbeefdecafbad' }
- ];
+ var expectChunks = decode ? [
+ { encoding: 'buffer',
+ chunk: [104, 101, 108, 108, 111, 44, 32] },
+ { encoding: 'buffer',
+ chunk: [119, 111, 114, 108, 100] },
+ { encoding: 'buffer',
+ chunk: [33] },
+ { encoding: 'buffer',
+ chunk: [10, 97, 110, 100, 32, 116, 104, 101, 110, 46, 46, 46] },
+ { encoding: 'buffer',
+ chunk: [250, 206, 190, 167, 222, 173, 190, 239, 222, 202, 251, 173]}
+ ] : [
+ { encoding: 'ascii', chunk: 'hello, ' },
+ { encoding: 'utf8', chunk: 'world' },
+ { encoding: 'buffer', chunk: [33] },
+ { encoding: 'binary', chunk: '\nand then...' },
+ { encoding: 'hex', chunk: 'facebea7deadbeefdecafbad' }
+ ];
var actualChunks;
w._writev = function(chunks, cb) {
diff --git a/test/sequential/test-stream2-httpclient-response-end.js b/test/parallel/test-stream2-httpclient-response-end.js
similarity index 99%
rename from test/sequential/test-stream2-httpclient-response-end.js
rename to test/parallel/test-stream2-httpclient-response-end.js
index 15d7fba27f63af..b778af58e2eec8 100644
--- a/test/sequential/test-stream2-httpclient-response-end.js
+++ b/test/parallel/test-stream2-httpclient-response-end.js
@@ -29,4 +29,3 @@ process.on('exit', function() {
assert(readable_event);
assert(end_event);
});
-
diff --git a/test/parallel/test-stringbytes-external-at-max.js b/test/parallel/test-stringbytes-external-at-max.js
deleted file mode 100644
index 5467d05a20104a..00000000000000
--- a/test/parallel/test-stringbytes-external-at-max.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-// Flags: --expose-gc
-
-const common = require('../common');
-const assert = require('assert');
-
-// v8 fails silently if string length > v8::String::kMaxLength
-// v8::String::kMaxLength defined in v8.h
-const kStringMaxLength = process.binding('buffer').kStringMaxLength;
-
-const skipMessage =
- '1..0 # Skipped: intensive toString tests due to memory confinements';
-if (!common.enoughTestMem) {
- console.log(skipMessage);
- return;
-}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
-
-try {
- var buf = new Buffer(kStringMaxLength);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
-} catch (e) {
- // If the exception is not due to memory confinement then rethrow it.
- if (e.message !== 'Invalid array buffer length') throw (e);
- console.log(skipMessage);
- return;
-}
-
-const maxString = buf.toString('binary');
-assert.equal(maxString.length, kStringMaxLength);
diff --git a/test/sequential/test-sync-fileread.js b/test/parallel/test-sync-fileread.js
similarity index 100%
rename from test/sequential/test-sync-fileread.js
rename to test/parallel/test-sync-fileread.js
diff --git a/test/sequential/test-tcp-wrap-connect.js b/test/parallel/test-tcp-wrap-connect.js
similarity index 100%
rename from test/sequential/test-tcp-wrap-connect.js
rename to test/parallel/test-tcp-wrap-connect.js
diff --git a/test/sequential/test-tcp-wrap-listen.js b/test/parallel/test-tcp-wrap-listen.js
similarity index 100%
rename from test/sequential/test-tcp-wrap-listen.js
rename to test/parallel/test-tcp-wrap-listen.js
diff --git a/test/parallel/test-timers-immediate.js b/test/parallel/test-timers-immediate.js
index 40e91a099815b6..4512ff47fb75a6 100644
--- a/test/parallel/test-timers-immediate.js
+++ b/test/parallel/test-timers-immediate.js
@@ -5,7 +5,6 @@ var assert = require('assert');
let immediateA = false;
let immediateB = false;
let immediateC = [];
-let before;
setImmediate(function() {
try {
@@ -16,7 +15,7 @@ setImmediate(function() {
clearImmediate(immediateB);
});
-before = process.hrtime();
+const before = process.hrtime();
immediateB = setImmediate(function() {
immediateB = true;
diff --git a/test/parallel/test-timers-reset-process-domain-on-throw.js b/test/parallel/test-timers-reset-process-domain-on-throw.js
index f72530b5423886..ab3ffd3596ed53 100644
--- a/test/parallel/test-timers-reset-process-domain-on-throw.js
+++ b/test/parallel/test-timers-reset-process-domain-on-throw.js
@@ -22,7 +22,7 @@ function err() {
function err2() {
// this function doesn't exist, and throws an error as a result.
- err3();
+ err3(); // eslint-disable-line no-undef
}
function handleDomainError(e) {
diff --git a/test/parallel/test-timers-unref.js b/test/parallel/test-timers-unref.js
index 134b2ffe4c3967..570c51b9ac7a5f 100644
--- a/test/parallel/test-timers-unref.js
+++ b/test/parallel/test-timers-unref.js
@@ -7,7 +7,7 @@ let timeout_fired = false;
let unref_interval = false;
let unref_timer = false;
let unref_callbacks = 0;
-let interval, check_unref, checks = 0;
+let checks = 0;
var LONG_TIME = 10 * 1000;
var SHORT_TIME = 100;
@@ -28,7 +28,7 @@ setTimeout(function() {
timeout_fired = true;
}, LONG_TIME).unref();
-interval = setInterval(function() {
+const interval = setInterval(function() {
unref_interval = true;
clearInterval(interval);
}, SHORT_TIME);
@@ -38,7 +38,7 @@ setTimeout(function() {
unref_timer = true;
}, SHORT_TIME).unref();
-check_unref = setInterval(function() {
+const check_unref = setInterval(function() {
if (checks > 5 || (unref_interval && unref_timer))
clearInterval(check_unref);
checks += 1;
diff --git a/test/sequential/test-tls-honorcipherorder.js b/test/parallel/test-tls-honorcipherorder.js
similarity index 100%
rename from test/sequential/test-tls-honorcipherorder.js
rename to test/parallel/test-tls-honorcipherorder.js
diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js
index 618a856e195a32..e0264c34f7b685 100644
--- a/test/parallel/test-util-inspect.js
+++ b/test/parallel/test-util-inspect.js
@@ -182,7 +182,7 @@ assert.equal(util.inspect(new Error('FAIL')), '[Error: FAIL]');
assert.equal(util.inspect(new TypeError('FAIL')), '[TypeError: FAIL]');
assert.equal(util.inspect(new SyntaxError('FAIL')), '[SyntaxError: FAIL]');
try {
- undef();
+ undef(); // eslint-disable-line no-undef
} catch (e) {
assert.equal(util.inspect(e), '[ReferenceError: undef is not defined]');
}
diff --git a/test/parallel/test-vm-create-and-run-in-context.js b/test/parallel/test-vm-create-and-run-in-context.js
index 94527598ca27b1..15efc8f527b8c9 100644
--- a/test/parallel/test-vm-create-and-run-in-context.js
+++ b/test/parallel/test-vm-create-and-run-in-context.js
@@ -1,4 +1,5 @@
'use strict';
+// Flags: --expose-gc
require('../common');
var assert = require('assert');
@@ -18,3 +19,11 @@ console.error('test updating context');
result = vm.runInContext('var foo = 3;', context);
assert.equal(3, context.foo);
assert.equal('lala', context.thing);
+
+// https://github.com/nodejs/node/issues/5768
+console.error('run in contextified sandbox without referencing the context');
+var sandbox = {x: 1};
+vm.createContext(sandbox);
+gc();
+vm.runInContext('x = 2', sandbox);
+// Should not crash.
diff --git a/test/parallel/test-vm-new-script-new-context.js b/test/parallel/test-vm-new-script-new-context.js
index 81f9b57593ea2f..2af8f05f1c5236 100644
--- a/test/parallel/test-vm-new-script-new-context.js
+++ b/test/parallel/test-vm-new-script-new-context.js
@@ -1,15 +1,15 @@
-/* eslint-disable strict */
-var common = require('../common');
-var assert = require('assert');
-var Script = require('vm').Script;
+'use strict';
+const common = require('../common');
+const assert = require('assert');
+const Script = require('vm').Script;
common.globalCheck = false;
console.error('run a string');
var script = new Script('\'passed\';');
console.error('script created');
-var result1 = script.runInNewContext();
-var result2 = script.runInNewContext();
+const result1 = script.runInNewContext();
+const result2 = script.runInNewContext();
assert.equal('passed', result1);
assert.equal('passed', result2);
@@ -27,31 +27,31 @@ assert.throws(function() {
}, /not defined/);
-hello = 5;
+global.hello = 5;
script = new Script('hello = 2');
script.runInNewContext();
-assert.equal(5, hello);
+assert.equal(5, global.hello);
console.error('pass values in and out');
-code = 'foo = 1;' +
- 'bar = 2;' +
- 'if (baz !== 3) throw new Error(\'test fail\');';
-foo = 2;
-obj = { foo: 0, baz: 3 };
-script = new Script(code);
+global.code = 'foo = 1;' +
+ 'bar = 2;' +
+ 'if (baz !== 3) throw new Error(\'test fail\');';
+global.foo = 2;
+global.obj = { foo: 0, baz: 3 };
+script = new Script(global.code);
/* eslint-disable no-unused-vars */
-var baz = script.runInNewContext(obj);
+var baz = script.runInNewContext(global.obj);
/* eslint-enable no-unused-vars */
-assert.equal(1, obj.foo);
-assert.equal(2, obj.bar);
-assert.equal(2, foo);
+assert.equal(1, global.obj.foo);
+assert.equal(2, global.obj.bar);
+assert.equal(2, global.foo);
console.error('call a function by reference');
script = new Script('f()');
-function changeFoo() { foo = 100; }
+function changeFoo() { global.foo = 100; }
script.runInNewContext({ f: changeFoo });
-assert.equal(foo, 100);
+assert.equal(global.foo, 100);
console.error('modify an object by reference');
script = new Script('f.a = 2');
diff --git a/test/parallel/test-vm-new-script-this-context.js b/test/parallel/test-vm-new-script-this-context.js
index 16d8acd1ca6700..d225fb0d4025d0 100644
--- a/test/parallel/test-vm-new-script-this-context.js
+++ b/test/parallel/test-vm-new-script-this-context.js
@@ -1,13 +1,13 @@
-/* eslint-disable strict */
-var common = require('../common');
-var assert = require('assert');
-var Script = require('vm').Script;
+'use strict';
+const common = require('../common');
+const assert = require('assert');
+const Script = require('vm').Script;
common.globalCheck = false;
console.error('run a string');
var script = new Script('\'passed\';');
-var result = script.runInThisContext(script);
+const result = script.runInThisContext(script);
assert.equal('passed', result);
console.error('thrown error');
@@ -16,26 +16,26 @@ assert.throws(function() {
script.runInThisContext(script);
});
-hello = 5;
+global.hello = 5;
script = new Script('hello = 2');
script.runInThisContext(script);
-assert.equal(2, hello);
+assert.equal(2, global.hello);
console.error('pass values');
-code = 'foo = 1;' +
- 'bar = 2;' +
- 'if (typeof baz !== \'undefined\') throw new Error(\'test fail\');';
-foo = 2;
-obj = { foo: 0, baz: 3 };
-script = new Script(code);
+global.code = 'foo = 1;' +
+ 'bar = 2;' +
+ 'if (typeof baz !== "undefined") throw new Error("test fail");';
+global.foo = 2;
+global.obj = { foo: 0, baz: 3 };
+script = new Script(global.code);
script.runInThisContext(script);
-assert.equal(0, obj.foo);
-assert.equal(2, bar);
-assert.equal(1, foo);
+assert.equal(0, global.obj.foo);
+assert.equal(2, global.bar);
+assert.equal(1, global.foo);
console.error('call a function');
-f = function() { foo = 100; };
+global.f = function() { global.foo = 100; };
script = new Script('f()');
script.runInThisContext(script);
-assert.equal(100, foo);
+assert.equal(100, global.foo);
diff --git a/test/parallel/test-vm-run-in-new-context.js b/test/parallel/test-vm-run-in-new-context.js
index 2b32eccf408ff0..1467ea1e17d808 100644
--- a/test/parallel/test-vm-run-in-new-context.js
+++ b/test/parallel/test-vm-run-in-new-context.js
@@ -1,16 +1,16 @@
-/* eslint-disable strict */
+'use strict';
// Flags: --expose-gc
-var common = require('../common');
-var assert = require('assert');
-var vm = require('vm');
+const common = require('../common');
+const assert = require('assert');
+const vm = require('vm');
assert.equal(typeof gc, 'function', 'Run this test with --expose-gc');
common.globalCheck = false;
console.error('run a string');
-var result = vm.runInNewContext('\'passed\';');
+const result = vm.runInNewContext('\'passed\';');
assert.equal('passed', result);
console.error('thrown error');
@@ -18,28 +18,28 @@ assert.throws(function() {
vm.runInNewContext('throw new Error(\'test\');');
});
-hello = 5;
+global.hello = 5;
vm.runInNewContext('hello = 2');
-assert.equal(5, hello);
+assert.equal(5, global.hello);
console.error('pass values in and out');
-code = 'foo = 1;' +
- 'bar = 2;' +
- 'if (baz !== 3) throw new Error(\'test fail\');';
-foo = 2;
-obj = { foo: 0, baz: 3 };
+global.code = 'foo = 1;' +
+ 'bar = 2;' +
+ 'if (baz !== 3) throw new Error(\'test fail\');';
+global.foo = 2;
+global.obj = { foo: 0, baz: 3 };
/* eslint-disable no-unused-vars */
-var baz = vm.runInNewContext(code, obj);
+var baz = vm.runInNewContext(global.code, global.obj);
/* eslint-enable no-unused-vars */
-assert.equal(1, obj.foo);
-assert.equal(2, obj.bar);
-assert.equal(2, foo);
+assert.equal(1, global.obj.foo);
+assert.equal(2, global.obj.bar);
+assert.equal(2, global.foo);
console.error('call a function by reference');
-function changeFoo() { foo = 100; }
+function changeFoo() { global.foo = 100; }
vm.runInNewContext('f()', { f: changeFoo });
-assert.equal(foo, 100);
+assert.equal(global.foo, 100);
console.error('modify an object by reference');
var f = { a: 1 };
diff --git a/test/sequential/test-vm-syntax-error-stderr.js b/test/parallel/test-vm-syntax-error-stderr.js
similarity index 100%
rename from test/sequential/test-vm-syntax-error-stderr.js
rename to test/parallel/test-vm-syntax-error-stderr.js
diff --git a/test/sequential/test-zerolengthbufferbug.js b/test/parallel/test-zerolengthbufferbug.js
similarity index 99%
rename from test/sequential/test-zerolengthbufferbug.js
rename to test/parallel/test-zerolengthbufferbug.js
index de36444180b1ec..c56240011d76dd 100644
--- a/test/sequential/test-zerolengthbufferbug.js
+++ b/test/parallel/test-zerolengthbufferbug.js
@@ -34,4 +34,3 @@ process.on('exit', function() {
assert.ok(gotResponse);
assert.equal(0, resBodySize);
});
-
diff --git a/test/parallel/test-zlib-close-after-error.js b/test/parallel/test-zlib-close-after-error.js
new file mode 100644
index 00000000000000..2570ca266a6754
--- /dev/null
+++ b/test/parallel/test-zlib-close-after-error.js
@@ -0,0 +1,14 @@
+'use strict';
+// https://github.com/nodejs/node/issues/6034
+
+const common = require('../common');
+const assert = require('assert');
+const zlib = require('zlib');
+
+const decompress = zlib.createGunzip(15);
+
+decompress.on('error', common.mustCall((err) => {
+ assert.doesNotThrow(() => decompress.close());
+}));
+
+decompress.write('something invalid');
diff --git a/test/pummel/test-crypto-dh.js b/test/pummel/test-crypto-dh.js
index 596d107a287a28..d4e1c493b7266d 100644
--- a/test/pummel/test-crypto-dh.js
+++ b/test/pummel/test-crypto-dh.js
@@ -1,6 +1,6 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
+const common = require('../common');
+const assert = require('assert');
try {
var crypto = require('crypto');
diff --git a/test/pummel/test-dtrace-jsstack.js b/test/pummel/test-dtrace-jsstack.js
index 2e5c8670553138..f53c950baa32e9 100644
--- a/test/pummel/test-dtrace-jsstack.js
+++ b/test/pummel/test-dtrace-jsstack.js
@@ -14,7 +14,7 @@ if (os.type() != 'SunOS') {
var frames = [ 'stalloogle', 'bagnoogle', 'doogle' ];
var stalloogle = function(str) {
- expected = str;
+ global.expected = str;
os.loadavg();
};
diff --git a/test/pummel/test-net-throttle.js b/test/pummel/test-net-throttle.js
index e98a6c765a905e..d2f32ec25b6ff2 100644
--- a/test/pummel/test-net-throttle.js
+++ b/test/pummel/test-net-throttle.js
@@ -1,15 +1,15 @@
'use strict';
-var common = require('../common');
-var assert = require('assert');
-var net = require('net');
+const common = require('../common');
+const assert = require('assert');
+const net = require('net');
-var N = 1024 * 1024;
-var part_N = N / 3;
+const N = 1024 * 1024;
+const part_N = N / 3;
var chars_recved = 0;
var npauses = 0;
console.log('build big string');
-body = 'C'.repeat(N);
+const body = 'C'.repeat(N);
console.log('start server on port ' + common.PORT);
diff --git a/test/sequential/test-stdin-child-proc.js b/test/sequential/test-stdin-child-proc.js
deleted file mode 100644
index 0189e94d5d4c8c..00000000000000
--- a/test/sequential/test-stdin-child-proc.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-// This tests that pausing and resuming stdin does not hang and timeout
-// when done in a child process. See test/simple/test-stdin-pause-resume.js
-require('../common');
-var child_process = require('child_process');
-var path = require('path');
-child_process.spawn(process.execPath,
- [path.resolve(__dirname, 'test-stdin-pause-resume.js')]);
diff --git a/test/sequential/test-stringbytes-external-exceed-max-by-1-ascii.js b/test/sequential/test-stringbytes-external-exceed-max-by-1-ascii.js
deleted file mode 100644
index af47a8e779a7a4..00000000000000
--- a/test/sequential/test-stringbytes-external-exceed-max-by-1-ascii.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-// Flags: --expose-gc
-
-const common = require('../common');
-const assert = require('assert');
-
-const skipMessage =
- '1..0 # Skipped: intensive toString tests due to memory confinements';
-if (!common.enoughTestMem) {
- console.log(skipMessage);
- return;
-}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
-
-// v8 fails silently if string length > v8::String::kMaxLength
-// v8::String::kMaxLength defined in v8.h
-const kStringMaxLength = process.binding('buffer').kStringMaxLength;
-
-try {
- var buf = new Buffer(kStringMaxLength + 1);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
-} catch (e) {
- // If the exception is not due to memory confinement then rethrow it.
- if (e.message !== 'Invalid array buffer length') throw (e);
- console.log(skipMessage);
- return;
-}
-
-assert.throws(function() {
- buf.toString('ascii');
-}, /toString failed/);
diff --git a/test/sequential/test-stringbytes-external-exceed-max-by-1-base64.js b/test/sequential/test-stringbytes-external-exceed-max-by-1-base64.js
deleted file mode 100644
index fb599875a0459b..00000000000000
--- a/test/sequential/test-stringbytes-external-exceed-max-by-1-base64.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-// Flags: --expose-gc
-
-const common = require('../common');
-const assert = require('assert');
-
-const skipMessage =
- '1..0 # Skipped: intensive toString tests due to memory confinements';
-if (!common.enoughTestMem) {
- console.log(skipMessage);
- return;
-}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
-
-// v8 fails silently if string length > v8::String::kMaxLength
-// v8::String::kMaxLength defined in v8.h
-const kStringMaxLength = process.binding('buffer').kStringMaxLength;
-
-try {
- var buf = new Buffer(kStringMaxLength + 1);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
-} catch (e) {
- // If the exception is not due to memory confinement then rethrow it.
- if (e.message !== 'Invalid array buffer length') throw (e);
- console.log(skipMessage);
- return;
-}
-
-assert.throws(function() {
- buf.toString('base64');
-}, /toString failed/);
diff --git a/test/sequential/test-stringbytes-external-exceed-max-by-1-hex.js b/test/sequential/test-stringbytes-external-exceed-max-by-1-hex.js
deleted file mode 100644
index 9dd9d23565acf2..00000000000000
--- a/test/sequential/test-stringbytes-external-exceed-max-by-1-hex.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-// Flags: --expose-gc
-
-const common = require('../common');
-const assert = require('assert');
-
-const skipMessage =
- '1..0 # Skipped: intensive toString tests due to memory confinements';
-if (!common.enoughTestMem) {
- console.log(skipMessage);
- return;
-}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
-
-// v8 fails silently if string length > v8::String::kMaxLength
-// v8::String::kMaxLength defined in v8.h
-const kStringMaxLength = process.binding('buffer').kStringMaxLength;
-
-try {
- var buf = new Buffer(kStringMaxLength + 1);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
-} catch (e) {
- // If the exception is not due to memory confinement then rethrow it.
- if (e.message !== 'Invalid array buffer length') throw (e);
- console.log(skipMessage);
- return;
-}
-
-assert.throws(function() {
- buf.toString('hex');
-}, /toString failed/);
diff --git a/test/sequential/test-stringbytes-external-exceed-max-by-2.js b/test/sequential/test-stringbytes-external-exceed-max-by-2.js
deleted file mode 100644
index 1ac5a5c7fe1ced..00000000000000
--- a/test/sequential/test-stringbytes-external-exceed-max-by-2.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-// Flags: --expose-gc
-
-const common = require('../common');
-const assert = require('assert');
-
-const skipMessage =
- '1..0 # Skipped: intensive toString tests due to memory confinements';
-if (!common.enoughTestMem) {
- console.log(skipMessage);
- return;
-}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
-
-// v8 fails silently if string length > v8::String::kMaxLength
-// v8::String::kMaxLength defined in v8.h
-const kStringMaxLength = process.binding('buffer').kStringMaxLength;
-
-try {
- var buf = new Buffer(kStringMaxLength + 2);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
-} catch (e) {
- // If the exception is not due to memory confinement then rethrow it.
- if (e.message !== 'Invalid array buffer length') throw (e);
- console.log(skipMessage);
- return;
-}
-
-const maxString = buf.toString('utf16le');
-assert.equal(maxString.length, (kStringMaxLength + 2) / 2);
diff --git a/test/sequential/test-stringbytes-external-exceed-max.js b/test/sequential/test-stringbytes-external-exceed-max.js
deleted file mode 100644
index 61666b8ebc6b48..00000000000000
--- a/test/sequential/test-stringbytes-external-exceed-max.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-// Flags: --expose-gc
-
-const common = require('../common');
-const assert = require('assert');
-
-const skipMessage =
- '1..0 # Skipped: intensive toString tests due to memory confinements';
-if (!common.enoughTestMem) {
- console.log(skipMessage);
- return;
-}
-assert(typeof gc === 'function', 'Run this test with --expose-gc');
-
-// v8 fails silently if string length > v8::String::kMaxLength
-// v8::String::kMaxLength defined in v8.h
-const kStringMaxLength = process.binding('buffer').kStringMaxLength;
-
-try {
- var buf = new Buffer(kStringMaxLength * 2 + 2);
- // Try to allocate memory first then force gc so future allocations succeed.
- new Buffer(2 * kStringMaxLength);
- gc();
-} catch (e) {
- // If the exception is not due to memory confinement then rethrow it.
- if (e.message !== 'Invalid array buffer length') throw (e);
- console.log(skipMessage);
- return;
-}
-
-assert.throws(function() {
- buf.toString('utf16le');
-}, /toString failed/);
diff --git a/tools/create_android_makefiles b/tools/create_android_makefiles
new file mode 100755
index 00000000000000..abf2ecf083c307
--- /dev/null
+++ b/tools/create_android_makefiles
@@ -0,0 +1,46 @@
+#!/bin/bash
+# Run this script ONLY inside an Android build system
+# and after you ran lunch command!
+
+if [ -z "$ANDROID_BUILD_TOP" ]; then
+ echo "Run lunch before running this script!"
+ exit 1
+fi
+
+if [ -z "$1" ]; then
+ ARCH="arm"
+else
+ ARCH="$1"
+fi
+
+if [ $ARCH = "x86" ]; then
+ TARGET_ARCH="ia32"
+else
+ TARGET_ARCH="$ARCH"
+fi
+
+cd $(dirname $0)/..
+
+./configure \
+ --without-snapshot \
+ --openssl-no-asm \
+ --dest-cpu=$TARGET_ARCH \
+ --dest-os=android
+
+export GYP_GENERATORS="android"
+export GYP_GENERATOR_FLAGS="limit_to_target_all=true"
+GYP_DEFINES="target_arch=$TARGET_ARCH"
+GYP_DEFINES+=" v8_target_arch=$TARGET_ARCH"
+GYP_DEFINES+=" android_target_arch=$ARCH"
+GYP_DEFINES+=" host_os=linux OS=android"
+export GYP_DEFINES
+
+./deps/npm/node_modules/node-gyp/gyp/gyp \
+ -Icommon.gypi \
+ -Iconfig.gypi \
+ --depth=. \
+ -Dcomponent=static_library \
+ -Dlibrary=static_library \
+ node.gyp
+
+echo -e "LOCAL_PATH := \$(call my-dir)\n\ninclude \$(LOCAL_PATH)/GypAndroid.mk" > Android.mk
diff --git a/tools/doc/html.js b/tools/doc/html.js
index 327c9f080e2bfe..feb99cd810415c 100644
--- a/tools/doc/html.js
+++ b/tools/doc/html.js
@@ -112,6 +112,7 @@ function parseText(lexed) {
lexed.forEach(function(tok) {
if (tok.text && tok.type !== 'code') {
tok.text = linkManPages(tok.text);
+ tok.text = linkJsTypeDocs(tok.text);
}
});
}
@@ -166,9 +167,6 @@ function parseLists(input) {
}
return;
}
- if (tok.text) {
- tok.text = parseListItem(tok.text);
- }
}
output.push(tok);
});
@@ -197,7 +195,7 @@ function linkManPages(text) {
});
}
-function parseListItem(text) {
+function linkJsTypeDocs(text) {
var parts = text.split('`');
var i;
var typeMatches;
diff --git a/tools/doc/json.js b/tools/doc/json.js
index b2165c15d23c90..3d08026daaabd8 100644
--- a/tools/doc/json.js
+++ b/tools/doc/json.js
@@ -280,21 +280,30 @@ function parseSignature(text, sig) {
var params = text.match(paramExpr);
if (!params) return;
params = params[1];
- // the [ is irrelevant. ] indicates optionalness.
- params = params.replace(/\[/g, '');
params = params.split(/,/);
+ var optionalLevel = 0;
+ var optionalCharDict = {'[': 1, ' ': 0, ']': -1};
params.forEach(function(p, i, _) {
p = p.trim();
if (!p) return;
var param = sig.params[i];
var optional = false;
var def;
- // [foo] -> optional
- if (p.charAt(p.length - 1) === ']') {
- optional = true;
- p = p.replace(/\]/g, '');
- p = p.trim();
+
+ // for grouped optional params such as someMethod(a[, b[, c]])
+ var pos;
+ for (pos = 0; pos < p.length; pos++) {
+ if (optionalCharDict[p[pos]] === undefined) { break; }
+ optionalLevel += optionalCharDict[p[pos]];
+ }
+ p = p.substring(pos);
+ optional = (optionalLevel > 0);
+ for (pos = p.length - 1; pos >= 0; pos--) {
+ if (optionalCharDict[p[pos]] === undefined) { break; }
+ optionalLevel += optionalCharDict[p[pos]];
}
+ p = p.substring(0, pos + 1);
+
var eq = p.indexOf('=');
if (eq !== -1) {
def = p.substr(eq + 1);
diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js
index 4d83e872ec1930..2e6c5bea919c19 100644
--- a/tools/doc/type-parser.js
+++ b/tools/doc/type-parser.js
@@ -11,7 +11,8 @@ const jsGlobalTypes = [
'Error', 'Object', 'Function', 'Array', 'Uint8Array',
'Uint16Array', 'Uint32Array', 'Int8Array', 'Int16Array', 'Int32Array',
'Uint8ClampedArray', 'Float32Array', 'Float64Array', 'Date', 'RegExp',
- 'ArrayBuffer', 'DataView', 'Promise'
+ 'ArrayBuffer', 'DataView', 'Promise', 'EvalError', 'RangeError',
+ 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError'
];
const typeMap = {
'Buffer': 'buffer.html#buffer_class_buffer',
diff --git a/tools/eslint-rules/assert-fail-single-argument.js b/tools/eslint-rules/assert-fail-single-argument.js
new file mode 100644
index 00000000000000..4ce790238181cc
--- /dev/null
+++ b/tools/eslint-rules/assert-fail-single-argument.js
@@ -0,0 +1,30 @@
+/**
+ * @fileoverview Prohibit use of a single argument only in `assert.fail()`. It
+ * is almost always an error.
+ * @author Rich Trott
+ */
+'use strict';
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+const msg = 'assert.fail() message should be third argument';
+
+function isAssert(node) {
+ return node.callee.object && node.callee.object.name === 'assert';
+}
+
+function isFail(node) {
+ return node.callee.property && node.callee.property.name === 'fail';
+}
+
+module.exports = function(context) {
+ return {
+ 'CallExpression': function(node) {
+ if (isAssert(node) && isFail(node) && node.arguments.length === 1) {
+ context.report(node, msg);
+ }
+ }
+ };
+};
diff --git a/tools/eslint/CHANGELOG.md b/tools/eslint/CHANGELOG.md
new file mode 100644
index 00000000000000..9454793b4245da
--- /dev/null
+++ b/tools/eslint/CHANGELOG.md
@@ -0,0 +1,2892 @@
+v2.7.0 - April 4, 2016
+
+* 134cb1f Revert "Update: adds nestedBinaryExpressions for no-extra-parens rule (fixes #3065)" (Ilya Volodin)
+* 7e80867 Docs: Update sentence in fixable rules (Mark Pedrotti)
+* 1b6d5a3 Update: adds nestedBinaryExpressions for no-extra-parens (fixes #3065) (Nick Fisher)
+* 4f93c32 Docs: Clarify `array-bracket-spacing` with newlines (fixes #5768) (alberto)
+* 161ddac Fix: remove `console.dir` (fixes #5770) (Toru Nagashima)
+* 0c33f6a Fix: indent rule uses wrong node for class indent level (fixes #5764) (Paul O’Shannessy)
+
+v2.6.0 - April 1, 2016
+
+* ce2accd Fix: vars-on-top now accepts exported variables (fixes #5711) (Olmo Kramer)
+* 7aacba7 Update: Deprecate option `maximum` in favor of `max` (fixes #5685) (Vitor Balocco)
+* 5fe6fca Fix: no-useless-escape \B regex escape (fixes #5750) (Onur Temizkan)
+* 9b73ffd Update: `destructuring` option of `prefer-const` rule (fixes #5594) (Toru Nagashima)
+* 8ac9206 Docs: Typo in `sort-imports` (alberto)
+* 12902c5 Fix: valid-jsdoc crash w/ Field & Array Type (fixes #5745) (fixes #5746) (Burak Yigit Kaya)
+* 2c8b65a Docs: Edit examples for a few rules (Mark Pedrotti)
+* d736bc2 Fix: Treat SwitchCase like a block in lines-around-comment (fixes #5718) (Scott O'Hara)
+* 24a61a4 Update: make `no-useless-escape` allowing line breaks (fixes #5689) (Toru Nagashima)
+* 4ecd45e Fix: Ensure proper lookup of config files (fixes #5175, fixes #5468) (Nicholas C. Zakas)
+* 088e26b Fix: Update doctrine to allow hyphens in JSDoc names (fixes #5612) (Kai Cataldo)
+* 692fd5d Upgrade: Old Chalk.JS deprecated method (fixes #5716) (Morris Singer)
+* f59d91d Update: no-param-reassign error msgs (fixes #5705) (Isaac Levy)
+* c1b16cd Fix: Object spread throws error in key-spacing rule. (fixes #5724) (Ziad El Khoury Hanna)
+* 3091613 Docs: Correct explanation about properties (James Monger)
+* cb0f0be Fix: Lint issue with `valid-jsdoc` rule (refs #5188) (Gyandeep Singh)
+* aba1954 Build: Ignore jsdoc folder internally (fixes #5714) (alberto)
+* a35f127 Fix: Lint for eslint project in regards to vars (refs #5188) (Gyandeep Singh)
+* d9ab4f0 Fix: Windows scoped package configs (fixes #5644) (Nicholas C. Zakas)
+* 8d0cd0d Update: Basic valid-jsdoc default parameter support (fixes #5658) (Tom Andrews)
+
+v2.5.3 - March 28, 2016
+
+* 8749ac5 Build: Disable bundling dependencies (fixes #5687) (Nicholas C. Zakas)
+
+v2.5.2 - March 28, 2016
+
+* 1cc7f8e Docs: Remove mention of minimatch for .eslintignore (Ian VanSchooten)
+* 5bd69a9 Docs: Reorder FAQ in README (alberto)
+* 98e6bd9 Fix: Correct default for indentation in `eslint --init` (fixes #5698) (alberto)
+* 679095e Fix: make the default of `options.cwd` in runtime (fixes #5694) (Toru Nagashima)
+* 4f06f2f Docs: Distinguish examples in rules under Best Practices part 2 (Mark Pedrotti)
+* 013a18e Build: Fix bundling script (fixes #5680) (Nicholas C. Zakas)
+* 8c5d954 Docs: Typo fix (István Donkó)
+* 09659d6 Docs: Use string severity (Kenneth Williams)
+* a4ae769 Docs: Manual changelog update for v2.5.1 (Nicholas C. Zakas)
+* c41fab9 Fix: don't use path.extname with undefined value (fixes #5678) (Myles Borins)
+
+v2.5.1 - March 25, 2016
+
+* Build: No functional changes, just republished with a working package.
+
+v2.5.0 - March 25, 2016
+
+* 7021aa9 Fix: lines-around-comment in ESLint repo, part 2 (refs #5188) (Kevin Partington)
+* 095c435 Docs: Remove ES2016 from experimental section of README (Kevin Partington)
+* 646f863 Build: Bundle dependencies in package.json (fixes #5013) (Nicholas C. Zakas)
+* ea06868 Docs: Clarify --ext does not apply to globs (fixes #5452) (Ian VanSchooten)
+* 569c478 Build: Fix phantomjs CI problems (fixes #5666) (alberto)
+* 6022426 Docs: Add link to chat room in README primary links (alberto)
+* 2fbb530 Docs: Add link to "Proposing a Rule Change" in README (alberto)
+* 25bf491 Upgrade: globals 9.x (fixes #5668) (Toru Nagashima)
+* d6f8409 New: Rule - No useless escape (fixes #5460) (Onur Temizkan)
+* 12a43f1 Docs: remove brace expansion from configuring.md (refs #5314) (Jonathan Haines)
+* 92d1749 New: max-statements-per-line (fixes #5424) (Kenneth Williams)
+* aaf324a Fix: missing support for json sub configs (fixes #5413) (Noam Okman)
+* 48ad5fe Update: Add 'caughtErrors' to rule no-unused-vars (fixes #3837) (vamshi)
+* ad90c2b Fix: incorrect config message (fixes #5653) (s0ph1e)
+* a551831 Docs: Distinguish examples in rules under Node.js and CommonJS (Mark Pedrotti)
+* 83cd651 Upgrade: chai to 3.5.0 (fixes #5647) (alberto)
+* 32748dc Fix: `radix` rule false positive at shadowed variables (fixes #5639) (Toru Nagashima)
+* 66db38d Fix: `--no-ignore` should not un-ignore default ignores (fixes #5547) (alberto)
+* e3e06f3 Docs: Distinguish examples in rules under Best Practices part 4 (Mark Pedrotti)
+* a9f0865 Docs: Update no-sequences rule docs for clarity (fixes #5536) (Kai Cataldo)
+* bae7b30 Docs: Add michaelficarra as committer (alberto)
+* e2990e7 Docs: Consistent wording in rules README (alberto)
+* 49b4d2a Docs: Update team list with new members (Ilya Volodin)
+* d0ae66c Update: Allow autoconfiguration for JSX code (fixes #5511) (Ian VanSchooten)
+* 38a0a64 Docs: Clarify `linebreak-style` docs (fixes #5628) (alberto)
+* 4b7305e Fix: Allow default ignored files to be unignored (fixes #5410) (Ian VanSchooten)
+* 4b05ce6 Update: Enforce repo coding conventions via ESLint (refs #5188) (Kevin Partington)
+* 051b255 Docs: Remove or rewrite references to former ecmaFeatures (Mark Pedrotti)
+* 9a22625 Fix: `prefer-const` false positive at non-blocked if (fixes #5610) (Toru Nagashima)
+* b1fd482 Fix: leading comments added from previous node (fixes #5531) (Kai Cataldo)
+* c335650 Docs: correct the no-confusing-arrow docs (Daniel Norman)
+* e94b77d Fix: Respect 'ignoreTrailingComments' in max-len rule (fixes #5563) (Vamshi Krishna)
+* 9289ef8 Fix: handle personal package.json without config (fixes #5496) (Denny Christochowitz)
+* 87d74b2 Fix: `prefer-const` got to not change scopes (refs #5284) (Toru Nagashima)
+* 5a881e7 Docs: Fix typo in code snippet for no-unmodified-loop-condition rule (Chris Rebert)
+* 03037c2 Update: Overrides for space-unary-ops (fixes #5060) (Afnan Fahim)
+* 24d986a Update: replace MD5 hashing of cache files with MurmurHash (fixes #5522) (Michael Ficarra)
+* f405030 Fix: Ensure allowing `await` as a property name (fixes #5564) (Toru Nagashima)
+* aefc90c Fix: `no-useless-constructor` clash (fixes #5573) (Toru Nagashima)
+* 9eaa20d Docs: Fix typo in CLI help message (ryym)
+* a7c3e67 Docs: Invalid json in `configuring.md` (alberto)
+* 4e50332 Docs: Make `prefer-template` examples consistent. (alberto)
+* cfc14a9 Fix: valid-jsdoc correctly checks type union (fixes #5260) (Kai Cataldo)
+* 689cb7d Fix: `quote-props` false positive on certain keys (fixes #5532) (Burak Yigit Kaya)
+* 167a03a Fix: `brace-style` erroneously ignoring certain errors (fixes #5197) (Burak Yigit Kaya)
+* 3133f28 Fix: object-curly-spacing doesn't know types (fixes #5537) (fixes #5538) (Burak Yigit Kaya)
+* d0ca171 Docs: Separate parser and config questions in issue template (Kevin Partington)
+* bc769ca Fix: Improve file path resolution (fixes #5314) (Ian VanSchooten)
+* 9ca8567 Docs: Distinguish examples in rules under Best Practices part 3 (Mark Pedrotti)
+* b9c69f1 Docs: Distinguish examples in rules under Variables part 2 (Mark Pedrotti)
+* c289414 New: `no-duplicate-imports` rule (fixes #3478) (Simen Bekkhus)
+
+v2.4.0 - March 11, 2016
+
+* 97b2466 Fix: estraverse/escope to work with unknowns (fixes #5476) (Nicholas C. Zakas)
+* 641b3f7 Fix: validate the type of severity level (fixes #5499) (Shinnosuke Watanabe)
+* 9ee8869 Docs: no-unused-expressions - add more edge unusable and usable examples (Brett Zamir)
+* 56bf864 Docs: Create parity between no-sequences examples (Brett Zamir)
+* 13ef1c7 New: add `--parser-options` to CLI (fixes #5495) (Jordan Harband)
+* ae1ee54 Docs: fix func-style arrow exception option (Craig Martin)
+* 91852fd Docs: no-lone-blocks - show non-problematic (and problematic) label (Brett Zamir)
+* b34458f Docs: Rearrange rules for better categories (and improve rule summaries) (Brett Zamir)
+* 1198b26 Docs: Minor README clarifications (Brett Zamir)
+* 03e6869 Fix: newline-before-return: bug with comment (fixes #5480) (mustafa)
+* ad100fd Fix: overindent in VariableDeclarator parens or brackets (fixes #5492) (David Greenspan)
+* 9b8e04b Docs: Replace all node references to Node.js which is the official name (Brett Zamir)
+* cc1f2f0 Docs: Minor fixes in no-new-func (Brett Zamir)
+* 6ab81d4 Docs: Distinguish examples in rules under Best Practices part 1 (Mark Pedrotti)
+* 9c6c70c Update: add `allowParens` option to `no-confusing-arrow` (fixes #5332) (Burak Yigit Kaya)
+* 979c096 Docs: Document linebreak-style as fixable. (Afnan Fahim)
+* 9f18a81 Fix: Ignore destructuring assignment in `object-shorthand` (fixes #5488) (alberto)
+* 5d9a798 Docs: README.md, prefer-const; change modified to reassigned (Michiel de Bruijne)
+* 38eb7f1 Fix: key-spacing checks ObjectExpression is multiline (fixes #5479) (Kevin Partington)
+* 9592c45 Fix: `no-unmodified-loop-condition` false positive (fixes #5445) (Toru Nagashima)
+
+v2.3.0 - March 4, 2016
+
+* 1b2c6e0 Update: Proposed no-magic-numbers option: ignoreJSXNumbers (fixes #5348) (Brandon Beeks)
+* 63c0b7d Docs: Fix incorrect environment ref. in Rules in Plugins. (fixes #5421) (Jesse McCarthy)
+* 124c447 Build: Add additional linebreak to docs (fixes #5464) (Ilya Volodin)
+* 0d3831b Docs: Add RuleTester parserOptions migration steps (Kevin Partington)
+* 50f4d5a Fix: extends chain (fixes #5411) (Toru Nagashima)
+* 0547072 Update: Replace getLast() with lodash.last() (fixes #5456) (Jordan Eldredge)
+* 8c29946 Docs: Distinguish examples in rules under Possible Errors part 1 (Mark Pedrotti)
+* 5319b4a Docs: Distinguish examples in rules under Possible Errors part 2 (Mark Pedrotti)
+* 1da2420 Fix: crash when SourceCode object was reused (fixes #5007) (Toru Nagashima)
+* 9e9daab New: newline-before-return rule (fixes #5009) (Kai Cataldo)
+* e1bbe45 Fix: Check space after anonymous generator star (fixes #5435) (alberto)
+* 119e0ed Docs: Distinguish examples in rules under Variables (Mark Pedrotti)
+* 905c049 Fix: `no-undef` false positive at new.target (fixes #5420) (Toru Nagashima)
+* 4a67b9a Update: Add ES7 support (fixes #5401) (Brandon Mills)
+* 89c757d Docs: Replace ecmaFeatures with parserOptions in working-with-rules (Kevin Partington)
+* 804c08e Docs: Add parserOptions to RuleTester section of working-with-rules (Kevin Partington)
+* 1982c50 Docs: Document string option for `no-unused-vars`. (alberto)
+* 4f82b2b Update: Support classes in `padded-blocks` (fixes #5092) (alberto)
+* ed5564f Docs: Specify results of `no-unused-var` with `args` (fixes #5334) (chinesedfan)
+* de0a4ef Fix: `getFormatter` throws an error when called as static (fixes #5378) (cowchimp)
+* 78f7ca9 Fix: Prevent crash from swallowing console.log (fixes #5381) (Ian VanSchooten)
+* 34b648d Fix: remove tests which have invalid syntax (fixes #5405) (Toru Nagashima)
+* 7de5ae4 Docs: Missing allow option in docs (Scott O'Hara)
+* cf14c71 Fix: `no-useless-constructor` rule crashes sometimes (fixes #5290) (Burak Yigit Kaya)
+* 70e3a02 Update: Allow string severity in config (fixes #3626) (Nicholas C. Zakas)
+* 13c7c19 Update: Exclude ES5 constructors from consistent-return (fixes #5379) (Kevin Locke)
+* 784d3bf Fix: Location info in `dot-notation` rule (fixes #5397) (Gyandeep Singh)
+* 6280b2d Update: Support switch statements in padded-blocks (fixes #5056) (alberto)
+* 25a5b2c Fix: Allow irregular whitespace in comments (fixes #5368) (Christophe Porteneuve)
+* 560c0d9 New: no-restricted-globals rule implementation (fixes #3966) (Benoît Zugmeyer)
+* c5bb478 Fix: `constructor-super` false positive after a loop (fixes #5394) (Toru Nagashima)
+* 6c0c4aa Docs: Add Issue template (fixes #5313) (Kai Cataldo)
+* 1170e67 Fix: indent rule doesn't handle constructor instantiation (fixes #5384) (Nate Cavanaugh)
+* 6bc9932 Fix: Avoid magic numbers in rule options (fixes #4182) (Brandon Beeks)
+* 694e1c1 Fix: Add tests to cover default magic number tests (fixes #5385) (Brandon Beeks)
+* 0b5349d Fix: .eslintignore paths should be absolute (fixes #5362) (alberto)
+* 8f6c2e7 Update: Better error message for plugins (refs #5221) (Nicholas C. Zakas)
+* 972d41b Update: Improve error message for rule-tester (fixes #5369) (Jeroen Engels)
+* fe3f6bd Fix: `no-self-assign` false positive at shorthand (fixes #5371) (Toru Nagashima)
+* 2376291 Docs: Missing space in `no-fallthrough` doc. (alberto)
+* 5aedb87 Docs: Add mysticatea as reviewer (Nicholas C. Zakas)
+* 1f9fd10 Update: no-invalid-regexp allows custom flags (fixes #5249) (Afnan Fahim)
+* f1eab9b Fix: Support for dash and slash in `valid-jsdoc` (fixes #1598) (Gyandeep Singh)
+* cd12a4b Fix:`newline-per-chained-call` should only warn on methods (fixes #5289) (Burak Yigit Kaya)
+* 0d1377d Docs: Add missing `symbol` type into valid list (Plusb Preco)
+* 6aa2380 Update: prefer-const; change modified to reassigned (fixes #5350) (Michiel de Bruijne)
+* d1d62c6 Fix: indent check for else keyword with Stroustrup style (fixes #5218) (Gyandeep Singh)
+* 7932f78 Build: Fix commit message validation (fixes #5340) (Nicholas C. Zakas)
+* 1c347f5 Fix: Cleanup temp files from tests (fixes #5338) (Nick)
+* 2f3e1ae Build: Change rules to warnings in perf test (fixes #5330) (Brandon Mills)
+* 36f40c2 Docs: Achieve consistent order of h2 in rule pages (Mark Pedrotti)
+
+v2.2.0 - February 19, 2016
+
+* 45a22b5 Docs: remove esprima-fb from suggested parsers (Henry Zhu)
+* a4d9cd3 Docs: Fix semi rule typo (Brandon Mills)
+* 9d005c0 Docs: Correct option name in `no-implicit-coercion` rule (Neil Kistner)
+* 2977248 Fix: Do not cache `.eslintrc.js` (fixes #5067) (Nick)
+* 211eb8f Fix: no-multi-spaces conflicts with smart tabs (fixes #2077) (Afnan Fahim)
+* 6dc9483 Fix: Crash in `constructor-super` (fixes #5319) (Burak Yigit Kaya)
+* 3f48875 Docs: Fix yield star spacing examples (Dmitriy Lazarev)
+* 4dab76e Docs: Update `preferType` heading to keep code format (fixes #5307) (chinesedfan)
+* 7020b82 Fix: `sort-imports` warned between default and members (fixes #5305) (Toru Nagashima)
+* 2f4cd1c Fix: `constructor-super` and `no-this-before-super` false (fixes #5261) (Toru Nagashima)
+* 59e9c5b New: eslint-disable-next-line (fixes #5206) (Kai Cataldo)
+* afb6708 Fix: `indent` rule forgot about some CallExpressions (fixes #5295) (Burak Yigit Kaya)
+* d18d406 Docs: Update PR creation bot message (fixes #5268) (Nicholas C. Zakas)
+* 0b1cd19 Fix: Ignore parser option if set to default parser (fixes #5241) (Kai Cataldo)
+
+v2.1.0 - February 15, 2016
+
+* 7981ef5 Build: Fix release script (Nicholas C. Zakas)
+* c9c34ea Fix: Skip computed members in `newline-per-chained-call` (fixes #5245) (Burak Yigit Kaya)
+* b32ddad Build: `npm run perf` command should check the exit code (fixes #5279) (Burak Yigit Kaya)
+* 6580d1c Docs: Fix incorrect `api.verify` JSDoc for `config` param (refs #5104) (Burak Yigit Kaya)
+* 1f47868 Docs: Update yield-star-spacing documentation for 2.0.0 (fixes #5272) (Burak Yigit Kaya)
+* 29da8aa Fix: `newline-after-var` crash on a switch statement (fixes #5277) (Toru Nagashima)
+* 86c5a20 Fix: `func-style` should ignore ExportDefaultDeclarations (fixes #5183) (Burak Yigit Kaya)
+* ba287aa Fix: Consolidate try/catches to top levels (fixes #5243) (Ian VanSchooten)
+* 3ef5da1 Docs: Update no-magic-numbers#ignorearrayindexes. (KazuakiM)
+* 0d6850e Update: Allow var declaration at end of block (fixes #5246) (alberto)
+* c1e3a73 Fix: Popular style init handles missing package.json keys (refs #5243) (Brandon Mills)
+* 68c6e22 Docs: fix default value of `keyword-spacing`'s overrides option. (Toru Nagashima)
+* 00fe46f Upgrade: inquirer (fixes #5265) (Bogdan Chadkin)
+* ef729d7 Docs: Remove option that is not being used in max-len rule (Thanos Lefteris)
+* 4a5ddd5 Docs: Fix rule config above examples for require-jsdoc (Thanos Lefteris)
+* c5cbc1b Docs: Add rule config above each example in jsx-quotes (Thanos Lefteris)
+* f0aceba Docs: Correct alphabetical ordering in rule list (Randy Coulman)
+* 1651ffa Docs: update migrating to 2.0.0 (fixes #5232) (Toru Nagashima)
+* 9078537 Fix: `indent` on variable declaration with separate array (fixes #5237) (Burak Yigit Kaya)
+* f8868b2 Docs: Typo fix in consistent-this rule doc fixes #5240 (Nicolas Froidure)
+* 44f6915 Fix: ESLint Bot mentions the wrong person for extra info (fixes #5229) (Burak Yigit Kaya)
+* c612a8e Fix: `no-empty-function` crash (fixes #5227) (Toru Nagashima)
+* ae663b6 Docs: Add links for issue documentation (Nicholas C. Zakas)
+* 717bede Build: Switch to using eslint-release (fixes #5223) (Nicholas C. Zakas)
+* 980e139 Fix: Combine all answers for processAnswers (fixes #5220) (Ian VanSchooten)
+* 1f2a1d5 Docs: Remove inline errors from doc examples (fixes #4104) (Burak Yigit Kaya)
+
+v2.0.0 - February 12, 2016
+
+* cc3a66b Docs: Issue message when more info is needed (Nicholas C. Zakas)
+* 2bc40fa Docs: Simplify hierarchy of headings in rule pages (Mark Pedrotti)
+* 1666254 Docs: Add note about only-whitespace rule for `--fix` (fixes #4774) (Burak Yigit Kaya)
+* 2fa09d2 Docs: Add `quotes` to related section of `prefer-template` (fixes #5192) (Burak Yigit Kaya)
+* 7b12995 Fix: `key-spacing` not enforcing no-space in minimum mode (fixes #5008) (Burak Yigit Kaya)
+* c1c4f4d Breaking: new `no-empty-function` rule (fixes #5161) (Toru Nagashima)
+
+v2.0.0-rc.1 - February 9, 2016
+
+* 4dad82a Update: Adding shared environment for node and browser (refs #5196) (Eli White)
+* b46c893 Fix: Config file relative paths (fixes #5164, fixes #5160) (Nicholas C. Zakas)
+* aa5b2ac Fix: no-whitespace-before-property fixes (fixes #5167) (Kai Cataldo)
+* 4e99924 Update: Replace several dependencies with lodash (fixes #5012) (Gajus Kuizinas)
+* 718dc68 Docs: Remove periods in rules' README for consistency. (alberto)
+* 7a47085 Docs: Correct `arrow-spacing` overview. (alberto)
+* a4cde1b Docs: Clarify global-require inside try/catch (fixes #3834) (Brandon Mills)
+* fd07925 Docs: Clarify docs for api.verify (fixes #5101, fixes #5104) (Burak Yigit Kaya)
+* 413247f New: Add a --print-config flag (fixes #5099) (Christopher Crouzet)
+* efeef42 Update: Implement auto fix for space-in-parens (fixes #5050) (alberto)
+* e07fdd4 Fix: code path analysis and labels (fixes #5171) (Toru Nagashima)
+* 2417bb2 Fix: `no-unmodified-loop-condition` false positive (fixes #5166) (Toru Nagashima)
+* fae1884 Fix: Allow same-line comments in padded-blocks (fixes #5055) (Brandon Mills)
+* a24d8ad Fix: Improve autoconfig logging (fixes #5119) (Ian VanSchooten)
+* e525923 Docs: Correct obvious inconsistencies in rules h2 elements (Mark Pedrotti)
+* 9675b5e Docs: `avoid-escape` does not allow backticks (fixes #5147) (alberto)
+* a03919a Fix: `no-unexpected-multiline` false positive (fixes #5148) (Feross Aboukhadijeh)
+* 74360d6 Docs: Note no-empty applies to empty block statements (fixes #5105) (alberto)
+* 6eeaa3f Build: Remove pending tests (fixes #5126) (Ian VanSchooten)
+* 02c83df Docs: Update docs/rules/no-plusplus.md (Sheldon Griffin)
+* 0c4de5c New: Added "table" formatter (fixes #4037) (Gajus Kuizinas)
+* 0a59926 Update: 'implied strict mode' ecmaFeature (fixes #4832) (Nick Evans)
+* 53a6eb3 Fix: Handle singular case in rule-tester error message (fixes #5141) (Bryan Smith)
+* 97ac91c Build: Increment eslint-config-eslint (Nicholas C. Zakas)
+
+v2.0.0-rc.0 - February 2, 2016
+
+* 973c499 Fix: `sort-imports` crash (fixes #5130) (Toru Nagashima)
+* e64b2c2 Breaking: remove `no-empty-label` (fixes #5042) (Toru Nagashima)
+* 79ebbc9 Breaking: update `eslint:recommended` (fixes #5103) (Toru Nagashima)
+* e1d7368 New: `no-extra-label` rule (fixes #5059) (Toru Nagashima)
+* c83b48c Fix: find ignore file only in cwd (fixes #5087) (Nicholas C. Zakas)
+* 3a24240 Docs: Fix jsdoc param names to match function param names (Thanos Lefteris)
+* 1d79746 Docs: Replace ecmaFeatures setting with link to config page (Thanos Lefteris)
+* e96ffd2 New: `template-curly-spacing` rule (fixes #5049) (Toru Nagashima)
+* 4b02902 Update: Extended no-console rule (fixes #5095) (EricHenry)
+* 757651e Docs: Remove reference to rules enabled by default (fixes #5100) (Brandon Mills)
+* 0d87f5d Docs: Clarify eslint-disable comments only affect rules (fixes #5005) (Brandon Mills)
+* 1e791a2 New: `no-self-assign` rule (fixes #4729) (Toru Nagashima)
+* c706eb9 Fix: reduced `no-loop-func` false positive (fixes #5044) (Toru Nagashima)
+* 3275e86 Update: Add extra aliases to consistent-this rule (fixes #4492) (Zachary Alexander Belford)
+* a227360 Docs: Replace joyent org with nodejs (Thanos Lefteris)
+* b2aedfe New: Rule to enforce newline after each call in the chain (fixes #4538) (Rajendra Patil)
+* d67bfdd New: `no-unused-labels` rule (fixes #5052) (Toru Nagashima)
+
+v2.0.0-beta.3 - January 29, 2016
+
+* 86a3e3d Update: Remove blank lines at beginning of files (fixes #5045) (Jared Sohn)
+* 4fea752 New: Autoconfiguration from source inspection (fixes #3567) (Ian VanSchooten)
+* 519f39f Breaking: Remove deprecated rules (fixes #5032) (Gyandeep Singh)
+* c75ee4a New: Add support for configs in plugins (fixes #3659) (Ilya Volodin)
+* 361377f Fix: `prefer-const` false positive reading before writing (fixes #5074) (Toru Nagashima)
+* ff2551d Build: Improve `npm run perf` command (fixes #5028) (Toru Nagashima)
+* bcca69b Update: add int32Hint option to `no-bitwise` rule (fixes #4873) (Maga D. Zandaqo)
+* e3f2683 Update: config extends dependency lookup (fixes #5023) (Nicholas C. Zakas)
+* a327a06 Fix: Indent rule for allman brace style scenario (fixes #5064) (Gyandeep Singh)
+* afdff6d Fix: `no-extra-bind` false positive (fixes #5058) (Toru Nagashima)
+* c1fad4f Update: add autofix support for spaced-comment (fixes #4969, fixes #5030) (Maga D. Zandaqo)
+* 889b942 Revert "Docs: Update readme for legend describing rules icons (refs #4355)" (Nicholas C. Zakas)
+* b0f21a0 Fix: `keyword-spacing` false positive in template strings (fixes #5043) (Toru Nagashima)
+* 53fa5d1 Fix: `prefer-const` false positive in a loop condition (fixes #5024) (Toru Nagashima)
+* 385d399 Docs: Update readme for legend describing rules icons (Kai Cataldo)
+* 505f1a6 Update: Allow parser to be relative to config (fixes #4985) (Nicholas C. Zakas)
+* 79e8a0b New: `one-var-declaration-per-line` rule (fixes #1622) (alberto)
+* 654e6e1 Update: Check extra Boolean calls in no-extra-boolean-cast (fixes #3650) (Andrew Sutton)
+
+v2.0.0-beta.2 - January 22, 2016
+
+* 3fa834f Docs: Fix formatter links (fixes #5006) (Gyandeep Singh)
+* 54b1bc8 Docs: Fix link in strict.md (fixes #5026) (Nick Evans)
+* e0c5cf7 Upgrade: Espree to 3.0.0 (fixes #5018) (Ilya Volodin)
+* 69f149d Docs: language tweaks (Andres Kalle)
+* 2b33c74 Update: valid-jsdoc to not require @return in constructors (fixes #4976) (Maga D. Zandaqo)
+* 6ac2e01 Docs: Fix description of exported comment (Mickael Jeanroy)
+* 29392f8 New: allow-multiline option on comma-dangle (fixes #4967) (Alberto Gimeno)
+* 05b8cb3 Update: Module overrides all 'strict' rule options (fixes #4936) (Nick Evans)
+* 8470474 New: Add metadata to few test rules (fixes #4494) (Ilya Volodin)
+* ba11c1b Docs: Add Algolia as sponsor to README (Nicholas C. Zakas)
+* b28a19d Breaking: Plugins envs and config removal (fixes #4782, fixes #4952) (Nicholas C. Zakas)
+* a456077 Docs: newline-after-var doesn't allow invalid options. (alberto)
+* 3e6a24e Breaking: Change `strict` default mode to "safe" (fixes #4961) (alberto)
+* 5b96265 Breaking: Update eslint:recommended (fixes #4953) (alberto)
+* 7457a4e Upgrade: glob to 6.x (fixes #4991) (Gyandeep Singh)
+* d3f4bdd Build: Cleanup for code coverage (fixes #4983) (Gyandeep Singh)
+* b8fbaa0 Fix: multiple message in TAP formatter (fixes #4975) (Simon Degraeve)
+* 990f8da Fix: `getNodeByRangeIndex` performance issue (fixes #4989) (Toru Nagashima)
+* 8ac1dac Build: Update markdownlint dependency to 0.1.0 (fixes #4988) (David Anson)
+* 5cd5429 Fix: function expression doc in call expression (fixes #4964) (Tim Schaub)
+* 4173baa Fix: `no-dupe-class-members` false positive (fixes #4981) (Toru Nagashima)
+* 12fe803 Breaking: Supports Unicode BOM (fixes #4878) (Toru Nagashima)
+* 1fc80e9 Build: Increment eslint-config-eslint (Nicholas C. Zakas)
+* e0a9024 Update: Report newline between template tag and literal (fixes #4210) (Rajendra Patil)
+* da3336c Update: Rules should get `sourceType` from Program node (fixes #4960) (Nick Evans)
+* a2ac359 Update: Make jsx-quotes fixable (refs #4377) (Gabriele Petronella)
+* ee1014d Fix: Incorrect error location for object-curly-spacing (fixes #4957) (alberto)
+* b52ed17 Fix: Incorrect error location for space-in-parens (fixes #4956) (alberto)
+* 9c1bafb Fix: Columns of parse errors are off by 1 (fixes #4896) (alberto)
+* 5e4841e New: 'id-blacklist' rule (fixes #3358) (Keith Cirkel)
+* 700b8bc Update: Add "allow" option to allow specific operators (fixes #3308) (Rajendra Patil)
+* d82eeb1 Update: Add describe around rule tester blocks (fixes #4907) (Ilya Volodin)
+* 2967402 Update: Add minimum value to integer values in schema (fixes #4941) (Ilya Volodin)
+* 7b632f8 Upgrade: Globals to ^8.18.0 (fixes #4728) (Gyandeep Singh)
+* 86e6e57 Fix: Incorrect error at EOF for no-multiple-empty-lines (fixes #4917) (alberto)
+* 7f058f3 Fix: Incorrect location for padded-blocks (fixes #4913) (alberto)
+* b3de8f7 Fix: Do not show ignore messages for default ignored files (fixes #4931) (Gyandeep Singh)
+* b1360da Update: Support multiLine and singleLine options (fixes #4697) (Rajendra Patil)
+* 82fbe09 Docs: Small semantic issue in documentation example (fixes #4937) (Marcelo Zarate)
+* 13a4e30 Docs: Formatting inconsistencies (fixes #4912) (alberto)
+* d487013 Update: Option to allow extra parens for cond assign (fixes #3317) (alberto)
+* 0f469b4 Fix: JSDoc for function expression on object property (fixes #4900) (Tim Schaub)
+* c2dee27 Update: Add module tests to no-extra-semi (fixes #4915) (Nicholas C. Zakas)
+* 5a633bf Update: Add `preferType` option to `valid-jsdoc` rule (fixes #3056) (Gyandeep Singh)
+* ebd01b7 Build: Fix version number on release (fixes #4921) (Nicholas C. Zakas)
+* 2d626a3 Docs: Fix typo in changelog (Nicholas C. Zakas)
+* c4c4139 Fix: global-require no longer warns if require is shadowed (fixes #4812) (Kevin Partington)
+* bbf7f27 New: provide config.parser via `parserName` on RuleContext (fixes #3670) (Ben Mosher)
+
+v2.0.0-beta.1 - January 11, 2016
+
+* 6c70d84 Build: Fix prerelease script (fixes #4919) (Nicholas C. Zakas)
+* d5c9435 New: 'sort-imports' rule (refs #3143) (Christian Schuller)
+* a8cfd56 Fix: remove duplicate of eslint-config-eslint (fixes #4909) (Toru Nagashima)
+* 19a9fbb Breaking: `space-before-blocks` ignores after keywords (fixes #1338) (Toru Nagashima)
+* c275b41 Fix: no-extra-parens ExpressionStatement restricted prods (fixes #4902) (Michael Ficarra)
+* b795850 Breaking: don't load ~/.eslintrc when using --config flag (fixes #4881) (alberto)
+* 3906481 Build: Add AppVeyor CI (fixes #4894) (Gyandeep Singh)
+* 6390862 Docs: Fix missing footnote (Yoshiya Hinosawa)
+* e5e06f8 Fix: Jsdoc comment for multi-line function expressions (fixes #4889) (Gyandeep Singh)
+* 7c9be60 Fix: Fix path errors in windows (fixes #4888) (Gyandeep Singh)
+* a1840e7 Fix: gray text was invisible on Solarized Dark theme (fixes #4886) (Jack Leigh)
+* fc9f528 Docs: Modify unnecessary flag docs in quote-props (Matija Marohnić)
+* 186e8f0 Update: Ignore camelcase in object destructuring (fixes #3185) (alberto)
+* 7c97201 Upgrade: doctrine version to 1.1.0 (fixes #4854) (Tim Schaub)
+* ceaf324 New: Add no-new-symbol rule (fixes #4862) (alberto)
+* e2f2b66 Breaking: Remove defaults from `eslint:recommended` (fixes #4809) (Ian VanSchooten)
+* 0b3c01e Docs: Specify default for func-style (fixes #4834) (Ian VanSchooten)
+* 008ea39 Docs: Document default for operator assignment (fixes #4835) (alberto)
+* b566f56 Docs: no-new-func typo (alberto)
+* 1569695 Update: Adds default 'that' for consistent-this (fixes #4833) (alberto)
+* f7b28b7 Docs: clarify `requireReturn` option for valid-jsdoc rule (fixes #4859) (Tim Schaub)
+* 407f329 Build: Fix prerelease script (Nicholas C. Zakas)
+* 688f277 Fix: Set proper exit code for Node > 0.10 (fixes #4691) (Nicholas C. Zakas)
+* 58715e9 Fix: Use single quotes in context.report messages (fixes #4845) (Joe Lencioni)
+* 5b7586b Fix: do not require a @return tag for @interface (fixes #4860) (Tim Schaub)
+* d43f26c Breaking: migrate from minimatch to node-ignore (fixes #2365) (Stefan Grönke)
+* c07ca39 Breaking: merges keyword spacing rules (fixes #3869) (Toru Nagashima)
+* 871f534 Upgrade: Optionator version to 0.8.1 (fixes #4851) (Eric Johnson)
+* 82d4cd9 Update: Add atomtest env (fixes #4848) (Andres Suarez)
+* 9c9beb5 Update: Add "ignore" override for operator-linebreak (fixes #4294) (Rajendra Patil)
+* 9c03abc Update: Add "allowCall" option (fixes #4011) (Rajendra Patil)
+* 29516f1 Docs: fix migration guide for no-arrow-condition rule (Peter Newnham)
+* 2ef7549 Docs: clarify remedy to some prefer-const errors (Turadg Aleahmad)
+* 1288ba4 Update: Add default limit to `complexity` (fixes #4808) (Ian VanSchooten)
+* d3e8179 Fix: env is rewritten by modules (fixes #4814) (Toru Nagashima)
+* fd72aba Docs: Example fix for `no-extra-parens` rule (fixes #3527) (Gyandeep Singh)
+* 315f272 Fix: Change max-warnings type to Int (fixes #4660) (George Zahariev)
+* 5050768 Update: Ask for `commonjs` under config init (fixes #3553) (Gyandeep Singh)
+* 4665256 New: Add no-whitespace-before-property rule (fixes #1086) (Kai Cataldo)
+* f500d7d Fix: allow extending @scope/eslint/file (fixes #4800) (André Cruz)
+* 5ab564e New: 'ignoreArrayIndexes' option for 'no-magic-numbers' (fixes #4370) (Christian Schuller)
+* 97cdb95 New: Add no-useless-constructor rule (fixes #4785) (alberto)
+* b9bcbaf Fix: Bug in no-extra-bind (fixes #4806) (Andres Kalle)
+* 246a6d2 Docs: Documentation fix (Andres Kalle)
+* 9ea6b36 Update: Ignore case in jsdoc tags (fixes #4576) (alberto)
+* acdda24 Fix: ignore argument parens in no-unexpected-multiline (fixes #4658) (alberto)
+* 4931f56 Update: optionally allow bitwise operators (fixes #4742) (Swaagie)
+
+v2.0.0-alpha-2 - December 23, 2015
+
+* Build: Add prerelease script (Nicholas C. Zakas)
+* Update: Allow to omit semi for one-line blocks (fixes #4385) (alberto)
+* Fix: Handle getters and setters in key-spacing (fixes #4792) (Brandon Mills)
+* Fix: ObjectRestSpread throws error in key-spacing rule (fixes #4763) (Ziad El Khoury Hanna)
+* Docs: Typo in generator-star (alberto)
+* Fix: Backtick behavior in quotes rule (fixes #3090) (Nicholas C. Zakas)
+* Fix: Empty schemas forbid any options (fixes #4789) (Brandon Mills)
+* Fix: Remove `isMarkedAsUsed` function name (fixes #4783) (Gyandeep Singh)
+* Fix: support arrow functions in no-return-assign (fixes #4743) (alberto)
+* Docs: Add license header to Working with Rules guide (Brandon Mills)
+* Fix: RuleTester to show parsing errors (fixes #4779) (Nicholas C. Zakas)
+* Docs: Escape underscores in no-path-concat (alberto)
+* Update: configuration for classes in space-before-blocks (fixes #4089) (alberto)
+* Docs: Typo in no-useless-concat (alberto)
+* Docs: fix typos, suggests (molee1905)
+* Docs: Typos in space-before-keywords and space-unary-ops (fixes #4771) (alberto)
+* Upgrade: beefy to ^2.0.0, fixes installation errors (fixes #4760) (Kai Cataldo)
+* Docs: Typo in no-unexpected-multiline (fixes #4756) (alberto)
+* Update: option to ignore top-level max statements (fixes #4309) (alberto)
+* Update: Implement auto fix for semi-spacing rule (fixes #3829) (alberto)
+* Fix: small typos in code examples (Plusb Preco)
+* Docs: Add section on file extensions to user-guide/configuring (adam)
+* Fix: Comma first issue in `indent` (fixes #4739, fixes #3456) (Gyandeep Singh)
+* Fix: no-constant-condition false positive (fixes #4737) (alberto)
+* Fix: Add source property for fatal errors (fixes #3325) (Gyandeep Singh)
+* New: Add a comment length option to the max-len rule (fixes #4665) (Ian)
+* Docs: RuleTester doesn't require any tests (fixes #4681) (alberto)
+* Fix: Remove path analysis from debug log (fixes #4631) (Ilya Volodin)
+* Fix: Set null to property ruleId when fatal is true (fixes #4722) (Sébastien Règne)
+* New: Visual Studio compatible formatter (fixes #4708) (rhpijnacker)
+* New: Add greasemonkey environment (fixes #4715) (silverwind)
+* Fix: always-multiline for comma-dangle import (fixes #4704) (Nicholas C. Zakas)
+* Fix: Check 1tbs non-block else (fixes #4692) (Nicholas C. Zakas)
+* Fix: Apply environment configs last (fixes #3915) (Nicholas C. Zakas)
+* New: `no-unmodified-loop-condition` rule (fixes #4523) (Toru Nagashima)
+* Breaking: deprecate `no-arrow-condition` rule (fixes #4417) (Luke Karrys)
+* Update: Add cwd option for cli-engine (fixes #4472) (Ilya Volodin)
+* New: Add no-confusing-arrow rule (refs #4417) (Luke Karrys)
+* Fix: ensure `ConfigOps.merge` do a deep copy (fixes #4682) (Toru Nagashima)
+* Fix: `no-invalid-this` allows this in static method (fixes #4669) (Toru Nagashima)
+* Fix: Export class syntax for `require-jsdoc` rule (fixes #4667) (Gyandeep Singh)
+* Update: Add "safe" mode to strict (fixes #3306) (Brandon Mills)
+
+v2.0.0-alpha-1 - December 11, 2015
+
+* Breaking: Correct links between variables and references (fixes #4615) (Toru Nagashima)
+* Fix: Update rule tests for parser options (fixes #4673) (Nicholas C. Zakas)
+* Breaking: Implement parserOptions (fixes #4641) (Nicholas C. Zakas)
+* Fix: max-len rule overestimates the width of some tabs (fixes #4661) (Nick Evans)
+* New: Add no-implicit-globals rule (fixes #4542) (Joshua Peek)
+* Update: `no-use-before-define` checks invalid initializer (fixes #4280) (Toru Nagashima)
+* Fix: Use oneValuePerFlag for --ignore-pattern option (fixes #4507) (George Zahariev)
+* New: `array-callback-return` rule (fixes #1128) (Toru Nagashima)
+* Upgrade: Handlebars to >= 4.0.5 for security reasons (fixes #4642) (Jacques Favreau)
+* Update: Add class body support to `indent` rule (fixes #4372) (Gyandeep Singh)
+* Breaking: Remove space-after-keyword newline check (fixes #4149) (Nicholas C. Zakas)
+* Breaking: Treat package.json like the rest of configs (fixes #4451) (Ilya Volodin)
+* Docs: writing mistake (molee1905)
+* Update: Add 'method' option to no-empty (fixes #4605) (Kai Cataldo)
+* Breaking: Remove autofix from eqeqeq (fixes #4578) (Ilya Volodin)
+* Breaking: Remove ES6 global variables from builtins (fixes #4085) (Brandon Mills)
+* Fix: Handle forbidden LineTerminators in no-extra-parens (fixes #4229) (Brandon Mills)
+* Update: Option to ignore constructor Fns object-shorthand (fixes #4487) (Kai Cataldo)
+* Fix: Check YieldExpression argument in no-extra-parens (fixes #4608) (Brandon Mills)
+* Fix: Do not cache `package.json` (fixes #4611) (Spain)
+* Build: Consume no-underscore-dangle allowAfterThis option (fixes #4599) (Kevin Partington)
+* New: Add no-restricted-imports rule (fixes #3196) (Guy Ellis)
+* Docs: no-extra-semi no longer refers to deprecated rule (fixes #4598) (Kevin Partington)
+* Fix: `consistent-return` checks the last (refs #3530, fixes #3373) (Toru Nagashima)
+* Update: add class option to `no-use-before-define` (fixes #3944) (Toru Nagashima)
+* Breaking: Simplify rule schemas (fixes #3625) (Nicholas C. Zakas)
+* Docs: Update docs/rules/no-plusplus.md (Xiangyun Chi)
+* Breaking: added bower_components to default ignore (fixes #3550) (Julian Laval)
+* Fix: `no-unreachable` with the code path (refs #3530, fixes #3939) (Toru Nagashima)
+* Fix: `no-this-before-super` with the code path analysis (refs #3530) (Toru Nagashima)
+* Fix: `no-fallthrough` with the code path analysis (refs #3530) (Toru Nagashima)
+* Fix: `constructor-super` with the code path analysis (refs #3530) (Toru Nagashima)
+* Breaking: Switch to Espree 3.0.0 (fixes #4334) (Nicholas C. Zakas)
+* Breaking: Freeze context object (fixes #4495) (Nicholas C. Zakas)
+* Docs: Add Code of Conduct (fixes #3095) (Nicholas C. Zakas)
+* Breaking: Remove warnings of readonly from `no-undef` (fixes #4504) (Toru Nagashima)
+* Update: allowAfterThis option in no-underscore-dangle (fixes #3435) (just-boris)
+* Fix: Adding options unit tests for --ignore-pattern (refs #4507) (Kevin Partington)
+* Breaking: Implement yield-star-spacing rule (fixes #4115) (Bryan Smith)
+* New: `prefer-rest-params` rule (fixes #4108) (Toru Nagashima)
+* Update: `prefer-const` begins to cover separating init (fixes #4474) (Toru Nagashima)
+* Fix: `no-eval` come to catch indirect eval (fixes #4399, fixes #4441) (Toru Nagashima)
+* Breaking: Default no-magic-numbers to none. (fixes #4193) (alberto)
+* Breaking: Allow empty arrow body (fixes #4411) (alberto)
+* New: Code Path Analysis (fixes #3530) (Toru Nagashima)
+
+v1.10.3 - December 1, 2015
+
+* Docs: Update strict rule docs (fixes #4583) (Nicholas C. Zakas)
+* Docs: Reference .eslintrc.* in contributing docs (fixes #4532) (Kai Cataldo)
+* Fix: Add for-of to `curly` rule (fixes #4571) (Kai Cataldo)
+* Fix: Ignore space before function in array start (fixes #4569) (alberto)
+
+v1.10.2 - November 27, 2015
+
+* Upgrade: escope@3.3.0 (refs #4485) (Nicholas C. Zakas)
+* Upgrade: Pinned down js-yaml to avoid breaking dep (fixes #4553) (alberto)
+* Fix: lines-around-comment with multiple comments (fixes #3509) (alberto)
+* Upgrade: doctrine@0.7.1 (fixes #4545) (Kevin Partington)
+* Fix: Bugfix for eqeqeq autofix (fixes #4540) (Kevin Partington)
+* Fix: Add for-in to `curly` rule (fixes #4436) (Kai Cataldo)
+* Fix: `valid-jsdoc` unneeded require check fix (fixes #4527) (Gyandeep Singh)
+* Fix: `brace-style` ASI fix for if-else condition (fixes #4520) (Gyandeep Singh)
+* Build: Add branch update during release process (fixes #4491) (Gyandeep Singh)
+* Build: Allow revert commits in commit messages (fixes #4452) (alberto)
+* Fix: Incorrect location in no-fallthrough (fixes #4516) (alberto)
+* Fix: `no-spaced-func` had been crashed (fixes #4508) (Toru Nagashima)
+* Fix: Add a RestProperty test of `no-undef` (fixes #3271) (Toru Nagashima)
+* Docs: Load badge from HTTPS (Brian J Brennan)
+* Build: Update eslint bot messages (fixes #4497) (Nicholas C. Zakas)
+
+v1.10.1 - November 20, 2015
+
+* Fix: Revert freezing context object (refs #4495) (Nicholas C. Zakas)
+* 1.10.0 (Nicholas C. Zakas)
+
+v1.10.0 - November 20, 2015
+
+* Docs: Remove dupes from changelog (Nicholas C. Zakas)
+* Update: --init to create extensioned files (fixes #4476) (Nicholas C. Zakas)
+* Docs: Update description of exported comment (fixes #3916) (Nicholas C. Zakas)
+* Docs: Move legacy rules to stylistic (files #4111) (Nicholas C. Zakas)
+* Docs: Clean up description of recommended rules (fixes #4365) (Nicholas C. Zakas)
+* Docs: Fix home directory config description (fixes #4398) (Nicholas C. Zakas)
+* Update: Add class support to `require-jsdoc` rule (fixes #4268) (Gyandeep Singh)
+* Update: return type error in `valid-jsdoc` rule (fixes #4443) (Gyandeep Singh)
+* Update: Display errors at the place where fix should go (fixes #4470) (nightwing)
+* Docs: Fix typo in default `cacheLocation` value (Andrew Hutchings)
+* Fix: Handle comments in block-spacing (fixes #4387) (alberto)
+* Update: Accept array for `ignorePattern` (fixes #3982) (Jesse McCarthy)
+* Update: replace label and break with IIFE and return (fixes #4459) (Ilya Panasenko)
+* Fix: space-before-keywords false positive (fixes #4449) (alberto)
+* Fix: Improves performance (refs #3530) (Toru Nagashima)
+* Fix: Autofix quotes produces invalid javascript (fixes #4380) (nightwing)
+* Docs: Update indent.md (Nathan Brown)
+* New: Disable comment config option (fixes #3901) (Matthew Riley MacPherson)
+* New: Config files with extensions (fixes #4045, fixes #4263) (Nicholas C. Zakas)
+* Revert "Update: Add JSX exceptions to no-extra-parens (fixes #4229)" (Brandon Mills)
+* Update: Add JSX exceptions to no-extra-parens (fixes #4229) (Brandon Mills)
+* Docs: Replace link to deprecated rule with newer rule (Andrew Marshall)
+* Fix: `no-extend-native` crashed at empty defineProperty (fixes #4438) (Toru Nagashima)
+* Fix: Support empty if blocks in lines-around-comment (fixes #4339) (alberto)
+* Fix: `curly` warns wrong location for `else` (fixes #4362) (Toru Nagashima)
+* Fix: `id-length` properties never option (fixes #4347) (Toru Nagashima)
+* Docs: missing close rbracket in example (@storkme)
+* Revert "Update: Allow empty arrow body (fixes #4411)" (Nicholas C. Zakas)
+* Fix: eqeqeq autofix avoids clashes with space-infix-ops (fixes #4423) (Kevin Partington)
+* Docs: Document semi-spacing behaviour (fixes #4404) (alberto)
+* Update: Allow empty arrow body (fixes #4411) (alberto)
+* Fix: Handle comments in comma-spacing (fixes #4389) (alberto)
+* Update: Refactor eslint.verify args (fixes #4395) (Nicholas C. Zakas)
+* Fix: no-undef-init should ignore const (fixes #4284) (Nicholas C. Zakas)
+* Fix: Add the missing "as-needed" docs to the radix rule (fixes #4364) (Michał Gołębiowski)
+* Fix: Display singular/plural version of "line" in message (fixes #4359) (Marius Schulz)
+* Update: Add Popular Style Guides (fixes #4320) (Jamund Ferguson)
+* Fix: eslint.report can be called w/o node if loc provided (fixes #4220) (Kevin Partington)
+* Update: no-implicit-coercion validate AssignmentExpression (fixes #4348) (Ilya Panasenko)
+
+v1.9.0 - November 6, 2015
+
+* Update: Make radix accept a "as-needed" option (fixes #4048) (Michał Gołębiowski)
+* Fix: Update the message to include number of lines (fixes #4342) (Brian Delahunty)
+* Docs: ASI causes problem whether semicolons are used or not (Thai Pangsakulyanont)
+* Fix: Fixer to not overlap ranges among fix objects (fixes #4321) (Gyandeep Singh)
+* Update: Add default to `max-nested-callbacks` (fixes #4297) (alberto)
+* Fix: Check comments in space-in-parens (fixes #4302) (alberto)
+* Update: Add quotes to error messages to improve clarity (fixes #4313) (alberto)
+* Fix: tests failing due to differences in temporary paths (fixes #4324) (alberto)
+* Fix: Make tests compatible with Windows (fixes #4315) (Ian VanSchooten)
+* Update: Extract glob and filesystem logic from cli-engine (fixes #4305) (Ian VanSchooten)
+* Build: Clarify commit-check messages (fixes #4256) (Ian VanSchooten)
+* Upgrade: Upgrade various dependencies (fixes #4303) (Gyandeep Singh)
+* Build: Add node 5 to travis build (fixes #4310) (Gyandeep Singh)
+* Fix: ensure using correct estraverse (fixes #3951) (Toru Nagashima)
+* Docs: update docs about using gitignore (Mateusz Derks)
+* Update: Detect and fix wrong linebreaks (fixes #3981) (alberto)
+* New: Add no-case-declarations rule (fixes #4278) (Erik Arvidsson)
+
+v1.8.0 - October 30, 2015
+
+* Fix: Check for node property before testing type (fixes #4298) (Ian VanSchooten)
+* Docs: Specify 'double' as default for quotes (fixes #4270) (Ian VanSchooten)
+* Fix: Missing errors in space-in-parens (fixes #4257, fixes #3996) (alberto)
+* Docs: fixed typo (Mathieu M-Gosselin)
+* Fix: `cacheLocation` handles paths in windows style. (fixes #4285) (royriojas)
+* Docs: fixed typo (mpal9000)
+* Update: Add support for class in `valid-jsdoc` rule (fixes #4279) (Gyandeep Singh)
+* Update: cache-file accepts a directory. (fixes #4241) (royriojas)
+* Update: Add `maxEOF` to no-multiple-empty-lines (fixes #4235) (Adrien Vergé)
+* Update: fix option for comma-spacing (fixes #4232) (HIPP Edgar (PRESTA EXT))
+* Docs: Fix use of wrong word in configuration doc (Jérémie Astori)
+* Fix: Prepare config before verifying SourceCode (fixes #4230) (Ian VanSchooten)
+* Update: RuleTester come to check AST was not modified (fixes #4156) (Toru Nagashima)
+* Fix: wrong count for 'no-multiple-empty-lines' on last line (fixes #4228) (alberto)
+* Update: Add `allow` option to `no-shadow` rule (fixes #3035) (Gyandeep Singh)
+* Doc: Correct the spelling of Alberto's surname (alberto)
+* Docs: Add alberto as a committer (Gyandeep Singh)
+* Build: Do not stub console in testing (fixes #1328) (Gyandeep Singh)
+* Fix: Check node exists before checking type (fixes #4231) (Ian VanSchooten)
+* Update: Option to exclude afterthoughts from no-plusplus (fixes #4093) (Brody McKee)
+* New: Add rule no-arrow-condition (fixes #3280) (Luke Karrys)
+* Update: Add linebreak style option to eol-last (fixes #4148) (alberto)
+* New: arrow-body-style rule (fixes #4109) (alberto)
+
+v1.7.3 - October 21, 2015
+
+* Fix: Support comma-first style in key-spacing (fixes #3877) (Brandon Mills)
+* Fix: no-magic-numbers: variable declarations (fixes #4192) (Ilya Panasenko)
+* Fix: Support ES6 shorthand in key-spacing (fixes #3678) (Brandon Mills)
+* Fix: `indent` array with memberExpression (fixes #4203) (Gyandeep Singh)
+* Fix: `indent` param function on sameline (fixes #4174) (Gyandeep Singh)
+* Fix: no-multiple-empty-lines fails when empty line at EOF (fixes #4214) (alberto)
+* Fix: `comma-dangle` false positive (fixes #4200) (Nicholas C. Zakas)
+* Fix: `valid-jsdoc` prefer problem (fixes #4205) (Nicholas C. Zakas)
+* Docs: Add missing single-quote (Kevin Lamping)
+* Fix: correct no-multiple-empty-lines at EOF (fixes #4140) (alberto)
+
+v1.7.2 - October 19, 2015
+
+* Fix: comma-dangle confused by parens (fixes #4195) (Nicholas C. Zakas)
+* Fix: no-mixed-spaces-and-tabs (fixes #4189, fixes #4190) (alberto)
+* Fix: no-extend-native disallow using Object.properties (fixes #4180) (Nathan Woltman)
+* Fix: no-magic-numbers should ignore Number.parseInt (fixes #4167) (Henry Zhu)
+
+v1.7.1 - October 16, 2015
+
+* Fix: id-match schema (fixes #4155) (Nicholas C. Zakas)
+* Fix: no-magic-numbers should ignore parseInt (fixes #4167) (Nicholas C. Zakas)
+* Fix: `indent` param function fix (fixes #4165, fixes #4164) (Gyandeep Singh)
+
+v1.7.0 - October 16, 2015
+
+* Fix: array-bracket-spacing for empty array (fixes #4141) (alberto)
+* Fix: `indent` arrow function check fix (fixes #4142) (Gyandeep Singh)
+* Update: Support .js files for config (fixes #3102) (Gyandeep Singh)
+* Fix: Make eslint-config-eslint work (fixes #4145) (Nicholas C. Zakas)
+* Fix: `prefer-arrow-callback` had been wrong at arguments (fixes #4095) (Toru Nagashima)
+* Docs: Update various rules docs (Nicholas C. Zakas)
+* New: Create eslint-config-eslint (fixes #3525) (Nicholas C. Zakas)
+* Update: RuleTester allows string errors in invalid cases (fixes #4117) (Kevin Partington)
+* Docs: Reference no-unexpected-multiline in semi (fixes #4114) (alberto)
+* Update: added exceptions to `lines-around-comment` rule. (fixes #2965) (Mathieu M-Gosselin)
+* Update: Add `matchDescription` option to `valid-jsdoc` (fixes #2449) (Gyandeep Singh)
+* Fix: check for objects or arrays in array-bracket-spacing (fixes #4083) (alberto)
+* Docs: Alphabetize Rules lists (Kenneth Chung)
+* Fix: message templates fail when no parameters are passed (fixes #4080) (Ilya Volodin)
+* Fix: `indent` multi-line function call (fixes #4073, fixes #4075) (Gyandeep Singh)
+* Docs: Improve comma-dangle documentation (Gilad Peleg)
+* Fix: no-mixed-tabs-and-spaces fails with some comments (fixes #4086) (alberto)
+* Fix: `semi` to check for do-while loops (fixes #4090) (Gyandeep Singh)
+* Build: Fix path related failures on Windows in tests (fixes #4061) (Burak Yigit Kaya)
+* Fix: `no-unused-vars` had been missing some parameters (fixes #4047) (Toru Nagashima)
+* Fix: no-mixed-spaces-and-tabs with comments and templates (fixes #4077) (alberto)
+* Update: Add `allow` option for `no-underscore-dangle` rule (fixes #2135) (Gyandeep Singh)
+* Update: `allowArrowFunctions` option for `func-style` rule (fixes #1897) (Gyandeep Singh)
+* Fix: Ignore template literals in no-mixed-tabs-and-spaces (fixes #4054) (Nicholas C. Zakas)
+* Build: Enable CodeClimate (fixes #4068) (Nicholas C. Zakas)
+* Fix: `no-cond-assign` had needed double parens in `for` (fixes #4023) (Toru Nagashima)
+* Update: Ignore end of function in newline-after-var (fixes #3682) (alberto)
+* Build: Performance perf to not ignore jshint file (refs #3765) (Gyandeep Singh)
+* Fix: id-match bug incorrectly errors on `NewExpression` (fixes #4042) (Burak Yigit Kaya)
+* Fix: `no-trailing-spaces` autofix to handle linebreaks (fixes #4050) (Gyandeep Singh)
+* Fix: renamed no-magic-number to no-magic-numbers (fixes #4053) (Vincent Lemeunier)
+* New: add "consistent" option to the "curly" rule (fixes #2390) (Benoît Zugmeyer)
+* Update: Option to ignore for loops in init-declarations (fixes #3641) (alberto)
+* Update: Add webextensions environment (fixes #4051) (Blake Winton)
+* Fix: no-cond-assign should report assignment location (fixes #4040) (alberto)
+* New: no-empty-pattern rule (fixes #3668) (alberto)
+* Upgrade: Upgrade globals to 8.11.0 (fixes #3599) (Burak Yigit Kaya)
+* Docs: Re-tag JSX code fences (fixes #4020) (Brandon Mills)
+* New: no-magic-number rule (fixes #4027) (Vincent Lemeunier)
+* Docs: Remove list of users from README (fixes #3881) (Brandon Mills)
+* Fix: `no-redeclare` and `no-sahadow` for builtin globals (fixes #3971) (Toru Nagashima)
+* Build: Add `.eslintignore` file for the project (fixes #3765) (Gyandeep Singh)
+
+v1.6.0 - October 2, 2015
+
+* Fix: cache is basically not working (fixes #4008) (Richard Hansen)
+* Fix: a test failure on Windows (fixes #3968) (Toru Nagashima)
+* Fix: `no-invalid-this` had been missing globals in node (fixes #3961) (Toru Nagashima)
+* Fix: `curly` with `multi` had false positive (fixes #3856) (Toru Nagashima)
+* Build: Add load performance check inside perf function (fixes #3994) (Gyandeep Singh)
+* Fix: space-before-keywords fails with super keyword (fixes #3946) (alberto)
+* Fix: CLI should not fail on account of ignored files (fixes #3978) (Dominic Barnes)
+* Fix: brace-style rule incorrectly flagging switch (fixes #4002) (Aparajita Fishman)
+* Update: Implement auto fix for space-unary-ops rule (fixes #3976) (alberto)
+* Update: Implement auto fix for computed-property-spacing (fixes #3975) (alberto)
+* Update: Implement auto fix for no-multi-spaces rule (fixes #3979) (alberto)
+* Fix: Report shorthand method names in complexity rule (fixes #3955) (Tijn Kersjes)
+* Docs: Add note about typeof check for isNaN (fixes #3985) (Daniel Lo Nigro)
+* Update: ESLint reports parsing errors with clear prefix. (fixes #3555) (Kevin Partington)
+* Build: Update markdownlint dependency (fixes #3954) (David Anson)
+* Update: `no-mixed-require` to have non boolean option (fixes #3922) (Gyandeep Singh)
+* Fix: trailing spaces auto fix to check for line breaks (fixes #3940) (Gyandeep Singh)
+* Update: Add `typeof` option to `no-undef` rule (fixes #3684) (Gyandeep Singh)
+* Docs: Fix explanation and typos for accessor-pairs (alberto)
+* Docs: Fix typos for camelcase (alberto)
+* Docs: Fix typos for max-statements (Danny Guo)
+* Update: Implement auto fix for object-curly-spacing (fixes #3857) (alberto)
+* Update: Implement auto fix for array-bracket-spacing rule (fixes #3858) (alberto)
+* Fix: Add schema to `global-require` rule (fixes #3923) (Gyandeep Singh)
+* Update: Apply lazy loading for rules (fixes #3930) (Gyandeep Singh)
+* Docs: Fix typo for arrow-spacing (Danny Guo)
+* Docs: Fix typos for wrap-regex (Danny Guo)
+* Docs: Fix explanation for space-before-keywords (Danny Guo)
+* Docs: Fix typos for operator-linebreak (Danny Guo)
+* Docs: Fix typos for callback-return (Danny Guo)
+* Fix: no-trailing-spaces autofix to account for blank lines (fixes #3912) (Gyandeep Singh)
+* Docs: Fix example in no-negated-condition.md (fixes #3908) (alberto)
+* Update:warn message use @return when prefer.returns=return (fixes #3889) (闲耘™)
+* Update: Implement auto fix for generator-star-spacing rule (fixes #3873) (alberto)
+* Update: Implement auto fix for arrow-spacing rule (fixes #3860) (alberto)
+* Update: Implement auto fix for block-spacing rule (fixes #3859) (alberto)
+* Fix: Support allman style for switch statement (fixes #3903) (Gyandeep Singh)
+* New: no-negated-condition rule (fixes #3740) (alberto)
+* Docs: Fix typo in blog post template (Nicholas C. Zakas)
+* Update: Add env 'nashorn' to support Java 8 Nashorn Engine (fixes #3874) (Benjamin Winterberg)
+* Docs: Prepare for rule doc linting (refs #2271) (Ian VanSchooten)
+
+v1.5.1 - September 22, 2015
+
+* Fix: valid-jsdoc fix for param with properties (fixes #3476) (Gyandeep Singh)
+* Fix: valid-jsdoc error with square braces (fixes #2270) (Gyandeep Singh)
+* Upgrade: `doctrine` to 0.7.0 (fixes #3891) (Gyandeep Singh)
+* Fix: `space-before-keywords` had been wrong on getters (fixes #3854) (Toru Nagashima)
+* Fix: `no-dupe-args` had been wrong for nested destructure (fixes #3867) (Toru Nagashima)
+* Docs: io.js is the new Node.js (thefourtheye)
+* Docs: Fix method signature on working-with-rules docs (fixes #3862) (alberto)
+* Docs: Add related ternary links (refs #3835) (Ian VanSchooten)
+* Fix: don’t ignore config if cwd is the home dir (fixes #3846) (Mathias Schreck)
+* Fix: `func-style` had been warning arrows with `this` (fixes #3819) (Toru Nagashima)
+* Fix: `space-before-keywords`; allow opening curly braces (fixes #3789) (Marko Raatikka)
+* Build: Fix broken .gitattributes generation (fixes #3566) (Nicholas C. Zakas)
+* Build: Fix formatter docs generation (fixes #3847) (Nicholas C. Zakas)
+
+v1.5.0 - September 18, 2015
+
+* Fix: invalidate cache when config changes. (fixes #3770) (royriojas)
+* Fix: function body indent issues (fixes #3614, fixes #3799) (Gyandeep Singh)
+* Update: Add configuration option to `space-before-blocks` (fixes #3758) (Phil Vargas)
+* Fix: space checking between tokens (fixes #2211) (Nicholas C. Zakas)
+* Fix: env-specified ecmaFeatures had been wrong (fixes #3735) (Toru Nagashima)
+* Docs: Change example wording from warnings to problems (fixes #3676) (Ian VanSchooten)
+* Build: Generate formatter example docs (fixes #3560) (Ian VanSchooten)
+* New: Add --debug flag to CLI (fixes #2692) (Nicholas C. Zakas)
+* Docs: Update no-undef-init docs (fixes #3170) (Nicholas C. Zakas)
+* Docs: Update no-unused-expressions docs (fixes #3685) (Nicholas C. Zakas)
+* Docs: Clarify node types in no-multi-spaces (fixes #3781) (Nicholas C. Zakas)
+* Docs: Update new-cap docs (fixes #3798) (Nicholas C. Zakas)
+* Fix: `space-before-blocks` had conflicted `arrow-spacing` (fixes #3769) (Toru Nagashima)
+* Fix: `comma-dangle` had not been checking imports/exports (fixes #3794) (Toru Nagashima)
+* Fix: tests fail due to differences in temporary paths. (fixes #3778) (royriojas)
+* Fix: Directory ignoring should work (fixes #3812) (Nicholas C. Zakas)
+* Fix: Ensure **/node_modules works in ignore files (fixes #3788) (Nicholas C. Zakas)
+* Update: Implement auto fix for `space-infix-ops` rule (fixes #3801) (Gyandeep Singh)
+* Fix: `no-warning-comments` can't be set via config comment (fixes #3619) (Burak Yigit Kaya)
+* Update: `key-spacing` should allow 1+ around colon (fixes #3363) (Burak Yigit Kaya)
+* Fix: false alarm of semi-spacing with semi set to never (fixes #1983) (Chen Yicai)
+* Fix: Ensure ./ works correctly with CLI (fixes #3792) (Nicholas C. Zakas)
+* Docs: add more examples + tests for block-scoped-var (fixes #3791) (JT)
+* Update: Implement auto fix for `indent` rule (fixes #3734) (Gyandeep Singh)
+* Fix: `space-before-keywords` fails to handle some cases (fixes #3756) (Marko Raatikka)
+* Docs: Add if-else example (fixes #3722) (Ian VanSchooten)
+* Fix: jsx-quotes exception for attributes without value (fixes #3793) (Mathias Schreck)
+* Docs: Fix closing code fence on cli docs (Ian VanSchooten)
+* Update: Implement auto fix for `space-before-blocks` rule (fixes #3776) (Gyandeep Singh)
+* Update: Implement auto fix for `space-after-keywords` rule (fixes #3773) (Gyandeep Singh)
+* Fix: `semi-spacing` had conflicted with `block-spacing` (fixes #3721) (Toru Nagashima)
+* Update: Implement auto fix for `space-before-keywords` rule (fixes #3771) (Gyandeep Singh)
+* Update: auto fix for space-before-function-paren rule (fixes #3766) (alberto)
+* Update: Implement auto fix for `no-extra-semi` rule (fixes #3745) (Gyandeep Singh)
+* Update: Refactors the traversing logic (refs #3530) (Toru Nagashima)
+* Update: Implement auto fix for `space-return-throw-case` (fixes #3732) (Gyandeep Singh)
+* Update: Implement auto fix for `no-spaced-func` rule (fixes #3728) (Gyandeep Singh)
+* Update: Implement auto fix for `eol-last` rule (fixes #3725) (Gyandeep Singh)
+* Update: Implement auto fix for `no-trailing-spaces` rule (fixes #3723) (Gyandeep Singh)
+
+v1.4.3 - September 15, 2015
+
+* Fix: Directory ignoring should work (fixes #3812) (Nicholas C. Zakas)
+* Fix: jsx-quotes exception for attributes without value (fixes #3793) (Mathias Schreck)
+
+v1.4.2 - September 15, 2015
+
+* Fix: Ensure **/node_modules works in ignore files (fixes #3788) (Nicholas C. Zakas)
+* Fix: Ensure ./ works correctly with CLI (fixes #3792) (Nicholas C. Zakas)
+
+v1.4.1 - September 11, 2015
+
+* Fix: CLIEngine default cache parameter name (fixes #3755) (Daniel G. Taylor)
+* Fix: Glob pattern from .eslintignore not applied (fixes #3750) (Burak Yigit Kaya)
+* Fix: Skip JSDoc from NewExpression (fixes #3744) (Nicholas C. Zakas)
+* Docs: Shorten and simplify autocomment for new issues (Nicholas C. Zakas)
+
+v1.4.0 - September 11, 2015
+
+* Docs: Add new formatters to API docs (Ian VanSchooten)
+* New: Implement autofixing (fixes #3134) (Nicholas C. Zakas)
+* Fix: Remove temporary `"allow-null"` (fixes #3705) (Toru Nagashima)
+* Fix: `no-unused-vars` had been crashed at `/*global $foo*/` (fixes #3714) (Toru Nagashima)
+* Build: check-commit now checks commit message length. (fixes #3706) (Kevin Partington)
+* Fix: make getScope acquire innermost scope (fixes #3700) (voideanvalue)
+* Docs: Fix spelling mistake (domharrington)
+* Fix: Allow whitespace in rule message parameters. (fixes #3690) (Kevin Partington)
+* Fix: Eqeqeq rule with no option does not warn on 'a == null' (fixes #3699) (fediev)
+* Fix: `no-unused-expressions` with `allowShortCircuit` false positive if left has no effect (fixes #3675) (Toru Nagashima)
+* Update: Add Node 4 to travis builds (fixes #3697) (Ian VanSchooten)
+* Fix: Not check for punctuator if on same line as last var (fixes #3694) (Gyandeep Singh)
+* Docs: Make `quotes` docs clearer (fixes #3646) (Nicholas C. Zakas)
+* Build: Increase mocha timeout (fixes #3692) (Nicholas C. Zakas)
+* Fix: `no-extra-bind` to flag all arrow funcs (fixes #3672) (Nicholas C. Zakas)
+* Docs: Update README with release and sponsor info (Nicholas C. Zakas)
+* Fix: `object-curly-spacing` had been crashing on an empty object pattern (fixes #3658) (Toru Nagashima)
+* Fix: `no-extra-parens` false positive at IIFE with member accessing (fixes #3653) (Toru Nagashima)
+* Fix: `comma-dangle` with `"always"`/`"always-multiline"` false positive after a rest element (fixes #3627) (Toru Nagashima)
+* New: `jsx-quotes` rule (fixes #2011) (Mathias Schreck)
+* Docs: Add linting for second half of rule docs (refs #2271) (Ian VanSchooten)
+* Fix: `no-unused-vars` had not shown correct locations for `/*global` (fixes #3617) (Toru Nagashima)
+* Fix: `space-after-keywords` not working for `catch` (fixes #3654) (Burak Yigit Kaya)
+* Fix: Incorrectly warning about ignored files (fixes #3649) (Burak Yigit Kaya)
+* Fix: Indent rule VariableDeclarator doesn't apply to arrow functions (fixes #3661) (Burak Yigit Kaya)
+* Upgrade: Consuming handlebars@^4.0.0 (fixes #3632) (Kevin Partington)
+* Docs: Fixing typos in plugin processor section. (fixes #3648) (Kevin Partington)
+* Fix: Invalid env keys would cause an unhandled exception.(fixes #3265) (Ray Booysen)
+* Docs: Fixing broken link in documentation (Ilya Volodin)
+* Update: Check for default assignment in no-unneeded-ternary (fixes #3232) (cjihrig)
+* Fix: `consistent-as-needed` mode with `keyword: true` (fixes #3636) (Alex Guerrero)
+* New: Implement cache in order to only operate on changed files since previous run. (fixes #2998) (Roy Riojas)
+* Update: Grouping related CLI options. (fixes #3612) (Kevin Partington)
+* Update: Using @override does not require @param or @returns (fixes #3629) (Whitney Young)
+* Docs: Use eslint-env in no-undef (fixes #3616) (Ian VanSchooten)
+* New: `require-jsdoc` rule (fixes #1842) (Gyandeep Singh)
+* New: Support glob path on command line (fixes #3402) (Burak Yigit Kaya)
+* Update: Short circuit and ternary support in no-unused-expressions (fixes #2733) (David Warkentin)
+* Docs: Replace to npmjs.com (Ryuichi Okumura)
+* Fix: `indent` should only indent chain calls if the first call is single line (fixes #3591) (Burak Yigit Kaya)
+* Fix: `quote-props` should not crash for object rest spread syntax (fixes #3595) (Joakim Carlstein)
+* Update: Use `globals` module for the `commonjs` globals (fixes #3606) (Sindre Sorhus)
+* New: `no-restricted-syntax` rule to forbid certain syntax (fixes #2422) (Burak Yigit Kaya)
+* Fix: `no-useless-concat` false positive at numbers (fixes #3575, fixes #3589) (Toru Nagashima)
+* New: Add --max-warnings flag to CLI (fixes #2769) (Kevin Partington)
+* New: Add `parser` as an option (fixes #3127) (Gyandeep Singh)
+* New: `space-before-keywords` rule (fixes #1631) (Marko Raatikka)
+* Update: Allowing inline comments to disable eslint rules (fixes #3472) (Whitney Young)
+* Docs: Including for(;;) as valid case in no-constant-condition (Kevin Partington)
+* Update: Add quotes around the label in `no-redeclare` error messages (fixes #3583) (Ian VanSchooten)
+* Docs: correct contributing URL (Dieter Luypaert)
+* Fix: line number for duplicate object keys error (fixes #3573) (Elliot Lynde)
+* New: global-require rule (fixes #2318) (Jamund Ferguson)
+
+v1.3.1 - August 29, 2015
+
+* Fix: `indent` to not crash on empty files (fixes #3570) (Gyandeep Singh)
+* Fix: Remove unused config file (fixes #2227) (Gyandeep Singh)
+
+v1.3.0 - August 28, 2015
+
+* Build: Autogenerate release blog post (fixes #3562) (Nicholas C. Zakas)
+* New: `no-useless-concat` rule (fixes #3506) (Henry Zhu)
+* Update: Add `keywords` flag to `consistent-as-needed` mode in `quote-props` (fixes #3532) (Burak Yigit Kaya)
+* Update: adds `numbers` option to quote-props (fixes #2914) (Jose Roberto Vidal)
+* Fix: `quote-props` rule should ignore computed and shorthand properties (fixes #3557) (fixes #3544) (Burak Yigit Kaya)
+* Docs: Add config comments for rule examples 'accessor-pairs' to 'no-extra-semi' (refs #2271) (Ian VanSchooten)
+* Update: Return to accept `undefined` type (fixes #3382) (Gyandeep Singh)
+* New: Added HTML formatter (fixes #3505) (Julian Laval)
+* Fix: check space after yield keyword in space-unary-ops (fixes #2707) (Mathias Schreck)
+* Docs: (curly) Fix broken code in example (Kent C. Dodds)
+* Update: Quote var name in `no-unused-vars` error messages (refs #3526) (Burak Yigit Kaya)
+* Update: Move methods to SourceCode (fixes #3516) (Nicholas C. Zakas)
+* Fix: Don't try too hard to find fault in `no-implicit-coercion` (refs #3402) (Burak Yigit Kaya)
+* Fix: Detect ternary operator in operator-linebreak rule (fixes #3274) (Burak Yigit Kaya)
+* Docs: Clearer plugin rule configuration (fixes #2022) (Nicholas C. Zakas)
+* Update: Add quotes around the label in `no-empty-label` error reports (fixes #3526) (Burak Yigit Kaya)
+* Docs: Turn off Liquid in example (Nicholas C. Zakas)
+* Docs: Mention CommonJS along with Node.js (fixes #3388) (Nicholas C. Zakas)
+* Docs: Make it clear which rules are recommended (fixes #3398) (Nicholas C. Zakas)
+* Docs: Add links to JSON Schema resources (fixes #3411) (Nicholas C. Zakas)
+* Docs: Add more info to migration guide (fixes #3439) (Nicholas C. Zakas)
+* Fix: ASI indentation issue (fixes #3514) (Burak Yigit Kaya)
+* Fix: Make `no-implicit-coercion` smarter about numerical expressions (fixes #3510) (Burak Yigit Kaya)
+* Fix: `prefer-template` had not been handling TemplateLiteral as literal node (fixes #3507) (Toru Nagashima)
+* Update: `newline-after-var` Allow comment + blank after var (fixes #2852) (Ian VanSchooten)
+* Update: Add `unnecessary` option to `quote-props` (fixes #3381) (Burak Yigit Kaya)
+* Fix: `indent` shouldn't check the last line unless it is a punctuator (fixes #3498) (Burak Yigit Kaya)
+* Fix: `indent` rule does not indent when doing multi-line chain calls (fixes #3279) (Burak Yigit Kaya)
+* Fix: sort-vars rule fails when memo is undefined (fixes #3474) (Burak Yigit Kaya)
+* Fix: `brace-style` doesn't report some closing brace errors (fixes #3486) (Burak Yigit Kaya)
+* Update: separate options for block and line comments in `spaced-comment` rule (fixes #2897) (Burak Yigit Kaya)
+* Fix: `indent` does not check FunctionDeclaration nodes properly (fixes #3173) (Burak Yigit Kaya)
+* Update: Added "properties" option to `id-length` rule to ignore property names. (fixes #3450) (Mathieu M-Gosselin)
+* Update: add new ignore pattern options to no-unused-vars (fixes #2321) (Mathias Schreck)
+* New: Protractor environment (fixes #3457) (James Whitney)
+* Docs: Added section to shareable config (Gregory Waxman)
+* Update: Allow pre-parsed code (fixes #1025, fixes #948) (Nicholas C. Zakas)
+
+v1.2.1 - August 20, 2015
+
+* Fix: "key-spacing" crashes eslint on object literal shorthand properties (fixes #3463) (Burak Yigit Kaya)
+* Fix: ignore leading space check for `null` elements in comma-spacing (fixes #3392) (Mathias Schreck)
+* Fix: `prefer-arrow-callback` false positive at recursive functions (fixes #3454) (Toru Nagashima)
+* Fix: one-var rule doesn’t have default options (fixes #3449) (Burak Yigit Kaya)
+* Fix: Refactor `no-duplicate-case` to be simpler and more efficient (fixes #3440) (Burak Yigit Kaya)
+* Docs: Fix trailing spaces in README (Nicholas C. Zakas)
+* Docs: Update gyandeeps and add byk (Nicholas C. Zakas)
+* Docs: Update plugins documentation for 1.0.0 (Nicholas C. Zakas)
+* Docs: `object-curly-spacing` doc is inaccurate about exceptions (Burak Yigit Kaya)
+* Fix: `object-curly-spacing` shows the incorrect column for opening brace (fixes #3438) (Burak Yigit Kaya)
+
+v1.2.0 - August 18, 2015
+
+* Update: add support for semicolon in comma-first setup in indent rule (fixes #3423) (Burak Yigit Kaya)
+* Docs: better JSDoc for indent rule (Burak Yigit Kaya)
+* Docs: Document the second argument of `CLIEngine.executeOnText()` (Sindre Sorhus)
+* New: `no-dupe-class-members` rule (fixes #3294) (Toru Nagashima)
+* Fix: exclude `AssignmentExpression` and `Property` nodes from extra indentation on first line (fixes #3391) (Burak Yigit Kaya)
+* Update: Separate indent options for var, let and const (fixes #3339) (Burak Yigit Kaya)
+* Fix: Add AssignmentPattern to space-infix-ops (fixes #3380) (Burak Yigit Kaya)
+* Docs: Fix typo: exception label (tienslebien)
+* Update: Clean up tests for CLI config support (refs #2543) (Gyandeep Singh)
+* New: `block-spacing` rule (fixes #3303) (Toru Nagashima)
+* Docs: Update docs for no-iterator (fixes #3405) (Nicholas C. Zakas)
+* Upgrade: bump `espree` dependency to `2.2.4` (fixes #3403) (Burak Yigit Kaya)
+* Fix: false positive on switch 'no duplicate case', (fixes #3408) (Cristian Carlesso)
+* Fix: `valid-jsdoc` test does not recognize aliases for `@param` (fixes #3399) (Burak Yigit Kaya)
+* New: enable `-c` flag to accept a shareable config (fixes #2543) (Shinnosuke Watanabe)
+* Fix: Apply plugin given in CLI (fixes #3383) (Ian VanSchooten)
+* New: Add commonjs environment (fixes #3377) (Nicholas C. Zakas)
+* Docs: Update no-unused-var docs (Nicholas C. Zakas)
+* Fix: trailing commas in object-curly-spacing for import/export (fixes #3324) (Henry Zhu)
+* Update: Make `baseConfig` to behave as other config options (fixes #3371) (Gyandeep Singh)
+* Docs: Add "Compatibility" section to linebreak-style (Vitor Balocco)
+* New: `prefer-arrow-callback` rule (fixes #3140) (Toru Nagashima)
+* Docs: Clarify what an unused var is (fixes #2342) (Nicholas C. Zakas)
+* Docs: Mention double-byte character limitation in max-len (fixes #2370) (Nicholas C. Zakas)
+* Fix: object curly spacing incorrectly warning for import with default and multiple named specifiers (fixes #3370) (Luke Karrys)
+* Fix: Indent rule errors with array of objects (fixes #3329) (Burak Yigit Kaya)
+* Update: Make it clear that `space-infix-ops` support `const` (fixes #3299) (Burak Yigit Kaya)
+* New: `prefer-template` rule (fixes #3014) (Toru Nagashima)
+* Docs: Clarify `no-process-env` docs (fixes #3318) (Nicholas C. Zakas)
+* Docs: Fix arrow name typo (fixes #3309) (Nicholas C. Zakas)
+* Update: Improve error message for `indent` rule violation (fixes #3340) (Burak Yigit Kaya)
+* Fix: radix rule does not apply for Number.parseInt (ES6) (fixes #3364) (Burak Yigit Kaya)
+* Fix: `key-spacing.align` doesn't pay attention to non-whitespace before key (fixes #3267) (Burak Yigit Kaya)
+* Fix: arrow-parens & destructuring/default params (fixes #3353) (Jamund Ferguson)
+* Update: Add support for Allman to brace-style rule, brackets on newline (fixes #3347) (Burak Yigit Kaya)
+* Fix: Regression no-catch-shadow (1.1.0) (fixes #3322) (Burak Yigit Kaya)
+* Docs: remove note outdated in 1.0.0 (Denis Sokolov)
+* Build: automatically convert line endings in release script (fixes #2642) (Burak Yigit Kaya)
+* Update: allow disabling new-cap on object methods (fixes #3172) (Burak Yigit Kaya)
+* Update: Improve checkstyle format (fixes #3183) (Burak Yigit Kaya)
+* Fix: Indent rule errors if an array literal starts a new statement (fixes #3328) (Burak Yigit Kaya)
+* Update: Improve validation error messages (fixes #3193) (Burak Yigit Kaya)
+* Docs: fix syntax error in space-before-function-paren (Fabrício Matté)
+* Fix: `indent` rule to check for last line correctly (fixes #3327) (Gyandeep Singh)
+* Fix: Inconsistent off-by-one errors with column numbers (fixes #3231) (Burak Yigit Kaya)
+* Fix: Keyword "else" must not be followed by a newline (fixes #3226) (Burak Yigit Kaya)
+* Fix: `id-length` does not work for most of the new ES6 patterns (fixes #3286) (Burak Yigit Kaya)
+* Fix: Spaced Comment Exceptions Not Working (fixes #3276) (Jamund Ferguson)
+
+v1.1.0 - August 7, 2015
+
+* Update: Added as-needed option to arrow-parens (fixes #3277) (Jamund Ferguson)
+* Fix: curly-spacing missing import case (fixes #3302) (Jamund Ferguson)
+* Fix: `eslint-env` in comments had not been setting `ecmaFeatures` (fixes #2134) (Toru Nagashima)
+* Fix: `es6` env had been missing `spread` and `newTarget` (fixes #3281) (Toru Nagashima)
+* Fix: Report no-spaced-func on last token before paren (fixes #3289) (Benjamin Woodruff)
+* Fix: Check for null elements in indent rule (fixes #3272) (Gyandeep Singh)
+* Docs: Use backticks for option heading (Gyandeep Singh)
+* Fix: `no-invalid-this` had been missing jsdoc comment (fixes #3287) (Toru Nagashima)
+* Fix: `indent` rule for multi-line objects and arrays (fixes #3236) (Gyandeep Singh)
+* Update: add new `multi-or-nest` option for the `curly` rule (fixes #1806) (Ivan Nikulin)
+* Fix: `no-cond-assign` had been missing simplest pattern (fixes #3249) (Toru Nagashima)
+* Fix: id-length rule doesn't catch violations in arrow function parameters (fixes #3275) (Burak Yigit Kaya)
+* New: Added grep-style formatter (fixes #2991) (Nobody Really)
+* Update: Split out generic AST methods into utility (fixes #962) (Gyandeep Singh)
+* Fix: `accessor-pairs` false positive (fixes #3262) (Toru Nagashima)
+* Fix: `context.getScope()` returns correct scope in blockBindings (fixes #3254) (Toru Nagashima)
+* Update: Expose `getErrorResults` as a static method on `CLIEngine` (fixes #3242) (Gyandeep Singh)
+* Update: Expose `getFormatter` as a static method on `CLIEngine` (fixes #3239) (Gyandeep Singh)
+* Docs: use correct encoding for id-match.md (fixes #3246) (Matthieu Larcher)
+* Docs: place id-match rule at correct place in README.md (fixes #3245) (Matthieu Larcher)
+* Docs: Update no-proto.md (Joe Zimmerman)
+* Docs: Fix typo in object-shorthand docs (Gunnar Lium)
+* Upgrade: inquirer dependency (fixes #3241) (Gyandeep Singh)
+* Fix: `indent` rule for objects and nested one line blocks (fixes #3238, fixes #3237) (Gyandeep Singh)
+* Docs: Fix wrong options in examples of key-spacing (keik)
+* Docs: Adds missing "not" to semi.md (Marius Schulz)
+* Docs: Update no-multi-spaces.md (Kenneth Powers)
+* Fix: `indent` to not error on same line nodes (fixes #3228) (Gyandeep Singh)
+* New: Jest environment (fixes #3212) (Darshak Parikh)
+
+v1.0.0 - July 31, 2015
+
+* Update: merge `no-reserved-keys` into `quote-props` (fixes #1539) (Jose Roberto Vidal)
+* Fix: `indent` error message (fixes #3220) (Gyandeep Singh)
+* Update: Add embertest env (fixes #3205) (ismay)
+* Docs: Correct documentation errors for `id-length` rule. (Jess Telford)
+* Breaking: `indent` rule to have node specific options (fixes #3210) (Gyandeep Singh)
+* Fix: space-after-keyword shouldn't allow newlines (fixes #3198) (Brandon Mills)
+* New: Add JSON formatter (fixes #3036) (Burak Yigit Kaya)
+* Breaking: Switch to RuleTester (fixes #3186) (Nicholas C. Zakas)
+* Breaking: remove duplicate warnings of `no-undef` from `block-scoped-var` (fixes #3201) (Toru Nagashima)
+* Fix: `init-declarations` ignores in for-in/of (fixes #3202) (Toru Nagashima)
+* Fix: `quotes` with `"backtick"` ignores ModuleSpecifier and LiteralPropertyName (fixes #3181) (Toru Nagashima)
+* Fix: space-in-parens in Template Strings (fixes #3182) (Ian VanSchooten)
+* Fix: Check for concatenation in no-throw-literal (fixes #3099, fixes #3101) (Ian VanSchooten)
+* Build: Remove `eslint-tester` from devDependencies (fixes #3189) (Gyandeep Singh)
+* Fix: Use new ESLintTester (fixes #3187) (Nicholas C. Zakas)
+* Update: `new-cap` supports fullnames (fixes #2584) (Toru Nagashima)
+* Fix: Non object rule options merge (fixes #3179) (Gyandeep Singh)
+* New: add id-match rule (fixes #2829) (Matthieu Larcher)
+* Fix: Rule options merge (fixes #3175) (Gyandeep Singh)
+* Fix: `spaced-comment` allows a mix of markers and exceptions (fixes #2895) (Toru Nagashima)
+* Fix: `block-scoped-var` issues (fixes #2253, fixes #2747, fixes #2967) (Toru Nagashima)
+* New: Add id-length rule (fixes #2784) (Burak Yigit Kaya)
+* Update: New parameters for quote-props rule (fixes #1283, fixes #1658) (Tomasz Olędzki)
+
+v1.0.0-rc-3 - July 24, 2015
+
+* Fix: Make Chai and Mocha as a dependency (fixes #3156) (Gyandeep Singh)
+* Fix: traverse `ExperimentalSpread/RestProperty.argument` (fixes #3157) (Toru Nagashima)
+* Fix: Check shareable config package prefix correctly (fixes #3146) (Gyandeep Singh)
+* Update: move redeclaration checking for builtins (fixes #3070) (Toru Nagashima)
+* Fix: `quotes` with `"backtick"` allows directive prologues (fixes #3132) (Toru Nagashima)
+* Fix: `ESLintTester` path in exposed API (fixes #3149) (Gyandeep Singh)
+* Docs: Remove AppVeyor badge (Gyandeep Singh)
+* Fix: Check no-new-func on CallExpressions (fixes #3145) (Benjamin Woodruff)
+
+v1.0.0-rc-2 - July 23, 2015
+
+* Docs: Mention eslint-tester in migration guide (Nicholas C. Zakas)
+* Docs: Mention variables defined in a global comment (fixes #3137) (William Becker)
+* Docs: add documentation about custom-formatters. (fixes #1260) (royriojas)
+* Fix: Multi-line variable declarations indent (fixes #3139) (Gyandeep Singh)
+* Fix: handles blocks in no-use-before-define (fixes #2960) (Jose Roberto Vidal)
+* Update: `props` option of `no-param-reassign` (fixes #1600) (Toru Nagashima)
+* New: Support shared configs named `@scope/eslint-config`, with shortcuts of `@scope` and `@scope/` (fixes #3123) (Jordan Harband)
+* New: Add ignorePattern, ignoreComments, and ignoreUrls options to max-len (fixes #2934, fixes #2221, fixes #1661) (Benjamin Woodruff)
+* Build: Increase Windows Mocha timeout (fixes #3133) (Ian VanSchooten)
+* Docs: incorrect syntax in the example for rule «one-var» (Alexander Burtsev)
+* Build: Check commit message format at end of tests (fixes #3058) (Ian VanSchooten)
+* Update: Move eslint-tester into repo (fixes #3110) (Nicholas C. Zakas)
+* Fix: Not load configs outside config with `root: true` (fixes #3109) (Gyandeep Singh)
+* Docs: Add config information to README (fixes #3074) (Nicholas C. Zakas)
+* Docs: Add mysticatea as committer (Nicholas C. Zakas)
+* Docs: Grammar fixes in rule descriptions (refs #3038) (Greg Cochard)
+* Fix: Update sort-vars to ignore Array and ObjectPattern (fixes #2954) (Harry Ho)
+* Fix: block-scoped-var rule incorrectly flagging break/continue with label (fixes #3082) (Aparajita Fishman)
+* Fix: spaces trigger wrong in `no-useless-call` and `prefer-spread` (fixes #3054) (Toru Nagashima)
+* Fix: `arrow-spacing` allow multi-spaces and line-endings (fixes #3079) (Toru Nagashima)
+* Fix: add missing loop scopes to one-var (fixes #3073) (Jose Roberto Vidal)
+* New: the `no-invalid-this` rule (fixes #2815) (Toru Nagashima)
+* Fix: allow empty loop body in no-extra-semi (fixes #3075) (Mathias Schreck)
+* Update: Add qunit to environments (fixes #2870) (Nicholas C. Zakas)
+* Fix: `space-before-blocks` to consider classes (fixes #3062) (Gyandeep Singh)
+* Fix: Include phantomjs globals (fixes #3064) (Linus Unnebäck)
+* Fix: no-else-return handles multiple else-if blocks (fixes #3015) (Jose Roberto Vidal)
+* Fix: `no-*-assgin` rules support destructuring (fixes #3029) (Toru Nagashima)
+* New: the `no-implicit-coercion` rule (fixes #1621) (Toru Nagashima)
+* Fix: Make no-implied-eval match more types of strings (fixes #2898) (Benjamin Woodruff)
+* Docs: Clarify that bot message is automatic (Ian VanSchooten)
+* Fix: Skip rest properties in no-dupe-keys (fixes 3042) (Nicholas C. Zakas)
+* Docs: New issue template (fixes #3048) (Nicholas C. Zakas)
+* Fix: strict rule supports classes (fixes #2977) (Toru Nagashima)
+* New: the `prefer-reflect` rule (fixes #2939) (Keith Cirkel)
+* Docs: make grammar consistent in rules index (Greg Cochard)
+* Docs: Fix unmatched paren in rule description (Greg Cochard)
+* Docs: Small typo fix in no-useless-call documentation (Paul O’Shannessy)
+* Build: readd phantomjs dependency with locked down version (fixes #3026) (Mathias Schreck)
+* Docs: Add IanVS as committer (Nicholas C. Zakas)
+* docs: additional computed-property-spacing documentation (fixes #2941) (Jamund Ferguson)
+* Docs: Add let and const examples for newline-after-var (fixes #3020) (James Whitney)
+* Build: Remove unnecessary phantomjs devDependency (fixes #3021) (Gyandeep Singh)
+* Update: added shared builtins list (fixes #2972) (Jose Roberto Vidal)
+
+v1.0.0-rc-1 - July 15, 2015
+
+* Upgrade: Espree to 2.2.0 (fixes #3011) (Nicholas C. Zakas)
+* Docs: fix a typo (bartmichu)
+* Fix: indent rule should recognize single line statements with ASI (fixes #3001, fixes #3000) (Mathias Schreck)
+* Update: Handle CRLF line endings in spaced-comment rule - 2 (fixes #3005) (Burak Yigit Kaya)
+* Fix: Indent rule error on empty block body (fixes #2999) (Gyandeep Singh)
+* New: the `no-class-assign` rule (fixes #2718) (Toru Nagashima)
+* New: the `no-const-assign` rule (fixes #2719) (Toru Nagashima)
+* Docs: Add 1.0.0 migration guide (fixes #2994) (Nicholas C. Zakas)
+* Docs: Update changelog for 0.24.1 (fixes #2976) (Nicholas C. Zakas)
+* Breaking: Remove deprecated rules (fixes #1898) (Ian VanSchooten)
+* Fix: multi-line + fat arrow indent (fixes #2239) (Gyandeep Singh)
+* Breaking: Create eslint:recommended and add to --init (fixes #2713) (Greg Cochard)
+* Fix: Indent rule (fixes #1797, fixes #1799, fixes #2248, fixes #2343, fixes #2278, fixes #1800) (Gyandeep Singh)
+* New: `context.getDeclaredVariables(node)` (fixes #2801) (Toru Nagashima)
+* New: the `no-useless-call` rule (fixes #1925) (Toru Nagashima)
+* New: the `prefer-spread` rule (fixes #2946) (Toru Nagashima)
+* Fix: `valid-jsdoc` counts `return` for arrow expressions (fixes #2952) (Toru Nagashima)
+* New: Add exported comment option (fixes #1200) (Jamund Ferguson)
+* Breaking: Default to --reset behavior (fixes #2100) (Brandon Mills)
+* New: Add arrow-parens and arrow-spacing rule (fixes #2628) (Jxck)
+* Fix: Shallow cloning issues in eslint config (fixes #2961) (Gyandeep Singh)
+* Add: Warn on missing rule definition or deprecation (fixes #1549) (Ian VanSchooten)
+* Update: adding some tests for no-redeclare to test named functions (fixes #2953) (Dominic Barnes)
+* New: Add support for root: true in config files (fixes #2736) (Ian VanSchooten)
+* Fix: workaround for leading and trailing comments in padded-block (fixes #2336 and fixes #2788) (Mathias Schreck)
+* Fix: object-shorthand computed props (fixes #2937) (Jamund Ferguson)
+* Fix: Remove invalid check inside `getJSDocComment` function (fixes #2938) (Gyandeep Singh)
+* Docs: Clarify when not to use space-before-blocks (Ian VanSchooten)
+* Update: `no-loop-func` allows block-scoped variables (fixes #2517) (Toru Nagashima)
+* Docs: remove mistaken "off by default" (Jan Schär)
+* Build: Add appveyor CI system (fixes #2923) (Gyandeep Singh)
+* Docs: Fix typo in the shareable configs doc (Siddharth Kannan)
+* Fix: max-len to report correct column number (fixes #2926) (Mathias Schreck)
+* Fix: add destructuring support to comma-dangle rule (fixes #2911) (Mathias Schreck)
+* Docs: clarification in no-unused-vars (Jan Schär)
+* Fix: `no-redeclare` checks module scopes (fixes #2903) (Toru Nagashima)
+* Docs: missing quotes in JSON (Jan Schär)
+* Breaking: Switch to 1-based columns (fixes #2284) (Nicholas C. Zakas)
+* Docs: array-bracket-spacing examples used space-in-brackets (Brandon Mills)
+* Docs: Add spaced-line-comment deprecation notice (Brandon Mills)
+* Docs: Add space-in-brackets deprecation notice (Brandon Mills)
+* Fix: Include execScript in no-implied-eval rule (fixes #2873) (Frederik Braun)
+* Fix: Support class syntax for line-around-comment rule (fixes #2894) (Gyandeep Singh)
+* Fix: lines-around-comment was crashing in some cases due to a missing check (fixes #2892) (Mathieu M-Gosselin)
+* New: Add init-declarations rule (fixes #2606) (cjihrig)
+* Docs: Fix typo in array-bracket-spacing rule (zallek)
+* Fix: Added missing export syntax support to the block-scoped-var rule. (fixes #2887) (Mathieu M-Gosselin)
+* Build: gensite target supports rule removal (refs #1898) (Brandon Mills)
+* Update: Handle CRLF line endings in spaced-comment rule (fixes #2884) (David Anson)
+* Update: Attach parent in getNodeByRangeIndex (fixes #2863) (Brandon Mills)
+* Docs: Fix typo (Bryan Smith)
+* New: Add serviceworker environment (fixes #2557) (Gyandeep Singh)
+* Fix: Yoda should ignore comparisons where both sides are constants (fixes #2867) (cjihrig)
+* Update: Loosens regex rules around intentional fall through comments (Fixes #2811) (greg5green)
+* Update: Add missing schema to rules (fixes #2858) (Ilya Volodin)
+* New: `require-yield` rule (fixes #2822) (Toru Nagashima)
+* New: add callback-return rule (fixes #994) (Jamund Ferguson)
+
+v0.24.1 - July 10, 2015
+
+* Docs: Clarify when not to use space-before-blocks (Ian VanSchooten)
+* Docs: remove mistaken "off by default" (Jan Schär)
+* Docs: remove mistaken "off by default" (Jan Schär)
+* Docs: Fix typo in the shareable configs doc (Siddharth Kannan)
+* Docs: clarification in no-unused-vars (Jan Schär)
+* Docs: missing quotes in JSON (Jan Schär)
+* Fix: Revert 1-based column changes in tests for patch (refs #2284) (Nicholas C. Zakas)
+* Fix: Shallow cloning issues in eslint config (fixes #2961) (Gyandeep Singh)
+* Fix: object-shorthand computed props (fixes #2937) (Jamund Ferguson)
+* Fix: Remove invalid check inside `getJSDocComment` function (fixes #2938) (Gyandeep Singh)
+* Fix: max-len to report correct column number (fixes #2926) (Mathias Schreck)
+* Fix: add destructuring support to comma-dangle rule (fixes #2911) (Mathias Schreck)
+* Fix: `no-redeclare` checks module scopes (fixes #2903) (Toru Nagashima)
+* Fix: Include execScript in no-implied-eval rule (fixes #2873) (Frederik Braun)
+* Fix: Support class syntax for line-around-comment rule (fixes #2894) (Gyandeep Singh)
+* Fix: lines-around-comment was crashing in some cases due to a missing check (fixes #2892) (Mathieu M-Gosselin)
+* Fix: Added missing export syntax support to the block-scoped-var rule. (fixes #2887) (Mathieu M-Gosselin)
+* Fix: Yoda should ignore comparisons where both sides are constants (fixes #2867) (cjihrig)
+* Docs: array-bracket-spacing examples used space-in-brackets (Brandon Mills)
+* Docs: Add spaced-line-comment deprecation notice (Brandon Mills)
+* Docs: Add space-in-brackets deprecation notice (Brandon Mills)
+
+v0.24.0 - June 26, 2015
+
+* Upgrade: eslint-tester to 0.8.1 (Nicholas C. Zakas)
+* Fix: no-dupe-args sparse array crash (fixes #2848) (Chris Walker)
+* Fix: space-after-keywords should ignore extra parens (fixes #2847) (Mathias Schreck)
+* New: add no-unexpected-multiline rule (fixes #746) (Glen Mailer)
+* Update: refactor handle-callback-err to improve performance (fixes #2841) (Mathias Schreck)
+* Fix: Add --init to the CLI options (fixes #2817) (Gyandeep Singh)
+* Update: Add `except-parens` option to `no-return-assign` rule (fixes #2809) (Toru Nagashima)
+* Fix: handle-callback-err missing arrow functions (fixes #2823) (Jamund Ferguson)
+* Fix: `no-extra-semi` in class bodies (fixes #2794) (Toru Nagashima)
+* Fix: Check type to be file when looking for config files (fixes #2790) (Gyandeep Singh)
+* Fix: valid-jsdoc to work for object getters (fixes #2407) (Gyandeep Singh)
+* Update: Add an option as an object to `generator-star-spacing` rule (fixes #2787) (Toru Nagashima)
+* Build: Update markdownlint dependency (David Anson)
+* Fix: context report message to handle more scenarios (fixes #2746) (Gyandeep Singh)
+* Update: Ignore JsDoc comments by default for `spaced-comment` (fixes #2766) (Gyandeep Singh)
+* Fix: one-var 'never' option for mixed initialization (Fixes #2786) (Ian VanSchooten)
+* Docs: Fix a minor typo in a prefer-const example (jviide)
+* Fix: comma-dangle always-multiline: no comma right before the last brace (fixes #2091) (Benoît Zugmeyer)
+* Fix: Allow blocked comments with markers and new-line (fixes #2777) (Gyandeep Singh)
+* Docs: small fix in quote-props examples (Jose Roberto Vidal)
+* Fix: object-shorthand rule should not warn for NFEs (fixes #2748) (Michael Ficarra)
+* Fix: arraysInObjects for object-curly-spacing (fixes #2752) (Jamund Ferguson)
+* Docs: Clarify --rule description (fixes #2773) (Nicholas C. Zakas)
+* Fix: object literals in arrow function bodies (fixes #2702) (Jose Roberto Vidal)
+* New: `constructor-super` rule (fixes #2720) (Toru Nagashima)
+* New: `no-this-before-super` rule (fixes #2721) (Toru Nagashima)
+* Fix: space-unary-ops flags expressions starting w/ keyword (fixes #2764) (Michael Ficarra)
+* Update: Add block options to `lines-around-comment` rule (fixes #2667) (Gyandeep Singh)
+* New: array-bracket-spacing (fixes #2226) (Jamund Ferguson)
+* Fix: No-shadow rule duplicating error messages (fixes #2706) (Aliaksei Shytkin)
+
+v0.23.0 - June 14, 2015
+
+* Build: Comment out auto publishing of release notes (refs #2640) (Ilya Volodin)
+* Fix: "extends" within package.json (fixes #2754) (Gyandeep Singh)
+* Upgrade: globals@8.0.0 (fixes #2759) (silverwind)
+* Docs: eol-last docs fix (fixes #2755) (Gyandeep Singh)
+* Docs: btmills is a reviewer (Nicholas C. Zakas)
+* Build: Revert lock io.js to v2.1.0 (refs #2745) (Brandon Mills)
+* New: computed-property-spacing (refs #2226) (Jamund Ferguson)
+* Build: Pin Sinon version (fixes #2742) (Ilya Volodin)
+* Fix: `prefer-const` treats `for-in`/`for-of` with the same way (Fixes #2739) (Toru Nagashima)
+* Docs: Add links to team members profile (Gyandeep Singh)
+* Docs: add team and ES7 info to readme (Nicholas C. Zakas)
+* Fix: don't try to strip "line:" prefix from parser errors with no such prefix (fixes #2698) (Tim Cuthbertson)
+* Fix: never ignore config comment options (fixes #2725) (Brandon Mills)
+* Update: Add clarification to spaced-comment (refs #2588) (Greg Cochard)
+* Update: Add markers to spaced-comment (fixes #2588) (Greg Cochard)
+* Fix: no-trailing-spaces now handles skipBlankLines (fixes #2575) (Greg Cochard)
+* Docs: Mark global-strict on by default (fixes #2629) (Ilya Volodin)
+* New: Allow extends to be an array (fixes #2699) (Justin Morris)
+* New: globals@7.1.0 (fixes #2682) (silverwind)
+* New: `prefer-const` rule (fixes #2333) (Toru Nagashima)
+* Fix: remove hard-coded list of unary keywords in space-unary-ops rule (fixes #2696) (Tim Cuthbertson)
+* Breaking: Automatically validate rule options (fixes #2595) (Brandon Mills)
+* Update: no-lone-blocks does not report block-level scopes (fixes #2119) (Jose Roberto Vidal)
+* Update: yoda onlyEquality option (fixes #2638) (Denis Sokolov)
+* Docs: update comment to align with source code it's referencing (Michael Ficarra)
+* Fix: Misconfigured default option for lines-around-comment rule (fixes #2677) (Gyandeep Singh)
+* Fix: `no-shadow` allows shadowing in the TDZ (fixes #2568) (Toru Nagashima)
+* New: spaced-comment rule (fixes #1088) (Gyandeep Singh)
+* Fix: Check unused vars in exported functions (fixes #2678) (Gyandeep Singh)
+* Build: Stringify payload of release notes (fixes #2640) (Greg Cochard)
+* Fix: Allowing u flag in regex to properly lint no-empty-character-class (fixes #2679) (Dominic Barnes)
+* Docs: deprecate no-wrap-func (fixes #2644) (Jose Roberto Vidal)
+* Docs: Fixing grammar: then -> than (E)
+* Fix: trailing commas in object-curly-spacing (fixes #2647) (Jamund Ferguson)
+* Docs: be consistent about deprecation status (Matthew Dapena-Tretter)
+* Docs: Fix mistakes in object-curly-spacing docs (Matthew Dapena-Tretter)
+* New: run processors when calling executeOnText (fixes #2331) (Mordy Tikotzky)
+* Update: move executeOnText() tests to the correct describe block (fixes #2648) (Mordy Tikotzky)
+* Update: add tests to assert that the preprocessor is running (fixes #2651) (Mordy Tikotzky)
+* Build: Lock io.js to v2.1.0 (fixes #2653) (Ilya Volodin)
+
+v0.22.1 - May 30, 2015
+
+* Build: Remove release notes auto-publish (refs #2640) (Ilya Volodin)
+
+v0.22.0 - May 30, 2015
+
+* Upgrade: escope 3.1.0 (fixes #2310, #2405) (Toru Nagashima)
+* Fix: “consistent-this” incorrectly flagging destructuring of `this` (fixes #2633) (David Aurelio)
+* Upgrade: eslint-tester to 0.7.0 (Ilya Volodin)
+* Update: allow shadowed references in no-alert (fixes #1105) (Mathias Schreck)
+* Fix: no-multiple-empty-lines and template strings (fixes #2605) (Jamund Ferguson)
+* New: object-curly-spacing (fixes #2225) (Jamund Ferguson)
+* Docs: minor fix for one-var rule (Jamund Ferguson)
+* Fix: Shared config being clobbered by other config (fixes #2592) (Dominic Barnes)
+* Update: adds "functions" option to no-extra-parens (fixes #2477) (Jose Roberto Vidal)
+* Docs: Fix json formatting for lines-around-comments rule (Gyandeep Singh)
+* Fix: Improve around function/class names of `no-shadow` (fixes #2556, #2552) (Toru Nagashima)
+* Fix: Improve code coverage (fixes #2590) (Ilya Volodin)
+* Fix: Allow scoped configs to have sub-configs (fixes #2594) (Greg Cochard)
+* Build: Add auto-update of release tag on github (fixes #2566) (Greg Cochard)
+* New: lines-around-comment (fixes #1344) (Jamund Ferguson)
+* Build: Unblock build by increasing code coverage (Ilya Volodin)
+* New: accessor-pairs rule to object initializations (fixes #1638) (Gyandeep Singh)
+* Fix: counting of variables statements in one-var (fixes #2570) (Mathias Schreck)
+* Build: Add sudo:false for Travis (fixes #2582) (Ilya Volodin)
+* New: Add rule schemas (refs #2179) (Brandon Mills)
+* Docs: Fix typo in shareable-configs example (fixes #2571) (Ted Piotrowski)
+* Build: Relax markdownlint rules by disabling style-only items (David Anson)
+* Fix: Object shorthand rule incorrectly flagging getters/setters (fixes #2563) (Brad Dougherty)
+* New: Add config validator (refs #2179) (Brandon Mills)
+* New: Add worker environment (fixes #2442) (Ilya Volodin)
+* New no-empty-character class (fixes #2508) (Jamund Ferguson)
+* New: Adds --ignore-pattern option. (fixes #1742) (Patrick McElhaney)
+
+v0.21.2 - May 18, 2015
+
+* 0.21.2 (Nicholas C. Zakas)
+* Fix: one-var exception for ForStatement.init (fixes #2505) (Brandon Mills)
+* Fix: Don't throw spurious shadow errors for classes (fixes #2545) (Jimmy Jia)
+* Fix: valid-jsdoc rule to support exported functions (fixes #2522) (Gyandeep Singh)
+* Fix: Allow scoped packages in configuration extends (fixes #2544) (Eric Isakson)
+* Docs: Add chatroom to FAQ (Nicholas C. Zakas)
+* Docs: Move Gitter badge (Nicholas C. Zakas)
+
+v0.21.1 - May 15, 2015
+
+* 0.21.1 (Nicholas C. Zakas)
+* Fix: loc obj in report fn expects column (fixes #2481) (Varun Verma)
+* Build: Make sure that all md files end with empty line (fixes #2520) (Ilya Volodin)
+* Added Gitter badge (The Gitter Badger)
+* Fix: forced no-shadow to check all scopes (fixes #2294) (Jose Roberto Vidal)
+* Fix: --init indent setting (fixes #2493) (Nicholas C. Zakas)
+* Docs: Mention bundling multiple shareable configs (Nicholas C. Zakas)
+* Fix: Not to override the required extended config object directly (fixes #2487) (Gyandeep Singh)
+* Build: Update markdownlint dependency (David Anson)
+* Docs: added recursive function example to no-unused-vars (Jose Roberto Vidal)
+* Docs: Fix typo (then -> than) (Vladimir Agafonkin)
+* Revert "Fix: sanitise Jekyll interpolation during site generation (fixes #2297)" (Nicholas C. Zakas)
+* Fix: dot-location should use correct dot token (fixes #2504) (Mathias Schreck)
+* Fix: Stop linebreak-style from crashing (fixes #2490) (James Whitney)
+* Fix: rule no-duplicate-case problem with CallExpressions. (fixes #2499) (Matthias Osswald)
+* Fix: Enable full support for eslint-env comments (refs #2134) (Ilya Volodin)
+* Build: Speed up site generation (fixes #2475) (Ilya Volodin)
+* Docs: Fixing trailing spaces (Fixes #2478) (Ilya Volodin)
+* Docs: Update README FAQs (Nicholas C. Zakas)
+* Fix: Allow comment before comma for comma-spacing rule (fixes #2408) (Gyandeep Singh)
+
+v0.21.0 - May 9, 2015
+
+* 0.21.0 (Nicholas C. Zakas)
+* New: Shareable configs (fixes #2415) (Nicholas C. Zakas)
+* Fix: Edge cases for no-wrap-func (fixes #2466) (Nicholas C. Zakas)
+* Docs: Update ecmaFeatures description (Nicholas C. Zakas)
+* New: Add dot-location rule. (fixes #1884) (Greg Cochard)
+* New: Add addPlugin method to CLI-engine (Fixes #1971) (Ilya Volodin)
+* Breaking: Do not check unset declaration types (Fixes #2448) (Ilya Volodin)
+* Fix: no-redeclare switch scoping (fixes #2337) (Nicholas C. Zakas)
+* Fix: Check extra scope in no-use-before-define (fixes #2372) (Nicholas C. Zakas)
+* Fix: Ensure baseConfig isn't changed (fixes #2380) (Nicholas C. Zakas)
+* Fix: Don't warn for member expression functions (fixes #2402) (Nicholas C. Zakas)
+* New: Adds skipBlankLines option to the no-trailing-spaces rule (fixes #2303) (Andrew Vaughan)
+* Fix: Adding exception for last line (Refs #2423) (Greg Cochard)
+* Fix: crash on 0 max (fixes #2423) (gcochard)
+* Fix object-shorthand arrow functions (fixes #2414) (Jamund Ferguson)
+* Fix: Improves detection of self-referential functions (fixes #2363) (Jose Roberto Vidal)
+* Update: key-spacing groups must be consecutive lines (fixes #1728) (Brandon Mills)
+* Docs: grammar fix in no-sync (Tony Lukasavage)
+* Docs: Update configuring.md to fix incorrect link. (Ans)
+* New: Check --stdin-filename by ignore settings (fixes #2432) (Aliaksei Shytkin)
+* Fix: `no-loop-func` rule allows functions at init part (fixes #2427) (Toru Nagashima)
+* New: Add init command (fixes #2302) (Ilya Volodin)
+* Fix: no-irregular-whitespace should work with irregular line breaks (fixes #2316) (Mathias Schreck)
+* Fix: generator-star-spacing with class methods (fixes #2351) (Brandon Mills)
+* New: no-unneeded-ternary rule to disallow boolean literals in conditional expressions (fixes #2391) (Gyandeep Singh)
+* Docs: Add `restParams` to `ecmaFeatures` options list (refs: #2346) (Bogdan Savluk)
+* Fix: space-in-brackets Cannot read property 'range' (fixes #2392) (Gyandeep Singh)
+* Docs: Sort the rules (Lukas Böcker)
+* Add: Exception option for `no-extend-native` and `no-native-reassign` (fixes #2355) (Gyandeep Singh)
+* Fix: space-in-brackets import declaration (fixes #2378) (Gyandeep Singh)
+* Update: Add uninitialized and initialized options (fixes #2206) (Ian VanSchooten)
+* Fix: brace-style to not warn about curly mix ifStatements (fixes #1739) (Gyandeep Singh)
+* Fix: npm run profile script should use espree (fixes #2150) (Mathias Schreck)
+* New: Add support for extending configurations (fixes #1637) (Espen Hovlandsdal)
+* Fix: Include string literal keys in object-shorthand (Fixes #2374) (Jamund Ferguson)
+* Docs: Specify language for all code fences, enable corresponding markdownlint rule. (David Anson)
+* New: linebreak-style rule (fixes #1255) (Erik Müller)
+* Update: Add "none" option to operator-linebreak rule (fixes #2295) (Casey Visco)
+* Fix: sanitise Jekyll interpolation during site generation (fixes #2297) (Michael Ficarra)
+
+v0.20.0 - April 24, 2015
+
+* 0.20.0 (Nicholas C. Zakas)
+* Fix: support arrow functions in no-extra-parens (fixes #2367) (Michael Ficarra)
+* Fix: Column position in space-infix-ops rule (fixes #2354) (Gyandeep Singh)
+* Fix: allow plugins to be namespaced (fixes #2360) (Seth Pollack)
+* Update: one-var: enable let & const (fixes #2301) (Joey Baker)
+* Docs: Add meteor to avaiable environments list (bartmichu)
+* Update: Use `Object.assign()` polyfill for all object merging (fixes #2348) (Sindre Sorhus)
+* Docs: Update markdownlint dependency, resolve/suppress new issues. (David Anson)
+* Fix: newline-after-var declare and export (fixes #2325) (Gyandeep Singh)
+* Docs: Some typos and grammar. (AlexKVal)
+* Fix: newline-after-var to ignore declare in for specifiers (fixes #2317) (Gyandeep Singh)
+* New: add --stdin-filename option (fixes #1950) (Mordy Tikotzky)
+* Fix: Load .eslintrc in $HOME only if no other .eslintrc is found (fixes #2279) (Jasper Woudenberg)
+* Fix: Add `v8` module to no-mixed-requires rule (fixes #2320) (Gyandeep Singh)
+* Fix: key-spacing with single properties (fixes #2311) (Brandon Mills)
+* Docs: `no-invalid-regexp`: add `ecmaFeatures` flags for `u`/`y` (Jordan Harband)
+* New: object-shorthand rule (refs: #1617) (Jamund Ferguson)
+* Update: backticks support for quotes rule (fixes #2153) (borislavjivkov)
+* Fix: space-in-brackets to work with modules (fixes #2216) (Nicholas C. Zakas)
+
+v0.19.0 - April 11, 2015
+
+* 0.19.0 (Nicholas C. Zakas)
+* Upgrade: Espree to 2.0.1 (Nicholas C. Zakas)
+* Docs: Update one-var documentation (fixes #2210) (Nicholas C. Zakas)
+* Update: Add test for no-undef (fixes #2214) (Nicholas C. Zakas)
+* Fix: Report better location for padded-blocks error (fixes #2224) (Nicholas C. Zakas)
+* Fix: Don't check concise methods in quote-props (fixes #2251) (Nicholas C. Zakas)
+* Fix: Consider tabs for space-in-parens rule (fixes #2191) (Josh Quintana)
+* Fix: block-scoped-var to work with classes (fixes #2280) (Nicholas C. Zakas)
+* Docs: Remove trailing spaces, enable corresponding markdownlint rule. (David Anson)
+* Fix: padded-blocks with ASI (fixes #2273) (Brandon Mills)
+* Fix: Handle comment lines in newline-after-var (fixed #2237) (Casey Visco)
+* Docs: Standardize on '*' for unordered lists, enable corresponding markdownlint rule. (David Anson)
+* Fix: no-undef and no-underscore-dangle to use double quotes (fixes #2258) (Gyandeep Singh)
+* Docs: Improve grammar and style in comma-dangle.md (Nate Eagleson)
+* Docs: Improve grammar and style in padded-blocks.md (Nate Eagleson)
+* Docs: Update URL in no-wrap-func.md to resolve 404 (Nate Eagleson)
+* Docs: Fix typo in command-line-interface.md (Nate Eagleson)
+* Docs: Fix typo in working-with-rules.md (Nate Eagleson)
+* Docs: Remove hard tabs from *.md, enable corresponding markdownlint rule. (David Anson)
+* Fix: Function id missing in parent scope when using ecmaFeature `modules` for rule block-scoped-var (fixes #2242) (Michael Ferris)
+* Fix: Ignore single lines for vertical alignment (fixes #2018) (Ian VanSchooten)
+* Fix: Allow inline comments in newline-after-var rule (fixes #2229) (Casey Visco)
+* Upgrade: Espree 2.0.0 and escope 3.0.0 (fixes #2234, fixes #2201, fixes (Nicholas C. Zakas)
+* Docs: Update --no-ignore warning (Brandon Mills)
+* Build: Remove jshint files (fixes #2222) (Jeff Tan)
+* Docs: no-empty fix comment change (refs #2188) (Gyandeep Singh)
+* Fix: duplicate semi and no-extra-semi errors (fixes #2207) (Brandon Mills)
+* Docs: Update processors description (Nicholas C. Zakas)
+* Fix: semi error on export declaration (fixes #2194) (Brandon Mills)
+* New: operator-linebreak rule (fixes #1405) (Benoît Zugmeyer)
+* Docs: Fixing broken links in documentation (Ilya Volodin)
+* Upgrade: Espree to 0.12.3 (fixes #2195) (Gyandeep Singh)
+* Fix: camelcase rule with {properties: never} shouldn't check assignment (fixes #2189) (Gyandeep Singh)
+* New: Allow modifying base config (fixes #2143) (Meo)
+* New: no-continue rule (fixes #1945) (borislavjivkov)
+* Fix: `no-empty` rule should allow any comments (fixes #2188) (Gyandeep Singh)
+* Docs: Fix spell in camelcase doc (fixes #2190) (Gyandeep Singh)
+* Fix: Require semicolon after import/export statements (fixes #2174) (Gyandeep Singh)
+* Build: Add linting of Markdown files to "npm test" script (fixes #2182) (David Anson)
+* Build: Fixing site generation (Ilya Volodin)
+* Build: Fix gensite task to work even if files are missing (Nicholas C. Zakas)
+
+v0.18.0 - March 28, 2015
+
+* 0.18.0 (Nicholas C. Zakas)
+* Fix: Mark variables as used in module scope (fixes #2137) (Nicholas C. Zakas)
+* Fix: arrow functions need wrapping (fixes #2113) (Nicholas C. Zakas)
+* Fix: Don't crash on empty array pattern item (fixes #2111) (Nicholas C. Zakas)
+* Fix: Don't error on destructured params (fixes #2051) (Nicholas C. Zakas)
+* Docs: Fixing broken links (Ilya Volodin)
+* Fix: no-constant-condition should not flag += (fixes #2155) (Nicholas C. Zakas)
+* Fix: Ensure piped in code will trigger correct errors (fixes #2154) (Nicholas C. Zakas)
+* Fix: block-scoped-var to handle imports (fixes #2087) (Nicholas C. Zakas)
+* Fix: no-dupe-args to work with destructuring (fixes #2148) (Nicholas C. Zakas)
+* Fix: key-spacing crash on computed properties (fixes #2120) (Brandon Mills)
+* Fix: indent crash on caseless switch (fixes #2144) (Brandon Mills)
+* Fix: Don't warn about destructured catch params (fixes #2125) (Nicholas C. Zakas)
+* Update: Omit setter param from no-unused-vars (fixes #2133) (Nicholas C. Zakas)
+* Docs: Cleaning dead links (Ilya Volodin)
+* Docs: Moving documentation out of the repository and modifying build scripts (Ilya Volodin)
+* Docs: Update link to Documentation (Kate Lizogubova)
+* Docs: Adding back deprecated space-unary-word-ops documentation (Ilya Volodin)
+* Fix: Unused recursive functions should be flagged (issue2095) (Nicholas C. Zakas)
+* Breaking: Remove JSX support from no-undef (fixes #2093) (Nicholas C. Zakas)
+* Fix: markVariableAsUsed() should work in Node.js env (fixes #2089) (Nicholas C. Zakas)
+* New: Add "always" and "never" options to "one-var" rule. (fixes #1619) (Danny Fritz)
+* New: newline-after-var rule (fixes #2057) (Gopal Venkatesan)
+* Fix: func-names with ES6 classes (fixes #2103) (Marsup)
+* Fix: Add "Error" to the "new-cap" rule exceptions (fixes #2098) (Mickaël Tricot)
+* Fix: vars-on-top conflict with ES6 import (fixes #2099) (Gyandeep Singh)
+* Docs: Fixed JSON syntax (Sajin)
+* New: space-before-function-paren rule (fixes #2028) (Brandon Mills)
+* Breaking: rule no-empty also checking for empty catch blocks. (fixes #1841) (Dieter Oberkofler)
+* Update: rule camelcase to allow snake_case in object literals. (fixes #1919) (Dieter Oberkofler)
+* New: Added option int32Hint for space-infix-ops (fixes #1295) (Kirill Efimov)
+* New: no-param-reassign rule (fixes #1599) (Nat Burns)
+
+v0.17.1 - March 17, 2015
+
+* 0.17.1 (Nicholas C. Zakas)
+* Fix: no-func-assign should not fail on import declarations (fixes #2060) (Igor Zalutsky)
+* Fix: block-scoped-var to work with destructuring (fixes #2059) (Nicholas C. Zakas)
+* Fix: no-redeclare should check Node.js scope (fixes #2064) (Nicholas C. Zakas)
+* Fix: space-before-function-parentheses generator methods (fixes #2082) (Brandon Mills)
+* Fix: Method name resolution in complexity rule (fixes #2049) (Nicholas C. Zakas)
+* Fix: no-unused-vars crash from escope workaround (fixes #2042) (Brandon Mills)
+* Fix: restrict dot-notation keywords to actual ES3 keywords (fixes #2075) (Michael Ficarra)
+* Fix: block-scoped-var to work with classes (fixes #2048) (Nicholas C. Zakas)
+* Docs: Update no-new documentation (fixes #2044) (Nicholas C. Zakas)
+* Fix: yoda range exceptions with this (fixes #2063) (Brandon Mills)
+* Docs: Fix documentation on configuring eslint with comments (Miguel Ping)
+* Fix: rule no-duplicate-case problem with MemberExpressions. (fixes #2038) (Dieter Oberkofler)
+* Fix: Exempt \0 from no-octal-escape (fixes #1923) (Michael Ficarra)
+
+v0.17.0 - March 14, 2015
+
+* 0.17.0 (Nicholas C. Zakas)
+* Fix: module import specifiers should be defined (refs #1978) (Nicholas C. Zakas)
+* Fix: Ignore super in no-undef (refs #1968) (Nicholas C. Zakas)
+* Upgrade: Espree to v0.12.0 (refs #1968) (Nicholas C. Zakas)
+* Fix: destructured arguments should work in block-scoped-var (fixes #1996) (Nicholas C. Zakas)
+* Fix: Line breaking with just carriage return (fixes #2005) (Nicholas C. Zakas)
+* Fix: location of new-cap error messages (fixes #2025) (Mathias Schreck)
+* Breaking: Stop checking JSX variable use, expose API instead (fixes #1911) (Glen Mailer)
+* Fix: Check spacing of class methods (fixes #1989) (Nicholas C. Zakas)
+* New: no-duplicate-case rule to disallow a duplicate case label (fixes #2015) (Dieter Oberkofler)
+* Clarify issue requirement for doc pull requests (Ian)
+* Add quotes around object key (Ian)
+* Fix: Add comma-dangle allow-multiline (fixes #1984) (Keith Cirkel)
+* Fix: Don't explode on default export function (fixes #1985) (Nicholas C. Zakas)
+* Update: Add AST node exceptions to comma-style. (fixes #1932) (Evan Simmons)
+* Docs: Add spread operator to available language options (Nicholas C. Zakas)
+* New: generator-star-spacing rule (fixes #1680, fixes #1949) (Brandon Mills)
+
+v0.16.2 - March 10, 2015
+
+* 0.16.2 (Nicholas C. Zakas)
+* Fix: Ensure globalReturn isn't on when node:false (fixes #1995) (Nicholas C. Zakas)
+* Downgrade: escope pegged to 2.0.6 (refs #2001) (Nicholas C. Zakas)
+* Upgrade: escope to 2.0.7 (fixes #1978) (Nicholas C. Zakas)
+* Docs: Update descriptive text for --no-ignore option. (David Anson)
+* Upgrade: estraverse to latest for ESTree support (fixes #1986) (Nicholas C. Zakas)
+* Fix: Global block-scope-var check should work (fixes #1980) (Nicholas C. Zakas)
+* Fix: Don't warn about parens around yield (fixes #1981) (Nicholas C. Zakas)
+
+v0.16.1 - March 8, 2015
+
+* 0.16.1 (Nicholas C. Zakas)
+* Fix: Node.js scoping in block-scoped-var (fixes #1969) (Nicholas C. Zakas)
+* Update: Enable ES6 scoping for more options (Nicholas C. Zakas)
+* Fix: Ensure all export nodes are traversable (fixes #1965) (Nicholas C. Zakas)
+* Fix: Ensure class names are marked as used (fixes #1967) (Nicholas C. Zakas)
+* Fix: remove typo that caused a crash (fixes #1963) (Fabricio C Zuardi)
+* Docs: Added missing "are" (Sean Wilkinson)
+
+v0.16.0 - March 7, 2015
+
+* 0.16.0 (Nicholas C. Zakas)
+* Fix: Pass correct sourceType to escope (fixes #1959) (Nicholas C. Zakas)
+* Fix: Scoping for Node.js (fixes #892) (Nicholas C. Zakas)
+* Fix: strict rule should honor module code (fixes #1956) (Nicholas C. Zakas)
+* New: Add es6 environment (fixes #1864, fixes #1944) (Nicholas C. Zakas)
+* Docs: Update ecmaFeatures list (fixes #1942) (Nicholas C. Zakas)
+* Fix: Make no-unused-vars ignore exports (fixes #1903) (Nicholas C. Zakas)
+* Upgrade: Espree to v1.11.0 (Nicholas C. Zakas)
+* Fix: Comment configuration of rule doesn't work (fixes #1792) (Jary)
+* Fix: Rest args should work in no-undef and block-scoped-var (fixes #1543) (Nicholas C. Zakas)
+* Breaking: change no-comma-dangle to comma-dangle (fixes #1350) (Mathias Schreck)
+* Update: space-before-function-parentheses to support generators (fixes #1929) (Brandon Mills)
+* New: Adding support for "// eslint-disable-line rule" style comments (Billy Matthews)
+* Fix: Use unversioned sinon file in browser test (fixes #1947) (Nicholas C. Zakas)
+* Docs: Add mention of compatible parsers (Nicholas C. Zakas)
+* Fix: Better error when given null as rule config (fixes #1760) (Glen Mailer)
+* Update: no-empty to check TryStatement.handler (fixes #1930) (Brandon Mills)
+* Fix: space-before-function-parentheses and object methods (fixes #1920) (Brandon Mills)
+* New: no-dupe-args rule (fixes #1880) (Jamund Ferguson)
+* Fix: comma-spacing should ignore JSX text (fixes #1916) (Brandon Mills)
+* Breaking: made eol-last less strict (fixes #1460) (Glen Mailer)
+* New: generator-star middle option (fixes #1808) (Jamund Ferguson)
+* Upgrade: Espree to 1.10.0 for classes support (Nicholas C. Zakas)
+* Docs: no-plusplus.md - auto semicolon insertion (Miroslav Obradović)
+* Docs: Use union types in TokenStore JSDoc (refs #1878) (Brandon Mills)
+* Fix: block-scoped-var to work with destructuring (fixes #1863) (Nicholas C. Zakas)
+* Docs: Update docs for token-related methods (fixes #1878) (Nicholas C. Zakas)
+* Update: Remove preferGlobal from package.json (fixes #1877) (Nicholas C. Zakas)
+* Fix: allow block bindings in no-inner-declarations (fixes #1893) (Roberto Vidal)
+* Fix: getScope and no-use-before-define for arrow functions (fixes #1895) (Brandon Mills)
+* Fix: Make no-inner-declarations look for arrow functions (fixes #1892) (Brandon Mills)
+* Breaking: Change no-space-before-semi to semi-spacing and add "after" option (fixes #1671) (Mathias Schreck)
+* Update: Add support for custom preprocessors (fixes #1817) (Ilya Volodin)
+
+v0.15.1 - February 26, 2015
+
+* 0.15.1 (Nicholas C. Zakas)
+* Build: Fix release task (Nicholas C. Zakas)
+* Fix: check all semicolons in no-space-before-semi (fixes #1885) (Mathias Schreck)
+* Fix: Refactor comma-spacing (fixes #1587, fixes #1845) (Roberto Vidal)
+* Fix: Allow globalReturn in consistent-return (fixes #1868) (Brandon Mills)
+* Fix: semi rule should check throw statements (fixes #1873) (Mathias Schreck)
+* Docs: Added HolidayCheck AG as user (0xPIT)
+* Upgrade: `chalk` to 1.0.0 (Sindre Sorhus)
+* Docs: Add CustomInk to the list of companies (Derek Lindahl)
+* Docs: Alphabetize project & company usage list (Derek Lindahl)
+* Docs: fix typo (Henry Zhu)
+* Docs: Fix typo (Brenard Cubacub)
+
+v0.15.0 - February 21, 2015
+
+* 0.15.0 (Nicholas C. Zakas)
+* Upgrade: Espree to 1.9.1 (fixes #1816, fixes #1805) (Nicholas C. Zakas)
+* Fix: make rules work with for-of statements (fixes #1859) (Mathias Schreck)
+* Fix: Enable globalReturn for Node.js environment (fixes #1158) (Nicholas C. Zakas)
+* Fix: Location of extra paren message (fixes #1814) (Nicholas C. Zakas)
+* Fix: Remove unnecessary file exists check (fixes #1831) (Nicholas C. Zakas)
+* Fix: Don't count else-if in max-depth (fixes #1835) (Nicholas C. Zakas)
+* Fix: Don't flag for-of statement (fixes #1852) (Nicholas C. Zakas)
+* Build: Test using io.js as well (Nicholas C. Zakas)
+* Change customformat value to path (suisho)
+* Docs: Add a missing word in the Contributing doc (Ben Linskey)
+* Docs: Fix typo in wrap-iife rule doc title (Ben Linskey)
+* Docs: Update pages to fix rendering of lists (David Anson)
+* Fix: new-cap should allow defining exceptions (fixes #1424) (Brian Di Palma)
+* Update: Add requireReturnDescription for valid-jsdoc (fixes #1833) (Brian Di Palma)
+* New: rule no-throw-literal added (fixes #1791) (Dieter Oberkofler)
+* New: multi-line option for the curly rule (fixes #1812) (Hugo Wood)
+* Docs: fix typo in configuring docs (mendenhallmagic)
+* Update: Backslashes in path (fixes #1818) (Jan Schär)
+* Docs: Update pages to fix rendering of lists and fenced code blocks (David Anson)
+* Docs: add webpack loader to the docs/integrations page (Maxime Thirouin)
+* Breaking: space-before-function-parentheses replaces space-after-function-name and checkFunctionKeyword (fixes #1618) (Mathias Schreck)
+
+v0.14.1 - February 8, 2015
+
+* 0.14.1 (Nicholas C. Zakas)
+* Fix: Exit code should be 1 for any number of errors (fixes #1795) (Nicholas C. Zakas)
+* Fix: Check indentation of first line (fixes #1796) (Nicholas C. Zakas)
+* Fix: strict rules shouldn't throw on arrow functions (fixes #1789) (Nicholas C. Zakas)
+
+v0.14.0 - February 7, 2015
+
+* 0.14.0 (Nicholas C. Zakas)
+* Update: Fix indentation of comment (Nicholas C. Zakas)
+* Fix: comma-spacing for template literals (fixes #1736) (Nicholas C. Zakas)
+* Build: Add Node.js 0.12 testing (Nicholas C. Zakas)
+* Breaking: Remove node from results (fixes #957) (Nicholas C. Zakas)
+* Breaking: Exit code is now error count (Nicholas C. Zakas)
+* Docs: Correct getFormatter() documentation (refs #1723) (Nicholas C. Zakas)
+* Update: Make rules work with arrow functions (fixes #1508, fixes #1509, fixes #1493) (Nicholas C. Zakas)
+* Fix: Ensure template string references count (fixes #1542) (Nicholas C. Zakas)
+* Fix: no-undef to work with arrow functions (fixes #1604) (Nicholas C. Zakas)
+* Upgrade: Espree to version 1.8.0 (Nicholas C. Zakas)
+* Fix: Don't throw error for arguments (fixes #1759) (Nicholas C. Zakas)
+* Fix: Don't warn on computed nonliteral properties (fixes #1762) (Nicholas C. Zakas)
+* New: Allow parser to be configured (fixes #1624) (Nicholas C. Zakas)
+* Docs: Added double quotes for JSON keys for comma-spacing and key-spacing rule (Dmitry Polovka)
+* New: Rule indent (fixes #1022) (Dmitriy Shekhovtsov)
+* Revert "New: Rule indent (fixes #1022)" (Nicholas C. Zakas)
+* Update: fix eslint indentations (fixes #1770) (Dmitriy Shekhovtsov)
+* Fix: Scoping issues for no-unused-vars (fixes #1741) (Nicholas C. Zakas)
+* Docs: Added `eslint-enable` inline (Ivan Fraixedes)
+* New: Add predefined Meteor globals (fixes #1763) (Johan Brook)
+* New: Rule indent (fixes #1022) (Dmitriy Shekhovtsov)
+* Update: Check all assignments for consistent-this (fixes #1513) (Timothy Jones)
+* Fix: Support exceptions in no-multi-spaces (fixes #1755) (Brandon Mills)
+* Docs: Forgotten parentheses in code snippet (Ivan Fraixedes)
+* Update: CLIEngine results include warning and error count (fixes #1732) (gyandeeps)
+* Fix: Scoping issues for no-unused-vars (fixes #1733) (Nicholas C. Zakas)
+* Update: Add getNodeByRangeIndex method (refs #1755) (Brandon Mills)
+* Update: Replace getTokenByRange(Index->Start) (refs #1721) (Brandon Mills)
+* Update: Fast-path for empty input (fixes #546) (Nicholas C. Zakas)
+* Fix: Allow single line else-if (fixes #1739) (Nicholas C. Zakas)
+* Fix: Don't crash when $HOME isn't set (fixes #1465) (Nicholas C. Zakas)
+* Fix: Make no-multi-spaces work for every case (fixes #1603, fixes #1659) (Nicholas C. Zakas)
+* Breaking: Show error and warning counts in stylish summary (fixes #1746) (Brandon Mills)
+* Docs: fixed typo in no-lone-blocks docs (Vitor Balocco)
+* Docs: fixed typo in consistent-return docs (Vitor Balocco)
+* Breaking: remove implied eval check from no-eval (fixes #1202) (Mathias Schreck)
+* Update: Improve CLIEngine.getFormatter() (refs #1723) (Nicholas C. Zakas)
+* Docs: Add Backbone plugin link (Ilya Volodin)
+* Docs: use npm's keyword route (Tom Vincent)
+* Build: Update sitegen script (Closes #1725) (Ilya Volodin)
+
+v0.13.0 - January 24, 2015
+
+* 0.13.0 (Nicholas C. Zakas)
+* Update: The rule spaced-line-comment now also allows tabs and not only spaces as whitespace. (fixes #1713) (Dieter Oberkofler)
+* Docs: add Jasmine rules and eslintplugin npm links (Tom Vincent)
+* Fix: Make no-redeclare work with let (fixes #917) (Nicholas C. Zakas)
+* Update: Add CLIEngine.getFormatter() (fixes #1653) (Nicholas C. Zakas)
+* Breaking: Update escope (fixes #1642) (Nicholas C. Zakas)
+* Update: Switch to using estraverse-fb (fixes #1712) (Nicholas C. Zakas)
+* Docs: Update README FAQ (Nicholas C. Zakas)
+* Update: no-warning-comments matches on whole word only (fixes #1709) (Nick Fisher)
+* Build: Add JSDoc generation (fixes #1363) (Nicholas C. Zakas)
+* Docs: Add more info about context (fixes #1330) (Nicholas C. Zakas)
+* Upgrade: Espree to 1.7.1 (fixes #1706) (Nicholas C. Zakas)
+* Docs: Make CLA notice more prominent (Nicholas C. Zakas)
+* Update: Added globals for: phantom,jquery, prototypejs, shelljs (fixes #1704) (Dmitriy Shekhovtsov)
+* Docs: Fixed example for the space-return-throw-case rule (mpal9000)
+* Fix: Except object literal methods from func-names (fixes #1699) (Brandon Mills)
+* Update: use global strict mode everywhere (fixes #1691) (Brandon Mills)
+* Update: Add allowPattern option for dot-notation rule (fixes #1679) (Tim Schaub)
+* Fix: Missing undeclared variables in JSX (fixes #1676) (Yannick Croissant)
+* Fix: no-unused-expressions rule incorrectly flagging yield (fixes #1672) (Rémi Gérard-Marchant)
+* Update: Combine strict mode rules (fixes #1246) (Brandon Mills)
+* Fix: disregards leading './' in ignore pattern or file name (fixes #1685) (Chris Montrois)
+* Upgrade: globals module to latest (fixes #1670) (Nicholas C. Zakas)
+* Fix: generator-star should allow params (fixes #1677) (Brandon Mills)
+* Fix: no-unused-vars for JSX (fixes #1673 and fixes #1534) (Yannick Croissant)
+* Docs: Add angularjs-eslint link into the integration doc (Emmanuel DEMEY)
+
+v0.12.0 - January 17, 2015
+
+* 0.12.0 (Nicholas C. Zakas)
+* Fix: Track JSX global variable correctly (fixes #1534) (Nicholas C. Zakas)
+* Fix: Property regex flag checking (fixes #1537) (Nicholas C. Zakas)
+* Docs: Add angularjs-eslint link into the integration doc (Emmanuel DEMEY)
+* Update: Expose ecmaFeatures on context (fixes #1648) (Nicholas C. Zakas)
+* Docs: Added Fitbit to the list of companies (Igor Zalutsky)
+* New: gen-star rule (refs #1617) (Jamund Ferguson)
+* New: no-var rule (refs #1617) (Jamund Ferguson)
+* Fix: Support JSX spread operator (fixes #1634) (Nicholas C. Zakas)
+* Docs: Document ecmaFeatures (Nicholas C. Zakas)
+* Upgrade: several dependencies (fixes #1377) (Nicholas C. Zakas)
+* Fix: Broken JSX test (Nicholas C. Zakas)
+* Fix: no-bitwise reports on bitwise assignment expressions (fixes #1643) (Mathias Schreck)
+* Fix: Find JSXIdentifier refs in no-unused-vars (fixes #1534) (Nicholas C. Zakas)
+* Update: Add a couple JSX tests (Nicholas C. Zakas)
+* Fix: quotes rule ignores JSX literals (fixes #1477) (Nicholas C. Zakas)
+* Fix: Don't warn on JSX literals with newlines (fixes #1533) (Nicholas C. Zakas)
+* Update: Fully enable JSX support (fixes #1640) (Nicholas C. Zakas)
+* Breaking: Allow parser feature flips (fixes #1602) (Nicholas C. Zakas)
+* Fix: Allow comments in key-spacing groups (fixes #1632) (Brandon Mills)
+* Fix: block-scoped-var reports labels (fixes #1630) (Michael Ficarra)
+* Docs: add newline to no-process-env (fixes #1627) (Tom Vincent)
+* Fix: Update optionator, --no in help (fixes #1134) (George Zahariev)
+* Fix: Allow individual newlines in space-in-brackets (fixes #1614) (Brandon Mills)
+* Docs: Correct alignment in example project tree (Tim Schaub)
+* Docs: Remove references to Esprima (Nicholas C. Zakas)
+* Docs: Remove illegal code fence (Nicholas C. Zakas)
+
+v0.11.0 - December 30, 2014
+
+* 0.11.0 (Nicholas C. Zakas)
+* Fix: Adding regexp literal exception (fixes #1589) (Greg Cochard)
+* Fix: padded-blocks incorrectly complained on comments (fixes #1416) (Mathias Schreck)
+* Fix: column location of key-spacing with additional tokens (fixes #1458) (Mathias Schreck)
+* Build: tag correct commit (refs #1606) (Mathias Schreck)
+* Upgrade: Updat Espree to 1.3.1 (Nicholas C. Zakas)
+* Fix: add es3 config option to dot-notation rule (fixes #1484) (Michael Ficarra)
+* Fix: valid-jsdoc should recognize @class (fixes #1585) (Nicholas C. Zakas)
+* Update: Switch to use Espree (fixes #1595) (Nicholas C. Zakas)
+* Fix: brace-style stroustrup should report on cuddled elseif (fixes #1583) (Ian Christian Myers)
+* New: Configuration via package.json (fixes #698) (Michael Mclaughlin)
+* Update: Set environments w/ globals (fixes #1577) (Elan Shanker)
+* Fix: yoda treats negative numbers as literals (fixes #1571) (Brandon Mills)
+* Fix: function arguments now count towards no-shadow check (fixes #1584) (Glen Mailer)
+* Fix: check if next statement is on newline when warning against extra semicolons. (fixes #1580) (Evan You)
+* Update: add yoda exception for range tests (fixes #1561) (Brandon Mills)
+* New: space-after-function-name (fixes #1340) (Roberto Vidal)
+
+v0.10.2 - December 12, 2014
+
+* 0.10.2 (Nicholas C. Zakas)
+* Fix: detect for...in in no-loop-func (fixes #1573) (Greg Cochard)
+* Update: simplify comma-spacing logic (fixes #1562) (Brandon Mills)
+* Fix: operator-assignment addition is non-commutative (fixes#1556) (Brandon Mills)
+* 0.10.1 (Nicholas C. Zakas)
+* Update: Add new-cap exception configurations. (Fixes #1487) - `newCapsAllowed` - `nonNewCapsAllowed` (Jordan Harband)
+
+v0.10.1 - December 6, 2014
+
+* 0.10.1 (Nicholas C. Zakas)
+* Docs: Fix v0.10.0 changelog (Nicholas C. Zakas)
+* Build: Ensure changelog works with large semver versions (Nicholas C. Zakas)
+* Fix: comma-spacing and comma-style to work with array literals (fixes #1492) (Nicholas C. Zakas)
+* Update: better operator regex in use-isnan rule (fixes #1551) (Michael Ficarra)
+* Fix: wrong op index in no-multi-spaces (fixes #1547) (Brandon Mills)
+* Fix: Restrict use-isnan violations to comparison operators. (Fixes #1535) (Jordan Harband)
+* Fix: comma-spacing has false positives when parenthesis are used (fixes #1457) (Jamund Ferguson)
+* Docs: alphabetize the "Stylistic Issues" section (Jeff Williams)
+* Build: make the "gensite" target work when DOCS_DIR does not exist (fixes #1530) (Jeff Williams)
+* Docs: badges should only refer to master branch (Mathias Schreck)
+* Fix: prevent crash on empty blocks in no-else-return (fixes #1527) (Mathias Schreck)
+* Build: Fix md to html conversion regex (fixes #1525) (Brandon Mills)
+* 0.10.0 (Nicholas C. Zakas)
+
+v0.10.0 - November 27, 2014
+
+* 0.10.0 (Nicholas C. Zakas)
+* Fix: Add Object and Function as exceptions in new-cap (refs #1487) (Nicholas C. Zakas)
+* Breaking: Allow extensionless files to be passed on CLI (fixes #1131) (Nicholas C. Zakas)
+* Fix: typo: iffe to iife, none to non (Michael Ficarra)
+* Update: refactor tokens API (refs #1212) (Brandon Mills)
+* New: Allow other file extensions (fixes #801) (Nicholas C. Zakas)
+* Update: Add Event to browser globals (fixes #1474) (Nicholas C. Zakas)
+* Fix: check function call arguments in comma-spacing (fixes #1515) (Mathias Schreck)
+* Update: Add no-cond-assign option to disallow nested assignments in conditionals (fixes #1444) (Jeff Williams)
+* Fix: crash in no-multi-spaces on empty array elements (fixes #1418) (Brandon Mills)
+* Fix: Don't explode on directory traversal (fixes #1452) (Nicholas C. Zakas)
+* Fix: no-fallthrough should work when semis are missing (fixes #1447) (Nicholas C. Zakas)
+* Fix: JSDoc parsing by updating doctrine (fixes #1442) (Nicholas C. Zakas)
+* Update: restore the "runs" global present in Jasmine 1.3 (fixes #1498) (Michał Gołębiowski)
+* Fix: ignore undefined identifiers in typeof (fixes #1482) (Mathias Schreck)
+* Fix: Ignoring empty comments. (fixes #1488) (Greg Cochard)
+* New: Add space-unary-ops rules (#1346) (Marcin Kumorek)
+* Update: Remove shebang workaround in spaced-line-comment (fixes #1433) (Michael Ficarra)
+* Docs: change 'and' to 'an' in docs/rules/valid-jsdoc.md (fixes #1441) (Michael Ficarra)
+* Update: Add `beforeAll` and `afterAll` to the Jasmine globals (fixes #1478) (Gyandeep Singh)
+* Update: Add exception options to space-in-parens (fixes #1368) (David Clark)
+* Build: Add check for license issues (fixes #782) (Brandon Mills)
+* Docs: update badges (Yoshua Wuyts)
+* Docs: Update pages to fix rendering of lists and fenced code blocks (David Anson)
+* Fix: env rules merging for command line config (fixes #1271) (Roberto Vidal)
+* Fix: Collect variables declare in switch-case.(fixes #1453) (chris)
+* Fix: remove extra capture group (Nate-Wilkins)
+* Update: allow distinct alignment groups in key-spacing (fixes #1439) (Brandon Mills)
+* Fix: message for numeric property names in quote-props (fixes #1459) (Brandon Mills)
+* Docs: Remove assumption about the rule config (Alexander Schmidt)
+* New: Add ability to time individual rules (fixes #1437) (Brandon Mills)
+* Fix: single quotes (Nate-Wilkins)
+* Docs: Fix broken code fences in key-spacing docs (Brandon Mills)
+* Docs: Explain .eslintignore features (fixes #1094) (Brandon Mills)
+* Breaking: ignore node_modules by default (fixes #1163) (Brandon Mills)
+* Fix: Adds clamping to getSource beforeCount (fixes #1427) (Greg Gianforcaro)
+* New: add no-inline-comment rule (fixes #1366) (Greg Cochard)
+* Fix: '.md' to '.html' with anchors (fixes #1415) (Nate-Wilkins)
+* Build: Filter and sort versions in gensite (fixes #1430) (Brandon Mills)
+* Build: Escape period in regex (fixes #1428) (Brandon Mills)
+* Revert "Fix: '.md' to '.html' with anchors (fixes #1415)" (Nicholas C. Zakas)
+* 0.9.2 (Nicholas C. Zakas)
+* New: Add operator-assignment rule (fixes #1420) (Brandon Mills)
+
+v0.9.2 - November 1, 2014
+
+* 0.9.2 (Nicholas C. Zakas)
+* Fix: '.md' to '.html' with anchors (fixes #1415) (Nate-Wilkins)
+* Fix: Allow line breaks in key-spacing rule (fixes #1407) (Brandon Mills)
+* Build: add coveralls integration (fixes #1411) (Mathias Schreck)
+* Fix: add severity flag for ignored file warning (fixes #1401) (Mathias Schreck)
+* Fix: Keep sinon at ~1.10.3 (fixes #1406) (Brandon Mills)
+* Fix: ! negates .eslintignore patterns (fixes #1093) (Brandon Mills)
+* Fix: let fs.stat throw if a file does not exist (fixes #1296) (Mathias Schreck)
+* Fix: check switch statements in space-before-blocks (fixes #1397) (Mathias Schreck)
+* Docs: fix rule name in example configuration (Mathias Schreck)
+* Fix: disable colors during test run (fixes #1395) (Mathias Schreck)
+* New: add isPathIgnored method to CLIEngine (fixes #1392) (Mathias Schreck)
+* Docs: changing eslint to ESLint and add missing backtick (Mathias Schreck)
+* Docs: Documents the functionality to load a custom formatter from a file (Adam Baldwin)
+* 0.9.1 (Nicholas C. Zakas)
+* Update: Option type for mixed tabs and spaces (fixes #1374) (Max Nordlund)
+* Fix: Nested occurrences of no-else-return now show multiple reports (fixes #1369) (Jordan Hawker)
+
+v0.9.1 - October 25, 2014
+
+* 0.9.1 (Nicholas C. Zakas)
+* Docs: fix link on governance model (azu)
+* Fix: plugins without rulesConfig causes crash (fixes #1388) (Mathias Schreck)
+* 0.9.0 (Nicholas C. Zakas)
+
+v0.9.0 - October 24, 2014
+
+* 0.9.0 (Nicholas C. Zakas)
+* New: Allow reading from STDIN (fixes #368) (Nicholas C. Zakas)
+* New: add --quiet option (fixes #905) (Mathias Schreck)
+* Update: Add support for plugin default configuration (fixes #1358) (Ilya Volodin)
+* Fix: Make sure shebang comment node is removed (fixes #1352) (Nicholas C. Zakas)
+* New: Adding in rule for irregular whitespace checking. (fixes #1024) (Jonathan Kingston)
+* Fix: space-in-parens should not throw for multiline statements (fixes #1351) (Jary)
+* Docs: Explain global vs. local plugins (fixes #1238) (Nicholas C. Zakas)
+* Docs: Add docs on Node.js API (fixes #1247) (Nicholas C. Zakas)
+* Docs: Add recommended keywords for plugins (fixes #1248) (Nicholas C. Zakas)
+* Update: Add CLIEngine#getConfigForFile (fixes #1309) (Nicholas C. Zakas)
+* Update: turn on comma-style for project (fixes #1316) (Nicholas C. Zakas)
+* Fix: Ensure messages are sorted by line (fixes #1343) (Nicholas C. Zakas)
+* Update: Added arraysInObjects and objectsInObjects options to space-in-brackets rule (fixes #1265, fixes #1302) (vegetableman)
+* Breaking: Removed comma spacing check from space-infix-ops (fixes #1361) (vegetableman)
+* Fix: addressed linting errors (Nicholas C. Zakas)
+* Docs: Add Contributor Model (fixes #1341) (Nicholas C. Zakas)
+* Docs: Add reference to CLA (Nicholas C. Zakas)
+* Build: add version numbers to docs (fixes #1170) (Mathias Schreck)
+* Fix: no-fallthrough incorrectly flagged falls through annotations (fixes #1353) (Mathias Schreck)
+* Build: separate site publishing form generation (fixes #1356) (Mathias Schreck)
+* New: Add key-spacing rule (fixes #1280) (Brandon Mills)
+* New: add spaced-line-comment rule (fixes #1345) (Greg Cochard)
+* Docs: added more Related Rules sections (fixes #1347) (Delapouite)
+* Fix: resolve linting issue in (fixes #1339) (Nicholas C. Zakas)
+* New: add space-before-blocks rule (fixes #1277) (Mathias Schreck)
+* Docs: Remove moot integration plugins (Sindre Sorhus)
+* New: add rule for multiple empty lines (fixes #1254) (Greg Cochard)
+* Fix: no-shadow rule should consider function expressions (fixes #1322) (Mathias Schreck)
+* Update: remove globals present only in Jasmine plugins (fixes #1326) (Michał Gołębiowski)
+* New: added no-multi-spaces rule (fixes #630) (vegetableman)
+* New: Added comma-spacing rule (Fixes #628, Fixes #1319) (vegetableman)
+* New: add rule for padded blocks (fixes #1278) (Mathias Schreck)
+* Docs: fix eqeqeq isNullCheck comment (Denis Sokolov)
+* Fix: no-comma-dangle violation in unit test and Makefile.js/lint not checking return codes (fixes #1306) (David Anson)
+* Fix: allow comma-last with object properties having line breaks (fixes #1314) (vegetableman)
+* New: Added comma-style rule (fixes #1282) (vegetableman)
+* Update: add space after function keyword check (fixes #1276) (Mathias Schreck)
+* Update: Add missing environments and fix sorting/grouping of rules (fixes #1307, fixes #1308) (David Anson)
+* Docs: Fix sorting of rules within each section (David Anson)
+* Docs: Correct a few misspelled words (David Anson)
+* Docs: Update multiple pages to fix rendering of fenced code blocks (David Anson)
+* New: Added no-process-env rule (fixes #657) (vegetableman)
+* Fix: add rule ensuring #1258 is fixed by recent rewrite (fixes #1258) (Michael Ficarra)
+* Update: split propertyName from singleValue in space-in-brackets (fixes #1253) (Michael Ficarra)
+* Update: add "as-needed" option to quote-props rule (fixes #1279) (Michael Ficarra)
+* Docs: fixed broken link and changed warning level to error level (vegetableman)
+* Docs: Added "the native web" to the list of companies that use ESLint. (Golo Roden)
+* Docs: Add BountySource badge to README (Nicholas C. Zakas)
+* 0.8.2 (Nicholas C. Zakas)
+
+v0.8.2 - September 20, 2014
+
+* 0.8.2 (Nicholas C. Zakas)
+* Docs: Updated contribution guidelines to add accepted/bounty issues descriptions (Nicholas C. Zakas)
+* Docs: Update README with links and FAQs (Nicholas C. Zakas)
+* Docs: add finally to space-after-keywords documentation (Mathias Schreck)
+* New: add ignoreCase option to sort-vars (fixes #1272) (Mathias Schreck)
+* Docs: fix typo (Barry Handelman)
+* Docs: Fix broken Markdown on configuration page (Nicholas C. Zakas)
+* Docs: Fix reference to wrong rule name (Harry Wolff)
+* Upgrade: Most dev dependencies (Nicholas C. Zakas)
+* Upgrade: shelljs to 0.3.0 (Nicholas C. Zakas)
+* Upgrade: doctrine to 0.5.2 (Nicholas C. Zakas)
+* Upgrade: esprima to 1.2.2 (Nicholas C. Zakas)
+* Upgrade: eslint-tester to latest (Nicholas C. Zakas)
+* Fix: Load .eslintrc in directory with $HOME as an ancestor (fixes #1266) (Beau Gunderson)
+* Fix: load .eslintrc from HOME (fixes #1262) (Beau Gunderson)
+* New: Add sharable rule settings (fixes #1233) (Ilya Volodin)
+* Upgrade: upgrade outdated dependencies (fixes #1251) (Mathias Schreck)
+* Docs: fix typo in no-ex-assign documentation (Michael Ficarra)
+* Docs: add intellij plugin to integrations (ido)
+* Docs: Changing NPM to npm (Peter deHaan)
+* Fix: strict should check function expressions (fixes #1244) (Brandon Mills)
+* Docs: fix vars-on-top documentation (fixes #1234) (Mathias Schreck)
+* 0.8.1 (Nicholas C. Zakas)
+* Docs: Fixed a typo in brace-style.md (Anton Antonov)
+
+v0.8.1 - September 9, 2014
+
+* 0.8.1 (Nicholas C. Zakas)
+* Fix: Ensure exit code is 1 when there's a syntax error (fixes #1239) (Nicholas C. Zakas)
+* Docs: fix up vars-on-top documentation (fixes #1234) (Michael Ficarra)
+* Fix: vars-on-top directive support (fixes #1235) (Michael Ficarra)
+* Fix: Avoid mutating node.range in max-len (fixes #1224) (Brandon Mills)
+* Docs: Typo, add missing quotation mark (Ádám Lippai)
+* Update: space-in-brackets to allow exceptions (fixes #1142) (Brandyn Bennett)
+* 0.8.0 (Nicholas C. Zakas)
+
+v0.8.0 - September 5, 2014
+
+* 0.8.0 (Nicholas C. Zakas)
+* Perf-related revert "Fix: Speed up tokens API (refs #1212)" (Nicholas C. Zakas)
+* Fix: no-fallthrough: continue affects control flow, too (fixes #1220) (Michael Ficarra)
+* Fix: rewrite no-unused-vars rule (refs #1212) (Michael Ficarra)
+* Fix: Error when there's a \r in .eslintrc (#1172) (Gyandeep Singh)
+* Added rule disallowing reserved words being used as keys (fixes #1144) (Emil Bay)
+* Fix: rewrite no-spaced-func rule (refs #1212) (Michael Ficarra)
+* Fix: Speed up getScope() (refs #1212) (Brandon Mills)
+* Fix: no-extra-strict behavior for named function expressions (fixes #1209) (Mathias Schreck)
+* Add Date.UTC to allowed capitalized functions (David Brockman Smoliansky)
+* New: Adding 'vars-on-top' rule (fixes #1148) (Gyandeep Singh)
+* Fix: Speed up tokens API (refs #1212) (Brandon Mills)
+* Docs: document plugin usage (fixes #1117) (Mathias Schreck)
+* New: accept plugins from cli (fixes #1113) (Mathias Schreck)
+* Docs: fix some typos. (Mathias Schreck)
+* New: Load plugins from configs (fixes #1115). (Mathias Schreck)
+* Fix: no-unused-expressions better directive detection (fixes #1195) (Michael Ficarra)
+* Fix: no-unused-expressions directive support (fixes #1185) (Michael Ficarra)
+* Update: Add 'allowSingleLine' option to brace-style (fixes #1089) (John Gozde)
+* Docs: Spell checking and one extra closing curly in code example (Juga Paazmaya)
+* Fix: mergeConfigs ensures the plugins property exists (fixes #1191). (Mathias Schreck)
+* Update: Declare ES6 collections (Map, Set, WeakMap, WeakSet) as built-in globals (fixes #1189) (Michał Gołębiowski)
+* New: Adding 'plugin' CLI option (fixes #1112) (Greg)
+* Fix: Correct a typo in the error message in tests (Michał Gołębiowski)
+* New: Add no-extra-bind rule to flag unnecessary bind calls (fixes #982) (Bence Dányi)
+* Fix: Useless bind call in cli-engine (fixes #1181) (Bence Dányi)
+* Docs: Updates `amd` description (fixes #1175) (James Whitney)
+* New: Adds support for the `jasmine` env (fixes #1176) (James Whitney)
+* Fix: for-in support to no-empty-label rule (fixes #1161) (Marc Harter)
+* docs: Update link (Mathias Bynens)
+* Fix: crash when loading empty eslintrc file (fixes #1164) (Michael Ficarra)
+* Fix: no-unused-var should respect compound assignments (fixes #1166) (Michael Ficarra)
+* Update: ES3 `ReservedWord`s (fixes #1151) Adds ES3 `ReservedWord`s to the list of keywords in the `dot-notation` rule (fixes #1151) (Emil Bay)
+* Update: Update comment parser to read rule slashes (fixes #1116) (Jary)
+* New: add no-void rule (fixes #1017). (Mike Sidorov)
+* New: Add rules.import() (fixes #1114) (Mathias Schreck)
+* New: Make mergeConfigs() merge plugin entries (fixes #1111) (Mathias Schreck)
+* Breaking: Change no-global-strict to global-strict and add "always" option (fixes #989) (Brandon Mills)
+* Fix: no-unreachable should check top-level statements (fixes #1138) (Brandon Mills)
+* Fix: Speed up no-unreachable (fixes #1135) (Brandon Mills)
+* New: advanced handle-callback-err configuration (fixes #1124) (Mathias Schreck)
+* New: Expose CLIEngine (fixes #1083) (Gyandeep Singh)
+* Docs: Add link to new Atom linter (fixes #1125) (Gil Pedersen)
+* Fix: space-after-keywords checks finally of TryStatement (fixes #1122) (Michael Ficarra)
+* Fix: space-after-keywords checks while of DoWhileStatement (fixes #1120) (Michael Ficarra)
+* Fix: space-after-keywords w/ "never" should allow else-if (fixes #1118) (Michael Ficarra)
+* Fix: dot-notation rule flags non-keyword reserved words (fixes #1102) (Michael Ficarra)
+* Update: Use xml-escape instead of inline helper (Ref #848) (jrajav)
+* Update: Added comments support to .eslintignore (fixes #1084) (Vitaly Puzrin)
+* Update: enabled 'no-trailing-spaces' rule by default (fixes #1051) (Vitaly Puzrin)
+* Breaking: Ignore children of all patterns by adding "/**" (Fixes #1069) (jrajav)
+* Fix: skip dot files and ignored dirs on traverse (fixes #1077, related to #814) (Vitaly Puzrin)
+* Docs: Added Gruntjs plugin on integrations page (Gyandeep Singh)
+* Fix: don't break node offsets if hasbang present (fixes #1078) (Vitaly Puzrin)
+* Build: Exclude readme/index from rules Resources generation (Fixes #1072) (jrajav)
+* Docs: Change eol-last examples to `` (Fixes #1068) (jrajav)
+* 0.7.4 (Nicholas C. Zakas)
+* New: space-in-parens rule (Closes #627) (jrajav)
+
+v0.7.4 - July 10, 2014
+
+* 0.7.4 (Nicholas C. Zakas)
+* Docs: Fix 'lintinging' typo and ref links (Tom Vincent)
+* Fix: Transform envs option to object in Config (Fixes #1064) (jrajav)
+* 0.7.3 (Nicholas C. Zakas)
+
+v0.7.3 - July 9, 2014
+
+* 0.7.3 (Nicholas C. Zakas)
+* Update: Address code review comment for strict rule (refs #1011) (Nicholas C. Zakas)
+* Docs: Update copyright policy (Nicholas C. Zakas)
+* Docs: Update documentation for max-len to include description of second option (fixes #1006) (Nicholas C. Zakas)
+* Fix: Avoid double warnings for strict rule (fixes #1011) (Nicholas C. Zakas)
+* Fix: Check envs for true/false (Fixes #1059) (jrajav)
+* 0.7.2 (Nicholas C. Zakas)
+
+v0.7.2 - July 8, 2014
+
+* 0.7.2 (Nicholas C. Zakas)
+* Fix: no-mixed-spaces-and-tabs incorrectly flagging multiline comments (fixes #1055) (Nicholas C. Zakas)
+* Fix: new-cap error that throws on non-string member (fixes #1056) (Nicholas C. Zakas)
+* Fix: Always make globals an object (Fixes #1049) (jrajav)
+* 0.7.1 (Nicholas C. Zakas)
+
+v0.7.1 - July 7, 2014
+
+* 0.7.1 (Nicholas C. Zakas)
+* Docs: Add Related Rules sections (Fixes #990) (jrajav)
+* Fix: Check output file isn't dir, fix tests (Fixes #1034) (jrajav)
+* Docs: Updated documentation for several rules (Nicholas C. Zakas)
+* Docs: Updated contributor guide and dev env setup guide (Nicholas C. Zakas)
+* Breaking: Implement configuration hierarchy (fixes #963) (Nicholas C. Zakas)
+* Update: greatly simplify eqeqeq's operator finding logic (fixes #1037) (Michael Ficarra)
+* New: Add getSourceLines() to core and rule context (fixed #1005) (Jary)
+* Build + Docs: Adding generated resource links to rule docs (Fixes #1021) (jrajav)
+* Fix: Ignore unused params for args: 'none' (Fixes #1026) (jrajav)
+* Fix: Point eqeqeq error at operator (Fixes #1029) (jrajav)
+* New: report output to a file (fixes #1027) (Gyandeep Singh)
+* Breaking: CLIEngine abstraction for CLI operations; formatters no longer are passed configs (fixes #935) (Nicholas C. Zakas)
+* Fix: Allow stdout to drain before exiting (fixes #317) (Nicholas C. Zakas)
+* New: add no-undefined rule (fixes #1020) (Michael Ficarra)
+* New: Added no-mixed-spaces-and-tabs rule (fixes #1003) (Jary)
+* New: Added no-trailing-spaces rule (fixes #995) (Vitaly Puzrin)
+* Update: Factor ignores out of Config (fixes #958) (jrajav)
+* Fix: rewrite eol-last rule (fixes #1007) (fixes #1008) (Michael Ficarra)
+* Fix: add additional IIFE exception in no-extra-parens (fixes #1004) (Michael Ficarra)
+* Docs: Removed reference to brace-style Stroustrup default (fixes #1000) (Caleb Troughton)
+* New: Added eol-last rule (Fixes #996) (Vitaly Puzrin)
+* Fix: Put rule severity in messages (Fixes #984); deprecates passing full config to Formatters (jrajav)
+* Fix: no-unused-vars to check only file globals (fixes #975) (Aliaksei Shytkin)
+* Build: Makefile - Check for rule ids in docs titles (Fixes #969) (Delapouite)
+* Docs: guard-for-in - added missing id in title (Fixes #969) (Delapouite)
+* Breaking: Change 'no-yoda' rule to 'yoda' and add "always" option (Fixes #959) (jrajav)
+* Fix: Fixes no-unused-vars to check /*globals*/ (Fixes #955) (jrajav)
+* Update: no-eval to also warn on setTimeout and setInterval (fixes #721) (Nicholas C. Zakas)
+* Remove: experimental match() method (Nicholas C. Zakas)
+* Update: space-in-brackets now always allows empty object and array literals to have no spaces (fixes #797) (Nicholas C. Zakas)
+* New: Allow the cli parameter "color" and "no-color" (fixes #954) (Tom Gallacher)
+* Fix: valid-jsdoc no more warning for multi-level params (Fixes #925) (Delapouite)
+* Update: Search parent directories for .eslintignore (Fixes #933) (jrajav)
+* Fix: Correct order of arguments passed to assert.equal (fixes #945) (Michał Gołębiowski)
+* Update: Write the summary in stylish formatter in yellow if no errors (fixes #906); test coloring of messages (Michał Gołębiowski)
+* Fix: Corrects configs merging into base config (Fixes #838) (jrajav)
+* Fix: Adding check if char is non-alphabetic to new-cap (Fixes #940) (jrajav)
+* Docs: Update about page description (fixes #936) (Nicholas C. Zakas)
+* Docs: Add '/', forgotten in first commit (Fixes #931) (jrajav)
+* Update: Rule `new-cap` checks capitalized functions (fixes #904) (Aliaksei Shytkin)
+* Docs: Mention allowed semicolons in "never" mode for 'semi' rule (fixes #931) (jrajav)
+* Docs: Mention Yeoman generator in dev setup (fixes #914) (Nicholas C. Zakas)
+* Build: Remove flaky perf test from Travis (Nicholas C. Zakas)
+* Breaking: Refactor .eslintignore functionality (refs #928, fixes #901, fixes #837, fixes #853) (Nicholas C. Zakas)
+* 0.6.2 (Nicholas C. Zakas)
+* Breaking: Remove JSON support for .eslintignore (fixes #883) (icebox)
+
+v0.6.2 - May 23, 2014
+
+* 0.6.2 (Nicholas C. Zakas)
+* Fix: Adding per-environment rule configs to docs and doc validation (Fixes #918) (jrajav)
+* Docs: Updated contribution guidelines (Nicholas C. Zakas)
+* Docs: Update description of eqeqeq to mention special cases (fixes #924) (Nicholas C. Zakas)
+* Fix: block-scoped-var CatchClause handling (fixes #922) (Michael Ficarra)
+* Fix: block-scoped-var respects decls in for and for-in (fixes #919) (Michael Ficarra)
+* Update: Implement eqeqeq option "allow-null" (fixes #910) (Michał Gołębiowski)
+* Fix: new-cap should allow non-alpha characters (fixes #897) (Michael Ficarra)
+* Update: Refactor ESLintTester to fix dependency hell (fixes #602) (Nicholas C. Zakas)
+* Fix: Merge configs with ancestors (Fixes #820) (jrajav)
+* Fix: no-fallthrough should respect block statements in case statements (fixes #893) (Nicholas C. Zakas)
+* Docs: Fix layout issue in configuration docs (fixes #889) (Nicholas C. Zakas)
+* Build: Enable default-case rule (fixes #881) (icebox)
+* Build: Enable space-after-keywords (fixes #884) (icebox)
+* Fix api double emit on comment nodes (fixes #876) (Aliaksei Shytkin)
+* 0.6.1 (Nicholas C. Zakas)
+
+v0.6.1 - May 17, 2014
+
+* 0.6.1 (Nicholas C. Zakas)
+* Upgrade: Optionator to 0.4.0 (fixes #885) (Nicholas C. Zakas)
+* 0.6.0 (Nicholas C. Zakas)
+
+v0.6.0 - May 17, 2014
+
+* 0.6.0 (Nicholas C. Zakas)
+* Fix: Remove -r alias for --rule (fixes #882) (Nicholas C. Zakas)
+* Docs: Update dev setup, contributing, default-case descriptions (Nicholas C. Zakas)
+* Update: valid-jsdoc now allows you to optionally turn off parameter description checks (fixes #822) (Nicholas C. Zakas)
+* Breaking: brace-style now disallows block statements where curlies are on the same line (fixes #758) (Nicholas C. Zakas)
+* Add linting Makefile.js (fixes #870) (icebox)
+* add rule flag, closes #692 (George Zahariev)
+* Add check between rules doc and index (fixes #865) (icebox)
+* Add Build Next mention in integrations README. (icebox)
+* document new IIFE exception for no-extra parens added as part of #655 (Michael Ficarra)
+* (fixes #622) Add rule ID on documentation pages (Delapouite)
+* fixes #655: add IIFE exception to no-extra-parens (Michael Ficarra)
+* add new rule "no-new-require" (Wil Moore III)
+* exit with non-zero status when tests fail (fixes #858) (Márton Salomváry)
+* removed unicode zero width space character from messages (fixes #857) (Márton Salomváry)
+* Change: --rulesdir now can be specified multiple times (fixes #830) (Nicholas C. Zakas)
+* Update: Node 0.8 no longer supported (fixes #734) (Nicholas C. Zakas)
+* Update: Add typed arrays into builtin environment globals (fixes #846) (Nicholas C. Zakas)
+* Fix: Add prototype methods to global scope (fixes #700) (Nicholas C. Zakas)
+* Rule: no-restricted-modules (fixes #791) (Christian)
+* Upgrade: Esprima to 1.2 (fixes #842) (Nicholas C. Zakas)
+* Docs: reporting level 2 is an error (fixes #843) (Brandon Mills)
+* Upgrade: Esprima to 1.2, switch to using Esprima comment attachment (fixes #730) (Nicholas C. Zakas)
+* Fix: Semi rule incorrectly flagging extra semicolon (fixes #840) (Nicholas C. Zakas)
+* Build: Update Travis to only test Node 0.10 (refs #734) (Nicholas C. Zakas)
+* Add "nofunc" option (fixes #829) (Conrad Zimmerman)
+* Rule: no-inner-declarations (fixes #587) (Brandon Mills)
+* Rule 'block-scoped-var': correct scope for functions, arguments (fixes #832) (Aliaksei Shytkin)
+* Rule: default-case (fixes #787) (Aliaksei Shytkin)
+* Ignored files are excluded unless --force is passed on the CLI (Nick Fisher)
+* Fixes a typo and a broken link in the documentation (Nick Fisher)
+* Replaces .some() with .indexOf() where appropriate (Nick Fisher)
+* Fix correct config merge for array values (fixes #819) (Aliaksei Shytkin)
+* Remove warning about ESLint being in Alpha (Nick Fisher)
+* Adds `space-after-keywords` rule (fixes #807) (Nick Fisher)
+* Rule: no-lonely-if (fixes #790) (Brandon Mills)
+* Add ignore comments in file (fixes #305) (Aliaksei Shytkin)
+* 0.5.1 (Nicholas C. Zakas)
+* Change: no-unused-vars default to 'all' (fixes #760) (Nicholas C. Zakas)
+
+v0.5.1 - April 17, 2014
+
+* 0.5.1 (Nicholas C. Zakas)
+* Fix general config not to be modified by comment config in files (fixes #806) (Aliaksei Shytkin)
+* SVG badges (Ryuichi Okumura)
+* fixes #804: clean up implementation of #803 (which fixed #781) (Michael Ficarra)
+* Build: Fix perf test to take median of three runs (fixes #781) (Nicholas C. Zakas)
+* Fix: --reset will now properly ignore default rules in environments.json (fixes #800) (Nicholas C. Zakas)
+* Docs: Updated contributor guidelines (Nicholas C. Zakas)
+* Added Mocha global variables for TDD style. Fixes #793. (Golo Roden)
+* Rule: no-sequences (fixes #561) (Brandon Mills)
+* Change .eslintingore to plain text (fixes #761) (Brandon Mills)
+* Change 'no-spaced-func' message (fixes #762) (Aliaksei Shytkin)
+* Rule 'block-scoped-var' works correct when object inits (fixes #783) (Aliaksei Shytkin)
+* Build: Always build docs site on top of origin/master (Nicholas C. Zakas)
+* 0.5.0 (Nicholas C. Zakas)
+
+v0.5.0 - April 10, 2014
+
+* 0.5.0 (Nicholas C. Zakas)
+* Build: Bump perf limit so Travis won't fail every time (fixes #780) (Nicholas C. Zakas)
+* Add tests to cover 100% of eslint.js (Aliaksei Shytkin)
+* Fix: Make sure no-path-concat doesn't flag non-concat operations (fixes #776) (Nicholas C. Zakas)
+* Rule 'no-unused-var' in functional expression with identifier (fixes #775) (Aliaksei Shytkin)
+* Rule: valid-typeof (Ian Christian Myers)
+* Add global cli flag (ref #692) (Brandon Mills)
+* update to latest Optionator (George Zahariev)
+* Add options for rule 'no-unused-vars' to check all arguments in functions (fixes #728) (Aliaksei Shytkin)
+* Fix: Cleanup package.json (Nicholas C. Zakas)
+* New: Experimental support for CSS Auron (fixes #765) (Nicholas C. Zakas)
+* Lint tests on build (fixes #764) (Aliaksei Shytkin)
+* Rule block-scoped-var works correct with object properties (fixes #755) (Aliaksei Shytkin)
+* Breaking: implement eslint-env and remove jshint/jslint environment comment support (fixes #759) (Aliaksei Shytkin)
+* readme: npm i -> npm install (Linus Unnebäck)
+* Add env flag to cli options summary (fixes #752) (Brandon Mills)
+* Fix: Give the perf test a better calculated budget (fixes #749) (Nicholas C. Zakas)
+* give the `env` flag type `[String]`, improve code (fixes #748) (George Zahariev)
+* fixes #735: add new, more efficient getTokens interfaces (Michael Ficarra)
+* Add --env cli flag (ref #692) (Brandon Mills)
+* Fixes #740 - Make sure callbacks exist before marking them as 'handled'. (mstuart)
+* fixes #743: wrap-regex rule warns on regex used in dynamic member access (Michael Ficarra)
+* replace tab indents with 4 spaces in lib/rules/handle-callback-err.js (Michael Ficarra)
+* Adding homepage and bugs links to package.json (Peter deHaan)
+* JSDoc for rules (Anton Rudeshko)
+* 0.4.5 (Nicholas C. Zakas)
+
+v0.4.5 - March 29, 2014
+
+* 0.4.5 (Nicholas C. Zakas)
+* Build: Add perf check into Travis build to better monitor performance regressions (fixes #732) (Nicholas C. Zakas)
+* Fix: Make sure semi reports correct location of missing semicolon (fixes #726) (Nicholas C. Zakas)
+* Add --no-eslintrc cli flag (ref #717) (Brandon Mills)
+* Fix #716 crash with reset flag (Brandon Mills)
+* Fixed JSON formatting and highlighting (Anton Rudeshko (Tesla))
+* fixes #723: block-scoped-var throws on unnamed function expression (Michael Ficarra)
+* Fix: Make stroustrup brace-style closing message make sense (fixes #719) (Nicholas C. Zakas)
+* no-comma-dangle reports correct line number (Andrey Popp)
+* Upgrade: Esprima to 1.1.1 and EScope to 1.0.1 (fixes #718) (Nicholas C. Zakas)
+* Add reset cli flag (refs #692) (Brandon Mills)
+* Relax eqeqeq null check (fixes #669) (Brandon Mills)
+* 0.4.4 (Nicholas C. Zakas)
+* New Rule: handle-callback-err (fixes #567) (Jamund Ferguson)
+
+v0.4.4 - March 25, 2014
+
+* 0.4.4 (Nicholas C. Zakas)
+* Fix no-used-vars to report FunctionExpression params (fixes #697). (Andrey Popp)
+* fixes #711: eslint reports wrong line number for files with shebang (Michael Ficarra)
+* Fix for no-unused-vars and MemberExpression (Andrey Popp)
+* added no-warning-comments rule (Alexander Schmidt)
+* fixes #699: brace-style does not check function expressions (Michael Ficarra)
+* rewrite block-scoped-var (Michael Ficarra)
+* recommend using hasOwnProperty from Object.prototype in guard-for-in docs (Michael Ficarra)
+* change conf/environments.json spacing to be simpler and more consistent (Michael Ficarra)
+* Update API to use context.getFilename() instead of .filename. (Loren Segal)
+* Small changes, JSDoc is clarified (Aliaksei Shytkin)
+* Move FileFinder to separate file (Aliaksei Shytkin)
+* Cache if file is not found (Aliaksei Shytkin)
+* Use cache on config files seach (Aliaksei Shytkin)
+* Added .eslintignore to load from parents folders (fixes #681) (Aliaksei Shytkin)
+* fix 'node-modules' typo in docs (Fred K. Schott)
+* Upgrade to the latest version of doctrine. (Brian Di Palma)
+* Document optional filename and default it to `input`. (Loren Segal)
+* Fix: Compatibility for Node 0.8 (Nicholas C. Zakas)
+* Update: Makefile.js now uses shelljs-nodecli (Nicholas C. Zakas)
+* #681 apply all .eslintignore exclusions (Aliaksei Shytkin)
+* Add RuleContext.filename property (for eslint/eslint#468). (Loren Segal)
+* 0.4.3 (Nicholas C. Zakas)
+
+v0.4.3 - March 18, 2014
+
+* 0.4.3 (Nicholas C. Zakas)
+* fixes #682: rewrite no-constant-condition rule (Michael Ficarra)
+* Fixes #673 allow configuration of @return errors via requireReturn - (fixes #673) (Brian Di Palma)
+* Tweaking inline code formatting for "if, while, dowhile" (Peter deHaan)
+* Fixes #677 getJSDocComment() should not search beyond FunctionExpression or FunctionDeclaration parent nodes. (Brian Di Palma)
+* Relaxed enforcement of camelcase rule (Ian Christian Myers)
+* Fixing issue #675. Incorrect triggering of no-else-return rule. (Brian Di Palma)
+* Added style option for wrap-iife (Mathias Schreck)
+* Fix: Issues with named function expressions in no-unused-vars and no-shadow (fixes #662) (Nicholas C. Zakas)
+* Update: camelcase rule now doesn't flag function calls (fixes #656) (Nicholas C. Zakas)
+* Updating documentation description for: no-space-before-semi rule, changing rules to exempt strings with semicolons and test for that condition. Fixes #629. (Jonathan Kingston)
+* Adding in rule no-space-before-semi to prevent spaces before semicolons. fixes #629 (Jonathan Kingston)
+* show NPM version (Paul Verest)
+* adapt code formatting (Mathias Schreck)
+* Added a TextMate 2 integration to the docs (Nate Silva)
+* 0.4.2 (Nicholas C. Zakas)
+
+v0.4.2 - March 3, 2014
+
+* 0.4.2 (Nicholas C. Zakas)
+* fixes #651: disable no-catch-shadow rule in node environment (Michael Ficarra)
+* Fixed context.report message parsing (Ian Christian Myers)
+* fixe #648: wrap-iife rule should actually check that IIFEs are wrapped (Michael Ficarra)
+* Added "stroustrup" option for brace-style (Ian Christian Myers)
+* 0.4.1 (Nicholas C. Zakas)
+
+v0.4.1 - February 27, 2014
+
+* 0.4.1 (Nicholas C. Zakas)
+* Created space-in-brackets rule (Ian Christian Myers)
+* Update: Allow valid-jsdoc to specify replacement tags (fixes #637) (Nicholas C. Zakas)
+* Fix: Ensure getJSDocComment() works for all function declarations (fixes #638) (Nicholas C. Zakas)
+* Added broccoli-eslint to integration docs (Christian)
+* fixes #634: getters/setters shouldn't trigger no-dupe-keys (Michael Ficarra)
+* Update: semi to also enforce not using semicolons (fixes #618) (Nicholas C. Zakas)
+* New Rule: no-constant-condition - removed SwitchStatement discriminant check - removed AssignmentExpression with right Identifier - fixed copy paste error - added DoWhileStatement, ForStatement based on discussion: https://github.com/eslint/eslint/pull/624 (fixes #621) (Christian)
+* New Rule: no-constant-condition (fixes #621) (Christian)
+* Adding mimosa-eslint to Build System list (dbashford)
+* Fix: Make sure semi flags return statements without a semicolon (fixes #616) (Nicholas C. Zakas)
+* Fix: stylish formatter blue text -> white text (fixes #607) (Nicholas C. Zakas)
+* Fix: radix rule should warn (not throw error) when parseInt() is called without arguments (fixes #611) (Nicholas C. Zakas)
+* Update README.md (Dmitry)
+* Adding JSDoc comments for TAP format helper functions (Jonathan Kingston)
+* Updating documentation to include TAP format option (Jonathan Kingston)
+* Fixing validation issues to TAP formatter (Jonathan Kingston)
+* Adding TAP formatter and basic tests (Jonathan Kingston)
+* Docs: Updated integrations page (Nicholas C. Zakas)
+* 0.4.0 (Nicholas C. Zakas)
+
+v0.4.0 - February 12, 2014
+
+* 0.4.0 (Nicholas C. Zakas)
+* Change: Switch :after to :exit (fixes #605) (Nicholas C. Zakas)
+* Fix: Make sure no-unused-vars doesn't get confused by nested functions (fixes #584) (Nicholas C. Zakas)
+* Update: .eslintrc to check more things (Nicholas C. Zakas)
+* Fix: Make sure JSDoc parser accepts JSDoc3-style optional parameters (Nicholas C. Zakas)
+* Docs: Update documentation with linking instructions for ESLintTester (Nicholas C. Zakas)
+* New Rule: valid-jsdoc (fixes #536) (Nicholas C. Zakas)
+* #595 improved func-names documentation (Kyle Nunery)
+* #595 added more func-names tests (Kyle Nunery)
+* #595 fix rule message and add more tests (Kyle Nunery)
+* use optionator for option parsing, not optimist (George Zahariev)
+* Include instructions for working with ESLintTester (Nicholas C. Zakas)
+* #595 remove needless 'function Foo() {}' in tests (Kyle Nunery)
+* #595 fix whitespace (Kyle Nunery)
+* #595 fix markdown for js code blocks (Kyle Nunery)
+* Adding information about Yeomen generator (Ilya Volodin)
+* #595 add docs for rule func-names (Kyle Nunery)
+* #595 add func-names rule (Kyle Nunery)
+* migrate variables array to map (Brandon Mills)
+* Perf: Move try-catch out of verify() function to allow V8 optimization (refs #574) (Nicholas C. Zakas)
+* Docs: Added instructions for running npm run profile (Nicholas C. Zakas)
+* refactor variable name lookup into a separate function (Brandon Mills)
+* optimize findVariable() in no-unused-vars (Brandon Mills)
+* move to tests/bench (Chris Dickinson)
+* add `npm run profile`. (Chris Dickinson)
+* #586 refactor based on https://github.com/eslint/eslint/pull/590#discussion_r9476367 (Christian)
+* #586 added no-unreachable jsdoc, documentation note on hoisting case (Christian)
+* #586 add hoisting check to no-unreachable (Christian)
+* readme: Remove stray asterisk (Timo Tijhof)
+* #580 Remove eslint.getAllComments(), related docs, related tests (Christian)
+* Added test for bug fix #582. Test Passes (Shmueli Englard)
+* Added curly braces to if statment (Shmueli Englard)
+* Added new test for fix to #582 (fixes 582) (Shmueli Englard)
+* Bug #582: Added check if node.value isn't a string just exit (Shmueli Englard)
+* Update Rule: implement curly options for single-statement bodies (fixes #511) (Nicholas C. Zakas)
+* New Rule: no-extra-boolean-cast (fixes #557) (Brandon Mills)
+* New Rule: no-sparse-arrays (fixes #499) (Nicholas C. Zakas)
+* Fix: no-spaced-func is now an error (Nicholas C. Zakas)
+* New Rule: no-process-exit (fixes #568) (Nicholas C. Zakas)
+* New Rule: no-labels (fixes #550) (Nicholas C. Zakas)
+* New Rule: no-lone-blocks (fixes #512) (Brandon Mills)
+* Added Emacs/Flycheck integration (Nikolai Prokoschenko)
+* Build: Add perf test (Nicholas C. Zakas)
+* Fix: no-cond-assign shouldn't throw error when there's a for loop with an empty conditional (fixes #53) (Nicholas C. Zakas)
+* Docs: Add docs for no-regex-spaces and all doc errors now break build (closes #562) (Nicholas C. Zakas)
+* Rename: regex-spaces to no-regex-spaces (Nicholas C. Zakas)
+* Docs: Add docs for no-underscore-dangle (refs #562) (Nicholas C. Zakas)
+* Docs: Add docs for no-undef-init (refs #562) (Nicholas C. Zakas)
+* Docs: Add docs for no-return-assign (refs #562) (Nicholas C. Zakas)
+* Fix: Misspelling in no-return-assign message (Nicholas C. Zakas)
+* Docs: Add docs for no-new-wrappers (refs #562) (Nicholas C. Zakas)
+* Docs: Add docs for no-new-object (refs #562) (Nicholas C. Zakas)
+* Docs: Add docs for no-implied-eval (refs #562) (Nicholas C. Zakas)
+* Docs: Updated documentation for developing rules (Nicholas C. Zakas)
+* Testing: Move ESLintTester to be external dependency (fixes #480) (Nicholas C. Zakas)
+* Docs: Add list of known integrations (Nicholas C. Zakas)
+* Fix #570 (dmp42)
+* document no-array-constructor rule (Michael Ficarra)
+* fixes #500: no-array-constructor should not flag 1-argument construction (Michael Ficarra)
+* fixes #501: no-array-constructor recognises CallExpression form (Michael Ficarra)
+* rename no-new-array rule to no-array-constructor; ref #501 (Michael Ficarra)
+* Fix: Make radix rule warn on invalid second parameter (fixes #563) (Nicholas C. Zakas)
+* Docs: Added no-floating-decimal docs (refs #562) (Nicholas C. Zakas)
+* New Rule: no-path-concat (fixes #540) (Nicholas C. Zakas)
+* Docs: Add some missing rule docs (refs #562) (Nicholas C. Zakas)
+* Fix: CLI should not output anything when there are no warnings (fixes #558) (Nicholas C. Zakas)
+* New Rule: no-yoda (fixes #504) (Nicholas C. Zakas)
+* New Rule: consistent-return (fixes #481) (Nicholas C. Zakas)
+* Rewrite configuration documentation to include information about globals (fixes #555) (Nicholas C. Zakas)
+* Allow YAML configuration files (fixes #491) (Nicholas C. Zakas)
+* 0.3.0 (Nicholas C. Zakas)
+
+v0.3.0 - January 20, 2014
+
+* 0.3.0 (Nicholas C. Zakas)
+* Config: Allow comments in JSON configuration files (fixes #492) (Nicholas C. Zakas)
+* Bug: max-len fix to report correct line number (fixes #552) (Nicholas C. Zakas)
+* Build: Use browserify to create browser-ready ESLint (fixes #119) (Nicholas C. Zakas)
+* Docs: Ensure all rules have entry on top-level rules index page (Nicholas C. Zakas)
+* Docs: Add docs for no-fallthrough rule (Nicholas C. Zakas)
+* Update README.md (Peter deHaan)
+* Update README.md (Peter deHaan)
+* Update package.json (Peter deHaan)
+* Docs: Added documentation for semi rule (Nicholas C. Zakas)
+* Build: Reset branch coverage target (Nicholas C. Zakas)
+* Update build system to generate eslint.org during release (Nicholas C. Zakas)
+* Updated setup doc (Nicholas C. Zakas)
+* Fix #525 & #528 (Mangled Deutz)
+* Improve no-negated-in-lhs description (David Bruant)
+* Fixing typo (David Bruant)
+* Update no-new.md (Tamas Fodor)
+* Update no-extra-semi.md (Tamas Fodor)
+* Fixing broken links in documentation (Ilya Volodin)
+* Update about page (Nicholas C. Zakas)
+* Site generation build step and documentation updates to support it (fixes #478) (Nicholas C. Zakas)
+* Change message for brace-style rule (fixes #490) (Nicholas C. Zakas)
+* Add question about ES6 support to FAQ (fixes #530) (Nicholas C. Zakas)
+* Set unlimited number of listeners for event emitter (fixes #524) (Nicholas C. Zakas)
+* Add support for comment events (fixes #531) Add :after events for comments (Nicholas C. Zakas)
+* Add :after events for comments (Nicholas C. Zakas)
+* Allow config files to have any name (fixes #486). (Aparajita Fishman)
+* List available formatters (fixes #533). (Aparajita Fishman)
+* Add support for comment events (fixes #531) (Nicholas C. Zakas)
+* Add Stylish formatter and make it default. Fixes #517 (Sindre Sorhus)
+* Fix missing code exit (Mangled Deutz)
+* Added unit test for calling Config.getConfig with no arguments. (Aparajita Fishman)
+* Typo (Mangled Deutz)
+* Fixed docs typo (Nicholas C. Zakas)
+* Mark functions as used when any method is called on them (Nicholas C. Zakas)
+* Fixed: Config.getConfig is called either with a file path or with no args (fixes #520) (Aparajita Fishman)
+* Fix minor bug in no-empty rule (Nicholas C. Zakas)
+* add more info for failure messages (Nicholas C. Zakas)
+* Add ruleId to all formatters output (fixes #472) (Nicholas C. Zakas)
+* Remove unused code (Nicholas C. Zakas)
+* Correctly handle case with both finally and catch in no-empty (Nicholas C. Zakas)
+* Update documentation for no-unused-vars (Nicholas C. Zakas)
+* Ensure that bound function expressions are reported as being used (fixes #510) (Nicholas C. Zakas)
+* Allow empty catch/finally blocks (fixes #514) and update documentation (fixes #513) (Nicholas C. Zakas)
+* Updated contribution guidelines (Nicholas C. Zakas)
+* Add default setting for no-cond-assign (Nicholas C. Zakas)
+* Add build step to check rule consistency (Nicholas C. Zakas)
+* update docs: explicit cli args are exempt from eslintignore exclusions (Michael Ficarra)
+* fixes #505: no-cond-assign should ignore doubly parenthesised tests (Michael Ficarra)
+* Renamed unnecessary-strict to no-extra-strict (Nicholas C. Zakas)
+* Fixed missing documentation links (Nicholas C. Zakas)
+* Add build task to check for missing docs and tests for rules (Nicholas C. Zakas)
+* Slight reorganization of rule groups (Nicholas C. Zakas)
+* Added one-var and sorted some rules (Nicholas C. Zakas)
+* Updated Travis badge for new location (Nicholas C. Zakas)
+* fixes #494: allow shebangs in processed JS files (Michael Ficarra)
+* fixes #496: lint ignored files when explicitly specified via the CLI (Michael Ficarra)
+* More tests (Ilya Volodin)
+* Upgrade Istanbul (Ilya Volodin)
+* fixes #495: holey arrays cause no-comma-dangle rule to throw (Michael Ficarra)
+* Documentation and minor changes (Ilya Volodin)
+* Adding missing package registration (Ilya Volodin)
+* Adding support for .eslintignore and .jshintignore (Closes #484) (Ilya Volodin)
+* fixes #482: brace-style bug with multiline conditions (Michael Ficarra)
+* Switching Travis to use ESLint (Closes #462) (Ilya Volodin)
+* 0.2.0 (Nicholas C. Zakas)
+
+v0.2.0 - January 1, 2014
+
+* 0.2.0 (Nicholas C. Zakas)
+* Bump code coverage checks (Nicholas C. Zakas)
+* Take care of unreachable code in case statement (Nicholas C. Zakas)
+* Updated rule messaging and added extra tests (Nicholas C. Zakas)
+* Fixing eslint errors and unittests (Ilya Volodin)
+* Rule: max-nested-callbacks (Ian Christian Myers)
+* Fix fall-through rule with nested switch statements (fixes #430) (Nicholas C. Zakas)
+* Fixed trailing comma (Nicholas C. Zakas)
+* Added more tests for func-style (Nicholas C. Zakas)
+* Fixed documentation for func-style (Nicholas C. Zakas)
+* Fixed linting error (Nicholas C. Zakas)
+* Rule to enforce function style (fixes #460) (Nicholas C. Zakas)
+* Rule is off by default. Updated documentation (Ilya Volodin)
+* Rule: sort variables. Closes #457 (Ilya Volodin)
+* Update architecture.md (Nicholas C. Zakas)
+* Change quotes option to avoid-escapes and update docs (fixes #199) (Brandon Payton)
+* Add allow-avoiding-escaped-quotes option to quotes rule (fixes #199) (Brandon Payton)
+* Update no-empty-class.md (Nicholas C. Zakas)
+* Updated titles on all rule documentation (fixes #348) (Nicholas C. Zakas)
+* Fixing eslint errors in codebase (Ilya Volodin)
+* fixes #464: space-infix-ops checks for VariableDeclarator init spacing (Michael Ficarra)
+* Add options to no-unused-vars. Fixes #367 (Ilya Volodin)
+* rename escape function to xmlEscape in checkstyle formatter (Michael Ficarra)
+* The semi rule now reports correct line number (Ian Christian Myers)
+* context.report now takes optional location (Ian Christian Myers)
+* fixes #454: escape values for XML in checkstyle formatter (Michael Ficarra)
+* Add color to Mocha test reporting (Ian Christian Myers)
+* Rule no-nested-ternary (Ian Christian Myers)
+* Fixing no-unused-var and no-redeclare (Ilya Volodin)
+* fixes #449: no-mixed-requires throws TypeError when grouping is enabled (Michael Ficarra)
+* Fixed reported line number for trailing comma error (Ian Christian Myers)
+* Update doc title for quote (Matthew DuVall)
+* fixes #446: join paths without additional delimiters (Michael Ficarra)
+* docs: add documentation for quotes rule (Matthew DuVall)
+* minor style changes to lib/rules/space-infix-ops.js as requested in #444 (Michael Ficarra)
+* remove "function invalid(){ return D }" from some tests (Michael Ficarra)
+* fixes #429: require spaces around infix operators; enabled by default (Michael Ficarra)
+* simplify fix for #442 (Michael Ficarra)
+* Fix broken test, ensure tests get run before a release is pushed (Nicholas C. Zakas)
+* 0.1.4 (Nicholas C. Zakas)
+
+v0.1.4 - December 5, 2013
+
+* 0.1.4 (Nicholas C. Zakas)
+* Add release scripts to package.json (Nicholas C. Zakas)
+* Fixed release error in Makefile (Nicholas C. Zakas)
+* Fix JSHint warnings (Nicholas C. Zakas)
+* Make sure 'default' isn't flagged by no-space-returns-throw rule (fixes #442) (Nicholas C. Zakas)
+* Fixing documentation (Ilya Volodin)
+* Fixing disabling rules with invalid comments Closes #435 (Ilya Volodin)
+* improve assertion on wrong number of errors (Christoph Neuroth)
+* fixes #431: no-unused-expressions should not flag statement level void (Michael Ficarra)
+* fixes #437: fragile no-extend-native rule (Michael Ficarra)
+* change space-* rule documentation headers to be more descriptive (Michael Ficarra)
+* Moved to tabs, added comments, a few more tests (Jamund Ferguson)
+* split GH-332 rule into space-unary-word-ops and space-return-throw-case (Michael Ficarra)
+* fixes #346: validate strings passed to the RegExp constructor (Michael Ficarra)
+* change some documentation extensions from js to md (Michael Ficarra)
+* fixes #332: unary word operators must be followed by whitespace (Michael Ficarra)
+* Add some docs (Jamund Ferguson)
+* DRYing cli tests and improving code coverage (Ilya Volodin)
+* fixes #371: add no-shadow-restricted-names rule (Michael Ficarra)
+* Added Support for Object.defineProperty() checking (Jamund Ferguson)
+* fixes #333: add rule to disallow gratuitously parenthesised expressions (Michael Ficarra)
+* improve rule test coverage (Michael Ficarra)
+* No Extend Native (Jamund Ferguson)
+* change getTokens 2nd/3rd arguments to count tokens, not characters (Michael Ficarra)
+* fixes #416: no-fallthrough flagging last case + reporting wrong line num (Michael Ficarra)
+* fixes #415: fix unnecessary-strict rule false positives (Michael Ficarra)
+* Add missing dependency (Nicholas C. Zakas)
+* Update docs related to running unit tests (Nicholas C. Zakas)
+* Add JSHint as missing dependency (Nicholas C. Zakas)
+* Switch to using ShellJS makefile (fixes #418) (Nicholas C. Zakas)
+* Updated documentation to reflect test changes (refs #417) (Nicholas C. Zakas)
+* Change to eslintTester.addRuleTest (fixes #417) (Nicholas C. Zakas)
+* Fix false positives for no-script-url (fixes #400) (Nicholas C. Zakas)
+* Fix lint warning (Nicholas C. Zakas)
+* Fixing ESLint warnings, introducing Makefile.js (not yet wired in) (Nicholas C. Zakas)
+* fixes #384: include builtin module list to avoid repl dependency (Michael Ficarra)
+* 0.1.3 (Nicholas C. Zakas)
+
+v0.1.3 - November 25, 2013
+
+* 0.1.3 (Nicholas C. Zakas)
+* Updated changelog (Nicholas C. Zakas)
+* Vows is gone. Mocha is now default (Ilya Volodin)
+* fixes #412: remove last remaining false positives in no-spaced-func (Michael Ficarra)
+* fixes #407: no-spaced-func rule flagging non-argument-list spaced parens (Michael Ficarra)
+* Add no-extra-semi to configuration (fixes #386) (Nicholas C. Zakas)
+* Converting formatter tests and core (Ilya Volodin)
+* Don't output anything when there are no errors in compact formatter (fixes #408) (Nicholas C. Zakas)
+* Removing Node 0.11 test - it fails all the time (Nicholas C. Zakas)
+* Completing conversion of rule's tests to mocha (Ilya Volodin)
+* added mocha conversion tests for strict, quote-props and one-var; enhanced one of the invalid one-var tests that was expecting two messages (Michael Paulukonis)
+
+
+v0.1.2 - November 23, 2013
+
+* 0.1.2 (Nicholas C. Zakas)
+* added mocha tests for radix and quotes; fixed some of the internals on quotes from vows annotations (Michael Paulukonis)
+* added tests for regex-spaces, strict, unnecessary-strict; fixed some types in overview/author notes in other tests. (Michael Paulukonis)
+* Converting unittests to mocha (Ilya Volodin)
+* mocha conversions of tests for 'use-isnan' and 'wrap-iife' (Michael Paulukonis)
+* added mocha tests semi.js and wrap-regex.js (Michael Paulukonis)
+* Converting more tests to mocha (Ilya Volodin)
+* Update CONTRIBUTING.md (Nicholas C. Zakas)
+* Cleaning up eslintTester (Ilya Volodin)
+* DRYing unittests and converting them to mocha (Ilya Volodin)
+* Reformatted Gruntfile (Nicholas C. Zakas)
+* Add tests to config load order: base, env, user. (icebox)
+* Fixing indent in gruntfile (Ilya Volodin)
+* Removing jake, adding Grunt, Travis now runs grunt (Ilya Volodin)
+* Add rules per environments to config. (icebox)
+* Add globals property to the environments. (icebox)
+* Fix error about IIFE if the function is in a new (Marsup)
+* Fix a broken link in the docs (Brian J Brennan)
+* Add test coverage for additional cases, fix open paren at beginning of expr (Matthew DuVall)
+* Fixing no-undef for eval use case (Ilya Volodin)
+* fixes #372: disallow negated left operand in `in` operator (Michael Ficarra)
+* Fixing no-self-compare rule to check for operator (Ilya Volodin)
+* bug: open parens in args causes no-spaced-func to trigger (Matthew DuVall)
+* fixes #369: restrict UnaryExpressions to delete in no-unused-expressions (Michael Ficarra)
+* Make sure delete operator isn't flagged as unused expression (fixes #364) (Nicholas C. Zakas)
+* Don't flag ++ or -- as unused expressions (fixes #366) (Nicholas C. Zakas)
+* Ensure that 'use strict' isn't flagged as an unused expression (fixes #361) (Nicholas C. Zakas)
+* Increase test coverage for strict-related rules (refs #361) (Nicholas C. Zakas)
+* Up code coverage numbers (Nicholas C. Zakas)
+* Fixes error in new-cap rule when 'new' is used without a constructor (fixes #360) (Nicholas C. Zakas)
+* added files array in package json (Christian)
+* removed unused jshint dependency (Christian)
+* Add test coverage for new Foo constructor usage (Matt DuVall)
+* Pull code coverage up by removing unused method (Matt DuVall)
+* recognise CallExpression variant of RegExp ctor in no-control-regex rule (Michael Ficarra)
+* Merge smart-eqeqeq into eqeqeq (Matt DuVall)
+* Catch additional cases for a.b, new F, iife (Matt DuVall)
+* 0.2.0-dev (Nicholas C. Zakas)
+* Version 0.1.0 (Nicholas C. Zakas)
+* rule: no-spaced-func disallow spaces between function identifier and application (Matt DuVall)
+
+v0.1.1 - November 09, 2013
+
+* Ensure mergeConfigs() doesn't thrown an error when keys are missing in base config (fixes #358) (Nicholas C. Zakas)
+
+v0.1.0 - November 03, 2013
+
+* Version 0.1.0 (Nicholas C. Zakas)
+* Updated Readme for v0.1.0 (Nicholas C. Zakas)
+* Bump code coverage verification to 95% across the board (Nicholas C. Zakas)
+* Fixed broken links (Nicholas C. Zakas)
+* Added information about runtime rules (Nicholas C. Zakas)
+* Added documentation about configuration files (Nicholas C. Zakas)
+* Added description of -v option (Nicholas C. Zakas)
+* Updated architecture documentation (Nicholas C. Zakas)
+* Fix bug in no-control-regex (fixes #347) (Nicholas C. Zakas)
+* Fix link to architecture doc in readme (azu)
+* Rule: No control characters in regular expressions (fixes #338) (Nicholas C. Zakas)
+* Add escaping \= test (Matt DuVall)
+* Add docs for rule (Matt DuVall)
+* rule: no-div-regex for catching ambiguous division operators in regexes (Matt DuVall)
+* Change context-var to block-scoped-var (Matt DuVall)
+* Implement config.globals (Oleg Grenrus)
+* Add 'config-declared global' test (Oleg Grenrus)
+* Adding ability to separate rules with comma (Ilya Volodin)
+* Added rule for missing 'use strict' (fixes #321) (Nicholas C. Zakas)
+* Fixing unittests and finishing code (Ilya Volodin)
+* Disabling/enabling rules through comments (Ilya Volodin)
+* Rename rule to context-var and add documentation (Matt DuVall)
+* Added link to no-global-strict doc in readme (Nicholas C. Zakas)
+* Add try-catch scoping with tests (Matt DuVall)
+* Fix linting error (Matt DuVall)
+* Store FunctionDeclarations in scope as they can be used as literals (Matt DuVall)
+* Fix to use getTokens and add test for MemberExpression usage (Matt DuVall)
+* rule: block-scope-var to check for variables declared in block-scope (Matt DuVall)
+* no-unused-expressions rule: add test and doc mention for `a && b()` (Michael Ficarra)
+* rule: wrap-regex for parens around regular expression literals (Matt DuVall)
+* fixes #308: implement no-unused-expressions rule; ref. jshint rule W030 (Michael Ficarra)
+* Updated change log script to filter out merge messages (Nicholas C. Zakas)
+* Updated changelog (Nicholas C. Zakas)
+* 0.1.0-dev (Nicholas C. Zakas)
+
+v0.0.9 - October 5, 2013
+
+* Version 0.0.9 release (Nicholas C. Zakas)
+* Added rule for no global strict mode (fixes #322) (Nicholas C. Zakas)
+* Change default on to be errors instead of warnings (fixes #326) (Nicholas C. Zakas)
+* Fixed bug where JSHint was using the wrong file in lint task (Nicholas C. Zakas)
+* Updated docs for no-unused vars rule. (Andrew de Andrade)
+* Removed console.log in tests. (Andrew de Andrade)
+* Added link to roadmap and JSHint feature parity list. (Andrew de Andrade)
+* Fixed warning when unused var declared as param in FunctionExpression/Declaration can be ignored because later param is used (Andrew de Andrade)
+* Rename test for smartereqeqeq.js to smarter-eqeqeq.js (Andrew de Andrade)
+* Keep test filename inline with rule name (Andrew de Andrade)
+* Added further instructions for multiline test cases. (Andrew de Andrade)
+* Protecting private method (Seth McLaughlin)
+* Updating look up algorithm for local config files (Seth McLaughlin)
+* Fixing ESLint errors (Ilya Volodin)
+* Implemented local default config file (Seth McLaughlin)
+* Upgrading escope version and fixing related bugs (Ilya Volodin)
+* Fixing assignment during initialization issue (Ilya Volodin)
+* add plain-English regexp description to no-empty-class rule (Michael Ficarra)
+* fixes #289: no-empty-class flags regexps with... flags (Michael Ficarra)
+* Rule: no-catch-shadow (Ian Christian Myers)
+* Update no-empty for compatibility with esprima@1.0.4 (fixes #290) (Mark Macdonald)
+* Fixing bug with _ in MemberExpression (Ilya Volodin)
+* Rule: no-func-assign (Ian Christian Myers)
+* Fix false warning from no-undef rule (fixes #283) (Mark Macdonald)
+* Adding eslint to jake (Ilya Volodin)
+* Rule no redeclare (Ilya Volodin)
+* Fixing no use before define issues (Ilya Volodin)
+* Rule: no-octal-escape (Ian Christian Myers)
+* Fix for `no-proto` and `no-iterator` false positive (Ian Christian Myers)
+* Rule: no-iterator (Ian Christian Myers)
+* Fixing type in guard-for-in documentation (Ilya Volodin)
+* Rule No use before define (Ilya Volodin)
+* Added documentation for the `no-new` rule (Ian Christian Myers)
+* Added documentation for the `no-eval` rule (Ian Christian Myers)
+* Added documentation for the `no-caller` rule (Ian Christian Myers)
+* Added documentation for the `no-bitwise` rule (Ian Christian Myers)
+* simplify no-empty-class rule (Michael Ficarra)
+* Fix `no-empty-class` false negatives (Ian Christian Myers)
+* Added documentation for the `no-alert` rule (Ian Christian Myers)
+* Added documentation for the `new-parens` rule (Ian Christian Myers)
+* Added documentation for the `max-params` rule (Ian Christian Myers)
+* Added documentation for `max-len` rule (Ian Christian Myers)
+* Created link from rules README.md to no-plusplus.md documentation (Ian Christian Myers)
+* Added documentation for `guard-for-in` rule (Ian Christian Myers)
+* Added documentation for `dot-notation` rule (Ian Christian Myers)
+* Added documentation for `curly` rule (Ian Christian Myers)
+* Updated `camelcase` rule documentation (Ian Christian Myers)
+* Added documentation for `complexity` rule (Ian Christian Myers)
+* Changed `no-dangle` documentation to `no-comma-dangle` (Ian Christian Myers)
+* Rule: no-empty-class (Ian Christian Myers)
+* Increased test coverage for max-depth (Ian Christian Myers)
+* Increased test coverage for no-shadow (Ian Christian Myers)
+* Increased test coverage on no-mixed-requires (Ian Christian Myers)
+* Added docs for eqeqeq and no-with (fixes #262) (Raphael Pigulla)
+* Create camelcase.md (Micah Eschbacher)
+* Fix issues with function in no-unused-vars (Ilya Volodin)
+* Rule: No shadow (Ilya Volodin)
+* fixes #252: semi rule errors on VariableDeclarations in ForInStatements (Michael Ficarra)
+* rule: max-len to lint maximum length of a line (Matt DuVall)
+* Fixes #249 (Raphael Pigulla)
+* Merge branch 'master' of https://github.com/beardtwizzle/eslint (Jonathan Mahoney)
+* Re-add lines that were accidentally deleted from config (Jonathan Mahoney)
+* Add support for pre-defined environment globals (re: #228) (Jonathan Mahoney)
+* Rule: no-else-return (Ian Christian Myers)
+* Re-add lines that were accidentally deleted from config (Jonathan Mahoney)
+* Add support for pre-defined environment globals (re: #228) (Jonathan Mahoney)
+* Fix no-unused-vars to report correct line numbers (Ilya Volodin)
+* Rule: no proto (Ilya Volodin)
+* Rule: No Script URL (Ilya Volodin)
+* Rule: max-depth (Ian Christian Myers)
+* Fix: Error severity for rules with options. (Ian Christian Myers)
+* Rule: No wrap func (Ilya Volodin)
+* bug: Fixes semi rule for VariableDeclaration in ForStatement (Matt DuVall)
+* Individual perf tests for rules (Ilya Volodin)
+* Fix loading rules from a rules directory (Ian Christian Myers)
+* Rule no-mixed-requires (fixes #221) (Raphael Pigulla)
+* bug: Add ForStatement for no-cond-assign check (Matthew DuVall)
+* JSLint XML formatter now escapes special characters in the evidence and reason attributes. (Ian Christian Myers)
+* Formatter: JSLint XML (Ian Christian Myers)
+* Refactored `max-statements` rule. (Ian Christian Myers)
+* Fix tests broken due to new rule message text (James Allardice)
+* Merge branch 'master' into match-jshint-messages (James Allardice)
+* Refactored `one-var` rule. (Ian Christian Myers)
+* split eslint.define into eslint.defineRule and eslint.defineRules (Michael Ficarra)
+* Removed unnecessary rules.js test. (Ian Christian Myers)
+* Rule: one-var (Ian Christian Myers)
+* Rule: No unused variables (Ilya Volodin)
+* expose interface for defining new rules at runtime without fs access (Michael Ficarra)
+* disallow 00 in no-octal rule (Michael Ficarra)
+* Increased test coverage for `lib/cli.js`. (Ian Christian Myers)
+* Increased test coverage for `lib/rules.js` (Ian Christian Myers)
+* Increased test coverage for jUnit formatter. (Ian Christian Myers)
+* scripts/bundle: output bundle+map to /build directory (Michael Ficarra)
+* add test for 0X... hex literals in no-octal tests (Michael Ficarra)
+* fixes #200: no-octals should not see leading-0 floats as violations (Michael Ficarra)
+* add back tests for loading rules from a directory (Michael Ficarra)
+* add back in ability to load rules from a directory (Michael Ficarra)
+* Increased test coverage for `complexity` rule. (Ian Christian Myers)
+* Increased test coverage for `max-params` rule. (Ian Christian Myers)
+* also output source map when generating bundle (Michael Ficarra)
+* Rule: unnecessary-strict (Ian Christian Myers)
+* Improve performance of getTokens (Ilya Volodin)
+* Performance jake task (Ilya Volodin)
+* don't force explicit listing of rules; generate listing for bundle (Michael Ficarra)
+* Rule: no-dupe-keys (Ian Christian Myers)
+* fixes #145: create a browser bundle (Michael Ficarra)
+* Fixing no-caller bug (Ilya Volodin)
+* Check for use of underscore library as an exception for var declarations (Matthew DuVall)
+* Merge branch 'master' of https://github.com/nzakas/eslint into no-underscore-dangle (Matthew DuVall)
+* Fixing spelling (Ilya Volodin)
+* Rule: no-empty-label (Ilya Volodin)
+* Add builtin globals to the global scope (fixes #185) (Mark Macdonald)
+* Rule: no-loop-func (Ilya Volodin)
+* Merge branch 'master' of https://github.com/nzakas/eslint into no-underscore-dangle (Matt DuVall)
+* Use proper node declarations and __proto__ exception (Matt DuVall)
+* Updating no-undef patch (see pull request #164) - Simplify parseBoolean() - Make knowledge of```/*jshint*/``` and ```/*global */``` internal to eslint object - Put user-declared globals in Program scope (Mark Macdonald)
+* Rule: no-eq-null (Ian Christian Myers)
+* fixed broken merge (Raphael Pigulla)
+* fixes #143 (Raphael Pigulla)
+* added consistent-this rule (Raphael Pigulla)
+* Rule: no-sync to encourage async usage (Matt DuVall)
+* Update eslint.json with no-underscore-dangle rule (Matt DuVall)
+* Rule: no-underscore-dangle for func/var declarations (Matt DuVall)
+* Warn on finding the bitwise NOT operator (James Allardice)
+* Updating no-undef patch (see pull request #164) 3. Move parsing of ```/*global */``` and ```/*jshint */``` to eslint.js (Mark Macdonald)
+* Warn on finding a bitwise shift operator (fixes #170) (James Allardice)
+* Fix broken test (James Allardice)
+* Add support for the do-while statement to the curly rule (closes #167) (James Allardice)
+* Removing nasty leading underscores (Patrick Brosset)
+* Added tests and test cases for a few files (Patrick Brosset)
+* CLI: -f now accepts a file path (Ian Christian Myers)
+* Updating no-undef patch (see pull request #164) 1. Move predefined globals to ```conf/environments.json``` 2. Move mixin() to ```lib/util.js``` (Mark Macdonald)
+* Match messages to JS[LH]int where appropriate, and ensure consistent message formatting (closes #163) (James Allardice)
+* Add support for the do-while statement to the curly rule (closes #167) (James Allardice)
+* Removing nasty leading underscores (Patrick Brosset)
+* Added tests and test cases for a few files (Patrick Brosset)
+* Merge branch 'master' of github.com:nzakas/jscheck (Nicholas C. Zakas)
+* Added acceptance criteria for rules to docs (Nicholas C. Zakas)
+* Add no-undef (fixes #6) (Mark Macdonald)
+* Fixing no-self-compare (Ilya Volodin)
+* Rule: No multiline strings (Ilya Volodin)
+* CLI refactor to remove process.exit(), file not found now a regular error message, updated formatters to handle this case (Nicholas C. Zakas)
+* Rule: no-self-compare (Ilya Volodin)
+* Rule: No unnecessary semicolons (fixes #158) (Nicholas C. Zakas)
+* Fixed error in no-ex-assign when return statement as found in catch clause (Nicholas C. Zakas)
+* Rename no-exc-assign to no-ex-assign and add to config (Nicholas C. Zakas)
+* Renamed count-spaces to regex-spaces (Nicholas C. Zakas)
+* Documentation updates (Nicholas C. Zakas)
+* Put all rules into strict mode and update docs accordingly (Nicholas C. Zakas)
+* Merge branch 'master' of github.com:nzakas/jscheck (Nicholas C. Zakas)
+* Ensure getScope() works properly when called from Program node (fixes #148) (Nicholas C. Zakas)
+* Rule: wrap-iife (Ilya Volodin)
+* add additional test for no-cond-assign rule (Stephen Murray)
+* Merge branch 'master' of github.com:nzakas/jscheck (Nicholas C. Zakas)
+* Experimental support for Jake as a build system (fixes #151) (Nicholas C. Zakas)
+* fixes #152 (Stephen Murray)
+* add docs for no-exc-assign (Stephen Murray)
+* Merge branch 'master' of https://github.com/nzakas/eslint into no-new-object-array-literals (Matt DuVall)
+* Merge branch 'master' of https://github.com/nzakas/eslint into count-spaces (Matt DuVall)
+* Added a test for getting global scope from Program node (refs #148) (Nicholas C. Zakas)
+* Add positive test case for `object.Array` (Matthew DuVall)
+* Only support space characters for repetitions (Matthew DuVall)
+* fix line length per code conventions (Stephen Murray)
+* fix indentation per code conventions (Stephen Murray)
+* fixes #149 (Stephen Murray)
+* Rule: no-ternary (Ian Christian Myers)
+* Check that the return statement has an argument before checking its type (James Allardice)
+* Rule: count-spaces for multiple spaces in regular expressions (Matt DuVall)
+* Update eslint.json configuration file for literal rules (Matt DuVall)
+* Created no-label-var rule. (Ian Christian Myers)
+* Rule: no-new-array and no-new-object (Matt DuVall)
+* Added ability to retrieve scope using escope. (Ian Christian Myers)
+* Corrected unused arguments (Patrick Brosset)
+* Reporting function complexity on function:after and using array push/pop to handle nesting (Patrick Brosset)
+* Fixing style issues discovered while npm testing (Patrick Brosset)
+* First draft proposal for a cyclomatic complexity ESLint rule (Patrick Brosset)
+* Corrected file extension on no-plusplus rule documentation. (Ian Christian Myers)
+* Documentation for no-delete-var rule. Closes #129 (Ilya Volodin)
+* Rule: max-statements (Ian Christian Myers)
+* Better documentation for the `no-plusplus` rule. (Ian Christian Myers)
+* Rule: no-plusplus (Ian Christian Myers)
+* Rule: no assignment in return statement (Ilya Volodin)
+* Updating max-params rule name (Ilya Volodin)
+* Rule: Function has too many parameters (Ilya Volodin)
+* Removing merge originals (Ilya Volodin)
+* Rebasing on master (Ilya Volodin)
+* Rule: Variables should not be deleted (Ilya Volodin)
+* Fixes incorrect reporting of missing semicolon (Ian Christian Myers)
+* Rebase against master branch (Mathias Bynens)
+* Rule to warn on use of Math and JSON as functions (James Allardice)
+* Formatter: Checkstyle (Ian Christian Myers)
+* docs: Clean up structure (Mathias Bynens)
+* Merging no-native-reassign and no-redefine (Ilya Volodin)
+* Rule: no native reassignment (Ilya Volodin)
+* 0.0.8-dev (Nicholas C. Zakas)
+* v0.0.7 released (Nicholas C. Zakas)
+* Updated Tests, etc. (Jamund Ferguson)
+* Added jUnit Support (Fixes #16) (Jamund Ferguson)
+
+v0.0.7 - July 22, 2013
+
+* 0.0.7 (Nicholas C. Zakas)
+* Add code coverage checks to npm test and update rule tests to have better coverage (Nicholas C. Zakas)
+* Fixed CLI output on serial programatic executions (Ian Christian Myers)
+* Removes line length from code style convention docs (Josh Perez)
+* Adds escapeRegExp and fixes documentation (Josh Perez)
+* Add quotes rule and test coverage for configuration options (Matt DuVall)
+* Adds templating for lint messages and refactors rules to use it (Josh Perez)
+* Fixes lint rules for unchecked test file (Josh Perez)
+* Changes dotnotation rule to match JSHint style (Josh Perez)
+* Change configInfo to options and add test coverage (Matt DuVall)
+* Merge branch 'master' of https://github.com/nzakas/eslint into optional-args-for-rule (Matt DuVall)
+* Adds dot notation lint rule (Josh Perez)
+* Strip trailing underscores in camelcase rule - Fixes #94 (Patrick Brosset)
+* add mailing list link (Douglas Campos)
+* Strip leading underscores in camelcase rule - Fixes #94 (Patrick Brosset)
+* Created no-dangle rule. (Ian Christian Myers)
+* Fixed rule name (James Allardice)
+* Make sure the callee type is Identifier (James Allardice)
+* Add rule for implied eval via setTimeout/Interval (James Allardice)
+* Fix rule name in config (James Allardice)
+* Fixes #90 -- updates docstrings (Stephen Murray)
+* Fixes issue with fs.existsSync on NodeJS 0.6 (Ian Christian Myers)
+* Fixing -c config option. (Ian Christian Myers)
+* Allow arrays to be passed as multiple args to rule (Matt DuVall)
+* Test to make sure empty case with one line break is safe (Matt DuVall)
+* Rule: The Function constructor is eval (Ilya Volodin)
+* Enabled require("eslint") and exposed out CLI. (Ian Christian Myers)
+* Adds test and fix for issue #82 (Mark Macdonald)
+* Merge branch 'master' of https://github.com/nzakas/eslint into ok (Yusuke Suzuki)
+* Created brace-style rule. (Ian Christian Myers)
+* Formatters can now process multiple files at once (Jamund Ferguson)
+* Rule: Do not use 'new' for side effects (Ilya Volodin)
+* Adds smarter-eqeqeq rule (Josh Perez)
+* Add EditorConfig file for consistent editor/IDE behavior (Jed Hunsaker)
+* Fix the positive case for no-unreachable where there is no return statement at all, or if the return is at the end. Those cases should not return any errors. The error condition was not be checked before throwing the rule error. (Joel Feenstra)
+* Adds test and fix for no-octal on 0 literal (Mark Macdonald)
+* Don't report no-empty warnings when a parent is FunctionExpression / FunctionDeclaration (Yusuke Suzuki)
+* Add api.getAncestors (Yusuke Suzuki)
+* Ensure estraverse version 1.2.0 or later (Yusuke Suzuki)
+* Fixes no-alert lint rule for non identifier calls (Josh Perez)
+* Fixes exception when init is null (Josh Perez)
+* Fixes no-octal check to only check for numbers (Josh Perez)
+* 0.0.7-dev (Nicholas C. Zakas)
+* 0.0.6 (Nicholas C. Zakas)
+* Follow the rule naming conventions (James Allardice)
+* Add rule for missing radix argument to parseInt (James Allardice)
+* Allow return, falls-through comment, and throw for falls-through (Matt DuVall)
+* Merge branch 'master' of https://github.com/nzakas/eslint into rule-fall-through (Matt DuVall)
+* Globals are not good, declare len (Matt DuVall)
+* Rule to add no-fall-through (Matt DuVall)
+
+v0.0.6 - July 16, 2013
+
+* 0.0.6 (Nicholas C. Zakas)
+* Changed semi rule to use tokens instead of source (Nicholas C. Zakas)
+* Renaming new-parens rule (Ilya Volodin)
+* Renaming no-new-wrappers rule and adding tests (Ilya Volodin)
+* Add license URL (Nick Schonning)
+* Remove unused sinon requires (Nick Schonning)
+* Remove redundant JSHint directives (Nick Schonning)
+* Rule: Do not use constructor for wrapper objects (Ilya Volodin)
+* Test node 0.11 unstable but allow it to fail (Nick Schonning)
+* Rule: Constructor should use parentheses (Ilya Volodin)
+* Fix reference to "CSS Lint" in Contributing documentation (Brian McKenna)
+* Add git attributes file for line endings (Andy Hu)
+* Rename to create an 'index' file in GH web view (Evan Goer)
+* Avoid accidentally creating a markdown link (Evan Goer)
+* Add headings and correct internal links (Evan Goer)
+* Add wiki files to docs directory (Evan Goer)
+* Add rules for leading/trailing decimal points (James Allardice)
+* Add rule to prevent comparisons with value NaN (James Allardice)
+* Fixing jshint error (Ilya Volodin)
+* Rule: no octal literals (Ilya Volodin)
+* Rule: no undefined when initializing variables (Ilya Volodin)
+* Updated CONTRIBUTING.md (Nicholas C. Zakas)
+* Make sure namespaces are honored in new-cap (Nicholas C. Zakas)
+* Make sure no-empty also checks for ';;' (Nicholas C. Zakas)
+* Add CLI option to output version (Nicholas C. Zakas)
+* Updated contribution guidelines (Nicholas C. Zakas)
+* Fixing jshint complaints. (Joel Feenstra)
+* Converting to a switch statement and declaring variables. (Joel Feenstra)
+* Added .jshintrc file (until ESLint can lint itself) and cleaned up JSHint warnings (Nicholas C. Zakas)
+* Merge branch 'master' of github.com:nzakas/jscheck (Nicholas C. Zakas)
+* A bit of cleanup (Nicholas C. Zakas)
+* Add unreachable code detection for switch cases and after continue/break. (Joel Feenstra)
+* Add support for detecting unreachable code after a throw or return statement. (Joel Feenstra)
+* Fix curly brace check when an if statement is the alternate. (Joel Feenstra)
+* Check for empty switch statements with no cases. (Matt DuVall)
+* Added CONTRIBUTING.md (Nicholas C. Zakas)
+* Added rule to check for missing semicolons (fixes #9) (Nicholas C. Zakas)
+* Verify that file paths exist before reading the file (Matt DuVall)
+* Added guard-for-in rule (fixes #1) (Nicholas C. Zakas)
+* Run linting with npm test as well (Nicholas C. Zakas)
+* Removed foo.txt (Nicholas C. Zakas)
+* Updated config file with new no-caller ID (Nicholas C. Zakas)
+* Changed name of no-arg to no-caller (Nicholas C. Zakas)
+* Increased test coverage (Nicholas C. Zakas)
+* Got npm test to work with istanbul, huzzah\! (Nicholas C. Zakas)
+* Moved /config to /conf (Nicholas C. Zakas)
+* Added script to auto-generate changelog (Nicholas C. Zakas)
+* Add `quote-props` rule (Mathias Bynens)
+* Cleaned up relationship between bin/eslint, lib/cli.js, and lib/eslint.js (Nicholas C. Zakas)
+* Add problem count to compact formatter (Nicholas C. Zakas)
+* Fix merge conflict (Nicholas C. Zakas)
+* Change reporters to formatters, add format command line option. Also added tests for compact format. (Nicholas C. Zakas)
+* Change reporters to formatters, add format command line option (Nicholas C. Zakas)
+* Start development of 0.0.6-dev (Nicholas C. Zakas)
diff --git a/tools/eslint/README.md b/tools/eslint/README.md
index d8c797affdd252..a7864f8abbc6bf 100644
--- a/tools/eslint/README.md
+++ b/tools/eslint/README.md
@@ -8,7 +8,7 @@
# ESLint
-[Website](http://eslint.org) | [Configuring](http://eslint.org/docs/user-guide/configuring) | [Rules](http://eslint.org/docs/rules/) | [Contributing](http://eslint.org/docs/developer-guide/contributing) | [Reporting Bugs](http://eslint.org/docs/developer-guide/contributing/reporting-bugs) | [Twitter](https://twitter.com/geteslint) | [Mailing List](https://groups.google.com/group/eslint)
+[Website](http://eslint.org) | [Configuring](http://eslint.org/docs/user-guide/configuring) | [Rules](http://eslint.org/docs/rules/) | [Contributing](http://eslint.org/docs/developer-guide/contributing) | [Reporting Bugs](http://eslint.org/docs/developer-guide/contributing/reporting-bugs) | [Twitter](https://twitter.com/geteslint) | [Mailing List](https://groups.google.com/group/eslint) | [Chat Room](https://gitter.im/eslint/eslint)
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code. In many ways, it is similar to JSLint and JSHint with a few exceptions:
@@ -39,17 +39,17 @@ After running `eslint --init`, you'll have a `.eslintrc` file in your directory.
```json
{
"rules": {
- "semi": [2, "always"],
- "quotes": [2, "double"]
+ "semi": ["error", "always"],
+ "quotes": ["error", "double"]
}
}
```
The names `"semi"` and `"quotes"` are the names of [rules](http://eslint.org/docs/rules) in ESLint. The number is the error level of the rule and can be one of the three values:
-* `0` - turn the rule off
-* `1` - turn the rule on as a warning (doesn't affect exit code)
-* `2` - turn the rule on as an error (exit code will be 1)
+* `"off"` or `0` - turn the rule off
+* `"warn"` or `1` - turn the rule on as a warning (doesn't affect exit code)
+* `"error"` or `2` - turn the rule on as an error (exit code will be 1)
The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the [configuration docs](http://eslint.org/docs/user-guide/configuring)).
@@ -66,12 +66,14 @@ These folks keep the project moving and are resources for help:
* Ilya Volodin ([@ilyavolodin](https://github.com/ilyavolodin)) - reviewer
* Brandon Mills ([@btmills](https://github.com/btmills)) - reviewer
* Gyandeep Singh ([@gyandeeps](https://github.com/gyandeeps)) - reviewer
+* Toru Nagashima ([@mysticatea](https://github.com/mysticatea)) - reviewer
* Mathias Schreck ([@lo1tuma](https://github.com/lo1tuma)) - committer
* Jamund Ferguson ([@xjamundx](https://github.com/xjamundx)) - committer
* Ian VanSchooten ([@ianvs](https://github.com/ianvs)) - committer
-* Toru Nagashima ([@mysticatea](https://github.com/mysticatea)) - committer
* Burak Yiğit Kaya ([@byk](https://github.com/byk)) - committer
* Alberto Rodríguez ([@alberto](https://github.com/alberto)) - committer
+* Kai Cataldo ([@kaicataldo](https://github.com/kaicataldo)) - committer
+* Michael Ficarra ([@michaelficarra](https://github.com/michaelficarra)) - committer
## Releases
@@ -83,6 +85,7 @@ Before filing an issue, please be sure to read the guidelines for what you're re
* [Bug Report](http://eslint.org/docs/developer-guide/contributing/reporting-bugs)
* [Propose a New Rule](http://eslint.org/docs/developer-guide/contributing/new-rules)
+* [Proposing a Rule Change](http://eslint.org/docs/developer-guide/contributing/rule-changes)
* [Request a Change](http://eslint.org/docs/developer-guide/contributing/changes)
## Frequently Asked Questions
@@ -109,18 +112,23 @@ If you are using both JSHint and JSCS on your files, then using just ESLint will
ESLint does both traditional linting (looking for problematic patterns) and style checking (enforcement of conventions). You can use it for both.
-### What about ECMAScript 6 support?
-
-ESLint has full support for ECMAScript 6. By default, this support is off. You can enable ECMAScript 6 support through [configuration](http://eslint.org/docs/user-guide/configuring).
-
### Does ESLint support JSX?
Yes, ESLint natively supports parsing JSX syntax (this must be enabled in [configuration](http://eslint.org/docs/user-guide/configuring).). Please note that supporting JSX syntax *is not* the same as supporting React. React applies specific semantics to JSX syntax that ESLint doesn't recognize. We recommend using [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react) if you are using React and want React semantics.
-### What about ECMAScript 7/2016 and experimental features?
+### What about ECMAScript 6 support?
+
+ESLint has full support for ECMAScript 6. By default, this support is off. You can enable ECMAScript 6 support through [configuration](http://eslint.org/docs/user-guide/configuring).
+
+### What about experimental features?
ESLint doesn't natively support experimental ECMAScript language features. You can use [babel-eslint](https://github.com/babel/babel-eslint) to use any option available in Babel.
+Once a language feature has been adopted into the ECMAScript standard, we will accept
+issues and pull requests related to the new feature, subject to our [contributing
+guidelines](http://eslint.org/docs/developer-guide/contributing). Until then, please use
+the appropriate parser and plugin(s) for your experimental feature.
+
### Where to ask for help?
Join our [Mailing List](https://groups.google.com/group/eslint) or [Chatroom](https://gitter.im/eslint/eslint)
diff --git a/tools/eslint/bin/eslint.js b/tools/eslint/bin/eslint.js
old mode 100755
new mode 100644
index 598b568ba4e0d4..19e5720a711f92
--- a/tools/eslint/bin/eslint.js
+++ b/tools/eslint/bin/eslint.js
@@ -29,12 +29,31 @@ if (debug) {
// now we can safely include the other modules that use debug
var concat = require("concat-stream"),
- cli = require("../lib/cli");
+ cli = require("../lib/cli"),
+ path = require("path"),
+ fs = require("fs");
//------------------------------------------------------------------------------
// Execution
//------------------------------------------------------------------------------
+process.on("uncaughtException", function(err){
+ // lazy load
+ var lodash = require("lodash");
+
+ if (typeof err.messageTemplate === "string" && err.messageTemplate.length > 0) {
+ var template = lodash.template(fs.readFileSync(path.resolve(__dirname, "../messages/" + err.messageTemplate + ".txt"), "utf-8"));
+
+ console.log("\nOops! Something went wrong! :(");
+ console.log("\n" + template(err.messageData || {}));
+ } else {
+ console.log(err.message);
+ console.log(err.stack);
+ }
+
+ process.exit(1);
+});
+
if (useStdIn) {
process.stdin.pipe(concat({ encoding: "string" }, function(text) {
try {
diff --git a/tools/eslint/conf/cli-options.js b/tools/eslint/conf/cli-options.js
index f3daaff9b47ab7..02d1f53542a435 100644
--- a/tools/eslint/conf/cli-options.js
+++ b/tools/eslint/conf/cli-options.js
@@ -28,6 +28,5 @@ module.exports = {
cacheLocation: "",
cacheFile: ".eslintcache",
fix: false,
- allowInlineConfig: true,
- cwd: process.cwd()
+ allowInlineConfig: true
};
diff --git a/tools/eslint/conf/eslint.json b/tools/eslint/conf/eslint.json
index 9cd9c008302c4a..21af92e0da9859 100644
--- a/tools/eslint/conf/eslint.json
+++ b/tools/eslint/conf/eslint.json
@@ -2,210 +2,214 @@
"parser": "espree",
"ecmaFeatures": {},
"rules": {
- "no-alert": 0,
- "no-array-constructor": 0,
- "no-bitwise": 0,
- "no-caller": 0,
- "no-case-declarations": 2,
- "no-catch-shadow": 0,
- "no-class-assign": 2,
- "no-cond-assign": 2,
- "no-confusing-arrow": 0,
- "no-console": 2,
- "no-const-assign": 2,
- "no-constant-condition": 2,
- "no-continue": 0,
- "no-control-regex": 2,
- "no-debugger": 2,
- "no-delete-var": 2,
- "no-div-regex": 0,
- "no-dupe-class-members": 2,
- "no-dupe-keys": 2,
- "no-dupe-args": 2,
- "no-duplicate-case": 2,
- "no-else-return": 0,
- "no-empty": 2,
- "no-empty-character-class": 2,
- "no-empty-function": 0,
- "no-empty-pattern": 2,
- "no-eq-null": 0,
- "no-eval": 0,
- "no-ex-assign": 2,
- "no-extend-native": 0,
- "no-extra-bind": 0,
- "no-extra-boolean-cast": 2,
- "no-extra-label": 0,
- "no-extra-parens": 0,
- "no-extra-semi": 2,
- "no-fallthrough": 2,
- "no-floating-decimal": 0,
- "no-func-assign": 2,
- "no-implicit-coercion": 0,
- "no-implicit-globals": 0,
- "no-implied-eval": 0,
- "no-inline-comments": 0,
- "no-inner-declarations": 2,
- "no-invalid-regexp": 2,
- "no-invalid-this": 0,
- "no-irregular-whitespace": 2,
- "no-iterator": 0,
- "no-label-var": 0,
- "no-labels": 0,
- "no-lone-blocks": 0,
- "no-lonely-if": 0,
- "no-loop-func": 0,
- "no-mixed-requires": 0,
- "no-mixed-spaces-and-tabs": 2,
- "linebreak-style": 0,
- "no-multi-spaces": 0,
- "no-multi-str": 0,
- "no-multiple-empty-lines": 0,
- "no-native-reassign": 0,
- "no-negated-condition": 0,
- "no-negated-in-lhs": 2,
- "no-nested-ternary": 0,
- "no-new": 0,
- "no-new-func": 0,
- "no-new-object": 0,
- "no-new-require": 0,
- "no-new-symbol": 2,
- "no-new-wrappers": 0,
- "no-obj-calls": 2,
- "no-octal": 2,
- "no-octal-escape": 0,
- "no-param-reassign": 0,
- "no-path-concat": 0,
- "no-plusplus": 0,
- "no-process-env": 0,
- "no-process-exit": 0,
- "no-proto": 0,
- "no-redeclare": 2,
- "no-regex-spaces": 2,
- "no-restricted-imports": 0,
- "no-restricted-modules": 0,
- "no-restricted-syntax": 0,
- "no-return-assign": 0,
- "no-script-url": 0,
- "no-self-assign": 2,
- "no-self-compare": 0,
- "no-sequences": 0,
- "no-shadow": 0,
- "no-shadow-restricted-names": 0,
- "no-whitespace-before-property": 0,
- "no-spaced-func": 0,
- "no-sparse-arrays": 2,
- "no-sync": 0,
- "no-ternary": 0,
- "no-trailing-spaces": 0,
- "no-this-before-super": 2,
- "no-throw-literal": 0,
- "no-undef": 2,
- "no-undef-init": 0,
- "no-undefined": 0,
- "no-unexpected-multiline": 2,
- "no-underscore-dangle": 0,
- "no-unmodified-loop-condition": 0,
- "no-unneeded-ternary": 0,
- "no-unreachable": 2,
- "no-unused-expressions": 0,
- "no-unused-labels": 2,
- "no-unused-vars": 2,
- "no-use-before-define": 0,
- "no-useless-call": 0,
- "no-useless-concat": 0,
- "no-useless-constructor": 0,
- "no-void": 0,
- "no-var": 0,
- "no-warning-comments": 0,
- "no-with": 0,
- "no-magic-numbers": 0,
-
- "array-bracket-spacing": 0,
- "array-callback-return": 0,
- "arrow-body-style": 0,
- "arrow-parens": 0,
- "arrow-spacing": 0,
- "accessor-pairs": 0,
- "block-scoped-var": 0,
- "block-spacing": 0,
- "brace-style": 0,
- "callback-return": 0,
- "camelcase": 0,
- "comma-dangle": 2,
- "comma-spacing": 0,
- "comma-style": 0,
- "complexity": [0, 11],
- "computed-property-spacing": 0,
- "consistent-return": 0,
- "consistent-this": 0,
- "constructor-super": 2,
- "curly": 0,
- "default-case": 0,
- "dot-location": 0,
- "dot-notation": 0,
- "eol-last": 0,
- "eqeqeq": 0,
- "func-names": 0,
- "func-style": 0,
- "generator-star-spacing": 0,
- "global-require": 0,
- "guard-for-in": 0,
- "handle-callback-err": 0,
- "id-length": 0,
- "indent": 0,
- "init-declarations": 0,
- "jsx-quotes": 0,
- "key-spacing": 0,
- "keyword-spacing": 0,
- "lines-around-comment": 0,
- "max-depth": 0,
- "max-len": 0,
- "max-nested-callbacks": 0,
- "max-params": 0,
- "max-statements": 0,
- "new-cap": 0,
- "new-parens": 0,
- "newline-after-var": 0,
- "newline-per-chained-call": 0,
- "object-curly-spacing": [0, "never"],
- "object-shorthand": 0,
- "one-var": 0,
- "one-var-declaration-per-line": 0,
- "operator-assignment": 0,
- "operator-linebreak": 0,
- "padded-blocks": 0,
- "prefer-arrow-callback": 0,
- "prefer-const": 0,
- "prefer-reflect": 0,
- "prefer-rest-params": 0,
- "prefer-spread": 0,
- "prefer-template": 0,
- "quote-props": 0,
- "quotes": 0,
- "radix": 0,
- "id-match": 0,
- "id-blacklist": 0,
- "require-jsdoc": 0,
- "require-yield": 0,
- "semi": 0,
- "semi-spacing": 0,
- "sort-vars": 0,
- "sort-imports": 0,
- "space-before-blocks": 0,
- "space-before-function-paren": 0,
- "space-in-parens": 0,
- "space-infix-ops": 0,
- "space-unary-ops": 0,
- "spaced-comment": 0,
- "strict": 0,
- "template-curly-spacing": 0,
- "use-isnan": 2,
- "valid-jsdoc": 0,
- "valid-typeof": 2,
- "vars-on-top": 0,
- "wrap-iife": 0,
- "wrap-regex": 0,
- "yield-star-spacing": 0,
- "yoda": 0
+ "no-alert": "off",
+ "no-array-constructor": "off",
+ "no-bitwise": "off",
+ "no-caller": "off",
+ "no-case-declarations": "error",
+ "no-catch-shadow": "off",
+ "no-class-assign": "error",
+ "no-cond-assign": "error",
+ "no-confusing-arrow": "off",
+ "no-console": "error",
+ "no-const-assign": "error",
+ "no-constant-condition": "error",
+ "no-continue": "off",
+ "no-control-regex": "error",
+ "no-debugger": "error",
+ "no-delete-var": "error",
+ "no-div-regex": "off",
+ "no-dupe-class-members": "error",
+ "no-dupe-keys": "error",
+ "no-dupe-args": "error",
+ "no-duplicate-case": "error",
+ "no-duplicate-imports": "off",
+ "no-else-return": "off",
+ "no-empty": "error",
+ "no-empty-character-class": "error",
+ "no-empty-function": "off",
+ "no-empty-pattern": "error",
+ "no-eq-null": "off",
+ "no-eval": "off",
+ "no-ex-assign": "error",
+ "no-extend-native": "off",
+ "no-extra-bind": "off",
+ "no-extra-boolean-cast": "error",
+ "no-extra-label": "off",
+ "no-extra-parens": "off",
+ "no-extra-semi": "error",
+ "no-fallthrough": "error",
+ "no-floating-decimal": "off",
+ "no-func-assign": "error",
+ "no-implicit-coercion": "off",
+ "no-implicit-globals": "off",
+ "no-implied-eval": "off",
+ "no-inline-comments": "off",
+ "no-inner-declarations": "error",
+ "no-invalid-regexp": "error",
+ "no-invalid-this": "off",
+ "no-irregular-whitespace": "error",
+ "no-iterator": "off",
+ "no-label-var": "off",
+ "no-labels": "off",
+ "no-lone-blocks": "off",
+ "no-lonely-if": "off",
+ "no-loop-func": "off",
+ "no-mixed-requires": "off",
+ "no-mixed-spaces-and-tabs": "error",
+ "linebreak-style": "off",
+ "no-multi-spaces": "off",
+ "no-multi-str": "off",
+ "no-multiple-empty-lines": "off",
+ "no-native-reassign": "off",
+ "no-negated-condition": "off",
+ "no-negated-in-lhs": "error",
+ "no-nested-ternary": "off",
+ "no-new": "off",
+ "no-new-func": "off",
+ "no-new-object": "off",
+ "no-new-require": "off",
+ "no-new-symbol": "error",
+ "no-new-wrappers": "off",
+ "no-obj-calls": "error",
+ "no-octal": "error",
+ "no-octal-escape": "off",
+ "no-param-reassign": "off",
+ "no-path-concat": "off",
+ "no-plusplus": "off",
+ "no-process-env": "off",
+ "no-process-exit": "off",
+ "no-proto": "off",
+ "no-redeclare": "error",
+ "no-regex-spaces": "error",
+ "no-restricted-globals": "off",
+ "no-restricted-imports": "off",
+ "no-restricted-modules": "off",
+ "no-restricted-syntax": "off",
+ "no-return-assign": "off",
+ "no-script-url": "off",
+ "no-self-assign": "error",
+ "no-self-compare": "off",
+ "no-sequences": "off",
+ "no-shadow": "off",
+ "no-shadow-restricted-names": "off",
+ "no-whitespace-before-property": "off",
+ "no-spaced-func": "off",
+ "no-sparse-arrays": "error",
+ "no-sync": "off",
+ "no-ternary": "off",
+ "no-trailing-spaces": "off",
+ "no-this-before-super": "error",
+ "no-throw-literal": "off",
+ "no-undef": "error",
+ "no-undef-init": "off",
+ "no-undefined": "off",
+ "no-unexpected-multiline": "error",
+ "no-underscore-dangle": "off",
+ "no-unmodified-loop-condition": "off",
+ "no-unneeded-ternary": "off",
+ "no-unreachable": "error",
+ "no-unused-expressions": "off",
+ "no-unused-labels": "error",
+ "no-unused-vars": "error",
+ "no-use-before-define": "off",
+ "no-useless-call": "off",
+ "no-useless-concat": "off",
+ "no-useless-constructor": "off",
+ "no-useless-escape": "off",
+ "no-void": "off",
+ "no-var": "off",
+ "no-warning-comments": "off",
+ "no-with": "off",
+ "no-magic-numbers": "off",
+ "array-bracket-spacing": "off",
+ "array-callback-return": "off",
+ "arrow-body-style": "off",
+ "arrow-parens": "off",
+ "arrow-spacing": "off",
+ "accessor-pairs": "off",
+ "block-scoped-var": "off",
+ "block-spacing": "off",
+ "brace-style": "off",
+ "callback-return": "off",
+ "camelcase": "off",
+ "comma-dangle": "error",
+ "comma-spacing": "off",
+ "comma-style": "off",
+ "complexity": ["off", 11],
+ "computed-property-spacing": "off",
+ "consistent-return": "off",
+ "consistent-this": "off",
+ "constructor-super": "error",
+ "curly": "off",
+ "default-case": "off",
+ "dot-location": "off",
+ "dot-notation": "off",
+ "eol-last": "off",
+ "eqeqeq": "off",
+ "func-names": "off",
+ "func-style": "off",
+ "generator-star-spacing": "off",
+ "global-require": "off",
+ "guard-for-in": "off",
+ "handle-callback-err": "off",
+ "id-length": "off",
+ "indent": "off",
+ "init-declarations": "off",
+ "jsx-quotes": "off",
+ "key-spacing": "off",
+ "keyword-spacing": "off",
+ "lines-around-comment": "off",
+ "max-depth": "off",
+ "max-len": "off",
+ "max-nested-callbacks": "off",
+ "max-params": "off",
+ "max-statements": "off",
+ "max-statements-per-line": "off",
+ "new-cap": "off",
+ "new-parens": "off",
+ "newline-after-var": "off",
+ "newline-before-return": "off",
+ "newline-per-chained-call": "off",
+ "object-curly-spacing": ["off", "never"],
+ "object-shorthand": "off",
+ "one-var": "off",
+ "one-var-declaration-per-line": "off",
+ "operator-assignment": "off",
+ "operator-linebreak": "off",
+ "padded-blocks": "off",
+ "prefer-arrow-callback": "off",
+ "prefer-const": "off",
+ "prefer-reflect": "off",
+ "prefer-rest-params": "off",
+ "prefer-spread": "off",
+ "prefer-template": "off",
+ "quote-props": "off",
+ "quotes": "off",
+ "radix": "off",
+ "id-match": "off",
+ "id-blacklist": "off",
+ "require-jsdoc": "off",
+ "require-yield": "off",
+ "semi": "off",
+ "semi-spacing": "off",
+ "sort-vars": "off",
+ "sort-imports": "off",
+ "space-before-blocks": "off",
+ "space-before-function-paren": "off",
+ "space-in-parens": "off",
+ "space-infix-ops": "off",
+ "space-unary-ops": "off",
+ "spaced-comment": "off",
+ "strict": "off",
+ "template-curly-spacing": "off",
+ "use-isnan": "error",
+ "valid-jsdoc": "off",
+ "valid-typeof": "error",
+ "vars-on-top": "off",
+ "wrap-iife": "off",
+ "wrap-regex": "off",
+ "yield-star-spacing": "off",
+ "yoda": "off"
}
}
diff --git a/tools/eslint/lib/ast-utils.js b/tools/eslint/lib/ast-utils.js
index f9c04ceab37006..63b1fb628fd80d 100644
--- a/tools/eslint/lib/ast-utils.js
+++ b/tools/eslint/lib/ast-utils.js
@@ -33,14 +33,21 @@ var thisTagPattern = /^[\s\*]*@this/m;
* @private
*/
function isModifyingReference(reference, index, references) {
- var identifier = reference.identifier;
+ var identifier = reference.identifier,
+ modifyingDifferentIdentifier;
+
+ /*
+ * Destructuring assignments can have multiple default value, so
+ * possibly there are multiple writeable references for the same
+ * identifier.
+ */
+ modifyingDifferentIdentifier = index === 0 ||
+ references[index - 1].identifier !== identifier;
return (identifier &&
reference.init === false &&
reference.isWrite() &&
- // Destructuring assignments can have multiple default value,
- // so possibly there are multiple writeable references for the same identifier.
- (index === 0 || references[index - 1].identifier !== identifier)
+ modifyingDifferentIdentifier
);
}
@@ -155,6 +162,7 @@ function isMethodWhichHasThisArg(node) {
*/
function hasJSDocThisTag(node, sourceCode) {
var jsdocComment = sourceCode.getJSDocComment(node);
+
if (jsdocComment && thisTagPattern.test(jsdocComment.value)) {
return true;
}
@@ -168,6 +176,22 @@ function hasJSDocThisTag(node, sourceCode) {
});
}
+/**
+ * Determines if a node is surrounded by parentheses.
+ * @param {RuleContext} context The context object passed to the rule
+ * @param {ASTNode} node The node to be checked.
+ * @returns {boolean} True if the node is parenthesised.
+ * @private
+ */
+function isParenthesised(context, node) {
+ var previousToken = context.getTokenBefore(node),
+ nextToken = context.getTokenAfter(node);
+
+ return Boolean(previousToken && nextToken) &&
+ previousToken.value === "(" && previousToken.range[1] <= node.range[0] &&
+ nextToken.value === ")" && nextToken.range[0] >= node.range[1];
+}
+
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
@@ -187,8 +211,10 @@ module.exports = {
isNullOrUndefined: isNullOrUndefined,
isCallee: isCallee,
+ isES5Constructor: isES5Constructor,
getUpperFunction: getUpperFunction,
isArrayFromMethod: isArrayFromMethod,
+ isParenthesised: isParenthesised,
/**
* Checks whether or not a given node is a string literal.
@@ -261,6 +287,7 @@ module.exports = {
*/
isDirectiveComment: function(node) {
var comment = node.value.trim();
+
return (
node.type === "Line" && comment.indexOf("eslint-") === 0 ||
node.type === "Block" && (
@@ -293,8 +320,10 @@ module.exports = {
*/
getVariableByName: function(initScope, name) {
var scope = initScope;
+
while (scope) {
var variable = scope.set.get(name);
+
if (variable) {
return variable;
}
@@ -333,10 +362,13 @@ module.exports = {
while (node) {
var parent = node.parent;
+
switch (parent.type) {
- // Looks up the destination.
- // e.g.
- // obj.foo = nativeFoo || function foo() { ... };
+
+ /*
+ * Looks up the destination.
+ * e.g., obj.foo = nativeFoo || function foo() { ... };
+ */
case "LogicalExpression":
case "ConditionalExpression":
node = parent;
@@ -350,6 +382,7 @@ module.exports = {
// })();
case "ReturnStatement":
var func = getUpperFunction(parent);
+
if (func === null || !isCallee(func)) {
return true;
}
diff --git a/tools/eslint/lib/cli-engine.js b/tools/eslint/lib/cli-engine.js
index e3d72c6bb5e5b5..2cc62f955eac5f 100644
--- a/tools/eslint/lib/cli-engine.js
+++ b/tools/eslint/lib/cli-engine.js
@@ -22,8 +22,7 @@ var fs = require("fs"),
lodash = require("lodash"),
debug = require("debug"),
- glob = require("glob"),
- shell = require("shelljs"),
+ isAbsolute = require("path-is-absolute"),
rules = require("./rules"),
eslint = require("./eslint"),
@@ -36,8 +35,8 @@ var fs = require("fs"),
SourceCodeFixer = require("./util/source-code-fixer"),
validator = require("./config/config-validator"),
stringify = require("json-stable-stringify"),
+ hash = require("./util/hash"),
- crypto = require( "crypto" ),
pkg = require("../package.json");
@@ -73,12 +72,6 @@ var fs = require("fs"),
* @property {LintMessage[]} messages All of the messages for the result.
*/
-//------------------------------------------------------------------------------
-// Private
-//------------------------------------------------------------------------------
-
-defaultOptions = lodash.assign({}, defaultOptions, {cwd: process.cwd()});
-
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
@@ -141,13 +134,14 @@ function processText(text, configHelper, filename, fix, allowInlineConfig) {
config,
messages,
stats,
- fileExtension = path.extname(filename),
+ fileExtension,
processor,
loadedPlugins,
fixedResult;
if (filename) {
filePath = path.resolve(filename);
+ fileExtension = path.extname(filename);
}
filename = filename || "";
@@ -171,6 +165,7 @@ function processText(text, configHelper, filename, fix, allowInlineConfig) {
debug("Using processor");
var parsedBlocks = processor.preprocess(text, filename);
var unprocessedMessages = [];
+
parsedBlocks.forEach(function(block) {
unprocessedMessages.push(eslint.verify(block, config, {
filename: filename,
@@ -262,17 +257,6 @@ function isErrorMessage(message) {
return message.severity === 2;
}
-/**
- * create a md5Hash of a given string
- * @param {string} str the string to calculate the hash for
- * @returns {string} the calculated hash
- */
-function md5Hash(str) {
- return crypto
- .createHash("md5")
- .update(str, "utf8")
- .digest("hex");
-}
/**
* return the cacheFile to be used by eslint, based on whether the provided parameter is
@@ -286,8 +270,11 @@ function md5Hash(str) {
* @returns {string} the resolved path to the cache file
*/
function getCacheFile(cacheFile, cwd) {
- // make sure the path separators are normalized for the environment/os
- // keeping the trailing path separator if present
+
+ /*
+ * make sure the path separators are normalized for the environment/os
+ * keeping the trailing path separator if present
+ */
cacheFile = path.normalize(cacheFile);
var resolvedCacheFile = path.resolve(cwd, cacheFile);
@@ -298,7 +285,7 @@ function getCacheFile(cacheFile, cwd) {
* @returns {string} the resolved path to the cacheFile
*/
function getCacheFileForDirectory() {
- return path.join(resolvedCacheFile, ".cache_" + md5Hash(cwd));
+ return path.join(resolvedCacheFile, ".cache_" + hash(cwd));
}
var fileStats;
@@ -310,23 +297,31 @@ function getCacheFile(cacheFile, cwd) {
}
- // in case the file exists we need to verify if the provided path
- // is a directory or a file. If it is a directory we want to create a file
- // inside that directory
+ /*
+ * in case the file exists we need to verify if the provided path
+ * is a directory or a file. If it is a directory we want to create a file
+ * inside that directory
+ */
if (fileStats) {
- // is a directory or is a file, but the original file the user provided
- // looks like a directory but `path.resolve` removed the `last path.sep`
- // so we need to still treat this like a directory
+
+ /*
+ * is a directory or is a file, but the original file the user provided
+ * looks like a directory but `path.resolve` removed the `last path.sep`
+ * so we need to still treat this like a directory
+ */
if (fileStats.isDirectory() || looksLikeADirectory) {
return getCacheFileForDirectory();
}
+
// is file so just use that file
return resolvedCacheFile;
}
- // here we known the file or directory doesn't exist,
- // so we will try to infer if its a directory if it looks like a directory
- // for the current operating system.
+ /*
+ * here we known the file or directory doesn't exist,
+ * so we will try to infer if its a directory if it looks like a directory
+ * for the current operating system.
+ */
// if the last character passed is a path separator we assume is a directory
if (looksLikeADirectory) {
@@ -347,7 +342,12 @@ function getCacheFile(cacheFile, cwd) {
*/
function CLIEngine(options) {
- options = lodash.assign(Object.create(null), defaultOptions, options);
+ options = lodash.assign(
+ Object.create(null),
+ defaultOptions,
+ {cwd: process.cwd()},
+ options
+ );
/**
* Stored options for this instance
@@ -358,8 +358,9 @@ function CLIEngine(options) {
var cacheFile = getCacheFile(this.options.cacheLocation || this.options.cacheFile, this.options.cwd);
/**
- * cache used to not operate on files that haven't changed since last successful
- * execution (e.g. file passed with no errors and no warnings
+ * Cache used to avoid operating on files that haven't changed since the
+ * last successful execution (e.g., file passed linting with no errors and
+ * no warnings).
* @type {Object}
*/
this._fileCache = fileEntryCache.create(cacheFile);
@@ -371,6 +372,7 @@ function CLIEngine(options) {
// load in additional rules
if (this.options.rulePaths) {
var cwd = this.options.cwd;
+
this.options.rulePaths.forEach(function(rulesdir) {
debug("Loading rules from " + rulesdir);
rules.load(rulesdir, cwd);
@@ -404,7 +406,9 @@ CLIEngine.getFormatter = function(format) {
// if there's a slash, then it's a file
if (format.indexOf("/") > -1) {
- formatterPath = path.resolve(this.options.cwd, format);
+ var cwd = this.options ? this.options.cwd : process.cwd();
+
+ formatterPath = path.resolve(cwd, format);
} else {
formatterPath = "./formatters/" + format;
}
@@ -476,7 +480,7 @@ CLIEngine.prototype = {
* @returns {string[]} The equivalent glob patterns.
*/
resolveFileGlobPatterns: function(patterns) {
- return globUtil.resolveFileGlobPatterns(patterns, this.options.extensions);
+ return globUtil.resolveFileGlobPatterns(patterns, this.options);
},
/**
@@ -490,26 +494,11 @@ CLIEngine.prototype = {
options = this.options,
fileCache = this._fileCache,
configHelper = new Config(options),
- ignoredPaths = new IgnoredPaths(options),
- globOptions,
+ fileList,
stats,
startTime,
prevConfig; // the previous configuration used
- startTime = Date.now();
-
- globOptions = {
- nodir: true
- };
-
- var cwd = options.cwd || process.cwd;
- patterns = this.resolveFileGlobPatterns(patterns.map(function(pattern) {
- if (pattern.indexOf("/") > 0) {
- return path.join(cwd, pattern);
- }
- return pattern;
- }));
-
/**
* Calculates the hash of the config file used to validate a given file
* @param {string} filename The path of the file to retrieve a config object for to calculate the hash
@@ -524,13 +513,16 @@ CLIEngine.prototype = {
// reuse the previously hashed config if the config hasn't changed
if (prevConfig.config !== config) {
- // config changed so we need to calculate the hash of the config
- // and the hash of the plugins being used
+
+ /*
+ * config changed so we need to calculate the hash of the config
+ * and the hash of the plugins being used
+ */
prevConfig.config = config;
var eslintVersion = pkg.version;
- prevConfig.hash = md5Hash(eslintVersion + "_" + stringify(config));
+ prevConfig.hash = hash(eslintVersion + "_" + stringify(config));
}
return prevConfig.hash;
@@ -546,48 +538,41 @@ CLIEngine.prototype = {
function executeOnFile(filename, warnIgnored) {
var hashOfConfig;
- if (options.ignore !== false) {
-
- if (ignoredPaths.contains(filename, "custom")) {
- if (warnIgnored) {
- results.push(createIgnoreResult(filename));
- }
- return;
- }
-
- if (ignoredPaths.contains(filename, "default")) {
- return;
- }
-
- }
-
- filename = path.resolve(filename);
- if (processed[filename]) {
+ if (warnIgnored) {
+ results.push(createIgnoreResult(filename));
return;
}
if (options.cache) {
- // get the descriptor for this file
- // with the metadata and the flag that determines if
- // the file has changed
+
+ /*
+ * get the descriptor for this file
+ * with the metadata and the flag that determines if
+ * the file has changed
+ */
var descriptor = fileCache.getFileDescriptor(filename);
var meta = descriptor.meta || {};
hashOfConfig = hashOfConfigFor(filename);
var changed = descriptor.changed || meta.hashOfConfig !== hashOfConfig;
+
if (!changed) {
debug("Skipping file since hasn't changed: " + filename);
- // Adding the filename to the processed hashmap
- // so the reporting is not affected (showing a warning about .eslintignore being used
- // when it is not really used)
-
+ /*
+ * Adding the filename to the processed hashmap
+ * so the reporting is not affected (showing a warning about .eslintignore being used
+ * when it is not really used)
+ */
processed[filename] = true;
- // Add the the cached results (always will be 0 error and 0 warnings)
- // cause we don't save to cache files that failed
- // to guarantee that next execution will process those files as well
+ /*
+ * Add the the cached results (always will be 0 error and
+ * 0 warnings). We should not cache results for files that
+ * failed, in order to guarantee that next execution will
+ * process those files as well.
+ */
results.push(descriptor.meta.results);
// move to the next file
@@ -602,17 +587,25 @@ CLIEngine.prototype = {
var res = processFile(filename, configHelper, options);
if (options.cache) {
- // if a file contains errors or warnings we don't want to
- // store the file in the cache so we can guarantee that
- // next execution will also operate on this file
- if ( res.errorCount > 0 || res.warningCount > 0 ) {
+
+ /*
+ * if a file contains errors or warnings we don't want to
+ * store the file in the cache so we can guarantee that
+ * next execution will also operate on this file
+ */
+ if (res.errorCount > 0 || res.warningCount > 0) {
debug("File has problems, skipping it: " + filename);
+
// remove the entry from the cache
- fileCache.removeEntry( filename );
+ fileCache.removeEntry(filename);
} else {
- // since the file passed we store the result here
- // TODO: check this as we might not need to store the
- // successful runs as it will always should be 0 error 0 warnings
+
+ /*
+ * since the file passed we store the result here
+ * TODO: check this as we might not need to store the
+ * successful runs as it will always should be 0 errors and
+ * 0 warnings.
+ */
descriptor.meta.hashOfConfig = hashOfConfig;
descriptor.meta.results = res;
}
@@ -621,23 +614,20 @@ CLIEngine.prototype = {
results.push(res);
}
- patterns.forEach(function(pattern) {
+ startTime = Date.now();
- var file = path.resolve(pattern);
- if (shell.test("-f", file)) {
- executeOnFile(fs.realpathSync(pattern), !shell.test("-d", file));
- } else {
- glob.sync(pattern, globOptions).forEach(function(globMatch) {
- executeOnFile(globMatch, false);
- });
- }
+ patterns = this.resolveFileGlobPatterns(patterns);
+ fileList = globUtil.listFilesToProcess(patterns, options);
+ fileList.forEach(function(fileInfo) {
+ executeOnFile(fileInfo.filename, fileInfo.ignored);
});
stats = calculateStatsPerRun(results);
if (options.cache) {
+
// persist the cache to disk
fileCache.reconcile();
}
@@ -665,7 +655,12 @@ CLIEngine.prototype = {
configHelper = new Config(options),
ignoredPaths = new IgnoredPaths(options);
+ // resolve filename based on options.cwd (for reporting, ignoredPaths also resolves)
+ if (filename && !isAbsolute(filename)) {
+ filename = path.resolve(options.cwd, filename);
+ }
if (filename && (options.ignore !== false) && ignoredPaths.contains(filename)) {
+
results.push(createIgnoreResult(filename));
} else {
results.push(processText(text, configHelper, filename, options.fix, options.allowInlineConfig));
@@ -689,6 +684,7 @@ CLIEngine.prototype = {
*/
getConfigForFile: function(filePath) {
var configHelper = new Config(this.options);
+
return configHelper.getConfig(filePath);
},
@@ -699,10 +695,11 @@ CLIEngine.prototype = {
*/
isPathIgnored: function(filePath) {
var ignoredPaths;
+ var resolvedPath = path.resolve(this.options.cwd, filePath);
if (this.options.ignore) {
ignoredPaths = new IgnoredPaths(this.options);
- return ignoredPaths.contains(filePath);
+ return ignoredPaths.contains(resolvedPath);
}
return false;
diff --git a/tools/eslint/lib/cli.js b/tools/eslint/lib/cli.js
index 979060d3f99760..adb70d8ce18390 100644
--- a/tools/eslint/lib/cli.js
+++ b/tools/eslint/lib/cli.js
@@ -51,6 +51,7 @@ function translateOptions(cliOptions) {
rulePaths: cliOptions.rulesdir,
useEslintrc: cliOptions.eslintrc,
parser: cliOptions.parser,
+ parserOptions: cliOptions.parserOptions,
cache: cliOptions.cache,
cacheFile: cliOptions.cacheFile,
cacheLocation: cliOptions.cacheLocation,
@@ -171,6 +172,7 @@ var cli = {
}
var fileConfig = engine.getConfigForFile(files[0]);
+
log.info(JSON.stringify(fileConfig, null, " "));
return 0;
}
diff --git a/tools/eslint/lib/code-path-analysis/code-path-analyzer.js b/tools/eslint/lib/code-path-analysis/code-path-analyzer.js
index aa2a6ff4acb1f1..afb9980430a6b0 100644
--- a/tools/eslint/lib/code-path-analysis/code-path-analyzer.js
+++ b/tools/eslint/lib/code-path-analysis/code-path-analyzer.js
@@ -41,6 +41,7 @@ function isCaseNode(node) {
*/
function isForkingByTrueOrFalse(node) {
var parent = node.parent;
+
switch (parent.type) {
case "ConditionalExpression":
case "IfStatement":
@@ -128,8 +129,8 @@ function isIdentifierReference(node) {
*
* To separate the current and the head is in order to not make useless segments.
*
- * In this process, both "onCodePathSegmentStart" and "onCodePathSegmentEnd" events
- * are fired.
+ * In this process, both "onCodePathSegmentStart" and "onCodePathSegmentEnd"
+ * events are fired.
*
* @param {CodePathAnalyzer} analyzer - The instance.
* @param {ASTNode} node - The current AST node.
@@ -206,6 +207,7 @@ function leaveFromCurrentSegment(analyzer, node) {
node);
}
}
+
state.currentSegments = [];
}
@@ -234,9 +236,12 @@ function preprocess(analyzer, node) {
case "ConditionalExpression":
case "IfStatement":
- // Fork if this node is at `consequent`/`alternate`.
- // `popForkContext()` exists at `IfStatement:exit` and
- // `ConditionalExpression:exit`.
+
+ /*
+ * Fork if this node is at `consequent`/`alternate`.
+ * `popForkContext()` exists at `IfStatement:exit` and
+ * `ConditionalExpression:exit`.
+ */
if (parent.consequent === node) {
state.makeIfConsequent();
} else if (parent.alternate === node) {
@@ -299,9 +304,12 @@ function preprocess(analyzer, node) {
break;
case "AssignmentPattern":
- // Fork if this node is at `right`.
- // `left` is executed always, so it uses the current path.
- // `popForkContext()` exists at `AssignmentPattern:exit`.
+
+ /*
+ * Fork if this node is at `right`.
+ * `left` is executed always, so it uses the current path.
+ * `popForkContext()` exists at `AssignmentPattern:exit`.
+ */
if (parent.right === node) {
state.pushForkContext();
state.forkBypassPath();
@@ -332,6 +340,7 @@ function processCodePathToEnter(analyzer, node) {
case "FunctionExpression":
case "ArrowFunctionExpression":
if (codePath) {
+
// Emits onCodePathSegmentStart events if updated.
forwardCurrentToHead(analyzer, node);
debug.dumpState(node, state, false);
@@ -370,9 +379,12 @@ function processCodePathToEnter(analyzer, node) {
break;
case "SwitchCase":
- // Fork if this node is after the 2st node in `cases`.
- // It's similar to `else` blocks.
- // The next `test` node is processed in this path.
+
+ /*
+ * Fork if this node is after the 2st node in `cases`.
+ * It's similar to `else` blocks.
+ * The next `test` node is processed in this path.
+ */
if (parent.discriminant !== node && parent.cases[0] !== node) {
state.forkPath();
}
@@ -425,9 +437,12 @@ function processCodePathToExit(analyzer, node) {
break;
case "SwitchCase":
- // This is the same as the process at the 1st `consequent` node in
- // `preprocess` function.
- // Must do if this `consequent` is empty.
+
+ /*
+ * This is the same as the process at the 1st `consequent` node in
+ * `preprocess` function.
+ * Must do if this `consequent` is empty.
+ */
if (node.consequent.length === 0) {
state.makeSwitchCaseBody(true, !node.test);
}
@@ -499,9 +514,12 @@ function processCodePathToExit(analyzer, node) {
break;
}
- // Skip updating the current segment to avoid creating useless segments if
- // the node type is the same as the parent node type.
+ /*
+ * Skip updating the current segment to avoid creating useless segments if
+ * the node type is the same as the parent node type.
+ */
if (!dontForward && (!node.parent || node.type !== node.parent.type)) {
+
// Emits onCodePathSegmentStart events if updated.
forwardCurrentToHead(analyzer, node);
}
diff --git a/tools/eslint/lib/code-path-analysis/code-path-segment.js b/tools/eslint/lib/code-path-analysis/code-path-segment.js
index 94deafbfbb1d0c..ea292efc36cf7f 100644
--- a/tools/eslint/lib/code-path-analysis/code-path-segment.js
+++ b/tools/eslint/lib/code-path-analysis/code-path-segment.js
@@ -79,6 +79,7 @@ function isReachable(segment) {
* @param {boolean} reachable - A flag which shows this is reachable.
*/
function CodePathSegment(id, allPrevSegments, reachable) {
+
/**
* The identifier of this code path.
* Rules use it to store additional information of each rule.
@@ -120,7 +121,8 @@ function CodePathSegment(id, allPrevSegments, reachable) {
// Internal data.
Object.defineProperty(this, "internal", {value: {
- used: false
+ used: false,
+ loopedPrevSegments: []
}});
/* istanbul ignore if */
@@ -130,6 +132,20 @@ function CodePathSegment(id, allPrevSegments, reachable) {
}
}
+CodePathSegment.prototype = {
+ constructor: CodePathSegment,
+
+ /**
+ * Checks a given previous segment is coming from the end of a loop.
+ *
+ * @param {CodePathSegment} segment - A previous segment to check.
+ * @returns {boolean} `true` if the segment is coming from the end of a loop.
+ */
+ isLoopedPrevSegment: function(segment) {
+ return this.internal.loopedPrevSegments.indexOf(segment) !== -1;
+ }
+};
+
/**
* Creates the root segment.
*
@@ -191,6 +207,7 @@ CodePathSegment.markUsed = function(segment) {
segment.internal.used = true;
var i;
+
if (segment.reachable) {
for (i = 0; i < segment.allPrevSegments.length; ++i) {
var prevSegment = segment.allPrevSegments[i];
@@ -205,4 +222,15 @@ CodePathSegment.markUsed = function(segment) {
}
};
+/**
+ * Marks a previous segment as looped.
+ *
+ * @param {CodePathSegment} segment - A segment.
+ * @param {CodePathSegment} prevSegment - A previous segment to mark.
+ * @returns {void}
+ */
+CodePathSegment.markPrevSegmentAsLooped = function(segment, prevSegment) {
+ segment.internal.loopedPrevSegments.push(prevSegment);
+};
+
module.exports = CodePathSegment;
diff --git a/tools/eslint/lib/code-path-analysis/code-path-state.js b/tools/eslint/lib/code-path-analysis/code-path-state.js
index 121df319fa642f..b620ed718bd542 100644
--- a/tools/eslint/lib/code-path-analysis/code-path-state.js
+++ b/tools/eslint/lib/code-path-analysis/code-path-state.js
@@ -55,6 +55,7 @@ function getContinueContext(state, label) {
}
var context = state.loopContext;
+
while (context) {
if (context.label === label) {
return context;
@@ -75,6 +76,7 @@ function getContinueContext(state, label) {
*/
function getBreakContext(state, label) {
var context = state.breakContext;
+
while (context) {
if (label ? context.label === label : context.breakable) {
return context;
@@ -94,6 +96,7 @@ function getBreakContext(state, label) {
*/
function getReturnContext(state) {
var context = state.tryContext;
+
while (context) {
if (context.hasFinalizer && context.position !== "finally") {
return context;
@@ -112,6 +115,7 @@ function getReturnContext(state) {
*/
function getThrowContext(state) {
var context = state.tryContext;
+
while (context) {
if (context.position === "try" ||
(context.hasFinalizer && context.position === "catch")
@@ -168,6 +172,7 @@ function removeConnection(prevSegments, nextSegments) {
*/
function makeLooped(state, fromSegments, toSegments) {
var end = Math.min(fromSegments.length, toSegments.length);
+
for (var i = 0; i < end; ++i) {
var fromSegment = fromSegments[i];
var toSegment = toSegments[i];
@@ -181,6 +186,10 @@ function makeLooped(state, fromSegments, toSegments) {
fromSegment.allNextSegments.push(toSegment);
toSegment.allPrevSegments.push(fromSegment);
+ if (toSegment.allPrevSegments.length >= 2) {
+ CodePathSegment.markPrevSegmentAsLooped(toSegment, fromSegment);
+ }
+
state.notifyLooped(fromSegment, toSegment);
}
}
@@ -237,6 +246,7 @@ function CodePathState(idGenerator, onLooped) {
var final = this.finalSegments = [];
var returned = this.returnedForkContext = [];
var thrown = this.thrownForkContext = [];
+
returned.add = addToReturnedOrThrown.bind(null, returned, thrown, final);
thrown.add = addToReturnedOrThrown.bind(null, thrown, returned, final);
}
@@ -259,6 +269,7 @@ CodePathState.prototype = {
*/
get parentForkContext() {
var current = this.forkContext;
+
return current && current.upper;
},
@@ -362,6 +373,7 @@ CodePathState.prototype = {
*/
popChoiceContext: function() {
var context = this.choiceContext;
+
this.choiceContext = context.upper;
var forkContext = this.forkContext;
@@ -370,43 +382,61 @@ CodePathState.prototype = {
switch (context.kind) {
case "&&":
case "||":
- // If any result were not transferred from child contexts,
- // this sets the head segments to both cases.
- // The head segments are the path of the right-hand operand.
+
+ /*
+ * If any result were not transferred from child contexts,
+ * this sets the head segments to both cases.
+ * The head segments are the path of the right-hand operand.
+ */
if (!context.processed) {
context.trueForkContext.add(headSegments);
context.falseForkContext.add(headSegments);
}
- // Transfers results to upper context if this context is in
- // test chunk.
+ /*
+ * Transfers results to upper context if this context is in
+ * test chunk.
+ */
if (context.isForkingAsResult) {
var parentContext = this.choiceContext;
+
parentContext.trueForkContext.addAll(context.trueForkContext);
parentContext.falseForkContext.addAll(context.falseForkContext);
parentContext.processed = true;
return context;
}
+
break;
case "test":
if (!context.processed) {
- // The head segments are the path of the `if` block here.
- // Updates the `true` path with the end of the `if` block.
+
+ /*
+ * The head segments are the path of the `if` block here.
+ * Updates the `true` path with the end of the `if` block.
+ */
context.trueForkContext.clear();
context.trueForkContext.add(headSegments);
} else {
- // The head segments are the path of the `else` block here.
- // Updates the `false` path with the end of the `else` block.
+
+ /*
+ * The head segments are the path of the `else` block here.
+ * Updates the `false` path with the end of the `else`
+ * block.
+ */
context.falseForkContext.clear();
context.falseForkContext.add(headSegments);
}
+
break;
case "loop":
- // Loops are addressed in popLoopContext().
- // This is called from popLoopContext().
+
+ /*
+ * Loops are addressed in popLoopContext().
+ * This is called from popLoopContext().
+ */
return context;
/* istanbul ignore next */
@@ -416,6 +446,7 @@ CodePathState.prototype = {
// Merges all paths.
var prevForkContext = context.trueForkContext;
+
prevForkContext.addAll(context.falseForkContext);
forkContext.replaceHead(prevForkContext.makeNext(0, -1));
@@ -433,8 +464,11 @@ CodePathState.prototype = {
var forkContext = this.forkContext;
if (context.processed) {
- // This got segments already from the child choice context.
- // Creates the next path from own true/false fork context.
+
+ /*
+ * This got segments already from the child choice context.
+ * Creates the next path from own true/false fork context.
+ */
var prevForkContext =
context.kind === "&&" ? context.trueForkContext :
/* kind === "||" */ context.falseForkContext;
@@ -444,13 +478,18 @@ CodePathState.prototype = {
context.processed = false;
} else {
- // This did not get segments from the child choice context.
- // So addresses the head segments.
- // The head segments are the path of the left-hand operand.
+
+ /*
+ * This did not get segments from the child choice context.
+ * So addresses the head segments.
+ * The head segments are the path of the left-hand operand.
+ */
if (context.kind === "&&") {
+
// The path does short-circuit if false.
context.falseForkContext.add(forkContext.head);
} else {
+
// The path does short-circuit if true.
context.trueForkContext.add(forkContext.head);
}
@@ -468,13 +507,16 @@ CodePathState.prototype = {
var context = this.choiceContext;
var forkContext = this.forkContext;
- // If any result were not transferred from child contexts,
- // this sets the head segments to both cases.
- // The head segments are the path of the test expression.
+ /*
+ * If any result were not transferred from child contexts,
+ * this sets the head segments to both cases.
+ * The head segments are the path of the test expression.
+ */
if (!context.processed) {
context.trueForkContext.add(forkContext.head);
context.falseForkContext.add(forkContext.head);
}
+
context.processed = false;
// Creates new path from the `true` case.
@@ -492,8 +534,10 @@ CodePathState.prototype = {
var context = this.choiceContext;
var forkContext = this.forkContext;
- // The head segments are the path of the `if` block.
- // Updates the `true` path with the end of the `if` block.
+ /*
+ * The head segments are the path of the `if` block.
+ * Updates the `true` path with the end of the `if` block.
+ */
context.trueForkContext.clear();
context.trueForkContext.add(forkContext.head);
context.processed = true;
@@ -526,6 +570,7 @@ CodePathState.prototype = {
lastIsDefault: false,
countForks: 0
};
+
this.pushBreakContext(true, label);
},
@@ -541,41 +586,57 @@ CodePathState.prototype = {
*/
popSwitchContext: function() {
var context = this.switchContext;
+
this.switchContext = context.upper;
var forkContext = this.forkContext;
var brokenForkContext = this.popBreakContext().brokenForkContext;
if (context.countForks === 0) {
- // When there is only one `default` chunk and there is one or more
- // `break` statements, even if forks are nothing, it needs to merge
- // those.
+
+ /*
+ * When there is only one `default` chunk and there is one or more
+ * `break` statements, even if forks are nothing, it needs to merge
+ * those.
+ */
if (!brokenForkContext.empty) {
brokenForkContext.add(forkContext.makeNext(-1, -1));
forkContext.replaceHead(brokenForkContext.makeNext(0, -1));
}
+
return;
}
var lastSegments = forkContext.head;
+
this.forkBypassPath();
var lastCaseSegments = forkContext.head;
- // `brokenForkContext` is used to make the next segment.
- // It must add the last segment into `brokenForkContext`.
+ /*
+ * `brokenForkContext` is used to make the next segment.
+ * It must add the last segment into `brokenForkContext`.
+ */
brokenForkContext.add(lastSegments);
- // A path which is failed in all case test should be connected to path
- // of `default` chunk.
+ /*
+ * A path which is failed in all case test should be connected to path
+ * of `default` chunk.
+ */
if (!context.lastIsDefault) {
if (context.defaultBodySegments) {
- // Remove a link from `default` label to its chunk.
- // It's false route.
+
+ /*
+ * Remove a link from `default` label to its chunk.
+ * It's false route.
+ */
removeConnection(context.defaultSegments, context.defaultBodySegments);
makeLooped(this, lastCaseSegments, context.defaultBodySegments);
} else {
- // It handles the last case body as broken if `default` chunk
- // does not exist.
+
+ /*
+ * It handles the last case body as broken if `default` chunk
+ * does not exist.
+ */
brokenForkContext.add(lastCaseSegments);
}
}
@@ -584,8 +645,11 @@ CodePathState.prototype = {
for (var i = 0; i < context.countForks; ++i) {
this.forkContext = this.forkContext.upper;
}
- // Creates a path from all brokenForkContext paths.
- // This is a path after switch statement.
+
+ /*
+ * Creates a path from all brokenForkContext paths.
+ * This is a path after switch statement.
+ */
this.forkContext.replaceHead(brokenForkContext.makeNext(0, -1));
},
@@ -598,20 +662,26 @@ CodePathState.prototype = {
*/
makeSwitchCaseBody: function(isEmpty, isDefault) {
var context = this.switchContext;
+
if (!context.hasCase) {
return;
}
- // Merge forks.
- // The parent fork context has two segments.
- // Those are from the current case and the body of the previous case.
+ /*
+ * Merge forks.
+ * The parent fork context has two segments.
+ * Those are from the current case and the body of the previous case.
+ */
var parentForkContext = this.forkContext;
var forkContext = this.pushForkContext();
+
forkContext.add(parentForkContext.makeNext(0, -1));
- // Save `default` chunk info.
- // If the `default` label is not at the last, we must make a path from
- // the last `case` to the `default` chunk.
+ /*
+ * Save `default` chunk info.
+ * If the `default` label is not at the last, we must make a path from
+ * the last `case` to the `default` chunk.
+ */
if (isDefault) {
context.defaultSegments = parentForkContext.head;
if (isEmpty) {
@@ -625,6 +695,7 @@ CodePathState.prototype = {
context.defaultBodySegments = forkContext.head;
}
}
+
context.lastIsDefault = isDefault;
context.countForks += 1;
},
@@ -645,9 +716,11 @@ CodePathState.prototype = {
upper: this.tryContext,
position: "try",
hasFinalizer: hasFinalizer,
+
returnedForkContext: hasFinalizer
? ForkContext.newEmpty(this.forkContext)
: null,
+
thrownForkContext: ForkContext.newEmpty(this.forkContext),
lastOfTryIsReachable: false,
lastOfCatchIsReachable: false
@@ -661,24 +734,31 @@ CodePathState.prototype = {
*/
popTryContext: function() {
var context = this.tryContext;
+
this.tryContext = context.upper;
if (context.position === "catch") {
+
// Merges two paths from the `try` block and `catch` block merely.
this.popForkContext();
return;
}
- // The following process is executed only when there is the `finally`
- // block.
+
+ /*
+ * The following process is executed only when there is the `finally`
+ * block.
+ */
var returned = context.returnedForkContext;
var thrown = context.thrownForkContext;
+
if (returned.empty && thrown.empty) {
return;
}
// Separate head to normal paths and leaving paths.
var headSegments = this.forkContext.head;
+
this.forkContext = this.forkContext.upper;
var normalSegments = headSegments.slice(0, headSegments.length / 2 | 0);
var leavingSegments = headSegments.slice(headSegments.length / 2 | 0);
@@ -744,6 +824,7 @@ CodePathState.prototype = {
// Update state.
if (context.position === "catch") {
+
// Merges two paths from the `try` block and `catch` block.
this.popForkContext();
forkContext = this.forkContext;
@@ -755,14 +836,18 @@ CodePathState.prototype = {
context.position = "finally";
if (returned.empty && thrown.empty) {
+
// This path does not leave.
return;
}
- // Create a parallel segment from merging returned and thrown.
- // This segment will leave at the end of this finally block.
+ /*
+ * Create a parallel segment from merging returned and thrown.
+ * This segment will leave at the end of this finally block.
+ */
var segments = forkContext.makeNext(-1, -1);
var j;
+
for (var i = 0; i < forkContext.count; ++i) {
var prevSegsOfLeavingSegment = [headOfLeavingSegments[i]];
@@ -790,11 +875,13 @@ CodePathState.prototype = {
*/
makeFirstThrowablePathInTryBlock: function() {
var forkContext = this.forkContext;
+
if (!forkContext.reachable) {
return;
}
var context = getThrowContext(this);
+
if (context === this ||
context.position !== "try" ||
!context.thrownForkContext.empty
@@ -893,6 +980,7 @@ CodePathState.prototype = {
*/
popLoopContext: function() {
var context = this.loopContext;
+
this.loopContext = context.upper;
var forkContext = this.forkContext;
@@ -923,6 +1011,7 @@ CodePathState.prototype = {
// `true` paths go to looping.
var segmentsList = choiceContext.trueForkContext.segmentsList;
+
for (var i = 0; i < segmentsList.length; ++i) {
makeLooped(
this,
@@ -1069,6 +1158,7 @@ CodePathState.prototype = {
// Update state.
var updateSegments = forkContext.makeDisconnected(-1, -1);
+
context.continueDestSegments = context.updateSegments = updateSegments;
forkContext.replaceHead(updateSegments);
},
@@ -1104,10 +1194,15 @@ CodePathState.prototype = {
}
var bodySegments = context.endOfTestSegments;
+
if (!bodySegments) {
- // If there is not the `test` part, the `body` path comes from the
- // `init` part and the `update` part.
+
+ /*
+ * If there is not the `test` part, the `body` path comes from the
+ * `init` part and the `update` part.
+ */
var prevForkContext = ForkContext.newEmpty(forkContext);
+
prevForkContext.add(context.endOfInitSegments);
if (context.endOfUpdateSegments) {
prevForkContext.add(context.endOfUpdateSegments);
@@ -1146,6 +1241,7 @@ CodePathState.prototype = {
var context = this.loopContext;
var forkContext = this.forkContext;
var temp = ForkContext.newEmpty(forkContext);
+
temp.add(context.prevSegments);
var rightSegments = temp.makeNext(-1, -1);
@@ -1164,6 +1260,7 @@ CodePathState.prototype = {
var context = this.loopContext;
var forkContext = this.forkContext;
var temp = ForkContext.newEmpty(forkContext);
+
temp.add(context.endOfLeftSegments);
var bodySegments = temp.makeNext(-1, -1);
@@ -1205,11 +1302,13 @@ CodePathState.prototype = {
popBreakContext: function() {
var context = this.breakContext;
var forkContext = this.forkContext;
+
this.breakContext = context.upper;
// Process this context here for other than switches and loops.
if (!context.breakable) {
var brokenForkContext = context.brokenForkContext;
+
if (!brokenForkContext.empty) {
brokenForkContext.add(forkContext.head);
forkContext.replaceHead(brokenForkContext.makeNext(0, -1));
@@ -1230,15 +1329,18 @@ CodePathState.prototype = {
*/
makeBreak: function(label) {
var forkContext = this.forkContext;
+
if (!forkContext.reachable) {
return;
}
var context = getBreakContext(this, label);
+
/* istanbul ignore else: foolproof (syntax error) */
if (context) {
context.brokenForkContext.add(forkContext.head);
}
+
forkContext.replaceHead(forkContext.makeUnreachable(-1, -1));
},
@@ -1253,11 +1355,13 @@ CodePathState.prototype = {
*/
makeContinue: function(label) {
var forkContext = this.forkContext;
+
if (!forkContext.reachable) {
return;
}
var context = getContinueContext(this, label);
+
/* istanbul ignore else: foolproof (syntax error) */
if (context) {
if (context.continueDestSegments) {
@@ -1286,6 +1390,7 @@ CodePathState.prototype = {
*/
makeReturn: function() {
var forkContext = this.forkContext;
+
if (forkContext.reachable) {
getReturnContext(this).returnedForkContext.add(forkContext.head);
forkContext.replaceHead(forkContext.makeUnreachable(-1, -1));
@@ -1302,6 +1407,7 @@ CodePathState.prototype = {
*/
makeThrow: function() {
var forkContext = this.forkContext;
+
if (forkContext.reachable) {
getThrowContext(this).thrownForkContext.add(forkContext.head);
forkContext.replaceHead(forkContext.makeUnreachable(-1, -1));
@@ -1314,6 +1420,7 @@ CodePathState.prototype = {
*/
makeFinal: function() {
var segments = this.currentSegments;
+
if (segments.length > 0 && segments[0].reachable) {
this.returnedForkContext.add(segments);
}
diff --git a/tools/eslint/lib/code-path-analysis/code-path.js b/tools/eslint/lib/code-path-analysis/code-path.js
index 200ff434b8d417..2b45ed944f8497 100644
--- a/tools/eslint/lib/code-path-analysis/code-path.js
+++ b/tools/eslint/lib/code-path-analysis/code-path.js
@@ -27,6 +27,7 @@ var IdGenerator = require("./id-generator");
* @param {function} onLooped - A callback function to notify looping.
*/
function CodePath(id, upper, onLooped) {
+
/**
* The identifier of this code path.
* Rules use it to store additional information of each rule.
@@ -102,6 +103,123 @@ CodePath.prototype = {
*/
get currentSegments() {
return this.internal.currentSegments;
+ },
+
+ /**
+ * Traverses all segments in this code path.
+ *
+ * codePath.traverseSegments(function(segment, controller) {
+ * // do something.
+ * });
+ *
+ * This method enumerates segments in order from the head.
+ *
+ * The `controller` object has two methods.
+ *
+ * - `controller.skip()` - Skip the following segments in this branch.
+ * - `controller.break()` - Skip all following segments.
+ *
+ * @param {object} [options] - Omittable.
+ * @param {CodePathSegment} [options.first] - The first segment to traverse.
+ * @param {CodePathSegment} [options.last] - The last segment to traverse.
+ * @param {function} callback - A callback function.
+ * @returns {void}
+ */
+ traverseSegments: function(options, callback) {
+ if (typeof options === "function") {
+ callback = options;
+ options = null;
+ }
+
+ options = options || {};
+ var startSegment = options.first || this.internal.initialSegment;
+ var lastSegment = options.last;
+
+ var item = null;
+ var index = 0;
+ var end = 0;
+ var segment = null;
+ var visited = Object.create(null);
+ var stack = [[startSegment, 0]];
+ var skippedSegment = null;
+ var broken = false;
+ var controller = {
+ skip: function() {
+ if (stack.length <= 1) {
+ broken = true;
+ } else {
+ skippedSegment = stack[stack.length - 2][0];
+ }
+ },
+ break: function() {
+ broken = true;
+ }
+ };
+
+ /**
+ * Checks a given previous segment has been visited.
+ * @param {CodePathSegment} prevSegment - A previous segment to check.
+ * @returns {boolean} `true` if the segment has been visited.
+ */
+ function isVisited(prevSegment) {
+ return (
+ visited[prevSegment.id] ||
+ segment.isLoopedPrevSegment(prevSegment)
+ );
+ }
+
+ while (stack.length > 0) {
+ item = stack[stack.length - 1];
+ segment = item[0];
+ index = item[1];
+
+ if (index === 0) {
+
+ // Skip if this segment has been visited already.
+ if (visited[segment.id]) {
+ stack.pop();
+ continue;
+ }
+
+ // Skip if all previous segments have not been visited.
+ if (segment !== startSegment &&
+ segment.prevSegments.length > 0 &&
+ !segment.prevSegments.every(isVisited)
+ ) {
+ stack.pop();
+ continue;
+ }
+
+ // Reset the flag of skipping if all branches have been skipped.
+ if (skippedSegment && segment.prevSegments.indexOf(skippedSegment) !== -1) {
+ skippedSegment = null;
+ }
+ visited[segment.id] = true;
+
+ // Call the callback when the first time.
+ if (!skippedSegment) {
+ callback.call(this, segment, controller); // eslint-disable-line callback-return
+ if (segment === lastSegment) {
+ controller.skip();
+ }
+ if (broken) {
+ break;
+ }
+ }
+ }
+
+ // Update the stack.
+ end = segment.nextSegments.length - 1;
+ if (index < end) {
+ item[1] += 1;
+ stack.push([segment.nextSegments[index], 0]);
+ } else if (index === end) {
+ item[0] = segment.nextSegments[index];
+ item[1] = 0;
+ } else {
+ stack.pop();
+ }
+ }
}
};
diff --git a/tools/eslint/lib/code-path-analysis/debug-helpers.js b/tools/eslint/lib/code-path-analysis/debug-helpers.js
index d8c26ad1b85e67..6ecfabe955d92d 100644
--- a/tools/eslint/lib/code-path-analysis/debug-helpers.js
+++ b/tools/eslint/lib/code-path-analysis/debug-helpers.js
@@ -32,6 +32,7 @@ function getId(segment) { // eslint-disable-line require-jsdoc
//------------------------------------------------------------------------------
module.exports = {
+
/**
* A flag that debug dumping is enabled or not.
* @type {boolean}
@@ -57,6 +58,7 @@ module.exports = {
dumpState: !debug.enabled ? debug : /* istanbul ignore next */ function(node, state, leaving) {
for (var i = 0; i < state.currentSegments.length; ++i) {
var segInternal = state.currentSegments[i].internal;
+
if (leaving) {
segInternal.exitNodes.push(node);
} else {
@@ -153,12 +155,14 @@ module.exports = {
var item = stack.pop();
var segment = item[0];
var index = item[1];
+
if (done[segment.id] && index === 0) {
continue;
}
done[segment.id] = segment;
var nextSegment = segment.allNextSegments[index];
+
if (!nextSegment) {
continue;
}
diff --git a/tools/eslint/lib/code-path-analysis/fork-context.js b/tools/eslint/lib/code-path-analysis/fork-context.js
index 8716ddd6ffa7d1..af82e68e0c7d4f 100644
--- a/tools/eslint/lib/code-path-analysis/fork-context.js
+++ b/tools/eslint/lib/code-path-analysis/fork-context.js
@@ -47,6 +47,7 @@ function isReachable(segment) {
*/
function makeSegments(context, begin, end, create) {
var list = context.segmentsList;
+
if (begin < 0) {
begin = list.length + begin;
}
@@ -55,6 +56,7 @@ function makeSegments(context, begin, end, create) {
}
var segments = [];
+
for (var i = 0; i < context.count; ++i) {
var allPrevSegments = [];
@@ -81,6 +83,7 @@ function makeSegments(context, begin, end, create) {
function mergeExtraSegments(context, segments) {
while (segments.length > context.count) {
var merged = [];
+
for (var i = 0, length = segments.length / 2 | 0; i < length; ++i) {
merged.push(CodePathSegment.newNext(
context.idGenerator.next(),
@@ -120,6 +123,7 @@ ForkContext.prototype = {
*/
get head() {
var list = this.segmentsList;
+
return list.length === 0 ? [] : list[list.length - 1];
},
@@ -137,6 +141,7 @@ ForkContext.prototype = {
*/
get reachable() {
var segments = this.head;
+
return segments.length > 0 && segments.some(isReachable);
},
@@ -212,6 +217,7 @@ ForkContext.prototype = {
assert(context.count === this.count);
var source = context.segmentsList;
+
for (var i = 0; i < source.length; ++i) {
this.segmentsList.push(source[i]);
}
diff --git a/tools/eslint/lib/code-path-analysis/id-generator.js b/tools/eslint/lib/code-path-analysis/id-generator.js
index c37e7d7e5b92ac..530ea95844593e 100644
--- a/tools/eslint/lib/code-path-analysis/id-generator.js
+++ b/tools/eslint/lib/code-path-analysis/id-generator.js
@@ -33,10 +33,12 @@ function IdGenerator(prefix) {
*/
IdGenerator.prototype.next = function() {
this.n = 1 + this.n | 0;
+
/* istanbul ignore if */
if (this.n < 0) {
this.n = 1;
}
+
return this.prefix + this.n;
};
diff --git a/tools/eslint/lib/config.js b/tools/eslint/lib/config.js
index 6f445a44a50aa8..cf14717d4f617d 100644
--- a/tools/eslint/lib/config.js
+++ b/tools/eslint/lib/config.js
@@ -78,7 +78,7 @@ function loadConfig(configToLoad) {
* @private
*/
function getPersonalConfig() {
- var config = {},
+ var config,
filename;
if (PERSONAL_CONFIG_DIR) {
@@ -90,7 +90,7 @@ function getPersonalConfig() {
}
}
- return config;
+ return config || {};
}
/**
@@ -166,6 +166,7 @@ function Config(options) {
this.ignorePath = options.ignorePath;
this.cache = {};
this.parser = options.parser;
+ this.parserOptions = options.parserOptions || {};
this.baseConfig = options.baseConfig ? loadConfig(options.baseConfig) : { rules: {} };
@@ -176,10 +177,17 @@ function Config(options) {
return envs;
}, {});
+ /*
+ * Handle declared globals.
+ * For global variable foo, handle "foo:false" and "foo:true" to set
+ * whether global is writable.
+ * If user declares "foo", convert to "foo:false".
+ */
this.globals = (options.globals || []).reduce(function(globals, def) {
- // Default "foo" to false and handle "foo:false" and "foo:true"
var parts = def.split(":");
+
globals[parts[0]] = (parts.length > 1 && parts[1] === "true");
+
return globals;
}, {});
@@ -226,7 +234,7 @@ Config.prototype.getConfig = function(filePath) {
}
// Step 2: Create a copy of the baseConfig
- config = ConfigOps.merge({parser: this.parser}, this.baseConfig);
+ config = ConfigOps.merge({parser: this.parser, parserOptions: this.parserOptions}, this.baseConfig);
// Step 3: Merge in the user-specified configuration from .eslintrc and package.json
config = ConfigOps.merge(config, userConfig);
@@ -237,6 +245,7 @@ Config.prototype.getConfig = function(filePath) {
config = ConfigOps.merge(config, this.useSpecificConfig);
}
+
// Step 5: Merge in command line environments
debug("Merging command line environment settings");
config = ConfigOps.merge(config, { env: this.env });
diff --git a/tools/eslint/lib/config/autoconfig.js b/tools/eslint/lib/config/autoconfig.js
index 1b7493bf07abe0..ccb9f1a2fe7e2b 100644
--- a/tools/eslint/lib/config/autoconfig.js
+++ b/tools/eslint/lib/config/autoconfig.js
@@ -15,6 +15,7 @@ var lodash = require("lodash"),
debug = require("debug"),
eslint = require("../eslint"),
configRule = require("./config-rule"),
+ ConfigOps = require("./config-ops"),
recConfig = require("../../conf/eslint.json");
//------------------------------------------------------------------------------
@@ -91,6 +92,7 @@ Registry.prototype = {
*/
populateFromCoreRules: function() {
var rulesConfig = configRule.createCoreRuleConfigs();
+
this.rules = makeRegistryItems(rulesConfig);
},
@@ -123,18 +125,32 @@ Registry.prototype = {
* @returns {void}
*/
var addRuleToRuleSet = function(rule) {
- // This check ensures that there is a rule configuration, and that
- // it either has fewer than the max cominbations allowed, or if it has
- // too many configs, we will only use the most basic of them.
+
+ /*
+ * This check ensures that there is a rule configuration and that
+ * it has fewer than the max combinations allowed.
+ * If it has too many configs, we will only use the most basic of
+ * the possible configurations.
+ */
var hasFewCombos = (this.rules[rule].length <= MAX_CONFIG_COMBINATIONS);
+
if (this.rules[rule][idx] && (hasFewCombos || this.rules[rule][idx].specificity <= 2)) {
- // If the rule has too many possible combinations, only take simple ones, avoiding objects.
+
+ /*
+ * If the rule has too many possible combinations, only take
+ * simple ones, avoiding objects.
+ */
if (!hasFewCombos && typeof this.rules[rule][idx].config[1] === "object") {
return;
}
+
ruleSets[idx] = ruleSets[idx] || {};
ruleSets[idx][rule] = this.rules[rule][idx].config;
- // Initialize errorCount to zero, since this is a config which will be linted
+
+ /*
+ * Initialize errorCount to zero, since this is a config which
+ * will be linted.
+ */
this.rules[rule][idx].errorCount = 0;
}
}.bind(this);
@@ -164,6 +180,7 @@ Registry.prototype = {
var errorFreeItems = newRegistry.rules[ruleId].filter(function(registryItem) {
return (registryItem.errorCount === 0);
});
+
if (errorFreeItems.length > 0) {
newRegistry.rules[ruleId] = errorFreeItems;
} else {
@@ -208,6 +225,7 @@ Registry.prototype = {
var failingConfigs = this.rules[ruleId].filter(function(registryItem) {
return (registryItem.errorCount > 0);
});
+
if (failingConfigs && failingConfigs.length === this.rules[ruleId].length) {
failingRegistry.rules[ruleId] = failingConfigs;
}
@@ -273,26 +291,37 @@ Registry.prototype = {
lintedRegistry = new Registry();
lintedRegistry.rules = lodash.assign({}, this.rules);
+
ruleSets = lintedRegistry.buildRuleSets();
+
lintedRegistry = lintedRegistry.stripExtraConfigs();
debug("Linting with all possible rule combinations");
+
filenames = Object.keys(sourceCodes);
+
totalFilesLinting = filenames.length * ruleSets.length;
+
filenames.forEach(function(filename) {
debug("Linting file: " + filename);
+
ruleSetIdx = 0;
+
ruleSets.forEach(function(ruleSet) {
lintConfig = lodash.assign({}, config, {rules: ruleSet});
var lintResults = eslint.verify(sourceCodes[filename], lintConfig);
+
lintResults.forEach(function(result) {
lintedRegistry.rules[result.ruleId][ruleSetIdx].errorCount += 1;
});
+
ruleSetIdx += 1;
+
if (cb) {
cb(totalFilesLinting); // eslint-disable-line callback-return
}
});
+
// Deallocate for GC
sourceCodes[filename] = null;
});
@@ -312,8 +341,11 @@ Registry.prototype = {
*/
function extendFromRecommended(config) {
var newConfig = lodash.assign({}, config);
+
+ ConfigOps.normalizeToStrings(newConfig);
+
var recRules = Object.keys(recConfig.rules).filter(function(ruleId) {
- return (recConfig.rules[ruleId] === 2 || recConfig.rules[ruleId][0] === 2);
+ return ConfigOps.isErrorSeverity(recConfig.rules[ruleId]);
});
recRules.forEach(function(ruleId) {
diff --git a/tools/eslint/lib/config/config-file.js b/tools/eslint/lib/config/config-file.js
index beb97c72a48adf..f5ef3e88c6e3d5 100644
--- a/tools/eslint/lib/config/config-file.js
+++ b/tools/eslint/lib/config/config-file.js
@@ -4,7 +4,9 @@
* @copyright 2015 Nicholas C. Zakas. All rights reserved.
* See LICENSE file in root directory for full license.
*/
+
/* eslint no-use-before-define: 0 */
+
"use strict";
//------------------------------------------------------------------------------
@@ -17,11 +19,14 @@ var debug = require("debug"),
ConfigOps = require("./config-ops"),
validator = require("./config-validator"),
Plugins = require("./plugins"),
- resolveModule = require("resolve"),
+ pathUtil = require("../util/path-util"),
+ ModuleResolver = require("../util/module-resolver"),
pathIsInside = require("path-is-inside"),
stripComments = require("strip-json-comments"),
stringify = require("json-stable-stringify"),
- isAbsolutePath = require("path-is-absolute");
+ isAbsolutePath = require("path-is-absolute"),
+ defaultOptions = require("../../conf/eslint.json"),
+ requireUncached = require("require-uncached");
//------------------------------------------------------------------------------
@@ -54,6 +59,8 @@ var CONFIG_FILES = [
"package.json"
];
+var resolver = new ModuleResolver();
+
debug = debug("eslint:config-file");
/**
@@ -92,6 +99,7 @@ function loadYAMLConfigFile(filePath) {
var yaml = require("js-yaml");
try {
+
// empty YAML file can be null, so always use
return yaml.safeLoad(readFile(filePath)) || {};
} catch (e) {
@@ -152,7 +160,7 @@ function loadLegacyConfigFile(filePath) {
function loadJSConfigFile(filePath) {
debug("Loading JS config file: " + filePath);
try {
- return require(filePath);
+ return requireUncached(filePath);
} catch (e) {
debug("Error reading JavaScript file: " + filePath);
e.message = "Cannot read config file: " + filePath + "\nError: " + e.message;
@@ -186,9 +194,8 @@ function loadPackageJSONConfigFile(filePath) {
* @private
*/
function loadConfigFile(file) {
- var config;
-
- var filePath = file.filePath;
+ var config,
+ filePath = file.filePath;
switch (path.extname(filePath)) {
case ".js":
@@ -232,6 +239,7 @@ function writeJSONConfigFile(config, filePath) {
debug("Writing JSON config file: " + filePath);
var content = stringify(config, {cmp: sortByKey, space: 4});
+
fs.writeFileSync(filePath, content, "utf8");
}
@@ -249,6 +257,7 @@ function writeYAMLConfigFile(config, filePath) {
var yaml = require("js-yaml");
var content = yaml.safeDump(config, {sortKeys: true});
+
fs.writeFileSync(filePath, content, "utf8");
}
@@ -263,6 +272,7 @@ function writeJSConfigFile(config, filePath) {
debug("Writing JS config file: " + filePath);
var content = "module.exports = " + stringify(config, {cmp: sortByKey, space: 4}) + ";";
+
fs.writeFileSync(filePath, content, "utf8");
}
@@ -295,24 +305,42 @@ function write(config, filePath) {
}
/**
- * Determines the lookup path for node packages referenced in a config file.
- * If the config
+ * Determines the base directory for node packages referenced in a config file.
+ * This does not include node_modules in the path so it can be used for all
+ * references relative to a config file.
* @param {string} configFilePath The config file referencing the file.
- * @returns {string} The lookup path for the file path.
+ * @returns {string} The base directory for the file path.
* @private
*/
-function getLookupPath(configFilePath) {
+function getBaseDir(configFilePath) {
// calculates the path of the project including ESLint as dependency
var projectPath = path.resolve(__dirname, "../../../");
+
if (configFilePath && pathIsInside(configFilePath, projectPath)) {
+
// be careful of https://github.com/substack/node-resolve/issues/78
- return path.resolve(configFilePath);
+ return path.join(path.resolve(configFilePath));
}
- // default to ESLint project path since it's unlikely that plugins will be
- // in this directory
- return projectPath;
+ /*
+ * default to ESLint project path since it's unlikely that plugins will be
+ * in this directory
+ */
+ return path.join(projectPath);
+}
+
+/**
+ * Determines the lookup path, including node_modules, for package
+ * references relative to a config file.
+ * @param {string} configFilePath The config file referencing the file.
+ * @returns {string} The lookup path for the file path.
+ * @private
+ */
+function getLookupPath(configFilePath) {
+ var basedir = getBaseDir(configFilePath);
+
+ return path.join(basedir, "node_modules");
}
/**
@@ -320,11 +348,12 @@ function getLookupPath(configFilePath) {
* @param {Object} config The configuration information.
* @param {string} filePath The file path from which the configuration information
* was loaded.
+ * @param {string} [relativeTo] The path to resolve relative to.
* @returns {Object} A new configuration object with all of the "extends" fields
* loaded and merged.
* @private
*/
-function applyExtends(config, filePath) {
+function applyExtends(config, filePath, relativeTo) {
var configExtends = config.extends;
// normalize into an array for easier handling
@@ -336,12 +365,18 @@ function applyExtends(config, filePath) {
config = configExtends.reduceRight(function(previousValue, parentPath) {
if (parentPath === "eslint:recommended") {
- // Add an explicit substitution for eslint:recommended to conf/eslint.json
- // this lets us use the eslint.json file as the recommended rules
+
+ /*
+ * Add an explicit substitution for eslint:recommended to conf/eslint.json
+ * this lets us use the eslint.json file as the recommended rules
+ */
parentPath = path.resolve(__dirname, "../../conf/eslint.json");
} else if (isFilePath(parentPath)) {
- // If the `extends` path is relative, use the directory of the current configuration
- // file as the reference point. Otherwise, use as-is.
+
+ /*
+ * If the `extends` path is relative, use the directory of the current configuration
+ * file as the reference point. Otherwise, use as-is.
+ */
parentPath = (!isAbsolutePath(parentPath) ?
path.join(path.dirname(filePath), parentPath) :
parentPath
@@ -350,11 +385,15 @@ function applyExtends(config, filePath) {
try {
debug("Loading " + parentPath);
- return ConfigOps.merge(load(parentPath), previousValue);
+ return ConfigOps.merge(load(parentPath, false, relativeTo), previousValue);
} catch (e) {
- // If the file referenced by `extends` failed to load, add the path to the
- // configuration file that referenced it to the error message so the user is
- // able to see where it was referenced from, then re-throw
+
+ /*
+ * If the file referenced by `extends` failed to load, add the path
+ * to the configuration file that referenced it to the error
+ * message so the user is able to see where it was referenced from,
+ * then re-throw.
+ */
e.message += "\nReferenced from: " + filePath;
throw e;
}
@@ -372,16 +411,33 @@ function applyExtends(config, filePath) {
* @private
*/
function normalizePackageName(name, prefix) {
+
+ /*
+ * On Windows, name can come in with Windows slashes instead of Unix slashes.
+ * Normalize to Unix first to avoid errors later on.
+ * https://github.com/eslint/eslint/issues/5644
+ */
+ if (name.indexOf("\\") > -1) {
+ name = pathUtil.convertPathToPosix(name);
+ }
+
if (name.charAt(0) === "@") {
- // it's a scoped package
- // package name is "eslint-config", or just a username
+
+ /*
+ * it's a scoped package
+ * package name is "eslint-config", or just a username
+ */
var scopedPackageShortcutRegex = new RegExp("^(@[^\/]+)(?:\/(?:" + prefix + ")?)?$"),
scopedPackageNameRegex = new RegExp("^" + prefix + "(-|$)");
+
if (scopedPackageShortcutRegex.test(name)) {
name = name.replace(scopedPackageShortcutRegex, "$1/" + prefix);
} else if (!scopedPackageNameRegex.test(name.split("/")[1])) {
- // for scoped packages, insert the eslint-config after the first / unless
- // the path is already @scope/eslint or @scope/eslint-config-xxx
+
+ /*
+ * for scoped packages, insert the eslint-config after the first / unless
+ * the path is already @scope/eslint or @scope/eslint-config-xxx
+ */
name = name.replace(/^@([^\/]+)\/(.*)$/, "@$1/" + prefix + "-$2");
}
} else if (name.indexOf(prefix + "-") !== 0) {
@@ -400,21 +456,23 @@ function normalizePackageName(name, prefix) {
* @private
*/
function resolve(filePath, relativeTo) {
-
if (isFilePath(filePath)) {
return { filePath: path.resolve(relativeTo || "", filePath) };
} else {
+ var normalizedPackageName;
+
if (filePath.indexOf("plugin:") === 0) {
var packagePath = filePath.substr(7, filePath.lastIndexOf("/") - 7);
var configName = filePath.substr(filePath.lastIndexOf("/") + 1, filePath.length - filePath.lastIndexOf("/") - 1);
- filePath = resolveModule.sync(normalizePackageName(packagePath, "eslint-plugin"), {
- basedir: getLookupPath(relativeTo)
- });
+
+ normalizedPackageName = normalizePackageName(packagePath, "eslint-plugin");
+ debug("Attempting to resolve " + normalizedPackageName);
+ filePath = resolver.resolve(normalizedPackageName, getLookupPath(relativeTo));
return { filePath: filePath, configName: configName };
} else {
- filePath = resolveModule.sync(normalizePackageName(filePath, "eslint-config"), {
- basedir: getLookupPath(relativeTo)
- });
+ normalizedPackageName = normalizePackageName(filePath, "eslint-config");
+ debug("Attempting to resolve " + normalizedPackageName);
+ filePath = resolver.resolve(normalizedPackageName, getLookupPath(relativeTo));
return { filePath: filePath };
}
}
@@ -426,12 +484,15 @@ function resolve(filePath, relativeTo) {
* @param {string} filePath The filename or package name to load the configuration
* information from.
* @param {boolean} [applyEnvironments=false] Set to true to merge in environment settings.
+ * @param {string} [relativeTo] The path to resolve relative to.
* @returns {Object} The configuration information.
* @private
*/
-function load(filePath, applyEnvironments) {
-
- var resolvedPath = resolve(filePath),
+function load(filePath, applyEnvironments, relativeTo) {
+ var resolvedPath = resolve(filePath, relativeTo),
+ dirname = path.dirname(resolvedPath.filePath),
+ basedir = getBaseDir(dirname),
+ lookupPath = getLookupPath(dirname),
config = loadConfigFile(resolvedPath);
if (config) {
@@ -441,23 +502,33 @@ function load(filePath, applyEnvironments) {
Plugins.loadAll(config.plugins);
}
+ // remove parser from config if it is the default parser
+ if (config.parser === defaultOptions.parser) {
+ config.parser = null;
+ }
+
// include full path of parser if present
if (config.parser) {
- config.parser = resolveModule.sync(config.parser, {
- basedir: getLookupPath(path.dirname(path.resolve(filePath)))
- });
+ if (isFilePath(config.parser)) {
+ config.parser = path.resolve(basedir || "", config.parser);
+ } else {
+ config.parser = resolver.resolve(config.parser, lookupPath);
+ }
}
// validate the configuration before continuing
validator.validate(config, filePath);
- // If an `extends` property is defined, it represents a configuration file to use as
- // a "parent". Load the referenced file and merge the configuration recursively.
+ /*
+ * If an `extends` property is defined, it represents a configuration file to use as
+ * a "parent". Load the referenced file and merge the configuration recursively.
+ */
if (config.extends) {
- config = applyExtends(config, filePath);
+ config = applyExtends(config, filePath, basedir);
}
if (config.env && applyEnvironments) {
+
// Merge in environment-specific globals and parserOptions.
config = ConfigOps.applyEnvironments(config);
}
@@ -473,11 +544,13 @@ function load(filePath, applyEnvironments) {
module.exports = {
+ getBaseDir: getBaseDir,
getLookupPath: getLookupPath,
load: load,
resolve: resolve,
write: write,
applyExtends: applyExtends,
+ normalizePackageName: normalizePackageName,
CONFIG_FILES: CONFIG_FILES,
/**
diff --git a/tools/eslint/lib/config/config-initializer.js b/tools/eslint/lib/config/config-initializer.js
index ffa0a406dc6a68..f1d5121e4ab4bb 100644
--- a/tools/eslint/lib/config/config-initializer.js
+++ b/tools/eslint/lib/config/config-initializer.js
@@ -17,6 +17,7 @@ var util = require("util"),
ProgressBar = require("progress"),
autoconfig = require("./autoconfig.js"),
ConfigFile = require("./config-file"),
+ ConfigOps = require("./config-ops"),
getSourceCodeOfFiles = require("../util/source-code-util").getSourceCodeOfFiles,
npmUtil = require("../util/npm-util"),
recConfig = require("../../conf/eslint.json"),
@@ -39,6 +40,7 @@ function writeFile(config, format) {
// default is .js
var extname = ".js";
+
if (format === "YAML") {
extname = ".yml";
} else if (format === "JSON") {
@@ -148,12 +150,14 @@ function configureRules(answers, config) {
// Create a list of recommended rules, because we don't want to disable them
var recRules = Object.keys(recConfig.rules).filter(function(ruleId) {
- return (recConfig.rules[ruleId] === 2 || recConfig.rules[ruleId][0] === 2);
+ return ConfigOps.isErrorSeverity(recConfig.rules[ruleId]);
});
// Find and disable rules which had no error-free configuration
failingRegistry = registry.getFailingRulesRegistry();
+
Object.keys(failingRegistry.rules).forEach(function(ruleId) {
+
// If the rule is recommended, set it to error, otherwise disable it
disabledConfigs[ruleId] = (recRules.indexOf(ruleId) !== -1) ? 2 : 0;
});
@@ -184,8 +188,9 @@ function configureRules(answers, config) {
bar.update(BAR_TOTAL);
// Log out some stats to let the user know what happened
- var totalRules = Object.keys(newConfig.rules).length;
- var enabledRules = Object.keys(newConfig.rules).filter(function(ruleId) {
+ var finalRuleIds = Object.keys(newConfig.rules),
+ totalRules = finalRuleIds.length;
+ var enabledRules = finalRuleIds.filter(function(ruleId) {
return (newConfig.rules[ruleId] !== 0);
}).length;
var resultMessage = [
@@ -193,7 +198,10 @@ function configureRules(answers, config) {
"rules based on " + fileQty,
"file" + ((fileQty === 1) ? "." : "s.")
].join(" ");
+
log.info(resultMessage);
+
+ ConfigOps.normalizeToStrings(newConfig);
return newConfig;
}
@@ -230,10 +238,10 @@ function processAnswers(answers) {
if (answers.source === "prompt") {
config.extends = "eslint:recommended";
- config.rules.indent = [2, answers.indent];
- config.rules.quotes = [2, answers.quotes];
- config.rules["linebreak-style"] = [2, answers.linebreak];
- config.rules.semi = [2, answers.semi ? "always" : "never"];
+ config.rules.indent = ["error", answers.indent];
+ config.rules.quotes = ["error", answers.quotes];
+ config.rules["linebreak-style"] = ["error", answers.linebreak];
+ config.rules.semi = ["error", answers.semi ? "always" : "never"];
}
installModules(config);
@@ -242,6 +250,8 @@ function processAnswers(answers) {
config = configureRules(answers, config);
config = autoconfig.extendFromRecommended(config);
}
+
+ ConfigOps.normalizeToStrings(config);
return config;
}
@@ -256,6 +266,7 @@ function getConfigForStyleGuide(guide) {
airbnb: {extends: "airbnb", plugins: ["react"]},
standard: {extends: "standard", plugins: ["standard"]}
};
+
if (!guides[guide]) {
throw new Error("You referenced an unsupported guide.");
}
@@ -273,6 +284,7 @@ function getConfigForStyleGuide(guide) {
*/
function promptUser(callback) {
var config;
+
inquirer.prompt([
{
type: "list",
@@ -387,11 +399,8 @@ function promptUser(callback) {
// early exit if you are using automatic style generation
if (earlyAnswers.source === "auto") {
try {
- if (secondAnswers.jsx) {
- log.error("Unfortunately, autoconfig does not yet work for JSX code.\nPlease see https://github.com/eslint/eslint/issues/5007 for current status.");
- return;
- }
var combinedAnswers = lodash.assign({}, earlyAnswers, secondAnswers);
+
config = processAnswers(combinedAnswers);
installModules(config);
writeFile(config, earlyAnswers.format);
@@ -408,7 +417,7 @@ function promptUser(callback) {
type: "list",
name: "indent",
message: "What style of indentation do you use?",
- default: "tabs",
+ default: "tab",
choices: [{name: "Tabs", value: "tab"}, {name: "Spaces", value: 4}]
},
{
@@ -441,6 +450,7 @@ function promptUser(callback) {
], function(answers) {
try {
var totalAnswers = lodash.assign({}, earlyAnswers, secondAnswers, answers);
+
config = processAnswers(totalAnswers);
installModules(config);
writeFile(config, answers.format);
diff --git a/tools/eslint/lib/config/config-ops.js b/tools/eslint/lib/config/config-ops.js
index 4e36563c1db1f1..6cf406ce57fa18 100644
--- a/tools/eslint/lib/config/config-ops.js
+++ b/tools/eslint/lib/config/config-ops.js
@@ -21,6 +21,12 @@ var lodash = require("lodash"),
debug = debug("eslint:config-ops");
+var RULE_SEVERITY_STRINGS = ["off", "warn", "error"],
+ RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce(function(map, value, index) {
+ map[value] = index;
+ return map;
+ }, {});
+
//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
@@ -99,6 +105,7 @@ module.exports = {
* @returns {Object} merged config object.
*/
merge: function deepmerge(target, src, combine, isRule) {
+
/*
The MIT License (MIT)
@@ -122,7 +129,12 @@ module.exports = {
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
- // This code is taken from deepmerge repo (https://github.com/KyleAMathews/deepmerge) and modified to meet our needs.
+
+ /*
+ * This code is taken from deepmerge repo
+ * (https://github.com/KyleAMathews/deepmerge)
+ * and modified to meet our needs.
+ */
var array = Array.isArray(src) || Array.isArray(target);
var dst = array && [] || {};
@@ -130,7 +142,9 @@ module.exports = {
isRule = !!isRule;
if (array) {
target = target || [];
- if (isRule && src.length > 1) {
+
+ // src could be a string, so check for array
+ if (isRule && Array.isArray(src) && src.length > 1) {
dst = dst.concat(src);
} else {
dst = dst.concat(target);
@@ -176,7 +190,66 @@ module.exports = {
}
return dst;
- }
+ },
+
+ /**
+ * Converts new-style severity settings (off, warn, error) into old-style
+ * severity settings (0, 1, 2) for all rules. Assumption is that severity
+ * values have already been validated as correct.
+ * @param {Object} config The config object to normalize.
+ * @returns {void}
+ */
+ normalize: function(config) {
+
+ if (config.rules) {
+ Object.keys(config.rules).forEach(function(ruleId) {
+ var ruleConfig = config.rules[ruleId];
+
+ if (typeof ruleConfig === "string") {
+ config.rules[ruleId] = RULE_SEVERITY[ruleConfig.toLowerCase()] || 0;
+ } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "string") {
+ ruleConfig[0] = RULE_SEVERITY[ruleConfig[0].toLowerCase()] || 0;
+ }
+ });
+ }
+ },
+ /**
+ * Converts old-style severity settings (0, 1, 2) into new-style
+ * severity settings (off, warn, error) for all rules. Assumption is that severity
+ * values have already been validated as correct.
+ * @param {Object} config The config object to normalize.
+ * @returns {void}
+ */
+ normalizeToStrings: function(config) {
+
+ if (config.rules) {
+ Object.keys(config.rules).forEach(function(ruleId) {
+ var ruleConfig = config.rules[ruleId];
+
+ if (typeof ruleConfig === "number") {
+ config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];
+ } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") {
+ ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];
+ }
+ });
+ }
+ },
+
+ /**
+ * Determines if the severity for the given rule configuration represents an error.
+ * @param {int|string|Array} ruleConfig The configuration for an individual rule.
+ * @returns {boolean} True if the rule represents an error, false if not.
+ */
+ isErrorSeverity: function(ruleConfig) {
+
+ var severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;
+
+ if (typeof severity === "string") {
+ severity = RULE_SEVERITY[severity.toLowerCase()] || 0;
+ }
+
+ return (typeof severity === "number" && severity === 2);
+ }
};
diff --git a/tools/eslint/lib/config/config-rule.js b/tools/eslint/lib/config/config-rule.js
index 72ad88a73e1c44..513e0f4bda309b 100644
--- a/tools/eslint/lib/config/config-rule.js
+++ b/tools/eslint/lib/config/config-rule.js
@@ -44,6 +44,7 @@ function explodeArray(xs) {
*/
function combineArrays(arr1, arr2) {
var res = [];
+
if (arr1.length === 0) {
return explodeArray(arr2);
}
@@ -81,9 +82,11 @@ function combineArrays(arr1, arr2) {
function groupByProperty(objects) {
var groupedObj = objects.reduce(function(accumulator, obj) {
var prop = Object.keys(obj)[0];
+
accumulator[prop] = accumulator[prop] ? accumulator[prop].concat(obj) : [obj];
return accumulator;
}, {});
+
return Object.keys(groupedObj).map(function(prop) {
return groupedObj[prop];
});
@@ -144,6 +147,7 @@ function groupByProperty(objects) {
*/
function combinePropertyObjects(objArr1, objArr2) {
var res = [];
+
if (objArr1.length === 0) {
return objArr2;
}
@@ -155,6 +159,7 @@ function combinePropertyObjects(objArr1, objArr2) {
var combinedObj = {};
var obj1Props = Object.keys(obj1);
var obj2Props = Object.keys(obj2);
+
obj1Props.forEach(function(prop1) {
combinedObj[prop1] = obj1[prop1];
});
@@ -201,10 +206,12 @@ RuleConfigSet.prototype = {
*/
addErrorSeverity: function(severity) {
severity = severity || 2;
+
this.ruleConfigs = this.ruleConfigs.map(function(config) {
config.unshift(severity);
return config;
});
+
// Add a single config at the beginning consisting of only the severity
this.ruleConfigs.unshift(severity);
},
@@ -228,6 +235,7 @@ RuleConfigSet.prototype = {
objectConfigs: [],
add: function(property, values) {
var optionObj;
+
for (var idx = 0; idx < values.length; idx++) {
optionObj = {};
optionObj[property] = values[idx];
@@ -241,8 +249,11 @@ RuleConfigSet.prototype = {
}, []);
}
};
- // The object schema could have multiple independent properties.
- // If any contain enums or booleans, they can be added and then combined
+
+ /*
+ * The object schema could have multiple independent properties.
+ * If any contain enums or booleans, they can be added and then combined
+ */
Object.keys(obj.properties).forEach(function(prop) {
if (obj.properties[prop].enum) {
objectConfigSet.add(prop, obj.properties[prop].enum);
@@ -266,15 +277,19 @@ RuleConfigSet.prototype = {
*/
function generateConfigsFromSchema(schema) {
var configSet = new RuleConfigSet();
+
if (Array.isArray(schema)) {
schema.forEach(function(opt) {
if (opt.enum) {
configSet.addEnums(opt.enum);
}
+
if (opt.type && opt.type === "object") {
configSet.addObject(opt);
}
+
if (opt.oneOf) {
+
// TODO (IanVS): not yet implemented
}
});
@@ -289,9 +304,11 @@ function generateConfigsFromSchema(schema) {
*/
function createCoreRuleConfigs() {
var ruleList = loadRules();
+
return Object.keys(ruleList).reduce(function(accumulator, id) {
var rule = rules.get(id);
var schema = (typeof rule === "function") ? rule.schema : rule.meta.schema;
+
accumulator[id] = generateConfigsFromSchema(schema);
return accumulator;
}, {});
diff --git a/tools/eslint/lib/config/config-validator.js b/tools/eslint/lib/config/config-validator.js
index 852a5dce0ecabf..d273b26683c375 100644
--- a/tools/eslint/lib/config/config-validator.js
+++ b/tools/eslint/lib/config/config-validator.js
@@ -13,7 +13,8 @@
var rules = require("../rules"),
Environments = require("./environments"),
- schemaValidator = require("is-my-json-valid");
+ schemaValidator = require("is-my-json-valid"),
+ util = require("util");
var validators = {
rules: Object.create(null)
@@ -83,7 +84,10 @@ function validateRuleOptions(id, options, source) {
localOptions = [];
}
- validSeverity = (severity === 0 || severity === 1 || severity === 2);
+ validSeverity = (
+ severity === 0 || severity === 1 || severity === 2 ||
+ (typeof severity === "string" && /^(?:off|warn|error)$/i.test(severity))
+ );
if (validateRule) {
validateRule(localOptions);
@@ -97,7 +101,10 @@ function validateRuleOptions(id, options, source) {
if (!validSeverity) {
message.push(
- "\tSeverity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed \"", severity, "\").\n");
+ "\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '",
+ util.inspect(severity).replace(/'/g, "\"").replace(/\n/g, ""),
+ "').\n"
+ );
}
if (validateRule && validateRule.errors) {
@@ -136,6 +143,7 @@ function validateEnvironment(environment, source) {
source, ":\n",
"\tEnvironment key \"", env, "\" is unknown\n"
];
+
throw new Error(message.join(""));
}
});
diff --git a/tools/eslint/lib/config/plugins.js b/tools/eslint/lib/config/plugins.js
index 7281e48eabfc39..d1bfbd83fa0c37 100644
--- a/tools/eslint/lib/config/plugins.js
+++ b/tools/eslint/lib/config/plugins.js
@@ -117,6 +117,10 @@ module.exports = {
} catch (err) {
debug("Failed to load plugin eslint-plugin-" + pluginNameWithoutPrefix + ". Proceeding without it.");
err.message = "Failed to load plugin " + pluginName + ": " + err.message;
+ err.messageTemplate = "plugin-missing";
+ err.messageData = {
+ pluginName: pluginNameWithoutPrefix
+ };
throw err;
}
diff --git a/tools/eslint/lib/eslint.js b/tools/eslint/lib/eslint.js
index 36e0970f74c648..b3e6c7483b23d8 100644
--- a/tools/eslint/lib/eslint.js
+++ b/tools/eslint/lib/eslint.js
@@ -11,7 +11,7 @@
//------------------------------------------------------------------------------
var lodash = require("lodash"),
- estraverse = require("./util/estraverse"),
+ Traverser = require("./util/traverser"),
escope = require("escope"),
Environments = require("./config/environments"),
blankScriptAST = require("../conf/blank-script.json"),
@@ -43,16 +43,20 @@ var DEFAULT_PARSER = require("../conf/eslint.json").parser;
*/
function parseBooleanConfig(string, comment) {
var items = {};
+
// Collapse whitespace around : to make parsing easier
string = string.replace(/\s*:\s*/g, ":");
+
// Collapse whitespace around ,
string = string.replace(/\s*,\s*/g, ",");
+
string.split(/\s|,+/).forEach(function(name) {
if (!name) {
return;
}
var pos = name.indexOf(":"),
value;
+
if (pos !== -1) {
value = name.substring(pos + 1, name.length);
name = name.substring(0, pos);
@@ -76,6 +80,7 @@ function parseBooleanConfig(string, comment) {
*/
function parseJsonConfig(string, location, messages) {
var items = {};
+
string = string.replace(/([a-zA-Z0-9\-\/]+):/g, "\"$1\":").replace(/(\]|[0-9])\s+(?=")/, "$1,");
try {
items = JSON.parse("{" + string + "}");
@@ -103,8 +108,10 @@ function parseJsonConfig(string, location, messages) {
*/
function parseListConfig(string) {
var items = {};
+
// Collapse whitespace around ,
string = string.replace(/\s*,\s*/g, ",");
+
string.split(/,+/).forEach(function(name) {
name = name.trim();
if (!name) {
@@ -136,6 +143,7 @@ function addDeclaredGlobals(program, globalScope, config) {
if (config.env[name]) {
var env = Environments.get(name),
environmentGlobals = env && env.globals;
+
if (environmentGlobals) {
lodash.assign(declaredGlobals, environmentGlobals);
}
@@ -148,6 +156,7 @@ function addDeclaredGlobals(program, globalScope, config) {
Object.keys(declaredGlobals).forEach(function(name) {
var variable = globalScope.set.get(name);
+
if (!variable) {
variable = new escope.Variable(name, globalScope);
variable.eslintExplicitGlobal = false;
@@ -159,6 +168,7 @@ function addDeclaredGlobals(program, globalScope, config) {
Object.keys(explicitGlobals).forEach(function(name) {
var variable = globalScope.set.get(name);
+
if (!variable) {
variable = new escope.Variable(name, globalScope);
variable.eslintExplicitGlobal = true;
@@ -172,23 +182,33 @@ function addDeclaredGlobals(program, globalScope, config) {
// mark all exported variables as such
Object.keys(exportedGlobals).forEach(function(name) {
var variable = globalScope.set.get(name);
+
if (variable) {
variable.eslintUsed = true;
}
});
- // "through" contains all references that their definition cannot be found.
- // Since we augment the global scope using configuration, we need to update references and remove the ones that were added by configuration.
+ /*
+ * "through" contains all references which definitions cannot be found.
+ * Since we augment the global scope using configuration, we need to update
+ * references and remove the ones that were added by configuration.
+ */
globalScope.through = globalScope.through.filter(function(reference) {
var name = reference.identifier.name;
var variable = globalScope.set.get(name);
+
if (variable) {
- // Links the variable and the reference.
- // And this reference is removed from `Scope#through`.
+
+ /*
+ * Links the variable and the reference.
+ * And this reference is removed from `Scope#through`.
+ */
reference.resolved = variable;
variable.references.push(reference);
+
return false;
}
+
return true;
});
}
@@ -234,15 +254,17 @@ function enableReporting(reportingConfig, start, rulesToEnable) {
if (rulesToEnable.length) {
rulesToEnable.forEach(function(rule) {
for (i = reportingConfig.length - 1; i >= 0; i--) {
- if (!reportingConfig[i].end && reportingConfig[i].rule === rule ) {
+ if (!reportingConfig[i].end && reportingConfig[i].rule === rule) {
reportingConfig[i].end = start;
break;
}
}
});
} else {
+
// find all previous disabled locations if they was started as list of rules
var prevStart;
+
for (i = reportingConfig.length - 1; i >= 0; i--) {
if (prevStart && prevStart !== reportingConfig[i].start) {
break;
@@ -280,7 +302,7 @@ function modifyConfigsFromComments(filename, ast, config, reportingConfig, messa
ast.comments.forEach(function(comment) {
var value = comment.value.trim();
- var match = /^(eslint-\w+|eslint-\w+-\w+|eslint|exported|globals?)(\s|$)/.exec(value);
+ var match = /^(eslint(-\w+){0,3}|exported|globals?)(\s|$)/.exec(value);
if (match) {
value = value.substring(match.index + match[1].length);
@@ -310,8 +332,10 @@ function modifyConfigsFromComments(filename, ast, config, reportingConfig, messa
case "eslint":
var items = parseJsonConfig(value, comment.loc, messages);
+
Object.keys(items).forEach(function(name) {
var ruleValue = items[name];
+
validator.validateRuleOptions(name, ruleValue, filename + " line " + comment.loc.start.line);
commentRules[name] = ruleValue;
});
@@ -319,11 +343,13 @@ function modifyConfigsFromComments(filename, ast, config, reportingConfig, messa
// no default
}
- } else {
- // comment.type === "Line"
+ } else { // comment.type === "Line"
if (match[1] === "eslint-disable-line") {
disableReporting(reportingConfig, { "line": comment.loc.start.line, "column": 0 }, Object.keys(parseListConfig(value)));
enableReporting(reportingConfig, comment.loc.end, Object.keys(parseListConfig(value)));
+ } else if (match[1] === "eslint-disable-next-line") {
+ disableReporting(reportingConfig, comment.loc.start, Object.keys(parseListConfig(value)));
+ enableReporting(reportingConfig, { "line": comment.loc.start.line + 2 }, Object.keys(parseListConfig(value)));
}
}
}
@@ -332,6 +358,7 @@ function modifyConfigsFromComments(filename, ast, config, reportingConfig, messa
// apply environment configs
Object.keys(commentConfig.env).forEach(function(name) {
var env = Environments.get(name);
+
if (env) {
commentConfig = ConfigOps.merge(commentConfig, env);
}
@@ -353,6 +380,7 @@ function isDisabledByReportingConfig(reportingConfig, ruleId, location) {
for (var i = 0, c = reportingConfig.length; i < c; i++) {
var ignore = reportingConfig[i];
+
if ((!ignore.rule || ignore.rule === ruleId) &&
(location.line > ignore.start.line || (location.line === ignore.start.line && location.column >= ignore.start.column)) &&
(!ignore.end || (location.line < ignore.end.line || (location.line === ignore.end.line && location.column <= ignore.end.column)))) {
@@ -380,6 +408,7 @@ function prepareConfig(config) {
if (typeof config.rules === "object") {
Object.keys(config.rules).forEach(function(k) {
var rule = config.rules[k];
+
if (rule === null) {
throw new Error("Invalid config for rule '" + k + "'\.");
}
@@ -395,6 +424,7 @@ function prepareConfig(config) {
if (typeof config.env === "object") {
Object.keys(config.env).forEach(function(envName) {
var env = Environments.get(envName);
+
if (config.env[envName] && env && env.parserOptions) {
parserOptions = ConfigOps.merge(parserOptions, env.parserOptions);
}
@@ -418,7 +448,7 @@ function prepareConfig(config) {
// can't have global return inside of modules
preparedConfig.parserOptions.ecmaFeatures.globalReturn = false;
- // also need at least ES6 six for modules
+ // also need at least ES6 for modules
if (!preparedConfig.parserOptions.ecmaVersion || preparedConfig.parserOptions.ecmaVersion < 6) {
preparedConfig.parserOptions.ecmaVersion = 6;
}
@@ -462,8 +492,10 @@ function createStubRule(message) {
function getRuleReplacementMessage(ruleId) {
if (ruleId in replacements.rules) {
var newRules = replacements.rules[ruleId];
+
return "Rule \'" + ruleId + "\' was removed and replaced by: " + newRules.join(", ");
}
+
return null;
}
@@ -478,6 +510,7 @@ function findEslintEnv(text) {
var match, retv;
eslintEnvPattern.lastIndex = 0;
+
while ((match = eslintEnvPattern.exec(text))) {
retv = lodash.assign(retv || {}, parseListConfig(match[1]));
}
@@ -492,9 +525,12 @@ function findEslintEnv(text) {
* @returns {string} The stripped text.
*/
function stripUnicodeBOM(text) {
- // Check Unicode BOM.
- // In JavaScript, string data is stored as UTF-16, so BOM is 0xFEFF.
- // http://www.ecma-international.org/ecma-262/6.0/#sec-unicode-format-control-characters
+
+ /*
+ * Check Unicode BOM.
+ * In JavaScript, string data is stored as UTF-16, so BOM is 0xFEFF.
+ * http://www.ecma-international.org/ecma-262/6.0/#sec-unicode-format-control-characters
+ */
if (text.charCodeAt(0) === 0xFEFF) {
return text.slice(1);
}
@@ -518,7 +554,7 @@ module.exports = (function() {
scopeMap = null,
scopeManager = null,
currentFilename = null,
- controller = null,
+ traverser = null,
reportingConfig = [],
sourceCode = null;
@@ -636,7 +672,7 @@ module.exports = (function() {
currentScopes = null;
scopeMap = null;
scopeManager = null;
- controller = null;
+ traverser = null;
reportingConfig = [];
sourceCode = null;
};
@@ -689,6 +725,7 @@ module.exports = (function() {
// search and apply "eslint-env *".
var envInFile = findEslintEnv(text || textOrSourceCode.text);
+
if (envInFile) {
if (!config || !config.env) {
config = lodash.assign({}, config || {}, {env: envInFile});
@@ -703,6 +740,7 @@ module.exports = (function() {
// only do this for text
if (text !== null) {
+
// there's no input, just exit here
if (text.trim().length === 0) {
sourceCode = new SourceCode(text, blankScriptAST);
@@ -734,6 +772,9 @@ module.exports = (function() {
config = modifyConfigsFromComments(currentFilename, ast, config, reportingConfig, messages);
}
+ // ensure that severities are normalized in the config
+ ConfigOps.normalize(config);
+
// enable appropriate rules
Object.keys(config.rules).filter(function(key) {
return getRuleSeverity(config.rules[key]) > 0;
@@ -744,8 +785,10 @@ module.exports = (function() {
rule;
ruleCreator = rules.get(key);
+
if (!ruleCreator) {
var replacementMsg = getRuleReplacementMessage(key);
+
if (replacementMsg) {
ruleCreator = createStubRule(replacementMsg);
} else {
@@ -761,6 +804,7 @@ module.exports = (function() {
var ruleContext = new RuleContext(
key, api, severity, options,
config.settings, config.parserOptions, config.parser, ruleCreator.meta);
+
rule = ruleCreator.create ? ruleCreator.create(ruleContext) :
ruleCreator(ruleContext);
@@ -779,19 +823,21 @@ module.exports = (function() {
// save config so rules can access as necessary
currentConfig = config;
- controller = new estraverse.Controller();
+ traverser = new Traverser();
ecmaFeatures = currentConfig.parserOptions.ecmaFeatures || {};
ecmaVersion = currentConfig.parserOptions.ecmaVersion || 5;
- // gather data that may be needed by the rules
+ // gather scope data that may be needed by the rules
scopeManager = escope.analyze(ast, {
ignoreEval: true,
nodejsScope: ecmaFeatures.globalReturn,
impliedStrict: ecmaFeatures.impliedStrict,
ecmaVersion: ecmaVersion,
- sourceType: currentConfig.parserOptions.sourceType || "script"
+ sourceType: currentConfig.parserOptions.sourceType || "script",
+ fallback: Traverser.getKeys
});
+
currentScopes = scopeManager.scopes;
/*
@@ -799,11 +845,14 @@ module.exports = (function() {
* lookup in getScope.
*/
scopeMap = [];
+
currentScopes.forEach(function(scope, index) {
var range = scope.block.range[0];
- // Sometimes two scopes are returned for a given node. This is
- // handled later in a known way, so just don't overwrite here.
+ /*
+ * Sometimes two scopes are returned for a given node. This is
+ * handled later in a known way, so just don't overwrite here.
+ */
if (!scopeMap[range]) {
scopeMap[range] = index;
}
@@ -822,15 +871,17 @@ module.exports = (function() {
}
var eventGenerator = new NodeEventGenerator(api);
+
eventGenerator = new CodePathAnalyzer(eventGenerator);
eventGenerator = new CommentEventGenerator(eventGenerator, sourceCode);
/*
- * Each node has a type property. Whenever a particular type of node is found,
- * an event is fired. This allows any listeners to automatically be informed
- * that this type of node has been found and react accordingly.
+ * Each node has a type property. Whenever a particular type of
+ * node is found, an event is fired. This allows any listeners to
+ * automatically be informed that this type of node has been found
+ * and react accordingly.
*/
- controller.traverse(ast, {
+ traverser.traverse(ast, {
enter: function(node, parent) {
node.parent = parent;
eventGenerator.enterNode(node);
@@ -884,6 +935,7 @@ module.exports = (function() {
message = location;
location = node.loc.start;
}
+
// else, assume location was provided, so node may be omitted
if (isDisabledByReportingConfig(reportingConfig, ruleId, location)) {
@@ -966,7 +1018,7 @@ module.exports = (function() {
* @returns {ASTNode[]} Array of objects representing ancestors.
*/
api.getAncestors = function() {
- return controller.parents();
+ return traverser.parents();
};
/**
@@ -974,14 +1026,15 @@ module.exports = (function() {
* @returns {Object} An object representing the current node's scope.
*/
api.getScope = function() {
- var parents = controller.parents(),
+ var parents = traverser.parents(),
scope = currentScopes[0];
// Don't do this for Program nodes - they have no parents
if (parents.length) {
// if current node introduces a scope, add it to the list
- var current = controller.current();
+ var current = traverser.current();
+
if (currentConfig.parserOptions.ecmaVersion >= 6) {
if (["BlockStatement", "SwitchStatement", "CatchClause", "FunctionDeclaration", "FunctionExpression", "ArrowFunctionExpression"].indexOf(current.type) >= 0) {
parents.push(current);
@@ -1039,7 +1092,7 @@ module.exports = (function() {
return true;
}
}
- } while ( (scope = scope.upper) );
+ } while ((scope = scope.upper));
return false;
};
diff --git a/tools/eslint/lib/file-finder.js b/tools/eslint/lib/file-finder.js
index f0ae19a7875cb2..9e24659df7030d 100644
--- a/tools/eslint/lib/file-finder.js
+++ b/tools/eslint/lib/file-finder.js
@@ -58,9 +58,11 @@ function FileFinder(files, cwd) {
*/
function normalizeDirectoryEntries(entries, directory, supportedConfigs) {
var fileHash = {};
+
entries.forEach(function(entry) {
if (supportedConfigs.indexOf(entry) >= 0) {
var resolvedEntry = path.resolve(directory, entry);
+
if (fs.statSync(resolvedEntry).isFile()) {
fileHash[entry] = resolvedEntry;
}
@@ -103,6 +105,7 @@ FileFinder.prototype.findInDirectoryOrParents = function(directory) {
while (directory !== child) {
dirs[searched++] = directory;
var filesMap = normalizeDirectoryEntries(getDirectoryEntries(directory), directory, names);
+
if (Object.keys(filesMap).length) {
for (var k = 0; k < names.length; k++) {
if (filesMap[names[k]]) {
diff --git a/tools/eslint/lib/formatters/compact.js b/tools/eslint/lib/formatters/compact.js
index f1eb83aec35f39..0c31b073e3fefd 100644
--- a/tools/eslint/lib/formatters/compact.js
+++ b/tools/eslint/lib/formatters/compact.js
@@ -35,6 +35,7 @@ module.exports = function(results) {
results.forEach(function(result) {
var messages = result.messages;
+
total += messages.length;
messages.forEach(function(message) {
diff --git a/tools/eslint/lib/formatters/html.js b/tools/eslint/lib/formatters/html.js
index ba6f3e513efa45..e8b5cd78deeb70 100644
--- a/tools/eslint/lib/formatters/html.js
+++ b/tools/eslint/lib/formatters/html.js
@@ -36,6 +36,7 @@ function pluralize(word, count) {
function renderSummary(totalErrors, totalWarnings) {
var totalProblems = totalErrors + totalWarnings;
var renderedText = totalProblems + " " + pluralize("problem", totalProblems);
+
if (totalProblems !== 0) {
renderedText += " (" + totalErrors + " " + pluralize("error", totalErrors) + ", " + totalWarnings + " " + pluralize("warning", totalWarnings) + ")";
}
@@ -64,6 +65,7 @@ function renderColor(totalErrors, totalWarnings) {
* @returns {string} HTML (table rows) describing the messages.
*/
function renderMessages(messages, parentIndex) {
+
/**
* Get HTML (table row) describing a message.
* @param {Object} message Message.
diff --git a/tools/eslint/lib/formatters/junit.js b/tools/eslint/lib/formatters/junit.js
index 64357263313322..c53fd8141baf5a 100644
--- a/tools/eslint/lib/formatters/junit.js
+++ b/tools/eslint/lib/formatters/junit.js
@@ -45,6 +45,7 @@ module.exports = function(results) {
messages.forEach(function(message) {
var type = message.fatal ? "error" : "failure";
+
output += "";
output += "<" + type + " message=\"" + lodash.escape(message.message || "") + "\">";
output += "") {
before = t;
t = context.getTokenAfter(t);
}
var after = context.getTokenAfter(t);
+
return { before: before, arrow: t, after: after };
}
@@ -40,6 +44,7 @@ module.exports = function(context) {
function countSpaces(tokens) {
var before = tokens.arrow.range[0] - tokens.before.range[1];
var after = tokens.after.range[0] - tokens.arrow.range[1];
+
return { before: before, after: after };
}
@@ -55,6 +60,7 @@ module.exports = function(context) {
var countSpace = countSpaces(tokens);
if (rule.before) {
+
// should be space(s) before arrow
if (countSpace.before === 0) {
context.report({
@@ -66,6 +72,7 @@ module.exports = function(context) {
});
}
} else {
+
// should be no space before arrow
if (countSpace.before > 0) {
context.report({
@@ -79,6 +86,7 @@ module.exports = function(context) {
}
if (rule.after) {
+
// should be space(s) after arrow
if (countSpace.after === 0) {
context.report({
@@ -90,6 +98,7 @@ module.exports = function(context) {
});
}
} else {
+
// should be no space after arrow
if (countSpace.after > 0) {
context.report({
diff --git a/tools/eslint/lib/rules/block-scoped-var.js b/tools/eslint/lib/rules/block-scoped-var.js
index 28755558f184f8..42d8422a007ca9 100644
--- a/tools/eslint/lib/rules/block-scoped-var.js
+++ b/tools/eslint/lib/rules/block-scoped-var.js
@@ -37,6 +37,7 @@ module.exports = function(context) {
*/
function report(reference) {
var identifier = reference.identifier;
+
context.report(
identifier,
"'{{name}}' used outside of binding context.",
@@ -64,12 +65,15 @@ module.exports = function(context) {
*/
function isOutsideOfScope(reference) {
var idRange = reference.identifier.range;
+
return idRange[0] < scopeRange[0] || idRange[1] > scopeRange[1];
}
// Gets declared variables, and checks its references.
var variables = context.getDeclaredVariables(node);
+
for (var i = 0; i < variables.length; ++i) {
+
// Reports.
variables[i]
.references
diff --git a/tools/eslint/lib/rules/block-spacing.js b/tools/eslint/lib/rules/block-spacing.js
index 4df8d59763c287..5e9d990253409f 100644
--- a/tools/eslint/lib/rules/block-spacing.js
+++ b/tools/eslint/lib/rules/block-spacing.js
@@ -56,6 +56,7 @@ module.exports = function(context) {
* @returns {void}
*/
function checkSpacingInsideBraces(node) {
+
// Gets braces and the first/last token of content.
var openBrace = getOpenBrace(node);
var closeBrace = context.getLastToken(node);
diff --git a/tools/eslint/lib/rules/brace-style.js b/tools/eslint/lib/rules/brace-style.js
index 04ef0188dda5e4..4887d66b8d8592 100644
--- a/tools/eslint/lib/rules/brace-style.js
+++ b/tools/eslint/lib/rules/brace-style.js
@@ -57,8 +57,12 @@ module.exports = function(context) {
var blockProperties = arguments;
return function(node) {
- [].forEach.call(blockProperties, function(blockProp) {
- var block = node[blockProp], previousToken, curlyToken, curlyTokenEnd, curlyTokensOnSameLine;
+ Array.prototype.forEach.call(blockProperties, function(blockProp) {
+ var block = node[blockProp],
+ previousToken,
+ curlyToken,
+ curlyTokenEnd,
+ allOnSameLine;
if (!isBlock(block)) {
return;
@@ -67,21 +71,27 @@ module.exports = function(context) {
previousToken = sourceCode.getTokenBefore(block);
curlyToken = sourceCode.getFirstToken(block);
curlyTokenEnd = sourceCode.getLastToken(block);
- curlyTokensOnSameLine = curlyToken.loc.start.line === curlyTokenEnd.loc.start.line;
+ allOnSameLine = previousToken.loc.start.line === curlyTokenEnd.loc.start.line;
+
+ if (allOnSameLine && params.allowSingleLine) {
+ return;
+ }
if (style !== "allman" && previousToken.loc.start.line !== curlyToken.loc.start.line) {
context.report(node, OPEN_MESSAGE);
- } else if (style === "allman" && previousToken.loc.start.line === curlyToken.loc.start.line && !params.allowSingleLine) {
+ } else if (style === "allman" && previousToken.loc.start.line === curlyToken.loc.start.line) {
context.report(node, OPEN_MESSAGE_ALLMAN);
}
- if (!block.body.length || curlyTokensOnSameLine && params.allowSingleLine) {
+ if (!block.body.length) {
return;
}
if (curlyToken.loc.start.line === block.body[0].loc.start.line) {
context.report(block.body[0], BODY_MESSAGE);
- } else if (curlyTokenEnd.loc.start.line === block.body[block.body.length - 1].loc.start.line) {
+ }
+
+ if (curlyTokenEnd.loc.start.line === block.body[block.body.length - 1].loc.start.line) {
context.report(block.body[block.body.length - 1], CLOSE_MESSAGE_SINGLE);
}
});
@@ -106,7 +116,7 @@ module.exports = function(context) {
if (style === "1tbs") {
if (tokens[0].loc.start.line !== tokens[1].loc.start.line &&
node.consequent.type === "BlockStatement" &&
- isCurlyPunctuator(tokens[0]) ) {
+ isCurlyPunctuator(tokens[0])) {
context.report(node.alternate, CLOSE_MESSAGE);
}
} else if (tokens[0].loc.start.line === tokens[1].loc.start.line) {
@@ -172,6 +182,7 @@ module.exports = function(context) {
*/
function checkSwitchStatement(node) {
var tokens;
+
if (node.cases && node.cases.length) {
tokens = sourceCode.getTokensBefore(node.cases[0], 2);
} else {
diff --git a/tools/eslint/lib/rules/callback-return.js b/tools/eslint/lib/rules/callback-return.js
index 49e5da6239aad4..7680386cf4d46f 100644
--- a/tools/eslint/lib/rules/callback-return.js
+++ b/tools/eslint/lib/rules/callback-return.js
@@ -49,6 +49,7 @@ module.exports = function(context) {
* @returns {boolean} Whether or not this is part of a callback expression
*/
function isCallbackExpression(node, parentNode) {
+
// ensure the parent node exists and is an expression
if (!parentNode || parentNode.type !== "ExpressionStatement") {
return false;
@@ -86,7 +87,7 @@ module.exports = function(context) {
lastItem, parentType;
// if our parent is a return we know we're ok
- if (closestBlock.type === "ReturnStatement" ) {
+ if (closestBlock.type === "ReturnStatement") {
return;
}
diff --git a/tools/eslint/lib/rules/camelcase.js b/tools/eslint/lib/rules/camelcase.js
index 1294a548d77f4d..d8f87fcf3fe964 100644
--- a/tools/eslint/lib/rules/camelcase.js
+++ b/tools/eslint/lib/rules/camelcase.js
@@ -54,7 +54,11 @@ module.exports = function(context) {
return {
"Identifier": function(node) {
- // Leading and trailing underscores are commonly used to flag private/protected identifiers, strip them
+
+ /*
+ * Leading and trailing underscores are commonly used to flag
+ * private/protected identifiers, strip them
+ */
var name = node.name.replace(/^_+|_+$/g, ""),
effectiveParent = (node.parent.type === "MemberExpression") ? node.parent.parent : node.parent;
@@ -83,6 +87,7 @@ module.exports = function(context) {
// Properties have their own rules
} else if (node.parent.type === "Property") {
+
// "never" check properties
if (properties === "never") {
return;
diff --git a/tools/eslint/lib/rules/comma-dangle.js b/tools/eslint/lib/rules/comma-dangle.js
index c197b783dc35f9..4aab8939304585 100644
--- a/tools/eslint/lib/rules/comma-dangle.js
+++ b/tools/eslint/lib/rules/comma-dangle.js
@@ -10,21 +10,10 @@
"use strict";
//------------------------------------------------------------------------------
-// Helpers
+// Requirements
//------------------------------------------------------------------------------
-/**
- * Gets the last element of a given array.
- *
- * @param {*[]} xs - An array to get.
- * @returns {*} The last element, or undefined.
- */
-function getLast(xs) {
- if (xs.length === 0) {
- return null;
- }
- return xs[xs.length - 1];
-}
+var lodash = require("lodash");
/**
* Checks whether or not a trailing comma is allowed in a given node.
@@ -37,6 +26,7 @@ function getLast(xs) {
function isTrailingCommaAllowed(node, lastItem) {
switch (node.type) {
case "ArrayPattern":
+
// TODO(t-nagashima): Remove SpreadElement after https://github.com/eslint/espree/issues/194 was fixed.
return (
lastItem.type !== "RestElement" &&
@@ -74,7 +64,8 @@ module.exports = function(context) {
* @returns {boolean} `true` if the node is multiline.
*/
function isMultiline(node) {
- var lastItem = getLast(node.properties || node.elements || node.specifiers);
+ var lastItem = lodash.last(node.properties || node.elements || node.specifiers);
+
if (!lastItem) {
return false;
}
@@ -106,7 +97,8 @@ module.exports = function(context) {
* @returns {void}
*/
function forbidTrailingComma(node) {
- var lastItem = getLast(node.properties || node.elements || node.specifiers);
+ var lastItem = lodash.last(node.properties || node.elements || node.specifiers);
+
if (!lastItem || (node.type === "ImportDeclaration" && lastItem.type !== "ImportSpecifier")) {
return;
}
@@ -142,7 +134,8 @@ module.exports = function(context) {
* @returns {void}
*/
function forceTrailingComma(node) {
- var lastItem = getLast(node.properties || node.elements || node.specifiers);
+ var lastItem = lodash.last(node.properties || node.elements || node.specifiers);
+
if (!lastItem || (node.type === "ImportDeclaration" && lastItem.type !== "ImportSpecifier")) {
return;
}
@@ -205,6 +198,7 @@ module.exports = function(context) {
// Chooses a checking function.
var checkForTrailingComma;
+
if (mode === "always") {
checkForTrailingComma = forceTrailingComma;
} else if (mode === "always-multiline") {
diff --git a/tools/eslint/lib/rules/complexity.js b/tools/eslint/lib/rules/complexity.js
index aa89c1414f6163..0cbdd0aad29303 100644
--- a/tools/eslint/lib/rules/complexity.js
+++ b/tools/eslint/lib/rules/complexity.js
@@ -11,8 +11,18 @@
//------------------------------------------------------------------------------
module.exports = function(context) {
+ var option = context.options[0],
+ THRESHOLD = 20;
- var THRESHOLD = (typeof context.options[0] !== "undefined") ? context.options[0] : 20;
+ if (typeof option === "object" && option.hasOwnProperty("maximum") && typeof option.maximum === "number") {
+ THRESHOLD = option.maximum;
+ }
+ if (typeof option === "object" && option.hasOwnProperty("max") && typeof option.max === "number") {
+ THRESHOLD = option.max;
+ }
+ if (typeof option === "number") {
+ THRESHOLD = option;
+ }
//--------------------------------------------------------------------------
// Helpers
@@ -58,7 +68,7 @@ module.exports = function(context) {
*/
function increaseComplexity() {
if (fns.length) {
- fns[fns.length - 1] ++;
+ fns[fns.length - 1]++;
}
}
@@ -69,6 +79,7 @@ module.exports = function(context) {
* @private
*/
function increaseSwitchComplexity(node) {
+
// Avoiding `default`
if (node.test) {
increaseComplexity(node);
@@ -82,6 +93,7 @@ module.exports = function(context) {
* @private
*/
function increaseLogicalComplexity(node) {
+
// Avoiding &&
if (node.operator === "||") {
increaseComplexity(node);
@@ -116,7 +128,25 @@ module.exports = function(context) {
module.exports.schema = [
{
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "object",
+ "properties": {
+ "maximum": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "max": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
}
];
diff --git a/tools/eslint/lib/rules/consistent-return.js b/tools/eslint/lib/rules/consistent-return.js
index 2c988bb4221d25..af0b58230405d6 100644
--- a/tools/eslint/lib/rules/consistent-return.js
+++ b/tools/eslint/lib/rules/consistent-return.js
@@ -4,6 +4,12 @@
*/
"use strict";
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+var astUtils = require("../ast-utils");
+
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
@@ -34,20 +40,25 @@ module.exports = function(context) {
function checkLastSegment(node) {
var loc, type;
- // Skip if it expected no return value or unreachable.
- // When unreachable, all paths are returned or thrown.
+ /*
+ * Skip if it expected no return value or unreachable.
+ * When unreachable, all paths are returned or thrown.
+ */
if (!funcInfo.hasReturnValue ||
- funcInfo.codePath.currentSegments.every(isUnreachable)
+ funcInfo.codePath.currentSegments.every(isUnreachable) ||
+ astUtils.isES5Constructor(node)
) {
return;
}
// Adjust a location and a message.
if (node.type === "Program") {
+
// The head of program.
loc = {line: 1, column: 0};
type = "program";
} else if (node.type === "ArrowFunctionExpression") {
+
// `=>` token
loc = context.getSourceCode().getTokenBefore(node.body).loc.start;
type = "function";
@@ -55,10 +66,12 @@ module.exports = function(context) {
node.parent.type === "MethodDefinition" ||
(node.parent.type === "Property" && node.parent.method)
) {
+
// Method name.
loc = node.parent.key.loc.start;
type = "method";
} else {
+
// Function name or `function` keyword.
loc = (node.id || node).loc.start;
type = "function";
@@ -74,6 +87,7 @@ module.exports = function(context) {
}
return {
+
// Initializes/Disposes state of each code path.
"onCodePathStart": function(codePath) {
funcInfo = {
diff --git a/tools/eslint/lib/rules/consistent-this.js b/tools/eslint/lib/rules/consistent-this.js
index 364be712d1561d..09c6a91d1a944b 100644
--- a/tools/eslint/lib/rules/consistent-this.js
+++ b/tools/eslint/lib/rules/consistent-this.js
@@ -79,6 +79,7 @@ module.exports = function(context) {
// assigned later in the same scope.
if (!variable.references.some(function(reference) {
var write = reference.writeExpr;
+
return (
reference.from === scope &&
write && write.type === "ThisExpression" &&
diff --git a/tools/eslint/lib/rules/constructor-super.js b/tools/eslint/lib/rules/constructor-super.js
index f66540ee0ad634..9e0b9eac8e82d2 100644
--- a/tools/eslint/lib/rules/constructor-super.js
+++ b/tools/eslint/lib/rules/constructor-super.js
@@ -36,19 +36,25 @@ function isConstructorFunction(node) {
//------------------------------------------------------------------------------
module.exports = function(context) {
- // {{hasExtends: boolean, scope: Scope, codePath: CodePath}[]}
- // Information for each constructor.
- // - upper: Information of the upper constructor.
- // - hasExtends: A flag which shows whether own class has a valid `extends`
- // part.
- // - scope: The scope of own class.
- // - codePath: The code path object of the constructor.
+
+ /*
+ * {{hasExtends: boolean, scope: Scope, codePath: CodePath}[]}
+ * Information for each constructor.
+ * - upper: Information of the upper constructor.
+ * - hasExtends: A flag which shows whether own class has a valid `extends`
+ * part.
+ * - scope: The scope of own class.
+ * - codePath: The code path object of the constructor.
+ */
var funcInfo = null;
- // {Map}
- // Information for each code path segment.
- // - calledInSomePaths: A flag of be called `super()` in some code paths.
- // - calledInEveryPaths: A flag of be called `super()` in all code paths.
+ /*
+ * {Map}
+ * Information for each code path segment.
+ * - calledInSomePaths: A flag of be called `super()` in some code paths.
+ * - calledInEveryPaths: A flag of be called `super()` in all code paths.
+ * - validNodes:
+ */
var segInfoMap = Object.create(null);
/**
@@ -66,10 +72,22 @@ module.exports = function(context) {
* @returns {boolean} The flag which shows `super()` is called in all paths.
*/
function isCalledInEveryPath(segment) {
+
+ /*
+ * If specific segment is the looped segment of the current segment,
+ * skip the segment.
+ * If not skipped, this never becomes true after a loop.
+ */
+ if (segment.nextSegments.length === 1 &&
+ segment.nextSegments[0].isLoopedPrevSegment(segment)
+ ) {
+ return true;
+ }
return segInfoMap[segment.id].calledInEveryPaths;
}
return {
+
/**
* Stacks a constructor information.
* @param {CodePath} codePath - A code path which was started.
@@ -77,21 +95,28 @@ module.exports = function(context) {
* @returns {void}
*/
"onCodePathStart": function(codePath, node) {
- if (!isConstructorFunction(node)) {
- return;
- }
+ if (isConstructorFunction(node)) {
- // Class > ClassBody > MethodDefinition > FunctionExpression
- var classNode = node.parent.parent.parent;
- funcInfo = {
- upper: funcInfo,
- hasExtends: Boolean(
- classNode.superClass &&
- !astUtils.isNullOrUndefined(classNode.superClass)
- ),
- scope: context.getScope(),
- codePath: codePath
- };
+ // Class > ClassBody > MethodDefinition > FunctionExpression
+ var classNode = node.parent.parent.parent;
+
+ funcInfo = {
+ upper: funcInfo,
+ isConstructor: true,
+ hasExtends: Boolean(
+ classNode.superClass &&
+ !astUtils.isNullOrUndefined(classNode.superClass)
+ ),
+ codePath: codePath
+ };
+ } else {
+ funcInfo = {
+ upper: funcInfo,
+ isConstructor: false,
+ hasExtends: false,
+ codePath: codePath
+ };
+ }
},
/**
@@ -102,13 +127,12 @@ module.exports = function(context) {
* @returns {void}
*/
"onCodePathEnd": function(codePath, node) {
- if (!isConstructorFunction(node)) {
- return;
- }
// Skip if own class which has a valid `extends` part.
var hasExtends = funcInfo.hasExtends;
+
funcInfo = funcInfo.upper;
+
if (!hasExtends) {
return;
}
@@ -117,6 +141,7 @@ module.exports = function(context) {
var segments = codePath.returnedSegments;
var calledInEveryPaths = segments.every(isCalledInEveryPath);
var calledInSomePaths = segments.some(isCalledInSomePath);
+
if (!calledInEveryPaths) {
context.report({
message: calledInSomePaths ?
@@ -133,52 +158,110 @@ module.exports = function(context) {
* @returns {void}
*/
"onCodePathSegmentStart": function(segment) {
- // Skip if this is not in a constructor of a class which has a valid
- // `extends` part.
- if (!(
- funcInfo &&
- funcInfo.hasExtends &&
- funcInfo.scope === context.getScope().variableScope
- )) {
+
+ /*
+ * Skip if this is not in a constructor of a class which has a
+ * valid `extends` part.
+ */
+ if (!(funcInfo && funcInfo.isConstructor && funcInfo.hasExtends)) {
return;
}
// Initialize info.
var info = segInfoMap[segment.id] = {
calledInSomePaths: false,
- calledInEveryPaths: false
+ calledInEveryPaths: false,
+ validNodes: []
};
// When there are previous segments, aggregates these.
var prevSegments = segment.prevSegments;
+
if (prevSegments.length > 0) {
info.calledInSomePaths = prevSegments.some(isCalledInSomePath);
info.calledInEveryPaths = prevSegments.every(isCalledInEveryPath);
}
},
+ /**
+ * Update information of the code path segment when a code path was
+ * looped.
+ * @param {CodePathSegment} fromSegment - The code path segment of the
+ * end of a loop.
+ * @param {CodePathSegment} toSegment - A code path segment of the head
+ * of a loop.
+ * @returns {void}
+ */
+ "onCodePathSegmentLoop": function(fromSegment, toSegment) {
+
+ /*
+ * Skip if this is not in a constructor of a class which has a
+ * valid `extends` part.
+ */
+ if (!(funcInfo && funcInfo.isConstructor && funcInfo.hasExtends)) {
+ return;
+ }
+
+ // Update information inside of the loop.
+ var isRealLoop = toSegment.prevSegments.length >= 2;
+
+ funcInfo.codePath.traverseSegments(
+ {first: toSegment, last: fromSegment},
+ function(segment) {
+ var info = segInfoMap[segment.id];
+
+ // Updates flags.
+ var prevSegments = segment.prevSegments;
+
+ info.calledInSomePaths = prevSegments.some(isCalledInSomePath);
+ info.calledInEveryPaths = prevSegments.every(isCalledInEveryPath);
+
+ // If flags become true anew, reports the valid nodes.
+ if (info.calledInSomePaths || isRealLoop) {
+ var nodes = info.validNodes;
+
+ info.validNodes = [];
+
+ for (var i = 0; i < nodes.length; ++i) {
+ var node = nodes[i];
+
+ context.report({
+ message: "Unexpected duplicate 'super()'.",
+ node: node
+ });
+ }
+ }
+ }
+ );
+ },
+
/**
* Checks for a call of `super()`.
* @param {ASTNode} node - A CallExpression node to check.
* @returns {void}
*/
"CallExpression:exit": function(node) {
+
// Skip if the node is not `super()`.
if (node.callee.type !== "Super") {
return;
}
// Skip if this is not in a constructor.
- if (!(funcInfo && funcInfo.scope === context.getScope().variableScope)) {
+ if (!(funcInfo && funcInfo.isConstructor)) {
return;
}
// Reports if needed.
if (funcInfo.hasExtends) {
- // This class has a valid `extends` part.
- // Checks duplicate `super()`;
+
+ /*
+ * This class has a valid `extends` part.
+ * Checks duplicate `super()`;
+ */
var segments = funcInfo.codePath.currentSegments;
var duplicate = false;
+
for (var i = 0; i < segments.length; ++i) {
var info = segInfoMap[segments[i].id];
@@ -191,10 +274,15 @@ module.exports = function(context) {
message: "Unexpected duplicate 'super()'.",
node: node
});
+ } else {
+ info.validNodes.push(node);
}
} else {
- // This class does not have a valid `extends` part.
- // Disallow `super()`.
+
+ /*
+ * This class does not have a valid `extends` part.
+ * Disallow `super()`.
+ */
context.report({
message: "Unexpected 'super()'.",
node: node
diff --git a/tools/eslint/lib/rules/curly.js b/tools/eslint/lib/rules/curly.js
index cad5a831746b3f..5253a3fb6bbdbf 100644
--- a/tools/eslint/lib/rules/curly.js
+++ b/tools/eslint/lib/rules/curly.js
@@ -35,6 +35,7 @@ module.exports = function(context) {
function isCollapsedOneLiner(node) {
var before = context.getTokenBefore(node),
last = context.getLastToken(node);
+
return before.loc.start.line === last.loc.end.line;
}
@@ -197,6 +198,7 @@ module.exports = function(context) {
*/
function prepareIfChecks(node) {
var preparedChecks = [];
+
do {
preparedChecks.push(prepareCheck(node, node.consequent, "if", "condition"));
if (node.alternate && node.alternate.type !== "IfStatement") {
@@ -207,8 +209,12 @@ module.exports = function(context) {
} while (node);
if (consistent) {
- // If any node should have or already have braces, make sure they all have braces.
- // If all nodes shouldn't have braces, make sure they don't.
+
+ /*
+ * If any node should have or already have braces, make sure they
+ * all have braces.
+ * If all nodes shouldn't have braces, make sure they don't.
+ */
var expected = preparedChecks.some(function(preparedCheck) {
if (preparedCheck.expected !== null) {
return preparedCheck.expected;
diff --git a/tools/eslint/lib/rules/default-case.js b/tools/eslint/lib/rules/default-case.js
index e8a748401e570d..6bcc791238a3e7 100644
--- a/tools/eslint/lib/rules/default-case.js
+++ b/tools/eslint/lib/rules/default-case.js
@@ -34,8 +34,11 @@ module.exports = function(context) {
"SwitchStatement": function(node) {
if (!node.cases.length) {
- // skip check of empty switch because there is no easy way
- // to extract comments inside it now
+
+ /*
+ * skip check of empty switch because there is no easy way
+ * to extract comments inside it now
+ */
return;
}
@@ -49,6 +52,7 @@ module.exports = function(context) {
var comments;
var lastCase = last(node.cases);
+
comments = context.getComments(lastCase).trailing;
if (comments.length) {
diff --git a/tools/eslint/lib/rules/dot-location.js b/tools/eslint/lib/rules/dot-location.js
index 403ffe2d5e7767..89e82269aa874e 100644
--- a/tools/eslint/lib/rules/dot-location.js
+++ b/tools/eslint/lib/rules/dot-location.js
@@ -15,8 +15,10 @@ var astUtils = require("../ast-utils");
module.exports = function(context) {
var config = context.options[0],
- // default to onObject if no preference is passed
- onObject = config === "object" || !config;
+ onObject;
+
+ // default to onObject if no preference is passed
+ onObject = config === "object" || !config;
/**
* Reports if the dot between object and property is on the correct loccation.
diff --git a/tools/eslint/lib/rules/dot-notation.js b/tools/eslint/lib/rules/dot-notation.js
index 255d08ada67394..f4d0bca6d280da 100644
--- a/tools/eslint/lib/rules/dot-notation.js
+++ b/tools/eslint/lib/rules/dot-notation.js
@@ -16,6 +16,7 @@ module.exports = function(context) {
var allowKeywords = options.allowKeywords === void 0 || !!options.allowKeywords;
var allowPattern;
+
if (options.allowPattern) {
allowPattern = new RegExp(options.allowPattern);
}
@@ -29,7 +30,7 @@ module.exports = function(context) {
(allowKeywords || keywords.indexOf("" + node.property.value) === -1)
) {
if (!(allowPattern && allowPattern.test(node.property.value))) {
- context.report(node, "[" + JSON.stringify(node.property.value) + "] is better written in dot notation.");
+ context.report(node.property, "[" + JSON.stringify(node.property.value) + "] is better written in dot notation.");
}
}
if (
@@ -37,7 +38,7 @@ module.exports = function(context) {
!node.computed &&
keywords.indexOf("" + node.property.name) !== -1
) {
- context.report(node, "." + node.property.name + " is a syntax error.");
+ context.report(node.property, "." + node.property.name + " is a syntax error.");
}
}
};
diff --git a/tools/eslint/lib/rules/eol-last.js b/tools/eslint/lib/rules/eol-last.js
index 33a09b0573f643..fe5b0aa425bfff 100644
--- a/tools/eslint/lib/rules/eol-last.js
+++ b/tools/eslint/lib/rules/eol-last.js
@@ -17,6 +17,7 @@ module.exports = function(context) {
return {
"Program": function checkBadEOF(node) {
+
// Get the whole source code, not for node only.
var src = context.getSource(),
location = {column: 1},
@@ -24,6 +25,7 @@ module.exports = function(context) {
linebreak = linebreakStyle === "unix" ? "\n" : "\r\n";
if (src[src.length - 1] !== "\n") {
+
// file is not newline-terminated
location.line = src.split(/\n/g).length;
context.report({
diff --git a/tools/eslint/lib/rules/eqeqeq.js b/tools/eslint/lib/rules/eqeqeq.js
index 6650740f909157..613a3e18edc88e 100644
--- a/tools/eslint/lib/rules/eqeqeq.js
+++ b/tools/eslint/lib/rules/eqeqeq.js
@@ -63,6 +63,7 @@ module.exports = function(context) {
*/
function getOperatorLocation(node) {
var opToken = context.getTokenAfter(node.left);
+
return {line: opToken.loc.start.line, column: opToken.loc.start.column};
}
diff --git a/tools/eslint/lib/rules/generator-star-spacing.js b/tools/eslint/lib/rules/generator-star-spacing.js
index 210638a4ec1adb..94f2ca1f6968e8 100644
--- a/tools/eslint/lib/rules/generator-star-spacing.js
+++ b/tools/eslint/lib/rules/generator-star-spacing.js
@@ -41,6 +41,7 @@ module.exports = function(context) {
var node = after ? leftToken : rightToken;
var type = spaceRequired ? "Missing" : "Unexpected";
var message = type + " space " + side + " *.";
+
context.report({
node: node,
message: message,
@@ -81,11 +82,8 @@ module.exports = function(context) {
checkSpacing("before", prevToken, starToken);
}
- // Only check after when followed by an identifier
nextToken = context.getTokenAfter(starToken);
- if (nextToken.type === "Identifier") {
- checkSpacing("after", starToken, nextToken);
- }
+ checkSpacing("after", starToken, nextToken);
}
return {
diff --git a/tools/eslint/lib/rules/global-require.js b/tools/eslint/lib/rules/global-require.js
index 70125cf63b3672..d6939644581deb 100644
--- a/tools/eslint/lib/rules/global-require.js
+++ b/tools/eslint/lib/rules/global-require.js
@@ -45,6 +45,7 @@ function findReference(scope, node) {
*/
function isShadowed(scope, node) {
var reference = findReference(scope, node);
+
return reference && reference.resolved && reference.resolved.defs.length > 0;
}
diff --git a/tools/eslint/lib/rules/handle-callback-err.js b/tools/eslint/lib/rules/handle-callback-err.js
index 600a04fcfa8ef9..622288c99625af 100644
--- a/tools/eslint/lib/rules/handle-callback-err.js
+++ b/tools/eslint/lib/rules/handle-callback-err.js
@@ -22,6 +22,7 @@ module.exports = function(context) {
*/
function isPattern(stringToCheck) {
var firstChar = stringToCheck[0];
+
return firstChar === "^";
}
@@ -33,6 +34,7 @@ module.exports = function(context) {
function matchesConfiguredErrorName(name) {
if (isPattern(errorArgument)) {
var regexp = new RegExp(errorArgument);
+
return regexp.test(name);
}
return name === errorArgument;
diff --git a/tools/eslint/lib/rules/id-length.js b/tools/eslint/lib/rules/id-length.js
index 0ea42e14ef4bda..783ef55c39ced9 100644
--- a/tools/eslint/lib/rules/id-length.js
+++ b/tools/eslint/lib/rules/id-length.js
@@ -27,8 +27,10 @@ module.exports = function(context) {
var SUPPORTED_EXPRESSIONS = {
"MemberExpression": properties && function(parent) {
return !parent.computed && (
+
// regular property assignment
parent.parent.left === parent || (
+
// or the last identifier in an ObjectPattern destructuring
parent.parent.type === "Property" && parent.parent.value === parent &&
parent.parent.parent.type === "ObjectPattern" && parent.parent.parent.parent.left === parent.parent.parent
@@ -61,6 +63,7 @@ module.exports = function(context) {
var isShort = name.length < minLength;
var isLong = name.length > maxLength;
+
if (!(isShort || isLong) || exceptions[name]) {
return; // Nothing to report
}
diff --git a/tools/eslint/lib/rules/id-match.js b/tools/eslint/lib/rules/id-match.js
index 416689c56835b0..df6fe6c8015c56 100644
--- a/tools/eslint/lib/rules/id-match.js
+++ b/tools/eslint/lib/rules/id-match.js
@@ -71,6 +71,7 @@ module.exports = function(context) {
// MemberExpressions get special rules
if (node.parent.type === "MemberExpression") {
+
// return early if properties is false
if (!properties) {
return;
@@ -95,6 +96,7 @@ module.exports = function(context) {
// Properties have their own rules
} else if (node.parent.type === "Property") {
+
// return early if properties is false
if (!properties) {
return;
diff --git a/tools/eslint/lib/rules/indent.js b/tools/eslint/lib/rules/indent.js
index e18fd534c83db0..24a6241f59dd6b 100644
--- a/tools/eslint/lib/rules/indent.js
+++ b/tools/eslint/lib/rules/indent.js
@@ -26,6 +26,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
+
"use strict";
//------------------------------------------------------------------------------
@@ -61,8 +62,10 @@ module.exports = function(context) {
if (context.options[1]) {
var opts = context.options[1];
+
options.SwitchCase = opts.SwitchCase || 0;
var variableDeclaratorRules = opts.VariableDeclarator;
+
if (typeof variableDeclaratorRules === "number") {
options.VariableDeclarator = {
var: variableDeclaratorRules,
@@ -193,6 +196,24 @@ module.exports = function(context) {
return startLine !== endLine;
}
+ /**
+ * Check indent for node
+ * @param {ASTNode} node Node to check
+ * @param {int} indent needed indent
+ * @param {boolean} [excludeCommas=false] skip comma on start of line
+ * @returns {void}
+ */
+ function checkNodeIndent(node, indent, excludeCommas) {
+ var nodeIndent = getNodeIndent(node, false, excludeCommas);
+
+ if (
+ node.type !== "ArrayExpression" && node.type !== "ObjectExpression" &&
+ nodeIndent !== indent && isNodeFirstInLine(node)
+ ) {
+ report(node, indent, nodeIndent);
+ }
+ }
+
/**
* Check indent for nodes list
* @param {ASTNode[]} nodes list of node objects
@@ -202,13 +223,12 @@ module.exports = function(context) {
*/
function checkNodesIndent(nodes, indent, excludeCommas) {
nodes.forEach(function(node) {
- var nodeIndent = getNodeIndent(node, false, excludeCommas);
- if (
- node.type !== "ArrayExpression" && node.type !== "ObjectExpression" &&
- nodeIndent !== indent && isNodeFirstInLine(node)
- ) {
- report(node, indent, nodeIndent);
+ if (node.type === "IfStatement" && node.alternate) {
+ var elseToken = context.getTokenBefore(node.alternate);
+
+ checkNodeIndent(elseToken, indent, excludeCommas);
}
+ checkNodeIndent(node, indent, excludeCommas);
});
}
@@ -241,6 +261,7 @@ module.exports = function(context) {
*/
function checkFirstNodeLineIndent(node, firstLineIndent) {
var startIndent = getNodeIndent(node, false);
+
if (startIndent !== firstLineIndent && isNodeFirstInLine(node)) {
report(
node,
@@ -303,26 +324,30 @@ module.exports = function(context) {
*/
function checkIndentInFunctionBlock(node) {
- // Search first caller in chain.
- // Ex.:
- //
- // Models <- Identifier
- // .User
- // .find()
- // .exec(function() {
- // // function body
- // });
- //
- // Looks for 'Models'
+ /*
+ * Search first caller in chain.
+ * Ex.:
+ *
+ * Models <- Identifier
+ * .User
+ * .find()
+ * .exec(function() {
+ * // function body
+ * });
+ *
+ * Looks for 'Models'
+ */
var calleeNode = node.parent; // FunctionExpression
var indent;
if (calleeNode.parent &&
(calleeNode.parent.type === "Property" ||
calleeNode.parent.type === "ArrayExpression")) {
+
// If function is part of array or object, comma can be put at left
indent = getNodeIndent(calleeNode, false, false);
} else {
+
// If function is standalone, simple calculate indent
indent = getNodeIndent(calleeNode);
}
@@ -348,6 +373,7 @@ module.exports = function(context) {
// check if the node is inside a variable
var parentVarNode = getVariableDeclaratorNode(node);
+
if (parentVarNode && isNodeInVarOnTop(node, parentVarNode)) {
indent += indentSize * options.VariableDeclarator[parentVarNode.parent.kind];
}
@@ -393,6 +419,7 @@ module.exports = function(context) {
* @returns {void}
*/
function checkIndentInArrayOrObjectBlock(node) {
+
// Skip inline
if (isSingleLineNode(node)) {
return;
@@ -429,9 +456,15 @@ module.exports = function(context) {
nodeIndent = getNodeIndent(effectiveParent);
if (parentVarNode && parentVarNode.loc.start.line !== node.loc.start.line) {
if (parent.type !== "VariableDeclarator" || parentVarNode === parentVarNode.parent.declarations[0]) {
- if (parentVarNode.loc.start.line === effectiveParent.loc.start.line) {
+ if (parent.type === "VariableDeclarator" && parentVarNode.loc.start.line === effectiveParent.loc.start.line) {
nodeIndent = nodeIndent + (indentSize * options.VariableDeclarator[parentVarNode.parent.kind]);
- } else if (parent.type === "ObjectExpression" || parent.type === "ArrayExpression") {
+ } else if (
+ parent.type === "ObjectExpression" ||
+ parent.type === "ArrayExpression" ||
+ parent.type === "CallExpression" ||
+ parent.type === "ArrowFunctionExpression" ||
+ parent.type === "NewExpression"
+ ) {
nodeIndent = nodeIndent + indentSize;
}
}
@@ -447,8 +480,10 @@ module.exports = function(context) {
elementsIndent = nodeIndent + indentSize;
}
- // check if the node is a multiple variable declaration, if yes then make sure indentation takes into account
- // variable indentation concept
+ /*
+ * Check if the node is a multiple variable declaration; if so, then
+ * make sure indentation takes that into account.
+ */
if (isNodeInVarOnTop(node, parentVarNode)) {
elementsIndent += indentSize * options.VariableDeclarator[parentVarNode.parent.kind];
}
@@ -457,6 +492,7 @@ module.exports = function(context) {
checkNodesIndent(elements, elementsIndent, true);
if (elements.length > 0) {
+
// Skip last block line check if last item in same line
if (elements[elements.length - 1].loc.end.line === node.loc.end.line) {
return;
@@ -472,7 +508,7 @@ module.exports = function(context) {
* @returns {boolean} True if it or its body is a block statement
*/
function isNodeBodyBlock(node) {
- return node.type === "BlockStatement" || (node.body && node.body.type === "BlockStatement") ||
+ return node.type === "BlockStatement" || node.type === "ClassBody" || (node.body && node.body.type === "BlockStatement") ||
(node.consequent && node.consequent.type === "BlockStatement");
}
@@ -482,6 +518,7 @@ module.exports = function(context) {
* @returns {void}
*/
function blockIndentationCheck(node) {
+
// Skip inline blocks
if (isSingleLineNode(node)) {
return;
@@ -499,10 +536,12 @@ module.exports = function(context) {
var indent;
var nodesToCheck = [];
- // For this statements we should check indent from statement begin
- // (not from block begin)
+ /*
+ * For this statements we should check indent from statement beginning,
+ * not from the beginning of the block.
+ */
var statementsWithProperties = [
- "IfStatement", "WhileStatement", "ForStatement", "ForInStatement", "ForOfStatement", "DoWhileStatement"
+ "IfStatement", "WhileStatement", "ForStatement", "ForInStatement", "ForOfStatement", "DoWhileStatement", "ClassDeclaration"
];
if (node.parent && statementsWithProperties.indexOf(node.parent.type) !== -1 && isNodeBodyBlock(node)) {
@@ -570,6 +609,7 @@ module.exports = function(context) {
var tokenBeforeLastElement = context.getTokenBefore(lastElement);
if (tokenBeforeLastElement.value === ",") {
+
// Special case for comma-first syntax where the semicolon is indented
checkLastNodeLineIndent(node, getNodeIndent(tokenBeforeLastElement));
} else {
@@ -620,6 +660,7 @@ module.exports = function(context) {
return {
"Program": function(node) {
if (node.body.length > 0) {
+
// Root nodes should have no indent
checkNodesIndent(node.body, getNodeIndent(node));
}
@@ -660,9 +701,11 @@ module.exports = function(context) {
},
"SwitchStatement": function(node) {
+
// Switch is not a 'BlockStatement'
var switchIndent = getNodeIndent(node);
var caseIndent = expectedCaseIndent(node, switchIndent);
+
checkNodesIndent(node.cases, caseIndent);
@@ -670,11 +713,13 @@ module.exports = function(context) {
},
"SwitchCase": function(node) {
+
// Skip inline cases
if (isSingleLineNode(node)) {
return;
}
var caseIndent = expectedCaseIndent(node);
+
checkNodesIndent(node.consequent, caseIndent + indentSize);
}
};
diff --git a/tools/eslint/lib/rules/init-declarations.js b/tools/eslint/lib/rules/init-declarations.js
index 79b188728cfbbf..10fbf185c160c4 100644
--- a/tools/eslint/lib/rules/init-declarations.js
+++ b/tools/eslint/lib/rules/init-declarations.js
@@ -50,6 +50,7 @@ module.exports = function(context) {
var mode = context.options[0] || MODE_ALWAYS;
var params = context.options[1] || {};
+
//--------------------------------------------------------------------------
// Public API
//--------------------------------------------------------------------------
@@ -65,6 +66,7 @@ module.exports = function(context) {
id = declaration.id,
initialized = isInitialized(declaration),
isIgnoredForLoop = params.ignoreForLoopInit && isForLoop(node.parent);
+
if (id.type !== "Identifier") {
continue;
}
diff --git a/tools/eslint/lib/rules/key-spacing.js b/tools/eslint/lib/rules/key-spacing.js
index cfdbf11f326023..c317e4a2c81156 100644
--- a/tools/eslint/lib/rules/key-spacing.js
+++ b/tools/eslint/lib/rules/key-spacing.js
@@ -331,6 +331,7 @@ module.exports = function(context) {
*/
function verifySpacing(node, lineOptions) {
var actual = getPropertyWhitespace(node);
+
if (actual) { // Object literal getters/setters lack colons
report(node, "key", actual.beforeColon, lineOptions.beforeColon, lineOptions.mode);
report(node, "value", actual.afterColon, lineOptions.afterColon, lineOptions.mode);
@@ -359,7 +360,7 @@ module.exports = function(context) {
return {
"ObjectExpression": function(node) {
if (isSingleLine(node)) {
- verifyListSpacing(node.properties);
+ verifyListSpacing(node.properties.filter(isKeyValueProperty));
} else {
verifyAlignment(node);
}
@@ -370,7 +371,7 @@ module.exports = function(context) {
return {
"Property": function(node) {
- verifySpacing(node, isSingleLine(node) ? singleLineOptions : multiLineOptions);
+ verifySpacing(node, isSingleLine(node.parent) ? singleLineOptions : multiLineOptions);
}
};
diff --git a/tools/eslint/lib/rules/keyword-spacing.js b/tools/eslint/lib/rules/keyword-spacing.js
index d532a4ce24ff28..2630b46f9684c2 100644
--- a/tools/eslint/lib/rules/keyword-spacing.js
+++ b/tools/eslint/lib/rules/keyword-spacing.js
@@ -80,6 +80,7 @@ module.exports = function(context) {
pattern = pattern || PREV_TOKEN;
var prevToken = sourceCode.getTokenBefore(token);
+
if (prevToken &&
(CHECK_TYPE.test(prevToken.type) || pattern.test(prevToken.value)) &&
!isOpenParenOfTemplate(prevToken) &&
@@ -109,6 +110,7 @@ module.exports = function(context) {
pattern = pattern || PREV_TOKEN;
var prevToken = sourceCode.getTokenBefore(token);
+
if (prevToken &&
(CHECK_TYPE.test(prevToken.type) || pattern.test(prevToken.value)) &&
!isOpenParenOfTemplate(prevToken) &&
@@ -138,6 +140,7 @@ module.exports = function(context) {
pattern = pattern || NEXT_TOKEN;
var nextToken = sourceCode.getTokenAfter(token);
+
if (nextToken &&
(CHECK_TYPE.test(nextToken.type) || pattern.test(nextToken.value)) &&
!isCloseParenOfTemplate(nextToken) &&
@@ -167,6 +170,7 @@ module.exports = function(context) {
pattern = pattern || NEXT_TOKEN;
var nextToken = sourceCode.getTokenAfter(token);
+
if (nextToken &&
(CHECK_TYPE.test(nextToken.type) || pattern.test(nextToken.value)) &&
!isCloseParenOfTemplate(nextToken) &&
@@ -209,6 +213,7 @@ module.exports = function(context) {
if (override) {
var thisBefore = ("before" in override) ? override.before : before;
var thisAfter = ("after" in override) ? override.after : after;
+
retv[key] = {
before: thisBefore ? expectSpaceBefore : unexpectSpaceBefore,
after: thisAfter ? expectSpaceAfter : unexpectSpaceAfter
@@ -269,6 +274,7 @@ module.exports = function(context) {
*/
function checkSpacingAroundFirstToken(node) {
var firstToken = node && sourceCode.getFirstToken(node);
+
if (firstToken && firstToken.type === "Keyword") {
checkSpacingAround(firstToken);
}
@@ -286,6 +292,7 @@ module.exports = function(context) {
*/
function checkSpacingBeforeFirstToken(node) {
var firstToken = node && sourceCode.getFirstToken(node);
+
if (firstToken && firstToken.type === "Keyword") {
checkSpacingBefore(firstToken);
}
@@ -301,6 +308,7 @@ module.exports = function(context) {
function checkSpacingAroundTokenBefore(node) {
if (node) {
var token = sourceCode.getTokenBefore(node);
+
while (token.type !== "Keyword") {
token = sourceCode.getTokenBefore(token);
}
@@ -382,6 +390,7 @@ module.exports = function(context) {
// `of` is not a keyword token.
var token = sourceCode.getTokenBefore(node.right);
+
while (token.value !== "of") {
token = sourceCode.getTokenBefore(token);
}
@@ -402,11 +411,13 @@ module.exports = function(context) {
*/
function checkSpacingForModuleDeclaration(node) {
var firstToken = sourceCode.getFirstToken(node);
+
checkSpacingBefore(firstToken, PREV_TOKEN_M);
checkSpacingAfter(firstToken, NEXT_TOKEN_M);
if (node.source) {
var fromToken = sourceCode.getTokenBefore(node.source);
+
checkSpacingBefore(fromToken, PREV_TOKEN_M);
checkSpacingAfter(fromToken, NEXT_TOKEN_M);
}
@@ -421,6 +432,7 @@ module.exports = function(context) {
*/
function checkSpacingForImportNamespaceSpecifier(node) {
var asToken = sourceCode.getFirstToken(node, 1);
+
checkSpacingBefore(asToken, PREV_TOKEN_M);
}
@@ -440,11 +452,13 @@ module.exports = function(context) {
node,
node.static ? 1 : 0
);
+
checkSpacingAround(token);
}
}
return {
+
// Statements
DebuggerStatement: checkSpacingAroundFirstToken,
WithStatement: checkSpacingAroundFirstToken,
diff --git a/tools/eslint/lib/rules/linebreak-style.js b/tools/eslint/lib/rules/linebreak-style.js
index 29a9dfb7f0555a..7643ea77109739 100644
--- a/tools/eslint/lib/rules/linebreak-style.js
+++ b/tools/eslint/lib/rules/linebreak-style.js
@@ -1,5 +1,5 @@
/**
- * @fileoverview Rule to forbid mixing LF and LFCR line breaks.
+ * @fileoverview Rule to enforce a single linebreak style.
* @author Erik Mueller
* @copyright 2015 Varun Verma. All rights reserverd.
* @copyright 2015 James Whitney. All rights reserved.
@@ -50,6 +50,7 @@ module.exports = function(context) {
range;
var i = 0;
+
while ((match = pattern.exec(source)) !== null) {
i++;
if (match[0] === expectedLFChars) {
diff --git a/tools/eslint/lib/rules/lines-around-comment.js b/tools/eslint/lib/rules/lines-around-comment.js
index 6f0e510007a45b..16d220c954241c 100644
--- a/tools/eslint/lib/rules/lines-around-comment.js
+++ b/tools/eslint/lib/rules/lines-around-comment.js
@@ -33,6 +33,7 @@ function getEmptyLineNums(lines) {
}).map(function(line) {
return line.num;
});
+
return emptyLines;
}
@@ -43,9 +44,11 @@ function getEmptyLineNums(lines) {
*/
function getCommentLineNums(comments) {
var lines = [];
+
comments.forEach(function(token) {
var start = token.loc.start.line;
var end = token.loc.end.line;
+
lines.push(start, end);
});
return lines;
@@ -68,6 +71,7 @@ function contains(val, array) {
module.exports = function(context) {
var options = context.options[0] ? lodash.assign({}, context.options[0]) : {};
+
options.beforeLineComment = options.beforeLineComment || false;
options.afterLineComment = options.afterLineComment || false;
options.beforeBlockComment = typeof options.beforeBlockComment !== "undefined" ? options.beforeBlockComment : true;
@@ -76,6 +80,7 @@ module.exports = function(context) {
options.allowBlockEnd = options.allowBlockEnd || false;
var sourceCode = context.getSourceCode();
+
/**
* Returns whether or not comments are on lines starting with or ending with code
* @param {ASTNode} node The comment node to check.
@@ -160,7 +165,7 @@ module.exports = function(context) {
* @returns {boolean} True if the comment is at block start.
*/
function isCommentAtBlockStart(node) {
- return isCommentAtParentStart(node, "ClassBody") || isCommentAtParentStart(node, "BlockStatement");
+ return isCommentAtParentStart(node, "ClassBody") || isCommentAtParentStart(node, "BlockStatement") || isCommentAtParentStart(node, "SwitchCase");
}
/**
@@ -169,7 +174,7 @@ module.exports = function(context) {
* @returns {boolean} True if the comment is at block end.
*/
function isCommentAtBlockEnd(node) {
- return isCommentAtParentEnd(node, "ClassBody") || isCommentAtParentEnd(node, "BlockStatement");
+ return isCommentAtParentEnd(node, "ClassBody") || isCommentAtParentEnd(node, "BlockStatement") || isCommentAtParentEnd(node, "SwitchCase") || isCommentAtParentEnd(node, "SwitchStatement");
}
/**
diff --git a/tools/eslint/lib/rules/max-depth.js b/tools/eslint/lib/rules/max-depth.js
index 89cf75f00bb8ff..22fa2f5f0b27f1 100644
--- a/tools/eslint/lib/rules/max-depth.js
+++ b/tools/eslint/lib/rules/max-depth.js
@@ -17,7 +17,18 @@ module.exports = function(context) {
//--------------------------------------------------------------------------
var functionStack = [],
- maxDepth = context.options[0] || 4;
+ option = context.options[0],
+ maxDepth = 4;
+
+ if (typeof option === "object" && option.hasOwnProperty("maximum") && typeof option.maximum === "number") {
+ maxDepth = option.maximum;
+ }
+ if (typeof option === "object" && option.hasOwnProperty("max") && typeof option.max === "number") {
+ maxDepth = option.max;
+ }
+ if (typeof option === "number") {
+ maxDepth = option;
+ }
/**
* When parsing a new function, store it in our function stack
@@ -105,7 +116,25 @@ module.exports = function(context) {
module.exports.schema = [
{
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "object",
+ "properties": {
+ "maximum": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "max": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
}
];
diff --git a/tools/eslint/lib/rules/max-len.js b/tools/eslint/lib/rules/max-len.js
index 3c389588d958f0..610cdf2bacfd3a 100644
--- a/tools/eslint/lib/rules/max-len.js
+++ b/tools/eslint/lib/rules/max-len.js
@@ -11,11 +11,15 @@
//------------------------------------------------------------------------------
module.exports = function(context) {
- // takes some ideas from http://tools.ietf.org/html/rfc3986#appendix-B, however:
- // - They're matching an entire string that we know is a URI
- // - We're matching part of a string where we think there *might* be a URL
- // - We're only concerned about URLs, as picking out any URI would cause too many false positives
- // - We don't care about matching the entire URL, any small segment is fine
+
+ /*
+ * Inspired by http://tools.ietf.org/html/rfc3986#appendix-B, however:
+ * - They're matching an entire string that we know is a URI
+ * - We're matching part of a string where we think there *might* be a URL
+ * - We're only concerned about URLs, as picking out any URI would cause
+ * too many false positives
+ * - We don't care about matching the entire URL, any small segment is fine
+ */
var URL_REGEXP = /[^:/?#]:\/\/[^?#]/;
/**
@@ -28,10 +32,12 @@ module.exports = function(context) {
*/
function computeLineLength(line, tabWidth) {
var extraCharacterCount = 0;
+
line.replace(/\t/g, function(match, offset) {
var totalOffset = offset + extraCharacterCount,
previousTabStopOffset = tabWidth ? totalOffset % tabWidth : 0,
spaceCount = tabWidth - previousTabStopOffset;
+
extraCharacterCount += spaceCount - 1; // -1 for the replaced tab
});
return line.length + extraCharacterCount;
@@ -40,10 +46,12 @@ module.exports = function(context) {
// The options object must be the last option specified…
var lastOption = context.options[context.options.length - 1];
var options = typeof lastOption === "object" ? Object.create(lastOption) : {};
+
// …but max code length…
if (typeof context.options[0] === "number") {
options.code = context.options[0];
}
+
// …and tabWidth can be optionally specified directly as integers.
if (typeof context.options[1] === "number") {
options.tabWidth = context.options[1];
@@ -104,6 +112,7 @@ module.exports = function(context) {
* @returns {string} Line without comment and trailing whitepace
*/
function stripTrailingComment(line, lineNumber, comment) {
+
// loc.column is zero-indexed
return line.slice(0, comment.loc.start.column).replace(/\s+$/, "");
}
@@ -115,26 +124,38 @@ module.exports = function(context) {
* @private
*/
function checkProgramForMaxLength(node) {
+
// split (honors line-ending)
var lines = context.getSourceLines(),
+
// list of comments to ignore
- comments = ignoreComments || maxCommentLength ? context.getAllComments() : [],
+ comments = ignoreComments || maxCommentLength || ignoreTrailingComments ? context.getAllComments() : [],
+
// we iterate over comments in parallel with the lines
commentsIndex = 0;
lines.forEach(function(line, i) {
+
// i is zero-indexed, line numbers are one-indexed
var lineNumber = i + 1;
- // if we're checking comment length; we need to know whether this
- // line is a comment
+
+ /*
+ * if we're checking comment length; we need to know whether this
+ * line is a comment
+ */
var lineIsComment = false;
- // we can short-circuit the comment checks if we're already out of comments to check
+ /*
+ * We can short-circuit the comment checks if we're already out of
+ * comments to check.
+ */
if (commentsIndex < comments.length) {
+
// iterate over comments until we find one past the current line
do {
var comment = comments[++commentsIndex];
} while (comment && comment.loc.start.line <= lineNumber);
+
// and step back by one
comment = comments[--commentsIndex];
@@ -146,6 +167,7 @@ module.exports = function(context) {
}
if (ignorePattern && ignorePattern.test(line) ||
ignoreUrls && URL_REGEXP.test(line)) {
+
// ignore this line
return;
}
diff --git a/tools/eslint/lib/rules/max-nested-callbacks.js b/tools/eslint/lib/rules/max-nested-callbacks.js
index cac15d1e85144d..21b411b25138f4 100644
--- a/tools/eslint/lib/rules/max-nested-callbacks.js
+++ b/tools/eslint/lib/rules/max-nested-callbacks.js
@@ -15,8 +15,18 @@ module.exports = function(context) {
//--------------------------------------------------------------------------
// Constants
//--------------------------------------------------------------------------
+ var option = context.options[0],
+ THRESHOLD = 10;
- var THRESHOLD = context.options[0] || 10;
+ if (typeof option === "object" && option.hasOwnProperty("maximum") && typeof option.maximum === "number") {
+ THRESHOLD = option.maximum;
+ }
+ if (typeof option === "object" && option.hasOwnProperty("max") && typeof option.max === "number") {
+ THRESHOLD = option.max;
+ }
+ if (typeof option === "number") {
+ THRESHOLD = option;
+ }
//--------------------------------------------------------------------------
// Helpers
@@ -39,6 +49,7 @@ module.exports = function(context) {
if (callbackStack.length > THRESHOLD) {
var opts = {num: callbackStack.length, max: THRESHOLD};
+
context.report(node, "Too many nested callbacks ({{num}}). Maximum allowed is {{max}}.", opts);
}
}
@@ -68,7 +79,25 @@ module.exports = function(context) {
module.exports.schema = [
{
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "object",
+ "properties": {
+ "maximum": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "max": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
}
];
diff --git a/tools/eslint/lib/rules/max-params.js b/tools/eslint/lib/rules/max-params.js
index d248bdf2260c84..d1cfe470922933 100644
--- a/tools/eslint/lib/rules/max-params.js
+++ b/tools/eslint/lib/rules/max-params.js
@@ -13,7 +13,18 @@
module.exports = function(context) {
- var numParams = context.options[0] || 3;
+ var option = context.options[0],
+ numParams = 3;
+
+ if (typeof option === "object" && option.hasOwnProperty("maximum") && typeof option.maximum === "number") {
+ numParams = option.maximum;
+ }
+ if (typeof option === "object" && option.hasOwnProperty("max") && typeof option.max === "number") {
+ numParams = option.max;
+ }
+ if (typeof option === "number") {
+ numParams = option;
+ }
/**
* Checks a function to see if it has too many parameters.
@@ -40,7 +51,25 @@ module.exports = function(context) {
module.exports.schema = [
{
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "object",
+ "properties": {
+ "maximum": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "max": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
}
];
diff --git a/tools/eslint/lib/rules/max-statements-per-line.js b/tools/eslint/lib/rules/max-statements-per-line.js
new file mode 100644
index 00000000000000..465c5a00b0eebb
--- /dev/null
+++ b/tools/eslint/lib/rules/max-statements-per-line.js
@@ -0,0 +1,106 @@
+/**
+ * @fileoverview Specify the maximum number of statements allowed per line.
+ * @author Kenneth Williams
+ * @copyright 2016 Kenneth Williams. All rights reserved.
+ * @copyright 2016 Michael Ficarra. All rights reserved.
+ * See LICENSE file in root directory for full license.
+ */
+"use strict";
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+module.exports = function(context) {
+
+ var options = context.options[0] || {},
+ lastStatementLine = 0,
+ numberOfStatementsOnThisLine = 0,
+ maxStatementsPerLine = typeof options.max !== "undefined" ? options.max : 1;
+
+ //--------------------------------------------------------------------------
+ // Helpers
+ //--------------------------------------------------------------------------
+
+ /**
+ * Reports a node
+ * @param {ASTNode} node The node to report
+ * @returns {void}
+ * @private
+ */
+ function report(node) {
+ context.report(
+ node,
+ "This line has too many statements. Maximum allowed is {{max}}.",
+ { max: maxStatementsPerLine });
+ }
+
+ /**
+ * Enforce a maximum number of statements per line
+ * @param {ASTNode} nodes Array of nodes to evaluate
+ * @returns {void}
+ * @private
+ */
+ function enforceMaxStatementsPerLine(nodes) {
+ if (nodes.length < 1) {
+ return;
+ }
+
+ for (var i = 0, l = nodes.length; i < l; ++i) {
+ var currentStatement = nodes[i];
+
+ if (currentStatement.loc.start.line === lastStatementLine) {
+ ++numberOfStatementsOnThisLine;
+ } else {
+ numberOfStatementsOnThisLine = 1;
+ lastStatementLine = currentStatement.loc.end.line;
+ }
+ if (numberOfStatementsOnThisLine === maxStatementsPerLine + 1) {
+ report(currentStatement);
+ }
+ }
+ }
+
+ /**
+ * Check each line in the body of a node
+ * @param {ASTNode} node node to evaluate
+ * @returns {void}
+ * @private
+ */
+ function checkLinesInBody(node) {
+ enforceMaxStatementsPerLine(node.body);
+ }
+
+ /**
+ * Check each line in the consequent of a switch case
+ * @param {ASTNode} node node to evaluate
+ * @returns {void}
+ * @private
+ */
+ function checkLinesInConsequent(node) {
+ enforceMaxStatementsPerLine(node.consequent);
+ }
+
+ //--------------------------------------------------------------------------
+ // Public API
+ //--------------------------------------------------------------------------
+
+ return {
+ "Program": checkLinesInBody,
+ "BlockStatement": checkLinesInBody,
+ "SwitchCase": checkLinesInConsequent
+ };
+
+};
+
+module.exports.schema = [
+ {
+ "type": "object",
+ "properties": {
+ "max": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false
+ }
+];
diff --git a/tools/eslint/lib/rules/max-statements.js b/tools/eslint/lib/rules/max-statements.js
index 78de52ebeb197c..e608958ebae6d0 100644
--- a/tools/eslint/lib/rules/max-statements.js
+++ b/tools/eslint/lib/rules/max-statements.js
@@ -17,10 +17,21 @@ module.exports = function(context) {
//--------------------------------------------------------------------------
var functionStack = [],
- maxStatements = context.options[0] || 10,
+ option = context.options[0],
+ maxStatements = 10,
ignoreTopLevelFunctions = context.options[1] && context.options[1].ignoreTopLevelFunctions || false,
topLevelFunctions = [];
+ if (typeof option === "object" && option.hasOwnProperty("maximum") && typeof option.maximum === "number") {
+ maxStatements = option.maximum;
+ }
+ if (typeof option === "object" && option.hasOwnProperty("max") && typeof option.max === "number") {
+ maxStatements = option.max;
+ }
+ if (typeof option === "number") {
+ maxStatements = option;
+ }
+
/**
* Reports a node if it has too many statements
* @param {ASTNode} node node to evaluate
@@ -55,6 +66,7 @@ module.exports = function(context) {
*/
function endFunction(node) {
var count = functionStack.pop();
+
if (ignoreTopLevelFunctions && functionStack.length === 0) {
topLevelFunctions.push({ node: node, count: count});
} else {
@@ -95,6 +107,7 @@ module.exports = function(context) {
topLevelFunctions.forEach(function(element) {
var count = element.count;
var node = element.node;
+
reportIfTooManyStatements(node, count, maxStatements);
});
}
@@ -104,8 +117,26 @@ module.exports = function(context) {
module.exports.schema = [
{
- "type": "integer",
- "minimum": 0
+ "oneOf": [
+ {
+ "type": "integer",
+ "minimum": 0
+ },
+ {
+ "type": "object",
+ "properties": {
+ "maximum": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "max": {
+ "type": "integer",
+ "minimum": 0
+ }
+ },
+ "additionalProperties": false
+ }
+ ]
},
{
"type": "object",
diff --git a/tools/eslint/lib/rules/new-cap.js b/tools/eslint/lib/rules/new-cap.js
index 35f5cafa8b339f..f43c59fd99951a 100644
--- a/tools/eslint/lib/rules/new-cap.js
+++ b/tools/eslint/lib/rules/new-cap.js
@@ -38,6 +38,7 @@ var CAPS_ALLOWED = [
* @returns {string[]} Returns obj[key] if it's an Array, otherwise `fallback`
*/
function checkArray(obj, key, fallback) {
+
/* istanbul ignore if */
if (Object.prototype.hasOwnProperty.call(obj, key) && !Array.isArray(obj[key])) {
throw new TypeError(key + ", if provided, must be an Array");
@@ -78,6 +79,7 @@ function calculateCapIsNewExceptions(config) {
module.exports = function(context) {
var config = context.options[0] ? lodash.assign({}, context.options[0]) : {};
+
config.newIsCap = config.newIsCap !== false;
config.capIsNew = config.capIsNew !== false;
var skipProperties = config.properties === false;
@@ -129,6 +131,7 @@ module.exports = function(context) {
var firstCharUpper = firstChar.toUpperCase();
if (firstCharLower === firstCharUpper) {
+
// char has no uppercase variant, so it's non-alphabetic
return "non-alpha";
} else if (firstChar === firstCharLower) {
@@ -151,6 +154,7 @@ module.exports = function(context) {
}
if (calleeName === "UTC" && node.callee.type === "MemberExpression") {
+
// allow if callee is Date.UTC
return node.callee.object.type === "Identifier" &&
node.callee.object.name === "Date";
@@ -183,9 +187,11 @@ module.exports = function(context) {
listeners.NewExpression = function(node) {
var constructorName = extractNameFromExpression(node);
+
if (constructorName) {
var capitalization = getCap(constructorName);
var isAllowed = capitalization !== "lower" || isCapAllowed(newIsCapExceptions, node, constructorName);
+
if (!isAllowed) {
report(node, "A constructor name should not start with a lowercase letter.");
}
@@ -197,9 +203,11 @@ module.exports = function(context) {
listeners.CallExpression = function(node) {
var calleeName = extractNameFromExpression(node);
+
if (calleeName) {
var capitalization = getCap(calleeName);
var isAllowed = capitalization !== "upper" || isCapAllowed(capIsNewExceptions, node, calleeName);
+
if (!isAllowed) {
report(node, "A function with a name starting with an uppercase letter should only be used as a constructor.");
}
diff --git a/tools/eslint/lib/rules/new-parens.js b/tools/eslint/lib/rules/new-parens.js
index 903564b5d77078..13c8e3d8248b3e 100644
--- a/tools/eslint/lib/rules/new-parens.js
+++ b/tools/eslint/lib/rules/new-parens.js
@@ -18,6 +18,7 @@ module.exports = function(context) {
var prenticesTokens = tokens.filter(function(token) {
return token.value === "(" || token.value === ")";
});
+
if (prenticesTokens.length < 2) {
context.report(node, "Missing '()' invoking a constructor");
}
diff --git a/tools/eslint/lib/rules/newline-after-var.js b/tools/eslint/lib/rules/newline-after-var.js
index 1b5698c0302bca..34431e2c8cddcd 100644
--- a/tools/eslint/lib/rules/newline-after-var.js
+++ b/tools/eslint/lib/rules/newline-after-var.js
@@ -72,6 +72,7 @@ module.exports = function(context) {
*/
function isLastNode(node) {
var token = sourceCode.getTokenAfter(node);
+
return !token || (token.type === "Punctuator" && token.value === "}");
}
@@ -83,10 +84,12 @@ module.exports = function(context) {
*/
function hasBlankLineAfterComment(token, commentStartLine) {
var commentEnd = commentEndLine[commentStartLine];
+
// If there's another comment, repeat check for blank line
if (commentEndLine[commentEnd + 1]) {
return hasBlankLineAfterComment(token, commentEnd + 1);
}
+
return (token.loc.start.line > commentEndLine[commentStartLine] + 1);
}
diff --git a/tools/eslint/lib/rules/newline-before-return.js b/tools/eslint/lib/rules/newline-before-return.js
new file mode 100644
index 00000000000000..6cc2944a435c19
--- /dev/null
+++ b/tools/eslint/lib/rules/newline-before-return.js
@@ -0,0 +1,143 @@
+
+/**
+ * @fileoverview Rule to require newlines before `return` statement
+ * @author Kai Cataldo
+ * @copyright 2016 Kai Cataldo. All rights reserved.
+ * See LICENSE file in root directory for full license.
+ */
+"use strict";
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+module.exports = function(context) {
+ var sourceCode = context.getSourceCode();
+
+ //--------------------------------------------------------------------------
+ // Helpers
+ //--------------------------------------------------------------------------
+
+ /**
+ * Tests whether node is preceded by supplied tokens
+ * @param {ASTNode} node - node to check
+ * @param {array} testTokens - array of tokens to test against
+ * @returns {boolean} Whether or not the node is preceded by one of the supplied tokens
+ * @private
+ */
+ function isPrecededByTokens(node, testTokens) {
+ var tokenBefore = sourceCode.getTokenBefore(node);
+
+ return testTokens.some(function(token) {
+ return tokenBefore.value === token;
+ });
+ }
+
+ /**
+ * Checks whether node is the first node after statement or in block
+ * @param {ASTNode} node - node to check
+ * @returns {boolean} Whether or not the node is the first node after statement or in block
+ * @private
+ */
+ function isFirstNode(node) {
+ var parentType = node.parent.type;
+
+ if (node.parent.body) {
+ return Array.isArray(node.parent.body)
+ ? node.parent.body[0] === node
+ : node.parent.body === node;
+ }
+
+ if (parentType === "IfStatement") {
+ return isPrecededByTokens(node, ["else", ")"]);
+ } else if (parentType === "DoWhileStatement") {
+ return isPrecededByTokens(node, ["do"]);
+ } else if (parentType === "SwitchCase") {
+ return isPrecededByTokens(node, [":"]);
+ } else {
+ return isPrecededByTokens(node, [")"]);
+ }
+ }
+
+ /**
+ * Returns the number of lines of comments that precede the node
+ * @param {ASTNode} node - node to check for overlapping comments
+ * @param {token} tokenBefore - previous token to check for overlapping comments
+ * @returns {number} Number of lines of comments that precede the node
+ * @private
+ */
+ function calcCommentLines(node, tokenBefore) {
+ var comments = sourceCode.getComments(node).leading;
+ var numLinesComments = 0;
+
+ if (!comments.length) {
+ return numLinesComments;
+ }
+
+ comments.forEach(function(comment) {
+ numLinesComments++;
+
+ if (comment.type === "Block") {
+ numLinesComments += comment.loc.end.line - comment.loc.start.line;
+ }
+
+ // avoid counting lines with inline comments twice
+ if (comment.loc.start.line === tokenBefore.loc.end.line) {
+ numLinesComments--;
+ }
+
+ if (comment.loc.end.line === node.loc.start.line) {
+ numLinesComments--;
+ }
+ });
+
+ return numLinesComments;
+ }
+
+ /**
+ * Checks whether node is preceded by a newline
+ * @param {ASTNode} node - node to check
+ * @returns {boolean} Whether or not the node is preceded by a newline
+ * @private
+ */
+ function hasNewlineBefore(node) {
+ var tokenBefore = sourceCode.getTokenBefore(node);
+ var lineNumTokenBefore = tokenBefore.loc.end.line;
+ var lineNumNode = node.loc.start.line;
+ var commentLines = calcCommentLines(node, tokenBefore);
+
+ return (lineNumNode - lineNumTokenBefore - commentLines) > 1;
+ }
+
+ /**
+ * Reports expected/unexpected newline before return statement
+ * @param {ASTNode} node - the node to report in the event of an error
+ * @param {boolean} isExpected - whether the newline is expected or not
+ * @returns {void}
+ * @private
+ */
+ function reportError(node, isExpected) {
+ var expected = isExpected ? "Expected" : "Unexpected";
+
+ context.report({
+ node: node,
+ message: expected + " newline before return statement."
+ });
+ }
+
+ //--------------------------------------------------------------------------
+ // Public
+ //--------------------------------------------------------------------------
+
+ return {
+ ReturnStatement: function(node) {
+ if (isFirstNode(node) && hasNewlineBefore(node)) {
+ reportError(node, false);
+ } else if (!isFirstNode(node) && !hasNewlineBefore(node)) {
+ reportError(node, true);
+ }
+ }
+ };
+};
+
+module.exports.schema = [];
diff --git a/tools/eslint/lib/rules/newline-per-chained-call.js b/tools/eslint/lib/rules/newline-per-chained-call.js
index 4e17e05ed9cb80..f7df4c29d66112 100644
--- a/tools/eslint/lib/rules/newline-per-chained-call.js
+++ b/tools/eslint/lib/rules/newline-per-chained-call.js
@@ -1,7 +1,9 @@
/**
* @fileoverview Rule to ensure newline per method call when chaining calls
* @author Rajendra Patil
+ * @author Burak Yigit Kaya
* @copyright 2016 Rajendra Patil. All rights reserved.
+ * @copyright 2016 Burak Yigit Kaya. All rights reserved.
*/
"use strict";
@@ -13,90 +15,31 @@
module.exports = function(context) {
var options = context.options[0] || {},
- codeStateMap = {},
ignoreChainWithDepth = options.ignoreChainWithDepth || 2;
- /**
- * Check and Capture State if the chained calls/members
- * @param {ASTNode} node The node to check
- * @param {object} codeState The state of the code current code to be filled
- * @returns {void}
- */
- function checkAndCaptureStateRecursively(node, codeState) {
- var valid = false,
- objectLineNumber,
- propertyLineNumber;
- if (node.callee) {
- node = node.callee;
- codeState.hasFunctionCall = true;
- }
-
- if (node.object) {
- codeState.depth++;
+ return {
+ "CallExpression:exit": function(node) {
+ if (!node.callee || node.callee.type !== "MemberExpression") {
+ return;
+ }
- objectLineNumber = node.object.loc.end.line;
- propertyLineNumber = node.property.loc.end.line;
- valid = node.computed || propertyLineNumber > objectLineNumber;
+ var callee = node.callee;
+ var parent = callee.object;
+ var depth = 1;
- if (!valid) {
- codeState.reports.push({
- node: node,
- text: "Expected line break after `{{code}}`.",
- depth: codeState.depth
- });
+ while (parent && parent.callee) {
+ depth += 1;
+ parent = parent.callee.object;
}
- // Recurse
- checkAndCaptureStateRecursively(node.object, codeState);
- }
- }
- /**
- * Verify and report the captured state report
- * @param {object} codeState contains the captured state with `hasFunctionCall, reports and depth`
- * @returns {void}
- */
- function reportState(codeState) {
- var report;
- if (codeState.hasFunctionCall && codeState.depth > ignoreChainWithDepth && codeState.reports) {
- while (codeState.reports.length) {
- report = codeState.reports.shift();
- context.report(report.node, report.text, {
- code: context.getSourceCode().getText(report.node.object).replace(/\r\n|\r|\n/g, "\\n") // Not to print newlines in error report
- });
+ if (depth > ignoreChainWithDepth && callee.property.loc.start.line === callee.object.loc.end.line) {
+ context.report(
+ callee.property,
+ callee.property.loc.start,
+ "Expected line break after `" + context.getSource(callee.object).replace(/\r\n|\r|\n/g, "\\n") + "`."
+ );
}
}
- }
-
- /**
- * Initialize the node state object with default values.
- * @returns {void}
- */
- function initializeState() {
- return {
- visited: false,
- hasFunctionCall: false,
- depth: 1,
- reports: []
- };
- }
- /**
- * Process the said node and recurse internally
- * @param {ASTNode} node The node to check
- * @returns {void}
- */
- function processNode(node) {
- var stateKey = [node.loc.start.line, node.loc.start.column].join("@"),
- codeState = codeStateMap[stateKey] = (codeStateMap[stateKey] || initializeState());
- if (!codeState.visited) {
- codeState.visited = true;
- checkAndCaptureStateRecursively(node, codeState);
- }
- reportState(codeState);
- }
-
- return {
- "CallExpression": processNode,
- "MemberExpression": processNode
};
};
diff --git a/tools/eslint/lib/rules/no-alert.js b/tools/eslint/lib/rules/no-alert.js
index dddefc47733080..ea1e689544840a 100644
--- a/tools/eslint/lib/rules/no-alert.js
+++ b/tools/eslint/lib/rules/no-alert.js
@@ -73,6 +73,7 @@ function findReference(scope, node) {
*/
function isShadowed(scope, globalScope, node) {
var reference = findReference(scope, node);
+
return reference && reference.resolved && reference.resolved.defs.length > 0;
}
diff --git a/tools/eslint/lib/rules/no-case-declarations.js b/tools/eslint/lib/rules/no-case-declarations.js
index 443328b89e5b2e..4969d4f1bf1a32 100644
--- a/tools/eslint/lib/rules/no-case-declarations.js
+++ b/tools/eslint/lib/rules/no-case-declarations.js
@@ -32,6 +32,7 @@ module.exports = function(context) {
"SwitchCase": function(node) {
for (var i = 0; i < node.consequent.length; i++) {
var statement = node.consequent[i];
+
if (isLexicalDeclaration(statement)) {
context.report({
node: node,
diff --git a/tools/eslint/lib/rules/no-cond-assign.js b/tools/eslint/lib/rules/no-cond-assign.js
index c83afca0afe68c..f4bb8425cc77e1 100644
--- a/tools/eslint/lib/rules/no-cond-assign.js
+++ b/tools/eslint/lib/rules/no-cond-assign.js
@@ -87,6 +87,7 @@ module.exports = function(context) {
!isParenthesisedTwice(node.test)
)
) {
+
// must match JSHint's error message
context.report({
node: node,
diff --git a/tools/eslint/lib/rules/no-confusing-arrow.js b/tools/eslint/lib/rules/no-confusing-arrow.js
index 9cf2ea7a0c806a..8756cf431d39fc 100644
--- a/tools/eslint/lib/rules/no-confusing-arrow.js
+++ b/tools/eslint/lib/rules/no-confusing-arrow.js
@@ -28,6 +28,8 @@
"use strict";
+var astUtils = require("../ast-utils.js");
+
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
@@ -38,7 +40,7 @@
* @returns {boolean} `true` if the node is a conditional expression.
*/
function isConditional(node) {
- return node.body && node.body.type === "ConditionalExpression";
+ return node && node.type === "ConditionalExpression";
}
//------------------------------------------------------------------------------
@@ -46,13 +48,17 @@ function isConditional(node) {
//------------------------------------------------------------------------------
module.exports = function(context) {
+ var config = context.options[0] || {};
+
/**
* Reports if an arrow function contains an ambiguous conditional.
* @param {ASTNode} node - A node to check and report.
* @returns {void}
*/
function checkArrowFunc(node) {
- if (isConditional(node)) {
+ var body = node.body;
+
+ if (isConditional(body) && !(config.allowParens && astUtils.isParenthesised(context, body))) {
context.report(node, "Arrow function used ambiguously with a conditional expression.");
}
}
@@ -62,4 +68,10 @@ module.exports = function(context) {
};
};
-module.exports.schema = [];
+module.exports.schema = [{
+ type: "object",
+ properties: {
+ allowParens: {type: "boolean"}
+ },
+ additionalProperties: false
+}];
diff --git a/tools/eslint/lib/rules/no-console.js b/tools/eslint/lib/rules/no-console.js
index 9493bc752982a6..3efbbd4f24f5f7 100644
--- a/tools/eslint/lib/rules/no-console.js
+++ b/tools/eslint/lib/rules/no-console.js
@@ -19,7 +19,7 @@ module.exports = function(context) {
if (node.object.name === "console") {
var blockConsole = true;
- if ( context.options.length > 0 ) {
+ if (context.options.length > 0) {
var allowedProperties = context.options[0].allow;
var passedProperty = node.property.name;
var propertyIsAllowed = (allowedProperties.indexOf(passedProperty) > -1);
diff --git a/tools/eslint/lib/rules/no-constant-condition.js b/tools/eslint/lib/rules/no-constant-condition.js
index 85e2bd2074d61d..a8251d1f9595f5 100644
--- a/tools/eslint/lib/rules/no-constant-condition.js
+++ b/tools/eslint/lib/rules/no-constant-condition.js
@@ -30,15 +30,20 @@ module.exports = function(context) {
case "ObjectExpression":
case "ArrayExpression":
return true;
+
case "UnaryExpression":
return isConstant(node.argument);
+
case "BinaryExpression":
case "LogicalExpression":
return isConstant(node.left) && isConstant(node.right) && node.operator !== "in";
+
case "AssignmentExpression":
return (node.operator === "=") && isConstant(node.right);
+
case "SequenceExpression":
return isConstant(node.expressions[node.expressions.length - 1]);
+
// no default
}
return false;
diff --git a/tools/eslint/lib/rules/no-control-regex.js b/tools/eslint/lib/rules/no-control-regex.js
index c5a219f4470feb..98d22840196090 100644
--- a/tools/eslint/lib/rules/no-control-regex.js
+++ b/tools/eslint/lib/rules/no-control-regex.js
@@ -23,9 +23,11 @@ module.exports = function(context) {
} else if (typeof node.value === "string") {
var parent = context.getAncestors().pop();
+
if ((parent.type === "NewExpression" || parent.type === "CallExpression") &&
parent.callee.type === "Identifier" && parent.callee.name === "RegExp"
) {
+
// there could be an invalid regular expression string
try {
return new RegExp(node.value);
diff --git a/tools/eslint/lib/rules/no-dupe-args.js b/tools/eslint/lib/rules/no-dupe-args.js
index 80b52ca82ad015..5de9b500b65fa1 100644
--- a/tools/eslint/lib/rules/no-dupe-args.js
+++ b/tools/eslint/lib/rules/no-dupe-args.js
@@ -42,6 +42,7 @@ module.exports = function(context) {
// TODO(nagashima): Remove this duplication check after https://github.com/estools/escope/pull/79
var key = "$" + variable.name; // to avoid __proto__.
+
if (!isParameter(variable.defs[0]) || keyMap[key]) {
continue;
}
@@ -49,6 +50,7 @@ module.exports = function(context) {
// Checks and reports duplications.
var defs = variable.defs.filter(isParameter);
+
if (defs.length >= 2) {
context.report({
node: node,
diff --git a/tools/eslint/lib/rules/no-dupe-class-members.js b/tools/eslint/lib/rules/no-dupe-class-members.js
index 12345a7be7019a..d61b05136d0f1d 100644
--- a/tools/eslint/lib/rules/no-dupe-class-members.js
+++ b/tools/eslint/lib/rules/no-dupe-class-members.js
@@ -53,6 +53,7 @@ module.exports = function(context) {
}
return {
+
// Initializes the stack of state of member declarations.
"Program": function() {
stack = [];
@@ -77,6 +78,7 @@ module.exports = function(context) {
var name = getName(node.key);
var state = getState(name, node.static);
var isDuplicate = false;
+
if (node.kind === "get") {
isDuplicate = (state.init || state.get);
state.get = true;
diff --git a/tools/eslint/lib/rules/no-duplicate-case.js b/tools/eslint/lib/rules/no-duplicate-case.js
index 72677f44d91c24..d56fca7696600d 100644
--- a/tools/eslint/lib/rules/no-duplicate-case.js
+++ b/tools/eslint/lib/rules/no-duplicate-case.js
@@ -20,6 +20,7 @@ module.exports = function(context) {
node.cases.forEach(function(switchCase) {
var key = context.getSource(switchCase.test);
+
if (mapping[key]) {
context.report(switchCase, "Duplicate case label.");
} else {
diff --git a/tools/eslint/lib/rules/no-duplicate-imports.js b/tools/eslint/lib/rules/no-duplicate-imports.js
new file mode 100644
index 00000000000000..6c0edbb9990e08
--- /dev/null
+++ b/tools/eslint/lib/rules/no-duplicate-imports.js
@@ -0,0 +1,126 @@
+/**
+ * @fileoverview Restrict usage of duplicate imports.
+ * @author Simen Bekkhus
+ * @copyright 2016 Simen Bekkhus. All rights reserved.
+ * See LICENSE file in root directory for full license.
+ */
+"use strict";
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+/**
+ * Returns the name of the module imported or re-exported.
+ *
+ * @param {ASTNode} node - A node to get.
+ * @returns {string} the name of the module, or empty string if no name.
+ */
+function getValue(node) {
+ if (node && node.source && node.source.value) {
+ return node.source.value.trim();
+ }
+
+ return "";
+}
+
+/**
+ * Checks if the name of the import or export exists in the given array, and reports if so.
+ *
+ * @param {RuleContext} context - The ESLint rule context object.
+ * @param {ASTNode} node - A node to get.
+ * @param {string} value - The name of the imported or exported module.
+ * @param {string[]} array - The array containing other imports or exports in the file.
+ * @param {string} message - A message to be reported after the name of the module
+ *
+ * @returns {void} No return value
+ */
+function checkAndReport(context, node, value, array, message) {
+ if (array.indexOf(value) !== -1) {
+ context.report({
+ node: node,
+ message: "'{{module}}' " + message,
+ data: {module: value}
+ });
+ }
+}
+
+/**
+ * @callback nodeCallback
+ * @param {ASTNode} node - A node to handle.
+ */
+
+/**
+ * Returns a function handling the imports of a given file
+ *
+ * @param {RuleContext} context - The ESLint rule context object.
+ * @param {boolean} includeExports - Whether or not to check for exports in addition to imports.
+ * @param {string[]} importsInFile - The array containing other imports in the file.
+ * @param {string[]} exportsInFile - The array containing other exports in the file.
+ *
+ * @returns {nodeCallback} A function passed to ESLint to handle the statement.
+ */
+function handleImports(context, includeExports, importsInFile, exportsInFile) {
+ return function(node) {
+ var value = getValue(node);
+
+ if (value) {
+ checkAndReport(context, node, value, importsInFile, "import is duplicated.");
+
+ if (includeExports) {
+ checkAndReport(context, node, value, exportsInFile, "import is duplicated as export.");
+ }
+
+ importsInFile.push(value);
+ }
+ };
+}
+
+/**
+ * Returns a function handling the exports of a given file
+ *
+ * @param {RuleContext} context - The ESLint rule context object.
+ * @param {string[]} importsInFile - The array containing other imports in the file.
+ * @param {string[]} exportsInFile - The array containing other exports in the file.
+ *
+ * @returns {nodeCallback} A function passed to ESLint to handle the statement.
+ */
+function handleExports(context, importsInFile, exportsInFile) {
+ return function(node) {
+ var value = getValue(node);
+
+ if (value) {
+ checkAndReport(context, node, value, exportsInFile, "export is duplicated.");
+ checkAndReport(context, node, value, importsInFile, "export is duplicated as import.");
+
+ exportsInFile.push(value);
+ }
+ };
+}
+
+module.exports = function(context) {
+ var includeExports = (context.options[0] || {}).includeExports,
+ importsInFile = [],
+ exportsInFile = [];
+
+ var handlers = {
+ "ImportDeclaration": handleImports(context, includeExports, importsInFile, exportsInFile)
+ };
+
+ if (includeExports) {
+ handlers.ExportNamedDeclaration = handleExports(context, importsInFile, exportsInFile);
+ handlers.ExportAllDeclaration = handleExports(context, importsInFile, exportsInFile);
+ }
+
+ return handlers;
+};
+
+module.exports.schema = [{
+ "type": "object",
+ "properties": {
+ "includeExports": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+}];
diff --git a/tools/eslint/lib/rules/no-else-return.js b/tools/eslint/lib/rules/no-else-return.js
index 29b53842eb2a48..33a519e4e0b79c 100644
--- a/tools/eslint/lib/rules/no-else-return.js
+++ b/tools/eslint/lib/rules/no-else-return.js
@@ -97,12 +97,16 @@ module.exports = function(context) {
* @returns {boolean} `true` if it returns on every codepath.
*/
function alwaysReturns(node) {
- // If we have a BlockStatement, check each consequent body node.
if (node.type === "BlockStatement") {
+
+ // If we have a BlockStatement, check each consequent body node.
return node.body.some(checkForReturnOrIf);
- // If not a block statement, make sure the consequent isn't a ReturnStatement
- // or an IfStatement with returns on both paths
} else {
+
+ /*
+ * If not a block statement, make sure the consequent isn't a
+ * ReturnStatement or an IfStatement with returns on both paths.
+ */
return checkForReturnOrIf(node);
}
}
diff --git a/tools/eslint/lib/rules/no-empty-character-class.js b/tools/eslint/lib/rules/no-empty-character-class.js
index b201da44f45627..d6341a124a4e98 100644
--- a/tools/eslint/lib/rules/no-empty-character-class.js
+++ b/tools/eslint/lib/rules/no-empty-character-class.js
@@ -33,6 +33,7 @@ module.exports = function(context) {
"Literal": function(node) {
var token = context.getFirstToken(node);
+
if (token.type === "RegularExpression" && !regex.test(token.value)) {
context.report(node, "Empty class.");
}
diff --git a/tools/eslint/lib/rules/no-empty-function.js b/tools/eslint/lib/rules/no-empty-function.js
index 6f24ee1de08f67..9ff304d4d7d664 100644
--- a/tools/eslint/lib/rules/no-empty-function.js
+++ b/tools/eslint/lib/rules/no-empty-function.js
@@ -81,6 +81,7 @@ function getKind(node) {
// Detects prefix.
var prefix = "";
+
if (node.generator) {
prefix = "generator";
} else if (node.async) {
diff --git a/tools/eslint/lib/rules/no-empty.js b/tools/eslint/lib/rules/no-empty.js
index a8b0de16869f6c..df40433d7b7114 100644
--- a/tools/eslint/lib/rules/no-empty.js
+++ b/tools/eslint/lib/rules/no-empty.js
@@ -15,6 +15,7 @@ var FUNCTION_TYPE = /^(?:ArrowFunctionExpression|Function(?:Declaration|Expressi
module.exports = function(context) {
return {
"BlockStatement": function(node) {
+
// if the body is not empty, we can just return immediately
if (node.body.length !== 0) {
return;
diff --git a/tools/eslint/lib/rules/no-eval.js b/tools/eslint/lib/rules/no-eval.js
index bd08bbd117b274..7c47c892f95859 100644
--- a/tools/eslint/lib/rules/no-eval.js
+++ b/tools/eslint/lib/rules/no-eval.js
@@ -157,11 +157,13 @@ module.exports = function(context) {
for (var i = 0; i < candidatesOfGlobalObject.length; ++i) {
var name = candidatesOfGlobalObject[i];
var variable = astUtils.getVariableByName(globalScope, name);
+
if (!variable) {
continue;
}
var references = variable.references;
+
for (var j = 0; j < references.length; ++j) {
var identifier = references[j].identifier;
var node = identifier.parent;
@@ -187,16 +189,19 @@ module.exports = function(context) {
*/
function reportAccessingEval(globalScope) {
var variable = astUtils.getVariableByName(globalScope, "eval");
+
if (!variable) {
return;
}
var references = variable.references;
+
for (var i = 0; i < references.length; ++i) {
var reference = references[i];
var id = reference.identifier;
if (id.name === "eval" && !astUtils.isCallee(id)) {
+
// Is accessing to eval (excludes direct calls to eval)
report(id);
}
@@ -204,11 +209,12 @@ module.exports = function(context) {
}
if (allowIndirect) {
- // Checks only direct calls to eval.
- // It's simple!
+
+ // Checks only direct calls to eval. It's simple!
return {
"CallExpression:exit": function(node) {
var callee = node.callee;
+
if (isIdentifier(callee, "eval")) {
report(callee);
}
@@ -219,6 +225,7 @@ module.exports = function(context) {
return {
"CallExpression:exit": function(node) {
var callee = node.callee;
+
if (isIdentifier(callee, "eval")) {
report(callee);
}
@@ -261,8 +268,10 @@ module.exports = function(context) {
return;
}
- // `this.eval` is found.
- // Checks whether or not the value of `this` is the global object.
+ /*
+ * `this.eval` is found.
+ * Checks whether or not the value of `this` is the global object.
+ */
if (!funcInfo.initialized) {
funcInfo.initialized = true;
funcInfo.defaultThis = astUtils.isDefaultThisBinding(
@@ -270,7 +279,9 @@ module.exports = function(context) {
sourceCode
);
}
+
if (!funcInfo.strict && funcInfo.defaultThis) {
+
// `this.eval` is possible built-in `eval`.
report(node.parent);
}
diff --git a/tools/eslint/lib/rules/no-extend-native.js b/tools/eslint/lib/rules/no-extend-native.js
index 49e139a29b524c..cf2cf33f3a02e5 100644
--- a/tools/eslint/lib/rules/no-extend-native.js
+++ b/tools/eslint/lib/rules/no-extend-native.js
@@ -33,7 +33,8 @@ module.exports = function(context) {
// handle the Array.prototype.extra style case
"AssignmentExpression": function(node) {
- var lhs = node.left, affectsProto;
+ var lhs = node.left,
+ affectsProto;
if (lhs.type !== "MemberExpression" || lhs.object.type !== "MemberExpression") {
return;
diff --git a/tools/eslint/lib/rules/no-extra-bind.js b/tools/eslint/lib/rules/no-extra-bind.js
index 8bfe5e5d181d1f..cd800eabd7733a 100644
--- a/tools/eslint/lib/rules/no-extra-bind.js
+++ b/tools/eslint/lib/rules/no-extra-bind.js
@@ -45,6 +45,7 @@ module.exports = function(context) {
if (node.property.expressions.length === 0) {
return node.property.quasis[0].value.cooked;
}
+
// fallthrough
default:
return false;
@@ -66,6 +67,7 @@ module.exports = function(context) {
function isCalleeOfBindMethod(node) {
var parent = node.parent;
var grandparent = parent.parent;
+
return (
grandparent &&
grandparent.type === "CallExpression" &&
diff --git a/tools/eslint/lib/rules/no-extra-boolean-cast.js b/tools/eslint/lib/rules/no-extra-boolean-cast.js
index bd7495b891f6b2..c7ee1adc6b87fb 100644
--- a/tools/eslint/lib/rules/no-extra-boolean-cast.js
+++ b/tools/eslint/lib/rules/no-extra-boolean-cast.js
@@ -31,6 +31,7 @@ module.exports = function(context) {
return (
(BOOLEAN_NODE_TYPES.indexOf(parent.type) !== -1 &&
node === parent.test) ||
+
// !
(parent.type === "UnaryExpression" &&
parent.operator === "!")
@@ -52,6 +53,7 @@ module.exports = function(context) {
}
if (isInBooleanContext(parent, grandparent) ||
+
// Boolean() and new Boolean()
((grandparent.type === "CallExpression" || grandparent.type === "NewExpression") &&
grandparent.callee.type === "Identifier" &&
diff --git a/tools/eslint/lib/rules/no-extra-parens.js b/tools/eslint/lib/rules/no-extra-parens.js
index 763e9235bd7cf6..50f5160b208c56 100644
--- a/tools/eslint/lib/rules/no-extra-parens.js
+++ b/tools/eslint/lib/rules/no-extra-parens.js
@@ -10,8 +10,10 @@
// Rule Definition
//------------------------------------------------------------------------------
-module.exports = function(context) {
+var astUtils = require("../ast-utils.js");
+module.exports = function(context) {
+ var isParenthesised = astUtils.isParenthesised.bind(astUtils, context);
var ALL_NODES = context.options[0] !== "functions";
var EXCEPT_COND_ASSIGN = ALL_NODES && context.options[1] && context.options[1].conditionalAssign === false;
var sourceCode = context.getSourceCode();
@@ -26,21 +28,6 @@ module.exports = function(context) {
return ALL_NODES || node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression";
}
- /**
- * Determines if a node is surrounded by parentheses.
- * @param {ASTNode} node - The node to be checked.
- * @returns {boolean} True if the node is parenthesised.
- * @private
- */
- function isParenthesised(node) {
- var previousToken = context.getTokenBefore(node),
- nextToken = context.getTokenAfter(node);
-
- return previousToken && nextToken &&
- previousToken.value === "(" && previousToken.range[1] <= node.range[0] &&
- nextToken.value === ")" && nextToken.range[0] >= node.range[1];
- }
-
/**
* Determines if a node is surrounded by parentheses twice.
* @param {ASTNode} node - The node to be checked.
@@ -110,6 +97,7 @@ module.exports = function(context) {
*/
function isHeadOfExpressionStatement(node) {
var parent = node.parent;
+
while (parent) {
switch (parent.type) {
case "SequenceExpression":
@@ -191,11 +179,14 @@ module.exports = function(context) {
return 4;
case "&&":
return 5;
+
// no default
}
/* falls through */
+
case "BinaryExpression":
+
switch (node.operator) {
case "|":
return 6;
@@ -226,21 +217,29 @@ module.exports = function(context) {
case "/":
case "%":
return 13;
+
// no default
}
+
/* falls through */
+
case "UnaryExpression":
return 14;
+
case "UpdateExpression":
return 15;
+
case "CallExpression":
+
// IIFE is allowed to have parens in any position (#655)
if (node.callee.type === "FunctionExpression") {
return -1;
}
return 16;
+
case "NewExpression":
return 17;
+
// no default
}
return 18;
@@ -254,6 +253,7 @@ module.exports = function(context) {
*/
function report(node) {
var previousToken = context.getTokenBefore(node);
+
context.report(node, previousToken.loc.start, "Gratuitous parentheses around expression.");
}
@@ -279,6 +279,7 @@ module.exports = function(context) {
if (hasExcessParens(node.callee) && precedence(node.callee) >= precedence(node) && !(
node.type === "CallExpression" &&
node.callee.type === "FunctionExpression" &&
+
// One set of parentheses are allowed for a function expression
!hasDoubleExcessParens(node.callee)
)) {
@@ -305,6 +306,7 @@ module.exports = function(context) {
*/
function dryBinaryLogical(node) {
var prec = precedence(node);
+
if (hasExcessParens(node.left) && precedence(node.left) >= prec) {
report(node.left);
}
@@ -321,6 +323,7 @@ module.exports = function(context) {
}
});
},
+
"ArrowFunctionExpression": function(node) {
if (node.body.type !== "BlockStatement") {
if (node.body.type !== "ObjectExpression" && hasExcessParens(node.body) && precedence(node.body) >= precedence({type: "AssignmentExpression"})) {
@@ -335,13 +338,16 @@ module.exports = function(context) {
}
}
},
+
"AssignmentExpression": function(node) {
if (hasExcessParens(node.right) && precedence(node.right) >= precedence(node)) {
report(node.right);
}
},
+
"BinaryExpression": dryBinaryLogical,
"CallExpression": dryCallNew,
+
"ConditionalExpression": function(node) {
if (hasExcessParens(node.test) && precedence(node.test) >= precedence({type: "LogicalExpression", operator: "||"})) {
report(node.test);
@@ -353,13 +359,16 @@ module.exports = function(context) {
report(node.alternate);
}
},
+
"DoWhileStatement": function(node) {
if (hasDoubleExcessParens(node.test) && !isCondAssignException(node)) {
report(node.test);
}
},
+
"ExpressionStatement": function(node) {
var firstToken, secondToken, firstTokens;
+
if (hasExcessParens(node.expression)) {
firstTokens = context.getFirstTokens(node.expression, 2);
firstToken = firstTokens[0];
@@ -380,16 +389,19 @@ module.exports = function(context) {
}
}
},
+
"ForInStatement": function(node) {
if (hasExcessParens(node.right)) {
report(node.right);
}
},
+
"ForOfStatement": function(node) {
if (hasExcessParens(node.right)) {
report(node.right);
}
},
+
"ForStatement": function(node) {
if (node.init && hasExcessParens(node.init)) {
report(node.init);
@@ -403,12 +415,15 @@ module.exports = function(context) {
report(node.update);
}
},
+
"IfStatement": function(node) {
if (hasDoubleExcessParens(node.test) && !isCondAssignException(node)) {
report(node.test);
}
},
+
"LogicalExpression": dryBinaryLogical,
+
"MemberExpression": function(node) {
if (
hasExcessParens(node.object) &&
@@ -420,6 +435,7 @@ module.exports = function(context) {
typeof node.object.value === "number" &&
/^[0-9]+$/.test(context.getFirstToken(node.object).value))
||
+
// RegExp literal is allowed to have parens (#1589)
(node.object.type === "Literal" && node.object.regex)
)
@@ -436,25 +452,31 @@ module.exports = function(context) {
report(node.property);
}
},
+
"NewExpression": dryCallNew,
+
"ObjectExpression": function(node) {
[].forEach.call(node.properties, function(e) {
var v = e.value;
+
if (v && hasExcessParens(v) && precedence(v) >= precedence({type: "AssignmentExpression"})) {
report(v);
}
});
},
+
"ReturnStatement": function(node) {
var returnToken = sourceCode.getFirstToken(node);
if (node.argument &&
hasExcessParensNoLineTerminator(returnToken, node.argument) &&
+
// RegExp literal is allowed to have parens (#1589)
!(node.argument.type === "Literal" && node.argument.regex)) {
report(node.argument);
}
},
+
"SequenceExpression": function(node) {
[].forEach.call(node.expressions, function(e) {
if (hasExcessParens(e) && precedence(e) >= precedence(node)) {
@@ -462,16 +484,19 @@ module.exports = function(context) {
}
});
},
+
"SwitchCase": function(node) {
if (node.test && hasExcessParens(node.test)) {
report(node.test);
}
},
+
"SwitchStatement": function(node) {
if (hasDoubleExcessParens(node.discriminant)) {
report(node.discriminant);
}
},
+
"ThrowStatement": function(node) {
var throwToken = sourceCode.getFirstToken(node);
@@ -479,26 +504,32 @@ module.exports = function(context) {
report(node.argument);
}
},
+
"UnaryExpression": dryUnaryUpdate,
"UpdateExpression": dryUnaryUpdate,
+
"VariableDeclarator": function(node) {
if (node.init && hasExcessParens(node.init) &&
precedence(node.init) >= precedence({type: "AssignmentExpression"}) &&
+
// RegExp literal is allowed to have parens (#1589)
!(node.init.type === "Literal" && node.init.regex)) {
report(node.init);
}
},
+
"WhileStatement": function(node) {
if (hasDoubleExcessParens(node.test) && !isCondAssignException(node)) {
report(node.test);
}
},
+
"WithStatement": function(node) {
if (hasDoubleExcessParens(node.object)) {
report(node.object);
}
},
+
"YieldExpression": function(node) {
var yieldToken;
diff --git a/tools/eslint/lib/rules/no-extra-semi.js b/tools/eslint/lib/rules/no-extra-semi.js
index 04c1eca9b06b8d..9639ae178eaaf8 100644
--- a/tools/eslint/lib/rules/no-extra-semi.js
+++ b/tools/eslint/lib/rules/no-extra-semi.js
@@ -45,6 +45,7 @@ module.exports = function(context) {
}
return {
+
/**
* Reports this empty statement, except if the parent node is a loop.
* @param {Node} node - A EmptyStatement node to be reported.
diff --git a/tools/eslint/lib/rules/no-fallthrough.js b/tools/eslint/lib/rules/no-fallthrough.js
index 58dfcf04413386..1e5d40c7ff77f0 100644
--- a/tools/eslint/lib/rules/no-fallthrough.js
+++ b/tools/eslint/lib/rules/no-fallthrough.js
@@ -8,7 +8,7 @@
// Requirements
//------------------------------------------------------------------------------
-var getLast = require("../util").getLast;
+var lodash = require("lodash");
//------------------------------------------------------------------------------
// Helpers
@@ -24,7 +24,7 @@ var FALLTHROUGH_COMMENT = /falls?\s?through/i;
*/
function hasFallthroughComment(node, context) {
var sourceCode = context.getSourceCode();
- var comment = getLast(sourceCode.getComments(node).leading);
+ var comment = lodash.last(sourceCode.getComments(node).leading);
return Boolean(comment && FALLTHROUGH_COMMENT.test(comment.value));
}
@@ -45,8 +45,10 @@ function isReachable(segment) {
module.exports = function(context) {
var currentCodePath = null;
- // We need to use leading comments of the next SwitchCase node because
- // trailing comments is wrong if semicolons are omitted.
+ /*
+ * We need to use leading comments of the next SwitchCase node because
+ * trailing comments is wrong if semicolons are omitted.
+ */
var fallthroughCase = null;
return {
@@ -58,8 +60,11 @@ module.exports = function(context) {
},
"SwitchCase": function(node) {
- // Checks whether or not there is a fallthrough comment.
- // And reports the previous fallthrough node if that does not exist.
+
+ /*
+ * Checks whether or not there is a fallthrough comment.
+ * And reports the previous fallthrough node if that does not exist.
+ */
if (fallthroughCase && !hasFallthroughComment(node, context)) {
context.report({
message: "Expected a 'break' statement before '{{type}}'.",
@@ -71,12 +76,15 @@ module.exports = function(context) {
},
"SwitchCase:exit": function(node) {
- // `reachable` meant fall through because statements preceded by
- // `break`, `return`, or `throw` are unreachable.
- // And allows empty cases and the last case.
+
+ /*
+ * `reachable` meant fall through because statements preceded by
+ * `break`, `return`, or `throw` are unreachable.
+ * And allows empty cases and the last case.
+ */
if (currentCodePath.currentSegments.some(isReachable) &&
node.consequent.length > 0 &&
- getLast(node.parent.cases) !== node
+ lodash.last(node.parent.cases) !== node
) {
fallthroughCase = node;
}
diff --git a/tools/eslint/lib/rules/no-func-assign.js b/tools/eslint/lib/rules/no-func-assign.js
index 1ed3042cc03241..f72c8c0150762a 100644
--- a/tools/eslint/lib/rules/no-func-assign.js
+++ b/tools/eslint/lib/rules/no-func-assign.js
@@ -13,6 +13,7 @@ var astUtils = require("../ast-utils");
//------------------------------------------------------------------------------
module.exports = function(context) {
+
/**
* Reports a reference if is non initializer and writable.
* @param {References} references - Collection of reference to check.
diff --git a/tools/eslint/lib/rules/no-implicit-coercion.js b/tools/eslint/lib/rules/no-implicit-coercion.js
index d45970020db577..2bc96485c305b7 100644
--- a/tools/eslint/lib/rules/no-implicit-coercion.js
+++ b/tools/eslint/lib/rules/no-implicit-coercion.js
@@ -139,6 +139,7 @@ function getOtherOperand(node, value) {
}
return node.left;
}
+
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
@@ -149,6 +150,7 @@ module.exports = function(context) {
return {
"UnaryExpression": function(node) {
+
// !!foo
operatorAllowed = options.allow.indexOf("!!") >= 0;
if (!operatorAllowed && options.boolean && isDoubleLogicalNegating(node)) {
@@ -158,6 +160,7 @@ module.exports = function(context) {
code: context.getSource(node.argument.argument)
});
}
+
// ~foo.indexOf(bar)
operatorAllowed = options.allow.indexOf("~") >= 0;
if (!operatorAllowed && options.boolean && isBinaryNegatingOfIndexOf(node)) {
@@ -181,9 +184,11 @@ module.exports = function(context) {
// Use `:exit` to prevent double reporting
"BinaryExpression:exit": function(node) {
+
// 1 * foo
operatorAllowed = options.allow.indexOf("*") >= 0;
var nonNumericOperand = !operatorAllowed && options.number && isMultiplyByOne(node) && getNonNumericOperand(node);
+
if (nonNumericOperand) {
context.report(
node,
@@ -204,6 +209,7 @@ module.exports = function(context) {
},
"AssignmentExpression": function(node) {
+
// foo += ""
operatorAllowed = options.allow.indexOf("+") >= 0;
if (options.string && isAppendEmptyString(node)) {
diff --git a/tools/eslint/lib/rules/no-implicit-globals.js b/tools/eslint/lib/rules/no-implicit-globals.js
index 2f4c1fff9ce52f..045ebffed20bd2 100644
--- a/tools/eslint/lib/rules/no-implicit-globals.js
+++ b/tools/eslint/lib/rules/no-implicit-globals.js
@@ -30,6 +30,7 @@ module.exports = function(context) {
scope.implicit.variables.forEach(function(variable) {
var scopeVariable = scope.set.get(variable.name);
+
if (scopeVariable && scopeVariable.writeable) {
return;
}
diff --git a/tools/eslint/lib/rules/no-implied-eval.js b/tools/eslint/lib/rules/no-implied-eval.js
index 971b7b4c765fc2..eea0f7fe4180a1 100644
--- a/tools/eslint/lib/rules/no-implied-eval.js
+++ b/tools/eslint/lib/rules/no-implied-eval.js
@@ -14,8 +14,10 @@
module.exports = function(context) {
var CALLEE_RE = /set(?:Timeout|Interval)|execScript/;
- // Figures out if we should inspect a given binary expression. Is a stack of
- // stacks, where the first element in each substack is a CallExpression.
+ /*
+ * Figures out if we should inspect a given binary expression. Is a stack
+ * of stacks, where the first element in each substack is a CallExpression.
+ */
var impliedEvalAncestorsStack = [];
//--------------------------------------------------------------------------
@@ -72,8 +74,10 @@ module.exports = function(context) {
* @private
*/
function hasImpliedEvalParent(node) {
+
// make sure our parent is marked
return node.parent === last(last(impliedEvalAncestorsStack)) &&
+
// if our parent is a CallExpression, make sure we're the first argument
(node.parent.type !== "CallExpression" || node === node.parent.arguments[0]);
}
@@ -88,8 +92,10 @@ module.exports = function(context) {
*/
function checkString(node) {
if (hasImpliedEvalParent(node)) {
+
// remove the entire substack, to avoid duplicate reports
var substack = impliedEvalAncestorsStack.pop();
+
context.report(substack[0], "Implied eval. Consider passing a function instead of a string.");
}
}
@@ -101,6 +107,7 @@ module.exports = function(context) {
return {
"CallExpression": function(node) {
if (isImpliedEvalCallExpression(node)) {
+
// call expressions create a new substack
impliedEvalAncestorsStack.push([node]);
}
@@ -108,9 +115,11 @@ module.exports = function(context) {
"CallExpression:exit": function(node) {
if (node === last(last(impliedEvalAncestorsStack))) {
- // destroys the entire sub-stack, rather than just using
- // last(impliedEvalAncestorsStack).pop(), as a CallExpression is
- // always the bottom of a impliedEvalAncestorsStack substack.
+
+ /* Destroys the entire sub-stack, rather than just using
+ * last(impliedEvalAncestorsStack).pop(), as a CallExpression is
+ * always the bottom of a impliedEvalAncestorsStack substack.
+ */
impliedEvalAncestorsStack.pop();
}
},
diff --git a/tools/eslint/lib/rules/no-inner-declarations.js b/tools/eslint/lib/rules/no-inner-declarations.js
index f5503eea8e7f61..8dcd3e827c9b55 100644
--- a/tools/eslint/lib/rules/no-inner-declarations.js
+++ b/tools/eslint/lib/rules/no-inner-declarations.js
@@ -29,8 +29,10 @@ module.exports = function(context) {
}
return {
+
// Type of containing ancestor
type: ancestor.type,
+
// Separation between ancestor and node
distance: generation
};
diff --git a/tools/eslint/lib/rules/no-invalid-regexp.js b/tools/eslint/lib/rules/no-invalid-regexp.js
index 1598bc60203075..014e70583877e7 100644
--- a/tools/eslint/lib/rules/no-invalid-regexp.js
+++ b/tools/eslint/lib/rules/no-invalid-regexp.js
@@ -17,6 +17,13 @@ var espree = require("espree");
module.exports = function(context) {
+ var options = context.options[0],
+ allowedFlags = "";
+
+ if (options && options.allowConstructorFlags) {
+ allowedFlags = options.allowConstructorFlags.join("");
+ }
+
/**
* Check if node is a string
* @param {ASTNode} node node to evaluate
@@ -37,6 +44,10 @@ module.exports = function(context) {
if (node.callee.type === "Identifier" && node.callee.name === "RegExp" && isString(node.arguments[0])) {
var flags = isString(node.arguments[1]) ? node.arguments[1].value : "";
+ if (allowedFlags) {
+ flags = flags.replace(new RegExp("[" + allowedFlags + "]", "gi"), "");
+ }
+
try {
void new RegExp(node.arguments[0].value);
} catch (e) {
@@ -62,4 +73,15 @@ module.exports = function(context) {
};
-module.exports.schema = [];
+module.exports.schema = [{
+ "type": "object",
+ "properties": {
+ "allowConstructorFlags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false
+}];
diff --git a/tools/eslint/lib/rules/no-invalid-this.js b/tools/eslint/lib/rules/no-invalid-this.js
index 0bde480c2ad903..0a9e535542c298 100644
--- a/tools/eslint/lib/rules/no-invalid-this.js
+++ b/tools/eslint/lib/rules/no-invalid-this.js
@@ -32,6 +32,7 @@ module.exports = function(context) {
*/
stack.getCurrent = function() {
var current = this[this.length - 1];
+
if (!current.init) {
current.init = true;
current.valid = !astUtils.isDefaultThisBinding(
@@ -52,6 +53,7 @@ module.exports = function(context) {
* @returns {void}
*/
function enterFunction(node) {
+
// `this` can be invalid only under strict mode.
stack.push({
init: !context.getScope().isStrict,
@@ -69,8 +71,11 @@ module.exports = function(context) {
}
return {
- // `this` is invalid only under strict mode.
- // Modules is always strict mode.
+
+ /*
+ * `this` is invalid only under strict mode.
+ * Modules is always strict mode.
+ */
"Program": function(node) {
var scope = context.getScope(),
features = context.parserOptions.ecmaFeatures || {};
@@ -85,6 +90,7 @@ module.exports = function(context) {
)
});
},
+
"Program:exit": function() {
stack.pop();
},
@@ -97,6 +103,7 @@ module.exports = function(context) {
// Reports if `this` of the current context is invalid.
"ThisExpression": function(node) {
var current = stack.getCurrent();
+
if (current && !current.valid) {
context.report(node, "Unexpected 'this'.");
}
diff --git a/tools/eslint/lib/rules/no-irregular-whitespace.js b/tools/eslint/lib/rules/no-irregular-whitespace.js
index b49f747b8a08be..a849f060bd9e96 100644
--- a/tools/eslint/lib/rules/no-irregular-whitespace.js
+++ b/tools/eslint/lib/rules/no-irregular-whitespace.js
@@ -1,6 +1,7 @@
/**
* @fileoverview Rule to disalow whitespace that is not a tab or space, whitespace inside strings and comments are allowed
* @author Jonathan Kingston
+ * @author Christophe Porteneuve
* @copyright 2014 Jonathan Kingston. All rights reserved.
*/
@@ -18,18 +19,26 @@ module.exports = function(context) {
// Module store of errors that we have found
var errors = [];
+ // Comment nodes. We accumulate these as we go, so we can be sure to trigger them after the whole `Program` entity is parsed, even for top-of-file comments.
+ var commentNodes = [];
+
+ // Lookup the `skipComments` option, which defaults to `false`.
+ var options = context.options[0] || {};
+ var skipComments = !!options.skipComments;
+
/**
* Removes errors that occur inside a string node
* @param {ASTNode} node to check for matching errors.
* @returns {void}
* @private
*/
- function removeStringError(node) {
+ function removeWhitespaceError(node) {
var locStart = node.loc.start;
var locEnd = node.loc.end;
errors = errors.filter(function(error) {
var errorLoc = error[1];
+
if (errorLoc.line >= locStart.line && errorLoc.line <= locEnd.line) {
if (errorLoc.column >= locStart.column && (errorLoc.column <= locEnd.column || errorLoc.line < locEnd.line)) {
return false;
@@ -40,20 +49,33 @@ module.exports = function(context) {
}
/**
- * Checks nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors
+ * Checks identifier or literal nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors
* @param {ASTNode} node to check for matching errors.
* @returns {void}
* @private
*/
- function removeInvalidNodeErrors(node) {
+ function removeInvalidNodeErrorsInIdentifierOrLiteral(node) {
if (typeof node.value === "string") {
+
// If we have irregular characters remove them from the errors list
if (node.raw.match(irregularWhitespace) || node.raw.match(irregularLineTerminators)) {
- removeStringError(node);
+ removeWhitespaceError(node);
}
}
}
+ /**
+ * Checks comment nodes for errors that we are choosing to ignore and calls the relevant methods to remove the errors
+ * @param {ASTNode} node to check for matching errors.
+ * @returns {void}
+ * @private
+ */
+ function removeInvalidNodeErrorsInComment(node) {
+ if (node.value.match(irregularWhitespace) || node.value.match(irregularLineTerminators)) {
+ removeWhitespaceError(node);
+ }
+ }
+
/**
* Checks the program source for irregular whitespace
* @param {ASTNode} node The program node
@@ -107,23 +129,53 @@ module.exports = function(context) {
}
}
+ /**
+ * Stores a comment node (`LineComment` or `BlockComment`) for later stripping of errors within; a necessary deferring of processing to deal with top-of-file comments.
+ * @param {ASTNode} node The comment node
+ * @returns {void}
+ * @private
+ */
+ function rememberCommentNode(node) {
+ commentNodes.push(node);
+ }
+
+ /**
+ * A no-op function to act as placeholder for comment accumulation when the `skipComments` option is `false`.
+ * @returns {void}
+ * @private
+ */
+ function noop() {}
+
return {
"Program": function(node) {
- /**
- * As we can easily fire warnings for all white space issues with all the source its simpler to fire them here
- * This means we can check all the application code without having to worry about issues caused in the parser tokens
- * When writing this code also evaluating per node was missing out connecting tokens in some cases
- * We can later filter the errors when they are found to be not an issue in nodes we don't care about
+
+ /*
+ * As we can easily fire warnings for all white space issues with
+ * all the source its simpler to fire them here.
+ * This means we can check all the application code without having
+ * to worry about issues caused in the parser tokens.
+ * When writing this code also evaluating per node was missing out
+ * connecting tokens in some cases.
+ * We can later filter the errors when they are found to be not an
+ * issue in nodes we don't care about.
*/
checkForIrregularWhitespace(node);
checkForIrregularLineTerminators(node);
},
- "Identifier": removeInvalidNodeErrors,
- "Literal": removeInvalidNodeErrors,
+ "Identifier": removeInvalidNodeErrorsInIdentifierOrLiteral,
+ "Literal": removeInvalidNodeErrorsInIdentifierOrLiteral,
+ "LineComment": skipComments ? rememberCommentNode : noop,
+ "BlockComment": skipComments ? rememberCommentNode : noop,
"Program:exit": function() {
+ if (skipComments) {
+
+ // First strip errors occurring in comment nodes. We have to do this post-`Program` to deal with top-of-file comments.
+ commentNodes.forEach(removeInvalidNodeErrorsInComment);
+ }
+
// If we have any errors remaining report on them
errors.forEach(function(error) {
context.report.apply(context, error);
@@ -132,4 +184,14 @@ module.exports = function(context) {
};
};
-module.exports.schema = [];
+module.exports.schema = [
+ {
+ "type": "object",
+ "properties": {
+ "skipComments": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ }
+];
diff --git a/tools/eslint/lib/rules/no-labels.js b/tools/eslint/lib/rules/no-labels.js
index 7d7ac206c135f3..fe42c3d886d594 100644
--- a/tools/eslint/lib/rules/no-labels.js
+++ b/tools/eslint/lib/rules/no-labels.js
@@ -62,6 +62,7 @@ module.exports = function(context) {
*/
function getKind(label) {
var info = scopeInfo;
+
while (info) {
if (info.label === label) {
return info.kind;
diff --git a/tools/eslint/lib/rules/no-lone-blocks.js b/tools/eslint/lib/rules/no-lone-blocks.js
index 07f819ec78f7fc..976a817b5e3075 100644
--- a/tools/eslint/lib/rules/no-lone-blocks.js
+++ b/tools/eslint/lib/rules/no-lone-blocks.js
@@ -24,6 +24,7 @@ module.exports = function(context) {
*/
function report(node) {
var parent = context.getAncestors().pop();
+
context.report(node, parent.type === "Program" ?
"Block is redundant." :
"Nested block is redundant."
@@ -36,6 +37,7 @@ module.exports = function(context) {
*/
function isLoneBlock() {
var parent = context.getAncestors().pop();
+
return parent.type === "BlockStatement" || parent.type === "Program";
}
diff --git a/tools/eslint/lib/rules/no-loop-func.js b/tools/eslint/lib/rules/no-loop-func.js
index d2dd27ba771b6a..0ab2fb853ac4e6 100644
--- a/tools/eslint/lib/rules/no-loop-func.js
+++ b/tools/eslint/lib/rules/no-loop-func.js
@@ -22,6 +22,7 @@
*/
function getContainingLoopNode(node) {
var parent = node.parent;
+
while (parent) {
switch (parent.type) {
case "WhileStatement":
@@ -29,6 +30,7 @@ function getContainingLoopNode(node) {
return parent;
case "ForStatement":
+
// `init` is outside of the loop.
if (parent.init !== node) {
return parent;
@@ -37,6 +39,7 @@ function getContainingLoopNode(node) {
case "ForInStatement":
case "ForOfStatement":
+
// `right` is outside of the loop.
if (parent.right !== node) {
return parent;
@@ -46,6 +49,7 @@ function getContainingLoopNode(node) {
case "ArrowFunctionExpression":
case "FunctionExpression":
case "FunctionDeclaration":
+
// We don't need to check nested functions.
return null;
@@ -133,6 +137,7 @@ function isSafe(funcNode, loopNode, reference) {
*/
function isSafeReference(upperRef) {
var id = upperRef.identifier;
+
return (
!upperRef.isWrite() ||
variable.scope.variableScope === upperRef.from.variableScope &&
@@ -148,6 +153,7 @@ function isSafe(funcNode, loopNode, reference) {
//------------------------------------------------------------------------------
module.exports = function(context) {
+
/**
* Reports functions which match the following condition:
*
@@ -159,11 +165,13 @@ module.exports = function(context) {
*/
function checkForLoops(node) {
var loopNode = getContainingLoopNode(node);
+
if (!loopNode) {
return;
}
var references = context.getScope().through;
+
if (references.length > 0 &&
!references.every(isSafe.bind(null, node, loopNode))
) {
diff --git a/tools/eslint/lib/rules/no-magic-numbers.js b/tools/eslint/lib/rules/no-magic-numbers.js
index 40d885f5f81b46..e7532bd51ecd84 100644
--- a/tools/eslint/lib/rules/no-magic-numbers.js
+++ b/tools/eslint/lib/rules/no-magic-numbers.js
@@ -74,6 +74,15 @@ module.exports = function(context) {
parent.callee.property.name === "parseInt");
}
+ /**
+ * Returns whether the number should be ignored when used to define a JSX prop
+ * @param {ASTNode} parent - the non-"UnaryExpression" parent
+ * @returns {boolean} true if the number should be ignored
+ */
+ function shouldIgnoreJSXNumbers(parent) {
+ return parent.type.indexOf("JSX") === 0;
+ }
+
/**
* Returns whether the number should be ignored when used as an array index with enabled 'ignoreArrayIndexes' option.
* @param {ASTNode} parent - the non-"UnaryExpression" parent.
@@ -104,7 +113,8 @@ module.exports = function(context) {
if (shouldIgnoreNumber(value) ||
shouldIgnoreParseInt(parent, node) ||
- shouldIgnoreArrayIndexes(parent)) {
+ shouldIgnoreArrayIndexes(parent) ||
+ shouldIgnoreJSXNumbers(parent)) {
return;
}
diff --git a/tools/eslint/lib/rules/no-mixed-requires.js b/tools/eslint/lib/rules/no-mixed-requires.js
index c1b921ed5df134..63494d95256bb7 100644
--- a/tools/eslint/lib/rules/no-mixed-requires.js
+++ b/tools/eslint/lib/rules/no-mixed-requires.js
@@ -28,8 +28,12 @@ module.exports = function(context) {
* @returns {string[]} An array of built-in Node.js modules.
*/
function getBuiltinModules() {
- // This list is generated using `require("repl")._builtinLibs.concat('repl').sort()`
- // This particular list is as per nodejs v0.12.2 and iojs v0.7.1
+
+ /*
+ * This list is generated using:
+ * `require("repl")._builtinLibs.concat('repl').sort()`
+ * This particular list is as per nodejs v0.12.2 and iojs v0.7.1
+ */
return [
"assert", "buffer", "child_process", "cluster", "crypto",
"dgram", "dns", "domain", "events", "fs", "http", "https",
@@ -57,6 +61,7 @@ module.exports = function(context) {
*/
function getDeclarationType(initExpression) {
if (!initExpression) {
+
// "var x;"
return DECL_UNINITIALIZED;
}
@@ -65,15 +70,18 @@ module.exports = function(context) {
initExpression.callee.type === "Identifier" &&
initExpression.callee.name === "require"
) {
+
// "var x = require('util');"
return DECL_REQUIRE;
} else if (allowCall &&
initExpression.type === "CallExpression" &&
initExpression.callee.type === "CallExpression"
) {
+
// "var x = require('diagnose')('sub-module');"
return getDeclarationType(initExpression.callee);
} else if (initExpression.type === "MemberExpression") {
+
// "var x = require('glob').Glob;"
return getDeclarationType(initExpression.object);
}
@@ -89,9 +97,11 @@ module.exports = function(context) {
*/
function inferModuleType(initExpression) {
if (initExpression.type === "MemberExpression") {
+
// "var x = require('glob').Glob;"
return inferModuleType(initExpression.object);
} else if (initExpression.arguments.length === 0) {
+
// "var x = require();"
return REQ_COMPUTED;
}
@@ -99,17 +109,21 @@ module.exports = function(context) {
var arg = initExpression.arguments[0];
if (arg.type !== "Literal" || typeof arg.value !== "string") {
+
// "var x = require(42);"
return REQ_COMPUTED;
}
if (BUILTIN_MODULES.indexOf(arg.value) !== -1) {
+
// "var fs = require('fs');"
return REQ_CORE;
} else if (/^\.{0,2}\//.test(arg.value)) {
+
// "var utils = require('./utils');"
return REQ_FILE;
} else {
+
// "var async = require('async');"
return REQ_MODULE;
}
@@ -126,6 +140,7 @@ module.exports = function(context) {
declarations.forEach(function(declaration) {
var type = getDeclarationType(declaration.init);
+
contains[type] = true;
});
diff --git a/tools/eslint/lib/rules/no-mixed-spaces-and-tabs.js b/tools/eslint/lib/rules/no-mixed-spaces-and-tabs.js
index 6ce27dadc74905..b7b191cf02b42d 100644
--- a/tools/eslint/lib/rules/no-mixed-spaces-and-tabs.js
+++ b/tools/eslint/lib/rules/no-mixed-spaces-and-tabs.js
@@ -66,6 +66,7 @@ module.exports = function(context) {
},
"Program:exit": function(node) {
+
/*
* At least one space followed by a tab
* or the reverse before non-tab/-space
@@ -93,6 +94,7 @@ module.exports = function(context) {
});
if (smartTabs) {
+
/*
* At least one space followed by a tab
* before non-tab/-space characters begin.
diff --git a/tools/eslint/lib/rules/no-multi-spaces.js b/tools/eslint/lib/rules/no-multi-spaces.js
index c6177e32825c5b..e57bdd3910da56 100644
--- a/tools/eslint/lib/rules/no-multi-spaces.js
+++ b/tools/eslint/lib/rules/no-multi-spaces.js
@@ -70,7 +70,7 @@ module.exports = function(context) {
var source = context.getSource(),
allComments = context.getAllComments(),
- pattern = /[^\n\r\u2028\u2029 ] {2,}/g, // note: repeating space
+ pattern = /[^\n\r\u2028\u2029\t ].? {2,}/g, // note: repeating space
token,
previousToken,
parent;
diff --git a/tools/eslint/lib/rules/no-multiple-empty-lines.js b/tools/eslint/lib/rules/no-multiple-empty-lines.js
index c41458d9528c0e..34b9b8eff93ffd 100644
--- a/tools/eslint/lib/rules/no-multiple-empty-lines.js
+++ b/tools/eslint/lib/rules/no-multiple-empty-lines.js
@@ -35,6 +35,7 @@ module.exports = function(context) {
"TemplateLiteral": function(node) {
var start = node.loc.start.line;
var end = node.loc.end.line;
+
while (start <= end) {
notEmpty.push(start);
start++;
@@ -53,6 +54,7 @@ module.exports = function(context) {
lines.forEach(function(str, i) {
var trimmed = str.trim();
+
if ((firstNonBlankLine === -1) && (trimmed !== "")) {
firstNonBlankLine = i;
}
@@ -66,13 +68,18 @@ module.exports = function(context) {
});
if (typeof maxEOF === "undefined") {
- // swallow the final newline, as some editors add it
- // automatically and we don't want it to cause an issue
+
+ /*
+ * Swallow the final newline, as some editors add it
+ * automatically and we don't want it to cause an issue
+ */
if (trimmedLines[trimmedLines.length - 1] === "") {
trimmedLines = trimmedLines.slice(0, -1);
}
+
firstOfEndingBlankLines = trimmedLines.length;
} else {
+
// save the number of the first of the last blank lines
firstOfEndingBlankLines = trimmedLines.length;
while (trimmedLines[firstOfEndingBlankLines - 1] === ""
@@ -99,17 +106,26 @@ module.exports = function(context) {
line: lastLocation + 1,
column: 1
};
+
if (lastLocation < firstOfEndingBlankLines) {
+
// within the file, not at the end
if (blankCounter >= max) {
- context.report(node, location,
- "More than " + max + " blank " + (max === 1 ? "line" : "lines") + " not allowed.");
+ context.report({
+ node: node,
+ loc: location,
+ message: "More than " + max + " blank " + (max === 1 ? "line" : "lines") + " not allowed."
+ });
}
} else {
+
// inside the last blank lines
if (blankCounter > maxEOF) {
- context.report(node, location,
- "Too many blank lines at the end of file. Max of " + maxEOF + " allowed.");
+ context.report({
+ node: node,
+ loc: location,
+ message: "Too many blank lines at the end of file. Max of " + maxEOF + " allowed."
+ });
}
}
diff --git a/tools/eslint/lib/rules/no-native-reassign.js b/tools/eslint/lib/rules/no-native-reassign.js
index 50175388acd252..b4323369e42c03 100644
--- a/tools/eslint/lib/rules/no-native-reassign.js
+++ b/tools/eslint/lib/rules/no-native-reassign.js
@@ -25,6 +25,7 @@ module.exports = function(context) {
if (reference.init === false &&
reference.isWrite() &&
+
// Destructuring assignments can have multiple default value,
// so possibly there are multiple writeable references for the same identifier.
(index === 0 || references[index - 1].identifier !== identifier)
@@ -51,6 +52,7 @@ module.exports = function(context) {
return {
"Program": function() {
var globalScope = context.getScope();
+
globalScope.variables.forEach(checkVariable);
}
};
diff --git a/tools/eslint/lib/rules/no-new-symbol.js b/tools/eslint/lib/rules/no-new-symbol.js
index aeae5d62f057ae..143deec0a3c996 100644
--- a/tools/eslint/lib/rules/no-new-symbol.js
+++ b/tools/eslint/lib/rules/no-new-symbol.js
@@ -17,9 +17,11 @@ module.exports = function(context) {
"Program:exit": function() {
var globalScope = context.getScope();
var variable = globalScope.set.get("Symbol");
+
if (variable && variable.defs.length === 0) {
variable.references.forEach(function(ref) {
var node = ref.identifier;
+
if (node.parent && node.parent.type === "NewExpression") {
context.report(node, "`Symbol` cannot be called as a constructor.");
}
diff --git a/tools/eslint/lib/rules/no-new-wrappers.js b/tools/eslint/lib/rules/no-new-wrappers.js
index da609572da39f8..88c22c13c4b3f3 100644
--- a/tools/eslint/lib/rules/no-new-wrappers.js
+++ b/tools/eslint/lib/rules/no-new-wrappers.js
@@ -15,6 +15,7 @@ module.exports = function(context) {
"NewExpression": function(node) {
var wrapperObjects = ["String", "Number", "Boolean", "Math", "JSON"];
+
if (wrapperObjects.indexOf(node.callee.name) > -1) {
context.report(node, "Do not use {{fn}} as a constructor.", { fn: node.callee.name });
}
diff --git a/tools/eslint/lib/rules/no-obj-calls.js b/tools/eslint/lib/rules/no-obj-calls.js
index f3845c508fb75f..e8f1c94611295b 100644
--- a/tools/eslint/lib/rules/no-obj-calls.js
+++ b/tools/eslint/lib/rules/no-obj-calls.js
@@ -16,6 +16,7 @@ module.exports = function(context) {
if (node.callee.type === "Identifier") {
var name = node.callee.name;
+
if (name === "Math" || name === "JSON") {
context.report(node, "'{{name}}' is not a function.", { name: name });
}
diff --git a/tools/eslint/lib/rules/no-param-reassign.js b/tools/eslint/lib/rules/no-param-reassign.js
index 6bfa681afb46b9..9c7dc0bff23a11 100644
--- a/tools/eslint/lib/rules/no-param-reassign.js
+++ b/tools/eslint/lib/rules/no-param-reassign.js
@@ -15,58 +15,52 @@ module.exports = function(context) {
var props = context.options[0] && Boolean(context.options[0].props);
/**
- * Checks whether or not a reference modifies its variable.
- * If the `props` option is `true`, this checks whether or not the reference modifies properties of its variable also.
+ * Checks whether or not the reference modifies properties of its variable.
* @param {Reference} reference - A reference to check.
- * @returns {boolean} Whether or not the reference modifies its variable.
+ * @returns {boolean} Whether or not the reference modifies properties of its variable.
*/
- function isModifying(reference) {
- if (reference.isWrite()) {
- return true;
- }
+ function isModifyingProp(reference) {
+ var node = reference.identifier;
+ var parent = node.parent;
- // Checks whether its property is modified.
- if (props) {
- var node = reference.identifier;
- var parent = node.parent;
- while (parent && !stopNodePattern.test(parent.type)) {
- switch (parent.type) {
- // e.g. foo.a = 0;
- case "AssignmentExpression":
- return parent.left === node;
-
- // e.g. ++foo.a;
- case "UpdateExpression":
- return true;
+ while (parent && !stopNodePattern.test(parent.type)) {
+ switch (parent.type) {
+
+ // e.g. foo.a = 0;
+ case "AssignmentExpression":
+ return parent.left === node;
- // e.g. delete foo.a;
- case "UnaryExpression":
- if (parent.operator === "delete") {
- return true;
- }
- break;
-
- // EXCLUDES: e.g. cache.get(foo.a).b = 0;
- case "CallExpression":
- if (parent.callee !== node) {
- return false;
- }
- break;
-
- // EXCLUDES: e.g. cache[foo.a] = 0;
- case "MemberExpression":
- if (parent.property === node) {
- return false;
- }
- break;
-
- default:
- break;
- }
-
- node = parent;
- parent = parent.parent;
+ // e.g. ++foo.a;
+ case "UpdateExpression":
+ return true;
+
+ // e.g. delete foo.a;
+ case "UnaryExpression":
+ if (parent.operator === "delete") {
+ return true;
+ }
+ break;
+
+ // EXCLUDES: e.g. cache.get(foo.a).b = 0;
+ case "CallExpression":
+ if (parent.callee !== node) {
+ return false;
+ }
+ break;
+
+ // EXCLUDES: e.g. cache[foo.a] = 0;
+ case "MemberExpression":
+ if (parent.property === node) {
+ return false;
+ }
+ break;
+
+ default:
+ break;
}
+
+ node = parent;
+ parent = node.parent;
}
return false;
@@ -84,15 +78,22 @@ module.exports = function(context) {
if (identifier &&
!reference.init &&
- isModifying(reference) &&
+
// Destructuring assignments can have multiple default value,
// so possibly there are multiple writeable references for the same identifier.
(index === 0 || references[index - 1].identifier !== identifier)
) {
- context.report(
- identifier,
- "Assignment to function parameter '{{name}}'.",
- {name: identifier.name});
+ if (reference.isWrite()) {
+ context.report(
+ identifier,
+ "Assignment to function parameter '{{name}}'.",
+ {name: identifier.name});
+ } else if (props && isModifyingProp(reference)) {
+ context.report(
+ identifier,
+ "Assignment to property of function parameter '{{name}}'.",
+ {name: identifier.name});
+ }
}
}
@@ -117,6 +118,7 @@ module.exports = function(context) {
}
return {
+
// `:exit` is needed for the `node.parent` property of identifier nodes.
"FunctionDeclaration:exit": checkForFunction,
"FunctionExpression:exit": checkForFunction,
diff --git a/tools/eslint/lib/rules/no-restricted-globals.js b/tools/eslint/lib/rules/no-restricted-globals.js
new file mode 100644
index 00000000000000..3cb64a485e9a10
--- /dev/null
+++ b/tools/eslint/lib/rules/no-restricted-globals.js
@@ -0,0 +1,71 @@
+/**
+ * @fileoverview Restrict usage of specified globals.
+ * @author Benoît Zugmeyer
+ * @copyright 2016 Benoît Zugmeyer. All rights reserved.
+ * See LICENSE file in root directory for full license.
+ */
+"use strict";
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+module.exports = function(context) {
+ var restrictedGlobals = context.options;
+
+ // if no globals are restricted we don't need to check
+ if (restrictedGlobals.length === 0) {
+ return {};
+ }
+
+ /**
+ * Report a variable to be used as a restricted global.
+ * @param {Reference} reference the variable reference
+ * @returns {void}
+ * @private
+ */
+ function reportReference(reference) {
+ context.report(reference.identifier, "Unexpected use of '{{name}}'", {
+ name: reference.identifier.name
+ });
+ }
+
+ /**
+ * Check if the given name is a restricted global name.
+ * @param {string} name name of a variable
+ * @returns {boolean} whether the variable is a restricted global or not
+ * @private
+ */
+ function isRestricted(name) {
+ return restrictedGlobals.indexOf(name) >= 0;
+ }
+
+ return {
+ "Program": function() {
+ var scope = context.getScope();
+
+ // Report variables declared elsewhere (ex: variables defined as "global" by eslint)
+ scope.variables.forEach(function(variable) {
+ if (!variable.defs.length && isRestricted(variable.name)) {
+ variable.references.forEach(reportReference);
+ }
+ });
+
+ // Report variables not declared at all
+ scope.through.forEach(function(reference) {
+ if (isRestricted(reference.identifier.name)) {
+ reportReference(reference);
+ }
+ });
+
+ }
+ };
+};
+
+module.exports.schema = {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "uniqueItems": true
+};
diff --git a/tools/eslint/lib/rules/no-restricted-modules.js b/tools/eslint/lib/rules/no-restricted-modules.js
index b915ed8cd349d9..97097c41b05172 100644
--- a/tools/eslint/lib/rules/no-restricted-modules.js
+++ b/tools/eslint/lib/rules/no-restricted-modules.js
@@ -9,6 +9,7 @@
//------------------------------------------------------------------------------
module.exports = function(context) {
+
// trim restricted module names
var restrictedModules = context.options;
diff --git a/tools/eslint/lib/rules/no-restricted-syntax.js b/tools/eslint/lib/rules/no-restricted-syntax.js
index 1f88beda994c21..52175835c89677 100644
--- a/tools/eslint/lib/rules/no-restricted-syntax.js
+++ b/tools/eslint/lib/rules/no-restricted-syntax.js
@@ -12,6 +12,7 @@
var nodeTypes = require("espree").Syntax;
module.exports = function(context) {
+
/**
* Generates a warning from the provided node, saying that node type is not allowed.
* @param {ASTNode} node The node to warn on
diff --git a/tools/eslint/lib/rules/no-return-assign.js b/tools/eslint/lib/rules/no-return-assign.js
index 58d1db4222f27c..dc02897d4101d3 100644
--- a/tools/eslint/lib/rules/no-return-assign.js
+++ b/tools/eslint/lib/rules/no-return-assign.js
@@ -54,11 +54,13 @@ module.exports = function(context) {
return {
"ReturnStatement": function(node) {
var message = "Return statement should not contain assignment.";
+
checkForAssignInReturn(node.argument, node, message);
},
"ArrowFunctionExpression": function(node) {
if (node.body.type !== "BlockStatement") {
var message = "Arrow function should not return assignment.";
+
checkForAssignInReturn(node.body, node, message);
}
}
diff --git a/tools/eslint/lib/rules/no-self-assign.js b/tools/eslint/lib/rules/no-self-assign.js
index 67af024191b455..2a03cab4072cf2 100644
--- a/tools/eslint/lib/rules/no-self-assign.js
+++ b/tools/eslint/lib/rules/no-self-assign.js
@@ -25,6 +25,7 @@ function eachSelfAssignment(left, right, report) {
var i, j;
if (!left || !right) {
+
// do nothing
} else if (
left.type === "Identifier" &&
@@ -37,6 +38,7 @@ function eachSelfAssignment(left, right, report) {
right.type === "ArrayExpression"
) {
var end = Math.min(left.elements.length, right.elements.length);
+
for (i = 0; i < end; ++i) {
var rightElement = right.elements[i];
@@ -57,9 +59,11 @@ function eachSelfAssignment(left, right, report) {
right.type === "ObjectExpression" &&
right.properties.length >= 1
) {
+
// Gets the index of the last spread property.
// It's possible to overwrite properties followed by it.
var startJ = 0;
+
for (i = right.properties.length - 1; i >= 0; --i) {
if (right.properties[i].type === "ExperimentalSpreadProperty") {
startJ = i + 1;
@@ -94,6 +98,7 @@ function eachSelfAssignment(left, right, report) {
//------------------------------------------------------------------------------
module.exports = function(context) {
+
/**
* Reports a given node as self assignments.
*
@@ -110,7 +115,9 @@ module.exports = function(context) {
return {
"AssignmentExpression": function(node) {
- eachSelfAssignment(node.left, node.right, report);
+ if (node.operator === "=") {
+ eachSelfAssignment(node.left, node.right, report);
+ }
}
};
};
diff --git a/tools/eslint/lib/rules/no-self-compare.js b/tools/eslint/lib/rules/no-self-compare.js
index 6d8e11a5950261..9ab99d48f87d52 100644
--- a/tools/eslint/lib/rules/no-self-compare.js
+++ b/tools/eslint/lib/rules/no-self-compare.js
@@ -16,6 +16,7 @@ module.exports = function(context) {
"BinaryExpression": function(node) {
var operators = ["===", "==", "!==", "!=", ">", "<", ">=", "<="];
+
if (operators.indexOf(node.operator) > -1 &&
(node.left.type === "Identifier" && node.right.type === "Identifier" && node.left.name === node.right.name ||
node.left.type === "Literal" && node.right.type === "Literal" && node.left.value === node.right.value)) {
diff --git a/tools/eslint/lib/rules/no-sequences.js b/tools/eslint/lib/rules/no-sequences.js
index 538e36a12fc2a6..032c879f8e5d49 100644
--- a/tools/eslint/lib/rules/no-sequences.js
+++ b/tools/eslint/lib/rules/no-sequences.js
@@ -68,6 +68,7 @@ module.exports = function(context) {
return {
"SequenceExpression": function(node) {
+
// Always allow sequences in for statement update
if (node.parent.type === "ForStatement" &&
(node === node.parent.init || node === node.parent.update)) {
@@ -86,6 +87,7 @@ module.exports = function(context) {
}
var child = context.getTokenAfter(node.expressions[0]);
+
context.report(node, child.loc.start, "Unexpected use of comma operator.");
}
};
diff --git a/tools/eslint/lib/rules/no-shadow.js b/tools/eslint/lib/rules/no-shadow.js
index 6414e53e21003d..16432d6b02c6c0 100644
--- a/tools/eslint/lib/rules/no-shadow.js
+++ b/tools/eslint/lib/rules/no-shadow.js
@@ -45,6 +45,7 @@ module.exports = function(context) {
*/
function isDuplicatedClassNameVariable(variable) {
var block = variable.scope.block;
+
return block.type === "ClassDeclaration" && block.id === variable.identifiers[0];
}
@@ -83,6 +84,7 @@ module.exports = function(context) {
*/
function getNameRange(variable) {
var def = variable.defs[0];
+
return def && def.name.range;
}
@@ -96,10 +98,12 @@ module.exports = function(context) {
var outerDef = scopeVar.defs[0];
var inner = getNameRange(variable);
var outer = getNameRange(scopeVar);
+
return (
inner &&
outer &&
inner[1] < outer[0] &&
+
// Excepts FunctionDeclaration if is {"hoist":"function"}.
(options.hoist !== "functions" || !outerDef || outerDef.node.type !== "FunctionDeclaration")
);
@@ -112,6 +116,7 @@ module.exports = function(context) {
*/
function checkForShadows(scope) {
var variables = scope.variables;
+
for (var i = 0; i < variables.length; ++i) {
var variable = variables[i];
@@ -125,6 +130,7 @@ module.exports = function(context) {
// Gets shadowed variable.
var shadowed = astUtils.getVariableByName(scope.upper, variable.name);
+
if (shadowed &&
(shadowed.identifiers.length > 0 || (options.builtinGlobals && "writeable" in shadowed)) &&
!isOnInitializer(variable, shadowed) &&
diff --git a/tools/eslint/lib/rules/no-this-before-super.js b/tools/eslint/lib/rules/no-this-before-super.js
index ade30340c6c64c..4e6c47fda8d851 100644
--- a/tools/eslint/lib/rules/no-this-before-super.js
+++ b/tools/eslint/lib/rules/no-this-before-super.js
@@ -36,18 +36,24 @@ function isConstructorFunction(node) {
//------------------------------------------------------------------------------
module.exports = function(context) {
- // {{hasExtends: boolean, scope: Scope}[]}
- // Information for each constructor.
- // - upper: Information of the upper constructor.
- // - hasExtends: A flag which shows whether the owner class has a valid
- // `extends` part.
- // - scope: The scope of the owner class.
- // - codePath: The code path of this constructor.
+
+ /*
+ * Information for each constructor.
+ * - upper: Information of the upper constructor.
+ * - hasExtends: A flag which shows whether the owner class has a valid
+ * `extends` part.
+ * - scope: The scope of the owner class.
+ * - codePath: The code path of this constructor.
+ */
var funcInfo = null;
- // {Map}
- // Information for each code path segment.
- // The value is a flag which shows `super()` called in all code paths.
+ /*
+ * Information for each code path segment.
+ * Each key is the id of a code path segment.
+ * Each value is an object:
+ * - superCalled: The flag which shows `super()` called in all code paths.
+ * - invalidNodes: The array of invalid ThisExpression and Super nodes.
+ */
var segInfoMap = Object.create(null);
/**
@@ -56,19 +62,15 @@ module.exports = function(context) {
* @returns {boolean} `true` if `super()` is called.
*/
function isCalled(segment) {
- return Boolean(segInfoMap[segment.id]);
+ return segInfoMap[segment.id].superCalled;
}
/**
* Checks whether or not this is in a constructor.
* @returns {boolean} `true` if this is in a constructor.
*/
- function isInConstructor() {
- return Boolean(
- funcInfo &&
- funcInfo.hasExtends &&
- funcInfo.scope === context.getScope().variableScope
- );
+ function isInConstructorOfDerivedClass() {
+ return Boolean(funcInfo && funcInfo.isConstructor && funcInfo.hasExtends);
}
/**
@@ -77,46 +79,107 @@ module.exports = function(context) {
*/
function isBeforeCallOfSuper() {
return (
- isInConstructor(funcInfo) &&
+ isInConstructorOfDerivedClass(funcInfo) &&
!funcInfo.codePath.currentSegments.every(isCalled)
);
}
+ /**
+ * Sets a given node as invalid.
+ * @param {ASTNode} node - A node to set as invalid. This is one of
+ * a ThisExpression and a Super.
+ * @returns {void}
+ */
+ function setInvalid(node) {
+ var segments = funcInfo.codePath.currentSegments;
+
+ for (var i = 0; i < segments.length; ++i) {
+ segInfoMap[segments[i].id].invalidNodes.push(node);
+ }
+ }
+
+ /**
+ * Sets the current segment as `super` was called.
+ * @returns {void}
+ */
+ function setSuperCalled() {
+ var segments = funcInfo.codePath.currentSegments;
+
+ for (var i = 0; i < segments.length; ++i) {
+ segInfoMap[segments[i].id].superCalled = true;
+ }
+ }
+
return {
+
/**
- * Stacks a constructor information.
+ * Adds information of a constructor into the stack.
* @param {CodePath} codePath - A code path which was started.
* @param {ASTNode} node - The current node.
* @returns {void}
*/
"onCodePathStart": function(codePath, node) {
- if (!isConstructorFunction(node)) {
- return;
- }
+ if (isConstructorFunction(node)) {
- // Class > ClassBody > MethodDefinition > FunctionExpression
- var classNode = node.parent.parent.parent;
- funcInfo = {
- upper: funcInfo,
- hasExtends: Boolean(
- classNode.superClass &&
- !astUtils.isNullOrUndefined(classNode.superClass)
- ),
- scope: context.getScope(),
- codePath: codePath
- };
+ // Class > ClassBody > MethodDefinition > FunctionExpression
+ var classNode = node.parent.parent.parent;
+
+ funcInfo = {
+ upper: funcInfo,
+ isConstructor: true,
+ hasExtends: Boolean(
+ classNode.superClass &&
+ !astUtils.isNullOrUndefined(classNode.superClass)
+ ),
+ codePath: codePath
+ };
+ } else {
+ funcInfo = {
+ upper: funcInfo,
+ isConstructor: false,
+ hasExtends: false,
+ codePath: codePath
+ };
+ }
},
/**
- * Pops a constructor information.
+ * Removes the top of stack item.
+ *
+ * And this treverses all segments of this code path then reports every
+ * invalid node.
+ *
* @param {CodePath} codePath - A code path which was ended.
* @param {ASTNode} node - The current node.
* @returns {void}
*/
- "onCodePathEnd": function(codePath, node) {
- if (isConstructorFunction(node)) {
- funcInfo = funcInfo.upper;
+ "onCodePathEnd": function(codePath) {
+ var isDerivedClass = funcInfo.hasExtends;
+
+ funcInfo = funcInfo.upper;
+ if (!isDerivedClass) {
+ return;
}
+
+ codePath.traverseSegments(function(segment, controller) {
+ var info = segInfoMap[segment.id];
+
+ for (var i = 0; i < info.invalidNodes.length; ++i) {
+ var invalidNode = info.invalidNodes[i];
+
+ context.report({
+ message: "'{{kind}}' is not allowed before 'super()'.",
+ node: invalidNode,
+ data: {
+ kind: invalidNode.type === "Super" ? "super" : "this"
+ }
+ });
+ }
+
+ if (info.superCalled) {
+ controller.skip();
+ }
+ });
},
/**
@@ -125,14 +188,51 @@ module.exports = function(context) {
* @returns {void}
*/
"onCodePathSegmentStart": function(segment) {
- if (!isInConstructor(funcInfo)) {
+ if (!isInConstructorOfDerivedClass(funcInfo)) {
return;
}
// Initialize info.
- segInfoMap[segment.id] = (
- segment.prevSegments.length > 0 &&
- segment.prevSegments.every(isCalled)
+ segInfoMap[segment.id] = {
+ superCalled: (
+ segment.prevSegments.length > 0 &&
+ segment.prevSegments.every(isCalled)
+ ),
+ invalidNodes: []
+ };
+ },
+
+ /**
+ * Update information of the code path segment when a code path was
+ * looped.
+ * @param {CodePathSegment} fromSegment - The code path segment of the
+ * end of a loop.
+ * @param {CodePathSegment} toSegment - A code path segment of the head
+ * of a loop.
+ * @returns {void}
+ */
+ "onCodePathSegmentLoop": function(fromSegment, toSegment) {
+ if (!isInConstructorOfDerivedClass(funcInfo)) {
+ return;
+ }
+
+ // Update information inside of the loop.
+ funcInfo.codePath.traverseSegments(
+ {first: toSegment, last: fromSegment},
+ function(segment, controller) {
+ var info = segInfoMap[segment.id];
+
+ if (info.superCalled) {
+ info.invalidNodes = [];
+ controller.skip();
+ } else if (
+ segment.prevSegments.length > 0 &&
+ segment.prevSegments.every(isCalled)
+ ) {
+ info.superCalled = true;
+ info.invalidNodes = [];
+ }
+ }
);
},
@@ -143,10 +243,7 @@ module.exports = function(context) {
*/
"ThisExpression": function(node) {
if (isBeforeCallOfSuper()) {
- context.report({
- message: "'this' is not allowed before 'super()'.",
- node: node
- });
+ setInvalid(node);
}
},
@@ -157,10 +254,7 @@ module.exports = function(context) {
*/
"Super": function(node) {
if (!astUtils.isCallee(node) && isBeforeCallOfSuper()) {
- context.report({
- message: "'super' is not allowed before 'super()'.",
- node: node
- });
+ setInvalid(node);
}
},
@@ -171,10 +265,7 @@ module.exports = function(context) {
*/
"CallExpression:exit": function(node) {
if (node.callee.type === "Super" && isBeforeCallOfSuper()) {
- var segments = funcInfo.codePath.currentSegments;
- for (var i = 0; i < segments.length; ++i) {
- segInfoMap[segments[i].id] = true;
- }
+ setSuperCalled();
}
},
diff --git a/tools/eslint/lib/rules/no-throw-literal.js b/tools/eslint/lib/rules/no-throw-literal.js
index 1a0c01ab360690..745850dc8dd30e 100644
--- a/tools/eslint/lib/rules/no-throw-literal.js
+++ b/tools/eslint/lib/rules/no-throw-literal.js
@@ -31,6 +31,7 @@ function couldBeError(node) {
case "SequenceExpression":
var exprs = node.expressions;
+
return exprs.length !== 0 && couldBeError(exprs[exprs.length - 1]);
case "LogicalExpression":
diff --git a/tools/eslint/lib/rules/no-trailing-spaces.js b/tools/eslint/lib/rules/no-trailing-spaces.js
index ac3c975d6e3eba..af30610f94e759 100644
--- a/tools/eslint/lib/rules/no-trailing-spaces.js
+++ b/tools/eslint/lib/rules/no-trailing-spaces.js
@@ -26,9 +26,13 @@ module.exports = function(context) {
* @returns {void}
*/
function report(node, location, fixRange) {
- // Passing node is a bit dirty, because message data will contain
- // big text in `source`. But... who cares :) ?
- // One more kludge will not make worse the bloody wizardry of this plugin.
+
+ /*
+ * Passing node is a bit dirty, because message data will contain big
+ * text in `source`. But... who cares :) ?
+ * One more kludge will not make worse the bloody wizardry of this
+ * plugin.
+ */
context.report({
node: node,
loc: location,
@@ -54,7 +58,8 @@ module.exports = function(context) {
var src = context.getSource(),
re = new RegExp(NONBLANK),
skipMatch = new RegExp(SKIP_BLANK),
- matches, lines = src.split(/\r?\n/),
+ matches,
+ lines = src.split(/\r?\n/),
linebreaks = context.getSource().match(/\r\n|\r|\n|\u2028|\u2029/g),
location,
totalLength = 0,
diff --git a/tools/eslint/lib/rules/no-undef.js b/tools/eslint/lib/rules/no-undef.js
index e8822c8888a9c6..c3a88725678e75 100644
--- a/tools/eslint/lib/rules/no-undef.js
+++ b/tools/eslint/lib/rules/no-undef.js
@@ -17,6 +17,7 @@
*/
function hasTypeOfOperator(node) {
var parent = node.parent;
+
return parent.type === "UnaryExpression" && parent.operator === "typeof";
}
diff --git a/tools/eslint/lib/rules/no-undefined.js b/tools/eslint/lib/rules/no-undefined.js
index 222be573d229ca..a44eabf1b1fa82 100644
--- a/tools/eslint/lib/rules/no-undefined.js
+++ b/tools/eslint/lib/rules/no-undefined.js
@@ -15,6 +15,7 @@ module.exports = function(context) {
"Identifier": function(node) {
if (node.name === "undefined") {
var parent = context.getAncestors().pop();
+
if (!parent || parent.type !== "MemberExpression" || node !== parent.property || parent.computed) {
context.report(node, "Unexpected use of undefined.");
}
diff --git a/tools/eslint/lib/rules/no-underscore-dangle.js b/tools/eslint/lib/rules/no-underscore-dangle.js
index 73ab054de829d0..6401e93e3780b2 100644
--- a/tools/eslint/lib/rules/no-underscore-dangle.js
+++ b/tools/eslint/lib/rules/no-underscore-dangle.js
@@ -60,6 +60,7 @@ module.exports = function(context) {
* @private
*/
function isSpecialCaseIdentifierInVariableExpression(identifier) {
+
// Checks for the underscore library usage here
return identifier === "_";
}
diff --git a/tools/eslint/lib/rules/no-unmodified-loop-condition.js b/tools/eslint/lib/rules/no-unmodified-loop-condition.js
index f66e7aa7554908..47a0e3885a38e1 100644
--- a/tools/eslint/lib/rules/no-unmodified-loop-condition.js
+++ b/tools/eslint/lib/rules/no-unmodified-loop-condition.js
@@ -12,7 +12,7 @@
//------------------------------------------------------------------------------
var Map = require("es6-map"),
- estraverse = require("../util/estraverse"),
+ Traverser = require("../util/traverser"),
astUtils = require("../ast-utils");
//------------------------------------------------------------------------------
@@ -29,8 +29,8 @@ var DYNAMIC_PATTERN = /^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/;
/**
* @typedef {object} LoopConditionInfo
* @property {escope.Reference} reference - The reference.
- * @property {ASTNode[]} groups - BinaryExpression or ConditionalExpression
- * nodes that the reference is belonging to.
+ * @property {ASTNode} group - BinaryExpression or ConditionalExpression nodes
+ * that the reference is belonging to.
* @property {function} isInLoop - The predicate which checks a given reference
* is in this loop.
* @property {boolean} modified - The flag that the reference is modified in
@@ -46,6 +46,7 @@ var DYNAMIC_PATTERN = /^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/;
function isWriteReference(reference) {
if (reference.init) {
var def = reference.resolved && reference.resolved.defs[0];
+
if (!def || def.type !== "Variable" || def.parent.kind !== "var") {
return false;
}
@@ -66,13 +67,13 @@ function isUnmodified(condition) {
/**
* Checks whether or not a given loop condition info does not have the modified
- * flag and does not have any groups that this condition is belonging to.
+ * flag and does not have the group this condition belongs to.
*
* @param {LoopConditionInfo} condition - A loop condition info to check.
* @returns {boolean} `true` if the loop condition info is "unmodified".
*/
function isUnmodifiedAndNotBelongToGroup(condition) {
- return !condition.modified && condition.groups.length === 0;
+ return !(condition.modified || condition.group);
}
/**
@@ -85,6 +86,7 @@ function isUnmodifiedAndNotBelongToGroup(condition) {
function isInRange(node, reference) {
var or = node.range;
var ir = reference.identifier.range;
+
return or[0] <= ir[0] && ir[1] <= or[1];
}
@@ -115,9 +117,10 @@ var isInLoop = {
* @returns {boolean} `true` if the node is dynamic.
*/
function hasDynamicExpressions(root) {
- var retv = false;
+ var retv = false,
+ traverser = new Traverser();
- estraverse.traverse(root, {
+ traverser.traverse(root, {
enter: function(node) {
if (DYNAMIC_PATTERN.test(node.type)) {
retv = true;
@@ -142,32 +145,38 @@ function toLoopCondition(reference) {
return null;
}
- var groups = [];
+ var group = null;
var child = reference.identifier;
var node = child.parent;
+
while (node) {
if (SENTINEL_PATTERN.test(node.type)) {
if (LOOP_PATTERN.test(node.type) && node.test === child) {
+
// This reference is inside of a loop condition.
return {
reference: reference,
- groups: groups,
+ group: group,
isInLoop: isInLoop[node.type].bind(null, node),
modified: false
};
}
+
// This reference is outside of a loop condition.
break;
}
- // If it's inside of a group, OK if either operand is modified.
- // So stores the group that the reference is belonging to.
+ /*
+ * If it's inside of a group, OK if either operand is modified.
+ * So stores the group this reference belongs to.
+ */
if (GROUP_PATTERN.test(node.type)) {
+
+ // If this expression is dynamic, no need to check.
if (hasDynamicExpressions(node)) {
- // This expression is dynamic, so don't check.
break;
} else {
- groups.push(node);
+ group = node;
}
}
@@ -213,9 +222,16 @@ function updateModifiedFlag(conditions, modifiers) {
var condition = conditions[i];
for (var j = 0; !condition.modified && j < modifiers.length; ++j) {
- var modifier = modifiers[j];
- var inLoop = condition.isInLoop(modifier) || Boolean(
- // Checks the function that this modifier is belonging to is used in the loop.
+ var modifier = modifiers[j],
+ inLoop;
+
+ /*
+ * Besides checking for the condition being in the loop, we want to
+ * check the function that this modifier is belonging to is called
+ * in the loop.
+ * FIXME: This should probably be extracted to a function.
+ */
+ inLoop = condition.isInLoop(modifier) || Boolean(
(funcNode = getEncloseFunctionDeclaration(modifier)) &&
(funcVar = astUtils.getVariableByName(modifier.from.upper, funcNode.id.name)) &&
funcVar.references.some(condition.isInLoop)
@@ -249,7 +265,7 @@ module.exports = function(context) {
}
/**
- * Registers given conditions to groups that the condition is belonging to.
+ * Registers given conditions to the group the condition belongs to.
*
* @param {LoopConditionInfo[]} conditions - A loop condition info to
* register.
@@ -259,12 +275,12 @@ module.exports = function(context) {
for (var i = 0; i < conditions.length; ++i) {
var condition = conditions[i];
- for (var j = 0; j < condition.groups.length; ++j) {
- var be = condition.groups[j];
- var group = groupMap.get(be);
+ if (condition.group) {
+ var group = groupMap.get(condition.group);
+
if (!group) {
group = [];
- groupMap.set(be, group);
+ groupMap.set(condition.group, group);
}
group.push(condition);
}
@@ -291,6 +307,7 @@ module.exports = function(context) {
* @returns {void}
*/
function checkReferences(variable) {
+
// Gets references that exist in loop conditions.
var conditions = variable
.references
@@ -306,12 +323,15 @@ module.exports = function(context) {
// Check the conditions are modified.
var modifiers = variable.references.filter(isWriteReference);
+
if (modifiers.length > 0) {
updateModifiedFlag(conditions, modifiers);
}
- // Reports the conditions which are not belonging to groups.
- // Others will be reported after all variables are done.
+ /*
+ * Reports the conditions which are not belonging to groups.
+ * Others will be reported after all variables are done.
+ */
conditions
.filter(isUnmodifiedAndNotBelongToGroup)
.forEach(report);
@@ -320,9 +340,11 @@ module.exports = function(context) {
return {
"Program:exit": function() {
var queue = [context.getScope()];
+
groupMap = new Map();
var scope;
+
while ((scope = queue.pop())) {
pushAll(queue, scope.childScopes);
scope.variables.forEach(checkReferences);
diff --git a/tools/eslint/lib/rules/no-unreachable.js b/tools/eslint/lib/rules/no-unreachable.js
index 7c9c267ac18a2a..ce3f4ba01fb265 100644
--- a/tools/eslint/lib/rules/no-unreachable.js
+++ b/tools/eslint/lib/rules/no-unreachable.js
@@ -47,10 +47,12 @@ module.exports = function(context) {
}
return {
+
// Manages the current code path.
"onCodePathStart": function(codePath) {
currentCodePath = codePath;
},
+
"onCodePathEnd": function() {
currentCodePath = currentCodePath.upper;
},
@@ -74,11 +76,13 @@ module.exports = function(context) {
SwitchStatement: reportIfUnreachable,
ThrowStatement: reportIfUnreachable,
TryStatement: reportIfUnreachable,
+
VariableDeclaration: function(node) {
if (node.kind !== "var" || node.declarations.some(isInitialized)) {
reportIfUnreachable(node);
}
},
+
WhileStatement: reportIfUnreachable,
WithStatement: reportIfUnreachable,
ExportNamedDeclaration: reportIfUnreachable,
diff --git a/tools/eslint/lib/rules/no-unused-expressions.js b/tools/eslint/lib/rules/no-unused-expressions.js
index 82e21c04e7c306..3da55602f02b7e 100644
--- a/tools/eslint/lib/rules/no-unused-expressions.js
+++ b/tools/eslint/lib/rules/no-unused-expressions.js
@@ -53,6 +53,7 @@ module.exports = function(context) {
function isDirective(node, ancestors) {
var parent = ancestors[ancestors.length - 1],
grandparent = ancestors[ancestors.length - 2];
+
return (parent.type === "Program" || parent.type === "BlockStatement" &&
(/Function/.test(grandparent.type))) &&
directives(parent).indexOf(node) >= 0;
@@ -65,6 +66,7 @@ module.exports = function(context) {
*/
function isValidExpression(node) {
if (allowTernary) {
+
// Recursive check for ternary and logical expressions
if (node.type === "ConditionalExpression") {
return isValidExpression(node.consequent) && isValidExpression(node.alternate);
diff --git a/tools/eslint/lib/rules/no-unused-labels.js b/tools/eslint/lib/rules/no-unused-labels.js
index 258f97c720506f..e53b333f2e79b3 100644
--- a/tools/eslint/lib/rules/no-unused-labels.js
+++ b/tools/eslint/lib/rules/no-unused-labels.js
@@ -61,6 +61,7 @@ module.exports = function(context) {
var label = node.label.name;
var info = scopeInfo;
+
while (info) {
if (info.label === label) {
info.used = true;
diff --git a/tools/eslint/lib/rules/no-unused-vars.js b/tools/eslint/lib/rules/no-unused-vars.js
index 2d61a7b988efc7..fa889d1975164e 100644
--- a/tools/eslint/lib/rules/no-unused-vars.js
+++ b/tools/eslint/lib/rules/no-unused-vars.js
@@ -21,7 +21,8 @@ module.exports = function(context) {
var config = {
vars: "all",
- args: "after-used"
+ args: "after-used",
+ caughtErrors: "none"
};
var firstOption = context.options[0];
@@ -32,6 +33,7 @@ module.exports = function(context) {
} else {
config.vars = firstOption.vars || config.vars;
config.args = firstOption.args || config.args;
+ config.caughtErrors = firstOption.caughtErrors || config.caughtErrors;
if (firstOption.varsIgnorePattern) {
config.varsIgnorePattern = new RegExp(firstOption.varsIgnorePattern);
@@ -40,6 +42,10 @@ module.exports = function(context) {
if (firstOption.argsIgnorePattern) {
config.argsIgnorePattern = new RegExp(firstOption.argsIgnorePattern);
}
+
+ if (firstOption.caughtErrorsIgnorePattern) {
+ config.caughtErrorsIgnorePattern = new RegExp(firstOption.caughtErrorsIgnorePattern);
+ }
}
}
@@ -60,6 +66,7 @@ module.exports = function(context) {
if (definition) {
var node = definition.node;
+
if (node.type === "VariableDeclarator") {
node = node.parent;
} else if (definition.type === "Parameter") {
@@ -142,10 +149,12 @@ module.exports = function(context) {
if (scope.type === "class" && scope.block.id === variable.identifiers[0]) {
continue;
}
+
// skip function expression names and variables marked with markVariableAsUsed()
if (scope.functionExpressionScope || variable.eslintUsed) {
continue;
}
+
// skip implicit "arguments" variable
if (scope.type === "function" && variable.name === "arguments" && variable.identifiers.length === 0) {
continue;
@@ -153,15 +162,24 @@ module.exports = function(context) {
// explicit global variables don't have definitions.
var def = variable.defs[0];
+
if (def) {
var type = def.type;
// skip catch variables
if (type === "CatchClause") {
- continue;
+ if (config.caughtErrors === "none") {
+ continue;
+ }
+
+ // skip ignored parameters
+ if (config.caughtErrorsIgnorePattern && config.caughtErrorsIgnorePattern.test(def.name.name)) {
+ continue;
+ }
}
if (type === "Parameter") {
+
// skip any setter argument
if (def.node.parent.type === "Property" && def.node.parent.kind === "set") {
continue;
@@ -182,6 +200,7 @@ module.exports = function(context) {
continue;
}
} else {
+
// skip ignored variables
if (config.varsIgnorePattern && config.varsIgnorePattern.test(def.name.name)) {
continue;
@@ -216,6 +235,7 @@ module.exports = function(context) {
// Search a given variable name.
var match = namePattern.exec(comment.value);
+
return match ? match.index + 1 : 0;
}
@@ -236,6 +256,7 @@ module.exports = function(context) {
if (lineInComment > 0) {
column -= 1 + prefix.lastIndexOf("\n");
} else {
+
// 2 is for `/*`
column += baseLoc.column + 2;
}
@@ -297,6 +318,12 @@ module.exports.schema = [
},
"argsIgnorePattern": {
"type": "string"
+ },
+ "caughtErrors": {
+ "enum": ["all", "none"]
+ },
+ "caughtErrorsIgnorePattern": {
+ "type": "string"
}
}
}
diff --git a/tools/eslint/lib/rules/no-use-before-define.js b/tools/eslint/lib/rules/no-use-before-define.js
index 2590230de98ae2..b8f67144c579f0 100644
--- a/tools/eslint/lib/rules/no-use-before-define.js
+++ b/tools/eslint/lib/rules/no-use-before-define.js
@@ -129,6 +129,7 @@ module.exports = function(context) {
// Defines a function which checks whether or not a reference is allowed according to the option.
var isAllowed;
+
if (options.functions && options.classes) {
isAllowed = alwaysFalse;
} else if (options.functions) {
@@ -181,6 +182,7 @@ module.exports = function(context) {
*/
function findVariables() {
var scope = context.getScope();
+
findVariablesInScope(scope);
}
diff --git a/tools/eslint/lib/rules/no-useless-concat.js b/tools/eslint/lib/rules/no-useless-concat.js
index 6f230a96d3385a..96baf51a4e0ccf 100644
--- a/tools/eslint/lib/rules/no-useless-concat.js
+++ b/tools/eslint/lib/rules/no-useless-concat.js
@@ -32,6 +32,7 @@ function isConcatenation(node) {
*/
function getLeft(node) {
var left = node.left;
+
while (isConcatenation(left)) {
left = left.right;
}
@@ -45,6 +46,7 @@ function getLeft(node) {
*/
function getRight(node) {
var right = node.right;
+
while (isConcatenation(right)) {
right = right.left;
}
@@ -58,6 +60,7 @@ function getRight(node) {
module.exports = function(context) {
return {
BinaryExpression: function(node) {
+
// check if not concatenation
if (node.operator !== "+") {
return;
@@ -71,8 +74,10 @@ module.exports = function(context) {
astUtils.isStringLiteral(right) &&
astUtils.isTokenOnSameLine(left, right)
) {
+
// move warning location to operator
var operatorToken = context.getTokenAfter(left);
+
while (operatorToken.value !== "+") {
operatorToken = context.getTokenAfter(operatorToken);
}
diff --git a/tools/eslint/lib/rules/no-useless-constructor.js b/tools/eslint/lib/rules/no-useless-constructor.js
index 20ca67cbe060db..244f2b458f646e 100644
--- a/tools/eslint/lib/rules/no-useless-constructor.js
+++ b/tools/eslint/lib/rules/no-useless-constructor.js
@@ -7,37 +7,145 @@
"use strict";
//------------------------------------------------------------------------------
-// Rule Definition
+// Helpers
//------------------------------------------------------------------------------
-module.exports = function(context) {
+/**
+ * Checks whether a given array of statements is a single call of `super`.
+ *
+ * @param {ASTNode[]} body - An array of statements to check.
+ * @returns {boolean} `true` if the body is a single call of `super`.
+ */
+function isSingleSuperCall(body) {
+ return (
+ body.length === 1 &&
+ body[0].type === "ExpressionStatement" &&
+ body[0].expression.type === "CallExpression" &&
+ body[0].expression.callee.type === "Super"
+ );
+}
- /**
- * Checks whether the constructor body is a redundant super call.
- * @param {Array} body - constructor body content.
- * @param {Array} ctorParams - The params to check against super call.
- * @returns {boolean} true if the construtor body is redundant
- */
- function isRedundantSuperCall(body, ctorParams) {
- if (body.length !== 1 ||
- body[0].type !== "ExpressionStatement" ||
- body[0].expression.callee.type !== "Super") {
+/**
+ * Checks whether a given node is a pattern which doesn't have any side effects.
+ * Default parameters and Destructuring parameters can have side effects.
+ *
+ * @param {ASTNode} node - A pattern node.
+ * @returns {boolean} `true` if the node doesn't have any side effects.
+ */
+function isSimple(node) {
+ return node.type === "Identifier" || node.type === "RestElement";
+}
+
+/**
+ * Checks whether a given array of expressions is `...arguments` or not.
+ * `super(...arguments)` passes all arguments through.
+ *
+ * @param {ASTNode[]} superArgs - An array of expressions to check.
+ * @returns {boolean} `true` if the superArgs is `...arguments`.
+ */
+function isSpreadArguments(superArgs) {
+ return (
+ superArgs.length === 1 &&
+ superArgs[0].type === "SpreadElement" &&
+ superArgs[0].argument.type === "Identifier" &&
+ superArgs[0].argument.name === "arguments"
+ );
+}
+
+/**
+ * Checks whether given 2 nodes are identifiers which have the same name or not.
+ *
+ * @param {ASTNode} ctorParam - A node to check.
+ * @param {ASTNode} superArg - A node to check.
+ * @returns {boolean} `true` if the nodes are identifiers which have the same
+ * name.
+ */
+function isValidIdentifierPair(ctorParam, superArg) {
+ return (
+ ctorParam.type === "Identifier" &&
+ superArg.type === "Identifier" &&
+ ctorParam.name === superArg.name
+ );
+}
+
+/**
+ * Checks whether given 2 nodes are a rest/spread pair which has the same values.
+ *
+ * @param {ASTNode} ctorParam - A node to check.
+ * @param {ASTNode} superArg - A node to check.
+ * @returns {boolean} `true` if the nodes are a rest/spread pair which has the
+ * same values.
+ */
+function isValidRestSpreadPair(ctorParam, superArg) {
+ return (
+ ctorParam.type === "RestElement" &&
+ superArg.type === "SpreadElement" &&
+ isValidIdentifierPair(ctorParam.argument, superArg.argument)
+ );
+}
+
+/**
+ * Checks whether given 2 nodes have the same value or not.
+ *
+ * @param {ASTNode} ctorParam - A node to check.
+ * @param {ASTNode} superArg - A node to check.
+ * @returns {boolean} `true` if the nodes have the same value or not.
+ */
+function isValidPair(ctorParam, superArg) {
+ return (
+ isValidIdentifierPair(ctorParam, superArg) ||
+ isValidRestSpreadPair(ctorParam, superArg)
+ );
+}
+
+/**
+ * Checks whether the parameters of a constructor and the arguments of `super()`
+ * have the same values or not.
+ *
+ * @param {ASTNode} ctorParams - The parameters of a constructor to check.
+ * @param {ASTNode} superArgs - The arguments of `super()` to check.
+ * @returns {boolean} `true` if those have the same values.
+ */
+function isPassingThrough(ctorParams, superArgs) {
+ if (ctorParams.length !== superArgs.length) {
+ return false;
+ }
+
+ for (var i = 0; i < ctorParams.length; ++i) {
+ if (!isValidPair(ctorParams[i], superArgs[i])) {
return false;
}
+ }
+ return true;
+}
- return body[0].expression.arguments.every(function(arg, index) {
- return (arg.type === "Identifier" && arg.name === ctorParams[index].name) ||
- (
- arg.type === "SpreadElement" &&
- ctorParams[index].type === "RestElement" &&
- arg.argument.name === ctorParams[index].argument.name
- );
- });
- }
+/**
+ * Checks whether the constructor body is a redundant super call.
+ *
+ * @param {Array} body - constructor body content.
+ * @param {Array} ctorParams - The params to check against super call.
+ * @returns {boolean} true if the construtor body is redundant
+ */
+function isRedundantSuperCall(body, ctorParams) {
+ return (
+ isSingleSuperCall(body) &&
+ ctorParams.every(isSimple) &&
+ (
+ isSpreadArguments(body[0].expression.arguments) ||
+ isPassingThrough(ctorParams, body[0].expression.arguments)
+ )
+ );
+}
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+module.exports = function(context) {
/**
- * Checks whether a node is a redundant construtor
+ * Checks whether a node is a redundant constructor
* @param {ASTNode} node - node to check
* @returns {void}
*/
@@ -47,14 +155,17 @@ module.exports = function(context) {
}
var body = node.value.body.body;
+ var ctorParams = node.value.params;
+ var superClass = node.parent.parent.superClass;
- if (!node.parent.parent.superClass && body.length === 0 ||
- node.parent.parent.superClass && isRedundantSuperCall(body, node.value.params)) {
- context.report(node, "Useless constructor.");
+ if (superClass ? isRedundantSuperCall(body, ctorParams) : (body.length === 0)) {
+ context.report({
+ node: node,
+ message: "Useless constructor."
+ });
}
}
-
return {
"MethodDefinition": checkForConstructor
};
diff --git a/tools/eslint/lib/rules/no-useless-escape.js b/tools/eslint/lib/rules/no-useless-escape.js
new file mode 100644
index 00000000000000..a6f5daa71c444d
--- /dev/null
+++ b/tools/eslint/lib/rules/no-useless-escape.js
@@ -0,0 +1,108 @@
+/**
+ * @fileoverview Look for useless escapes in strings and regexes
+ * @author Onur Temizkan
+ * @copyright 2016 Onur Temizkan. All rights reserved.
+ */
+
+"use strict";
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+var VALID_STRING_ESCAPES = [
+ "\\",
+ "n",
+ "r",
+ "v",
+ "t",
+ "b",
+ "f",
+ "u",
+ "x",
+ "\n",
+ "\r"
+];
+
+var VALID_REGEX_ESCAPES = [
+ "\\",
+ ".",
+ "-",
+ "^",
+ "$",
+ "*",
+ "+",
+ "?",
+ "{",
+ "}",
+ "[",
+ "]",
+ "|",
+ "(",
+ ")",
+ "b",
+ "B",
+ "c",
+ "d",
+ "D",
+ "f",
+ "n",
+ "r",
+ "s",
+ "S",
+ "t",
+ "v",
+ "w",
+ "W",
+ "x",
+ "u"
+];
+
+module.exports = function(context) {
+
+ /**
+ * Checks if the escape character in given slice is unnecessary.
+ *
+ * @private
+ * @param {string} elm - string slice to validate.
+ * @param {ASTNode} node - node to validate.
+ * @returns {void}
+ * @this escapes_quote_node
+ */
+ function validate(elm) {
+ var escapeNotFound = this.escapes.indexOf(elm[1]) === -1;
+ var isQuoteEscape = elm[1] === this.node.raw[0];
+
+ if (escapeNotFound && !isQuoteEscape) {
+ context.report(this.node, "Unnecessary escape character: " + elm);
+ }
+ }
+
+ /**
+ * Checks if a node has an escape.
+ *
+ * @param {ASTNode} node - node to check.
+ * @returns {void}
+ */
+ function check(node) {
+ var nodeEscapes;
+
+ if (typeof node.value === "string") {
+ nodeEscapes = VALID_STRING_ESCAPES;
+ } else if (node.regex) {
+ nodeEscapes = VALID_REGEX_ESCAPES;
+ } else {
+ return;
+ }
+
+ (node.raw.match(/\\[^\d]/g) || []).forEach(validate, {
+ "escapes": nodeEscapes,
+ "node": node
+ });
+ }
+ return {
+ "Literal": check
+ };
+};
+
+module.exports.schema = [];
diff --git a/tools/eslint/lib/rules/no-warning-comments.js b/tools/eslint/lib/rules/no-warning-comments.js
index 881c5646f23304..02450229d9f59c 100644
--- a/tools/eslint/lib/rules/no-warning-comments.js
+++ b/tools/eslint/lib/rules/no-warning-comments.js
@@ -29,16 +29,27 @@ module.exports = function(context) {
*/
function convertToRegExp(term) {
var escaped = term.replace(/[-\/\\$\^*+?.()|\[\]{}]/g, "\\$&"),
- // If the term ends in a word character (a-z0-9_), ensure a word boundary at the end, so that substrings do
- // not get falsely matched. eg "todo" in a string such as "mastodon".
- // If the term ends in a non-word character, then \b won't match on the boundary to the next non-word
- // character, which would likely be a space. For example `/\bFIX!\b/.test('FIX! blah') === false`.
- // In these cases, use no bounding match. Same applies for the prefix, handled below.
- suffix = /\w$/.test(term) ? "\\b" : "",
+ suffix,
prefix;
+ /*
+ * If the term ends in a word character (a-z0-9_), ensure a word
+ * boundary at the end, so that substrings do not get falsely
+ * matched. eg "todo" in a string such as "mastodon".
+ * If the term ends in a non-word character, then \b won't match on
+ * the boundary to the next non-word character, which would likely
+ * be a space. For example `/\bFIX!\b/.test('FIX! blah') === false`.
+ * In these cases, use no bounding match. Same applies for the
+ * prefix, handled below.
+ */
+ suffix = /\w$/.test(term) ? "\\b" : "";
+
if (location === "start") {
- // When matching at the start, ignore leading whitespace, and there's no need to worry about word boundaries
+
+ /*
+ * When matching at the start, ignore leading whitespace, and
+ * there's no need to worry about word boundaries.
+ */
prefix = "^\\s*";
} else if (/^\w/.test(term)) {
prefix = "\\b";
diff --git a/tools/eslint/lib/rules/object-curly-spacing.js b/tools/eslint/lib/rules/object-curly-spacing.js
index 8c300ee9653070..8a7b9aefeeb3aa 100644
--- a/tools/eslint/lib/rules/object-curly-spacing.js
+++ b/tools/eslint/lib/rules/object-curly-spacing.js
@@ -54,6 +54,7 @@ module.exports = function(context) {
message: "There should be no space after '" + token.value + "'",
fix: function(fixer) {
var nextToken = context.getSourceCode().getTokenAfter(token);
+
return fixer.removeRange([token.range[1], nextToken.range[0]]);
}
});
@@ -72,6 +73,7 @@ module.exports = function(context) {
message: "There should be no space before '" + token.value + "'",
fix: function(fixer) {
var previousToken = context.getSourceCode().getTokenBefore(token);
+
return fixer.removeRange([previousToken.range[1], token.range[0]]);
}
});
@@ -121,11 +123,11 @@ module.exports = function(context) {
* @returns {void}
*/
function validateBraceSpacing(node, first, second, penultimate, last) {
- var closingCurlyBraceMustBeSpaced =
- options.arraysInObjectsException && penultimate.value === "]" ||
- options.objectsInObjectsException && penultimate.value === "}"
- ? !options.spaced : options.spaced,
- firstSpaced, lastSpaced;
+ var shouldCheckPenultimate,
+ penultimateType,
+ closingCurlyBraceMustBeSpaced,
+ firstSpaced,
+ lastSpaced;
if (astUtils.isTokenOnSameLine(first, second)) {
firstSpaced = sourceCode.isSpaceBetweenTokens(first, second);
@@ -138,7 +140,19 @@ module.exports = function(context) {
}
if (astUtils.isTokenOnSameLine(penultimate, last)) {
+ shouldCheckPenultimate = (
+ options.arraysInObjectsException && penultimate.value === "]" ||
+ options.objectsInObjectsException && penultimate.value === "}"
+ );
+ penultimateType = shouldCheckPenultimate && sourceCode.getNodeByRangeIndex(penultimate.start).type;
+
+ closingCurlyBraceMustBeSpaced = (
+ options.arraysInObjectsException && penultimateType === "ArrayExpression" ||
+ options.objectsInObjectsException && penultimateType === "ObjectExpression"
+ ) ? !options.spaced : options.spaced;
+
lastSpaced = sourceCode.isSpaceBetweenTokens(penultimate, last);
+
if (closingCurlyBraceMustBeSpaced && !lastSpaced) {
reportRequiredEndingSpace(node, last);
}
@@ -231,6 +245,7 @@ module.exports = function(context) {
//--------------------------------------------------------------------------
return {
+
// var {x} = y;
ObjectPattern: checkForObject,
diff --git a/tools/eslint/lib/rules/object-shorthand.js b/tools/eslint/lib/rules/object-shorthand.js
index e17e48f4cc7039..c6ffa0f8f34a72 100644
--- a/tools/eslint/lib/rules/object-shorthand.js
+++ b/tools/eslint/lib/rules/object-shorthand.js
@@ -50,6 +50,11 @@ module.exports = function(context) {
var isConciseProperty = node.method || node.shorthand,
type;
+ // Ignore destructuring assignment
+ if (node.parent.type === "ObjectPattern") {
+ return;
+ }
+
// if we're "never" and concise we should warn now
if (APPLY_NEVER && isConciseProperty) {
type = node.method ? "method" : "property";
diff --git a/tools/eslint/lib/rules/one-var-declaration-per-line.js b/tools/eslint/lib/rules/one-var-declaration-per-line.js
index 100648b6583124..2f763485d7e3f9 100644
--- a/tools/eslint/lib/rules/one-var-declaration-per-line.js
+++ b/tools/eslint/lib/rules/one-var-declaration-per-line.js
@@ -43,6 +43,7 @@ module.exports = function(context) {
var declarations = node.declarations;
var prev;
+
declarations.forEach(function(current) {
if (prev && prev.loc.end.line === current.loc.start.line) {
if (always || prev.init || current.init) {
diff --git a/tools/eslint/lib/rules/one-var.js b/tools/eslint/lib/rules/one-var.js
index 55c81143930337..d7cccbfe9da09f 100644
--- a/tools/eslint/lib/rules/one-var.js
+++ b/tools/eslint/lib/rules/one-var.js
@@ -144,6 +144,7 @@ module.exports = function(context) {
*/
function getCurrentScope(statementType) {
var currentScope;
+
if (statementType === "var") {
currentScope = functionStack[functionStack.length - 1];
} else if (statementType === "let") {
@@ -162,6 +163,7 @@ module.exports = function(context) {
*/
function countDeclarations(declarations) {
var counts = { uninitialized: 0, initialized: 0 };
+
for (var i = 0; i < declarations.length; i++) {
if (declarations[i].init === null) {
counts.uninitialized++;
@@ -246,18 +248,24 @@ module.exports = function(context) {
}
}
}
+
// never
if (parent.type !== "ForStatement" || parent.init !== node) {
var totalDeclarations = declarationCounts.uninitialized + declarationCounts.initialized;
+
if (totalDeclarations > 1) {
- // both initialized and uninitialized
+
if (options[type].initialized === MODE_NEVER && options[type].uninitialized === MODE_NEVER) {
+
+ // both initialized and uninitialized
context.report(node, "Split '" + type + "' declarations into multiple statements.");
- // initialized
} else if (options[type].initialized === MODE_NEVER && declarationCounts.initialized > 0) {
+
+ // initialized
context.report(node, "Split initialized '" + type + "' declarations into multiple statements.");
- // uninitialized
} else if (options[type].uninitialized === MODE_NEVER && declarationCounts.uninitialized > 0) {
+
+ // uninitialized
context.report(node, "Split uninitialized '" + type + "' declarations into multiple statements.");
}
}
diff --git a/tools/eslint/lib/rules/operator-assignment.js b/tools/eslint/lib/rules/operator-assignment.js
index aa9e032ae2b2e5..9656846019d3a0 100644
--- a/tools/eslint/lib/rules/operator-assignment.js
+++ b/tools/eslint/lib/rules/operator-assignment.js
@@ -53,13 +53,19 @@ function same(a, b) {
switch (a.type) {
case "Identifier":
return a.name === b.name;
+
case "Literal":
return a.value === b.value;
+
case "MemberExpression":
- // x[0] = x[0]
- // x[y] = x[y]
- // x.y = x.y
+
+ /*
+ * x[0] = x[0]
+ * x[y] = x[y]
+ * x.y = x.y
+ */
return same(a.object, b.object) && same(a.property, b.property);
+
default:
return false;
}
diff --git a/tools/eslint/lib/rules/padded-blocks.js b/tools/eslint/lib/rules/padded-blocks.js
index d8edfafa121a5a..f245a858f072e6 100644
--- a/tools/eslint/lib/rules/padded-blocks.js
+++ b/tools/eslint/lib/rules/padded-blocks.js
@@ -11,74 +11,107 @@
//------------------------------------------------------------------------------
module.exports = function(context) {
- var requirePadding = context.options[0] !== "never";
+ var options = {};
+ var config = context.options[0] || "always";
+
+ if (typeof config === "string") {
+ options.blocks = config === "always";
+ } else {
+ if (config.hasOwnProperty("blocks")) {
+ options.blocks = config.blocks === "always";
+ }
+ if (config.hasOwnProperty("switches")) {
+ options.switches = config.switches === "always";
+ }
+ if (config.hasOwnProperty("classes")) {
+ options.classes = config.classes === "always";
+ }
+ }
var ALWAYS_MESSAGE = "Block must be padded by blank lines.",
NEVER_MESSAGE = "Block must not be padded by blank lines.";
+ var sourceCode = context.getSourceCode();
+
/**
- * Checks if the location of a node or token is before the location of another node or token
- * @param {ASTNode|Token} a The node or token to check if its location is before b.
- * @param {ASTNode|Token} b The node or token which will be compared with a.
- * @returns {boolean} True if a is located before b.
+ * Gets the open brace token from a given node.
+ * @param {ASTNode} node - A BlockStatement or SwitchStatement node from which to get the open brace.
+ * @returns {Token} The token of the open brace.
*/
- function isLocatedBefore(a, b) {
- return a.range[1] < b.range[0];
+ function getOpenBrace(node) {
+ if (node.type === "SwitchStatement") {
+ return sourceCode.getTokenBefore(node.cases[0]);
+ }
+ return sourceCode.getFirstToken(node);
}
/**
- * Checks if the given non empty block node has a blank line before its first child node.
- * @param {ASTNode} node The AST node of a BlockStatement.
- * @returns {boolean} Whether or not the block starts with a blank line.
+ * Checks if the given parameter is a comment node
+ * @param {ASTNode|Token} node An AST node or token
+ * @returns {boolean} True if node is a comment
*/
- function isBlockTopPadded(node) {
- var blockStart = node.loc.start.line,
- first = node.body[0],
- firstLine = first.loc.start.line,
- expectedFirstLine = blockStart + 2,
- leadingComments = (node.body[0].leadingComments || []).slice(),
- firstComment;
-
- while (leadingComments.length > 0 &&
- leadingComments[0].loc.start.line <= node.loc.start.line) {
- leadingComments.shift();
- }
-
- firstComment = leadingComments[0];
-
- if (firstComment && isLocatedBefore(firstComment, first)) {
- firstLine = firstComment.loc.start.line;
- }
+ function isComment(node) {
+ return node.type === "Line" || node.type === "Block";
+ }
+ /**
+ * Checks if the given token has a blank line after it.
+ * @param {Token} token The token to check.
+ * @returns {boolean} Whether or not the token is followed by a blank line.
+ */
+ function isTokenTopPadded(token) {
+ var tokenStartLine = token.loc.start.line,
+ expectedFirstLine = tokenStartLine + 2,
+ first,
+ firstLine;
+
+ first = token;
+ do {
+ first = sourceCode.getTokenOrCommentAfter(first);
+ } while (isComment(first) && first.loc.start.line === tokenStartLine);
+
+ firstLine = first.loc.start.line;
return expectedFirstLine <= firstLine;
}
/**
- * Checks if the given non empty block node has a blank line after its last child node.
- * @param {ASTNode} node The AST node of a BlockStatement.
- * @returns {boolean} Whether or not the block ends with a blank line.
+ * Checks if the given token is preceeded by a blank line.
+ * @param {Token} token The token to check
+ * @returns {boolean} Whether or not the token is preceeded by a blank line
*/
- function isBlockBottomPadded(node) {
- var blockEnd = node.loc.end.line,
- last = node.body[node.body.length - 1],
- lastToken = context.getLastToken(last),
- lastLine = lastToken.loc.end.line,
+ function isTokenBottomPadded(token) {
+ var blockEnd = token.loc.end.line,
expectedLastLine = blockEnd - 2,
- trailingComments = (node.body[node.body.length - 1].trailingComments || []).slice(),
- lastComment;
+ last,
+ lastLine;
- while (trailingComments.length > 0 &&
- trailingComments[trailingComments.length - 1].loc.end.line >= node.loc.end.line) {
- trailingComments.pop();
- }
+ last = token;
+ do {
+ last = sourceCode.getTokenOrCommentBefore(last);
+ } while (isComment(last) && last.loc.end.line === blockEnd);
- lastComment = trailingComments[trailingComments.length - 1];
+ lastLine = last.loc.end.line;
+ return lastLine <= expectedLastLine;
+ }
- if (lastComment && isLocatedBefore(lastToken, lastComment)) {
- lastLine = lastComment.loc.end.line;
+ /**
+ * Checks if a node should be padded, according to the rule config.
+ * @param {ASTNode} node The AST node to check.
+ * @returns {boolean} True if the node should be padded, false otherwise.
+ */
+ function requirePaddingFor(node) {
+ switch (node.type) {
+ case "BlockStatement":
+ return options.blocks;
+ case "SwitchStatement":
+ return options.switches;
+ case "ClassBody":
+ return options.classes;
+
+ /* istanbul ignore next */
+ default:
+ throw new Error("unreachable");
}
-
- return lastLine <= expectedLastLine;
}
/**
@@ -87,46 +120,99 @@ module.exports = function(context) {
* @returns {void} undefined.
*/
function checkPadding(node) {
- if (node.body.length > 0) {
-
- var blockHasTopPadding = isBlockTopPadded(node),
- blockHasBottomPadding = isBlockBottomPadded(node);
-
- if (requirePadding) {
- if (!blockHasTopPadding) {
- context.report(node, ALWAYS_MESSAGE);
- }
- if (!blockHasBottomPadding) {
- context.report({
- node: node,
- loc: {line: node.loc.end.line, column: node.loc.end.column - 1 },
- message: ALWAYS_MESSAGE
- });
- }
- } else {
- if (blockHasTopPadding) {
- context.report(node, NEVER_MESSAGE);
- }
-
- if (blockHasBottomPadding) {
- context.report({
- node: node,
- loc: {line: node.loc.end.line, column: node.loc.end.column - 1 },
- message: NEVER_MESSAGE
- });
- }
+ var openBrace = getOpenBrace(node),
+ closeBrace = sourceCode.getLastToken(node),
+ blockHasTopPadding = isTokenTopPadded(openBrace),
+ blockHasBottomPadding = isTokenBottomPadded(closeBrace);
+
+ if (requirePaddingFor(node)) {
+ if (!blockHasTopPadding) {
+ context.report({
+ node: node,
+ loc: { line: openBrace.loc.start.line, column: openBrace.loc.start.column },
+ message: ALWAYS_MESSAGE
+ });
+ }
+ if (!blockHasBottomPadding) {
+ context.report({
+ node: node,
+ loc: {line: closeBrace.loc.end.line, column: closeBrace.loc.end.column - 1 },
+ message: ALWAYS_MESSAGE
+ });
+ }
+ } else {
+ if (blockHasTopPadding) {
+ context.report({
+ node: node,
+ loc: { line: openBrace.loc.start.line, column: openBrace.loc.start.column },
+ message: NEVER_MESSAGE
+ });
+ }
+
+ if (blockHasBottomPadding) {
+ context.report({
+ node: node,
+ loc: {line: closeBrace.loc.end.line, column: closeBrace.loc.end.column - 1 },
+ message: NEVER_MESSAGE
+ });
}
}
}
- return {
- "BlockStatement": checkPadding
- };
+ var rule = {};
+
+ if (options.hasOwnProperty("switches")) {
+ rule.SwitchStatement = function(node) {
+ if (node.cases.length === 0) {
+ return;
+ }
+ checkPadding(node);
+ };
+ }
+
+ if (options.hasOwnProperty("blocks")) {
+ rule.BlockStatement = function(node) {
+ if (node.body.length === 0) {
+ return;
+ }
+ checkPadding(node);
+ };
+ }
+ if (options.hasOwnProperty("classes")) {
+ rule.ClassBody = function(node) {
+ if (node.body.length === 0) {
+ return;
+ }
+ checkPadding(node);
+ };
+ }
+
+ return rule;
};
module.exports.schema = [
{
- "enum": ["always", "never"]
+ "oneOf": [
+ {
+ "enum": ["always", "never"]
+ },
+ {
+ "type": "object",
+ "properties": {
+ "blocks": {
+ "enum": ["always", "never"]
+ },
+ "switches": {
+ "enum": ["always", "never"]
+ },
+ "classes": {
+ "enum": ["always", "never"]
+ }
+ },
+ "additionalProperties": false,
+ "minProperties": 1
+ }
+ ]
}
];
diff --git a/tools/eslint/lib/rules/prefer-arrow-callback.js b/tools/eslint/lib/rules/prefer-arrow-callback.js
index f7f26ca2581b99..a51fa6026e30e3 100644
--- a/tools/eslint/lib/rules/prefer-arrow-callback.js
+++ b/tools/eslint/lib/rules/prefer-arrow-callback.js
@@ -27,6 +27,7 @@ function isFunctionName(variable) {
* @returns {boolean} `true` if the node is the specific value.
*/
function checkMetaProperty(node, metaName, propertyName) {
+
// TODO: Remove this if block after https://github.com/eslint/espree/issues/206 was fixed.
if (typeof node.meta === "string") {
return node.meta === metaName && node.property === propertyName;
@@ -41,11 +42,17 @@ function checkMetaProperty(node, metaName, propertyName) {
*/
function getVariableOfArguments(scope) {
var variables = scope.variables;
+
for (var i = 0; i < variables.length; ++i) {
var variable = variables[i];
+
if (variable.name === "arguments") {
- // If there was a parameter which is named "arguments", the implicit "arguments" is not defined.
- // So does fast return with null.
+
+ /*
+ * If there was a parameter which is named "arguments", the
+ * implicit "arguments" is not defined.
+ * So does fast return with null.
+ */
return (variable.identifiers.length === 0) ? variable : null;
}
}
@@ -64,9 +71,12 @@ function getVariableOfArguments(scope) {
function getCallbackInfo(node) {
var retv = {isCallback: false, isLexicalThis: false};
var parent = node.parent;
+
while (node) {
switch (parent.type) {
+
// Checks parents recursively.
+
case "LogicalExpression":
case "ConditionalExpression":
break;
@@ -116,10 +126,13 @@ function getCallbackInfo(node) {
//------------------------------------------------------------------------------
module.exports = function(context) {
- // {Array<{this: boolean, super: boolean, meta: boolean}>}
- // - this - A flag which shows there are one or more ThisExpression.
- // - super - A flag which shows there are one or more Super.
- // - meta - A flag which shows there are one or more MethProperty.
+
+ /*
+ * {Array<{this: boolean, super: boolean, meta: boolean}>}
+ * - this - A flag which shows there are one or more ThisExpression.
+ * - super - A flag which shows there are one or more Super.
+ * - meta - A flag which shows there are one or more MethProperty.
+ */
var stack = [];
/**
@@ -139,6 +152,7 @@ module.exports = function(context) {
}
return {
+
// Reset internal state.
Program: function() {
stack = [];
@@ -147,18 +161,23 @@ module.exports = function(context) {
// If there are below, it cannot replace with arrow functions merely.
ThisExpression: function() {
var info = stack[stack.length - 1];
+
if (info) {
info.this = true;
}
},
+
Super: function() {
var info = stack[stack.length - 1];
+
if (info) {
info.super = true;
}
},
+
MetaProperty: function(node) {
var info = stack[stack.length - 1];
+
if (info && checkMetaProperty(node, "new", "target")) {
info.meta = true;
}
@@ -180,18 +199,21 @@ module.exports = function(context) {
// Skip recursive functions.
var nameVar = context.getDeclaredVariables(node)[0];
+
if (isFunctionName(nameVar) && nameVar.references.length > 0) {
return;
}
// Skip if it's using arguments.
var variable = getVariableOfArguments(context.getScope());
+
if (variable && variable.references.length > 0) {
return;
}
// Reports if it's a callback which can replace with arrows.
var callbackInfo = getCallbackInfo(node);
+
if (callbackInfo.isCallback &&
(!scopeInfo.this || callbackInfo.isLexicalThis) &&
!scopeInfo.super &&
diff --git a/tools/eslint/lib/rules/prefer-const.js b/tools/eslint/lib/rules/prefer-const.js
index a866a6d20cc193..ae55b516450756 100644
--- a/tools/eslint/lib/rules/prefer-const.js
+++ b/tools/eslint/lib/rules/prefer-const.js
@@ -1,143 +1,178 @@
/**
- * @fileoverview A rule to suggest using of const declaration for variables that are never modified after declared.
+ * @fileoverview A rule to suggest using of const declaration for variables that are never reassigned after declared.
* @author Toru Nagashima
* @copyright 2015 Toru Nagashima. All rights reserved.
*/
"use strict";
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+var Map = require("es6-map");
+
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
-var LOOP_TYPES = /^(?:While|DoWhile|For|ForIn|ForOf)Statement$/;
-var FOR_IN_OF_TYPES = /^For(?:In|Of)Statement$/;
-var SENTINEL_TYPES = /(?:Declaration|Statement)$/;
-var END_POSITION_TYPES = /^(?:Assignment|Update)/;
+var PATTERN_TYPE = /^(?:.+?Pattern|RestElement|Property)$/;
+var DECLARATION_HOST_TYPE = /^(?:Program|BlockStatement|SwitchCase)$/;
+var DESTRUCTURING_HOST_TYPE = /^(?:VariableDeclarator|AssignmentExpression)$/;
+
+/**
+ * Adds multiple items to the tail of an array.
+ *
+ * @param {any[]} array - A destination to add.
+ * @param {any[]} values - Items to be added.
+ * @returns {void}
+ */
+var pushAll = Function.apply.bind(Array.prototype.push);
+
+/**
+ * Checks whether a given node is located at `ForStatement.init` or not.
+ *
+ * @param {ASTNode} node - A node to check.
+ * @returns {boolean} `true` if the node is located at `ForStatement.init`.
+ */
+function isInitOfForStatement(node) {
+ return node.parent.type === "ForStatement" && node.parent.init === node;
+}
+
+/**
+ * Checks whether a given Identifier node becomes a VariableDeclaration or not.
+ *
+ * @param {ASTNode} identifier - An Identifier node to check.
+ * @returns {boolean} `true` if the node can become a VariableDeclaration.
+ */
+function canBecomeVariableDeclaration(identifier) {
+ var node = identifier.parent;
+
+ while (PATTERN_TYPE.test(node.type)) {
+ node = node.parent;
+ }
+
+ return (
+ node.type === "VariableDeclarator" ||
+ (
+ node.type === "AssignmentExpression" &&
+ node.parent.type === "ExpressionStatement" &&
+ DECLARATION_HOST_TYPE.test(node.parent.parent.type)
+ )
+ );
+}
/**
- * Gets a write reference from a given variable if the variable is modified only
- * once.
+ * Gets the WriteReference of a given variable if the variable should be
+ * declared as const.
*
* @param {escope.Variable} variable - A variable to get.
- * @returns {escope.Reference|null} A write reference or null.
+ * @returns {escope.Reference|null} The singular WriteReference or null.
*/
-function getWriteReferenceIfOnce(variable) {
- var retv = null;
+function getWriteReferenceIfShouldBeConst(variable) {
+ if (variable.eslintUsed) {
+ return null;
+ }
+ // Finds the singular WriteReference.
+ var retv = null;
var references = variable.references;
+
for (var i = 0; i < references.length; ++i) {
var reference = references[i];
if (reference.isWrite()) {
- if (retv && !(retv.init && reference.init)) {
- // This variable is modified two or more times.
+ var isReassigned = Boolean(
+ retv && retv.identifier !== reference.identifier
+ );
+
+ if (isReassigned) {
return null;
}
retv = reference;
}
}
- return retv;
+ // Checks the writer is located in the same scope and can be modified to
+ // const.
+ var isSameScopeAndCanBecomeVariableDeclaration = Boolean(
+ retv &&
+ retv.from === variable.scope &&
+ canBecomeVariableDeclaration(retv.identifier)
+ );
+
+ return isSameScopeAndCanBecomeVariableDeclaration ? retv : null;
}
/**
- * Checks whether or not a given reference is in a loop condition or a
- * for-loop's updater.
+ * Gets the VariableDeclarator/AssignmentExpression node that a given reference
+ * belongs to.
+ * This is used to detect a mix of reassigned and never reassigned in a
+ * destructuring.
*
- * @param {escope.Reference} reference - A reference to check.
- * @returns {boolean} `true` if the reference is in a loop condition or a
- * for-loop's updater.
+ * @param {escope.Reference} reference - A reference to get.
+ * @returns {ASTNode|null} A VariableDeclarator/AssignmentExpression node or
+ * null.
*/
-function isInLoopHead(reference) {
- var node = reference.identifier;
- var parent = node.parent;
- var assignment = false;
-
- while (parent) {
- if (LOOP_TYPES.test(parent.type)) {
- return true;
- }
-
- // VariableDeclaration can be at ForInStatement.left
- // This is catching the code like `for (const {b = ++a} of foo()) { ... }`
- if (assignment &&
- parent.type === "VariableDeclaration" &&
- FOR_IN_OF_TYPES.test(parent.parent.type) &&
- parent.parent.left === parent
- ) {
- return true;
- }
- if (parent.type === "AssignmentPattern") {
- assignment = true;
- }
-
- // If a declaration or a statement was found before a loop,
- // it's not in the head of a loop.
- if (SENTINEL_TYPES.test(parent.type)) {
- break;
- }
+function getDestructuringHost(reference) {
+ if (!reference.isWrite()) {
+ return null;
+ }
+ var node = reference.identifier.parent;
- node = parent;
- parent = parent.parent;
+ while (PATTERN_TYPE.test(node.type)) {
+ node = node.parent;
}
- return false;
+ if (!DESTRUCTURING_HOST_TYPE.test(node.type)) {
+ return null;
+ }
+ return node;
}
/**
- * Gets the end position of a given reference.
- * This position is used to check every ReadReferences exist after the given
- * reference.
- *
- * If the reference is belonging to AssignmentExpression or UpdateExpression,
- * this function returns the most rear position of those nodes.
- * The range of those nodes are executed before the assignment.
+ * Groups by the VariableDeclarator/AssignmentExpression node that each
+ * reference of given variables belongs to.
+ * This is used to detect a mix of reassigned and never reassigned in a
+ * destructuring.
*
- * @param {escope.Reference} writer - A reference to get.
- * @returns {number} The end position of the reference.
+ * @param {escope.Variable[]} variables - Variables to group by destructuring.
+ * @returns {Map} Grouped references.
*/
-function getEndPosition(writer) {
- var node = writer.identifier;
- var end = node.range[1];
-
- // Detects the end position of the assignment expression the reference is
- // belonging to.
- while ((node = node.parent)) {
- if (END_POSITION_TYPES.test(node.type)) {
- end = node.range[1];
- }
- if (SENTINEL_TYPES.test(node.type)) {
- break;
- }
- }
+function groupByDestructuring(variables) {
+ var writersMap = new Map();
- return end;
-}
+ for (var i = 0; i < variables.length; ++i) {
+ var variable = variables[i];
+ var references = variable.references;
+ var writer = getWriteReferenceIfShouldBeConst(variable);
+ var prevId = null;
-/**
- * Gets a function which checks a given reference with the following condition:
- *
- * - The reference is a ReadReference.
- * - The reference exists after a specific WriteReference.
- * - The reference exists inside of the scope a specific WriteReference is
- * belonging to.
- *
- * @param {escope.Reference} writer - A reference to check.
- * @returns {function} A function which checks a given reference.
- */
-function isInScope(writer) {
- var start = getEndPosition(writer);
- var end = writer.from.block.range[1];
+ for (var j = 0; j < references.length; ++j) {
+ var reference = references[j];
+ var id = reference.identifier;
+
+ // Avoid counting a reference twice or more for default values of
+ // destructuring.
+ if (id === prevId) {
+ continue;
+ }
+ prevId = id;
- return function(reference) {
- if (!reference.isRead()) {
- return true;
+ // Add the writer into the destructuring group.
+ var group = getDestructuringHost(reference);
+
+ if (group) {
+ if (writersMap.has(group)) {
+ writersMap.get(group).push(writer);
+ } else {
+ writersMap.set(group, [writer]);
+ }
+ }
}
+ }
- var range = reference.identifier.range;
- return start <= range[0] && range[1] <= end;
- };
+ return writersMap;
}
//------------------------------------------------------------------------------
@@ -145,80 +180,89 @@ function isInScope(writer) {
//------------------------------------------------------------------------------
module.exports = function(context) {
+ var options = context.options[0] || {};
+ var checkingMixedDestructuring = options.destructuring !== "all";
+ var variables = null;
/**
- * Searches and reports variables that are never modified after declared.
- * @param {Scope} scope - A scope of the search domain.
+ * Reports a given reference.
+ *
+ * @param {escope.Reference} reference - A reference to report.
* @returns {void}
*/
- function checkForVariables(scope) {
- // Skip the TDZ type.
- if (scope.type === "TDZ") {
- return;
- }
+ function report(reference) {
+ var id = reference.identifier;
- var variables = scope.variables;
- for (var i = 0; i < variables.length; ++i) {
- var variable = variables[i];
- var def = variable.defs[0];
- var declaration = def && def.parent;
- var statement = declaration && declaration.parent;
- var references = variable.references;
- var identifier = variable.identifiers[0];
-
- // Skips excludes `let`.
- // And skips if it's at `ForStatement.init`.
- if (!declaration ||
- declaration.type !== "VariableDeclaration" ||
- declaration.kind !== "let" ||
- (statement.type === "ForStatement" && statement.init === declaration)
- ) {
- continue;
- }
+ context.report({
+ node: id,
+ message: "'{{name}}' is never reassigned, use 'const' instead.",
+ data: id
+ });
+ }
- // Checks references.
- // - One WriteReference exists.
- // - Two or more WriteReference don't exist.
- // - Every ReadReference exists after the WriteReference.
- // - The WriteReference doesn't exist in a loop condition.
- // - If `eslintUsed` is true, we cannot know where it was used from.
- // In this case, if the scope of the variable would change, it
- // skips the variable.
- var writer = getWriteReferenceIfOnce(variable);
- if (writer &&
- !(variable.eslintUsed && variable.scope !== writer.from) &&
- !isInLoopHead(writer) &&
- references.every(isInScope(writer))
- ) {
- context.report({
- node: identifier,
- message: "'{{name}}' is never modified, use 'const' instead.",
- data: identifier
- });
- }
+ /**
+ * Reports a given variable if the variable should be declared as const.
+ *
+ * @param {escope.Variable} variable - A variable to report.
+ * @returns {void}
+ */
+ function checkVariable(variable) {
+ var writer = getWriteReferenceIfShouldBeConst(variable);
+
+ if (writer) {
+ report(writer);
}
}
/**
- * Adds multiple items to the tail of an array.
- * @param {any[]} array - A destination to add.
- * @param {any[]} values - Items to be added.
+ * Reports given references if all of the reference should be declared as
+ * const.
+ *
+ * The argument 'writers' is an array of references.
+ * This reference is the result of
+ * 'getWriteReferenceIfShouldBeConst(variable)', so it's nullable.
+ * In simple declaration or assignment cases, the length of the array is 1.
+ * In destructuring cases, the length of the array can be 2 or more.
+ *
+ * @param {(escope.Reference|null)[]} writers - References which are grouped
+ * by destructuring to report.
* @returns {void}
*/
- var pushAll = Function.apply.bind(Array.prototype.push);
+ function checkGroup(writers) {
+ if (writers.every(Boolean)) {
+ writers.forEach(report);
+ }
+ }
return {
+ "Program": function() {
+ variables = [];
+ },
+
"Program:exit": function() {
- var stack = [context.getScope()];
- while (stack.length) {
- var scope = stack.pop();
- pushAll(stack, scope.childScopes);
+ if (checkingMixedDestructuring) {
+ variables.forEach(checkVariable);
+ } else {
+ groupByDestructuring(variables).forEach(checkGroup);
+ }
+
+ variables = null;
+ },
- checkForVariables(scope);
+ "VariableDeclaration": function(node) {
+ if (node.kind === "let" && !isInitOfForStatement(node)) {
+ pushAll(variables, context.getDeclaredVariables(node));
}
}
};
-
};
-module.exports.schema = [];
+module.exports.schema = [
+ {
+ type: "object",
+ properties: {
+ destructuring: {enum: ["any", "all"]}
+ },
+ additionalProperties: false
+ }
+];
diff --git a/tools/eslint/lib/rules/prefer-reflect.js b/tools/eslint/lib/rules/prefer-reflect.js
index 4d320614bb0d2d..83b805a30d99b9 100644
--- a/tools/eslint/lib/rules/prefer-reflect.js
+++ b/tools/eslint/lib/rules/prefer-reflect.js
@@ -56,6 +56,7 @@ module.exports = function(context) {
var isReflectCall = (node.callee.object || {}).name === "Reflect";
var hasReflectSubsitute = reflectSubsitutes.hasOwnProperty(methodName);
var userConfiguredException = exceptions.indexOf(methodName) !== -1;
+
if (hasReflectSubsitute && !isReflectCall && !userConfiguredException) {
report(node, existingNames[methodName], reflectSubsitutes[methodName]);
}
@@ -64,6 +65,7 @@ module.exports = function(context) {
var isDeleteOperator = node.operator === "delete";
var targetsIdentifier = node.argument.type === "Identifier";
var userConfiguredException = exceptions.indexOf("delete") !== -1;
+
if (isDeleteOperator && !targetsIdentifier && !userConfiguredException) {
report(node, "the delete keyword", "Reflect.deleteProperty");
}
diff --git a/tools/eslint/lib/rules/prefer-rest-params.js b/tools/eslint/lib/rules/prefer-rest-params.js
index 8f904d9b6fde9c..d52c1164cbf7d4 100644
--- a/tools/eslint/lib/rules/prefer-rest-params.js
+++ b/tools/eslint/lib/rules/prefer-rest-params.js
@@ -18,9 +18,12 @@
*/
function getVariableOfArguments(scope) {
var variables = scope.variables;
+
for (var i = 0; i < variables.length; ++i) {
var variable = variables[i];
+
if (variable.name === "arguments") {
+
// If there was a parameter which is named "arguments", the implicit "arguments" is not defined.
// So does fast return with null.
return (variable.identifiers.length === 0) ? variable : null;
@@ -57,6 +60,7 @@ module.exports = function(context) {
*/
function checkForArguments() {
var argumentsVar = getVariableOfArguments(context.getScope());
+
if (argumentsVar) {
argumentsVar.references.forEach(report);
}
diff --git a/tools/eslint/lib/rules/prefer-template.js b/tools/eslint/lib/rules/prefer-template.js
index 7cb4e03e79c4d8..19b3d10c0ab7a6 100644
--- a/tools/eslint/lib/rules/prefer-template.js
+++ b/tools/eslint/lib/rules/prefer-template.js
@@ -44,6 +44,7 @@ function getTopConcatBinaryExpression(node) {
*/
function hasNonStringLiteral(node) {
if (isConcatenation(node)) {
+
// `left` is deeper than `right` normally.
return hasNonStringLiteral(node.right) || hasNonStringLiteral(node.left);
}
diff --git a/tools/eslint/lib/rules/quote-props.js b/tools/eslint/lib/rules/quote-props.js
index 7f3e293f69ab8c..f3453adb063af2 100644
--- a/tools/eslint/lib/rules/quote-props.js
+++ b/tools/eslint/lib/rules/quote-props.js
@@ -41,13 +41,14 @@ module.exports = function(context) {
/**
* Checks if an espree-tokenized key has redundant quotes (i.e. whether quotes are unnecessary)
+ * @param {string} rawKey The raw key value from the source
* @param {espreeTokens} tokens The espree-tokenized node key
* @param {boolean} [skipNumberLiterals=false] Indicates whether number literals should be checked
* @returns {boolean} Whether or not a key has redundant quotes.
* @private
*/
- function areQuotesRedundant(tokens, skipNumberLiterals) {
- return tokens.length === 1 &&
+ function areQuotesRedundant(rawKey, tokens, skipNumberLiterals) {
+ return tokens.length === 1 && tokens[0].start === 0 && tokens[0].end === rawKey.length &&
(["Identifier", "Keyword", "Null", "Boolean"].indexOf(tokens[0].type) >= 0 ||
(tokens[0].type === "Numeric" && !skipNumberLiterals && "" + +tokens[0].value === tokens[0].value));
}
@@ -83,7 +84,7 @@ module.exports = function(context) {
return;
}
- if (CHECK_UNNECESSARY && areQuotesRedundant(tokens, NUMBERS)) {
+ if (CHECK_UNNECESSARY && areQuotesRedundant(key.value, tokens, NUMBERS)) {
context.report(node, MESSAGE_UNNECESSARY, {property: key.value});
}
} else if (KEYWORDS && key.type === "Identifier" && isKeyword(key.name)) {
@@ -139,7 +140,7 @@ module.exports = function(context) {
return;
}
- necessaryQuotes = necessaryQuotes || !areQuotesRedundant(tokens) || KEYWORDS && isKeyword(tokens[0].value);
+ necessaryQuotes = necessaryQuotes || !areQuotesRedundant(key.value, tokens) || KEYWORDS && isKeyword(tokens[0].value);
}
} else if (KEYWORDS && checkQuotesRedundancy && key.type === "Identifier" && isKeyword(key.name)) {
necessaryQuotes = true;
diff --git a/tools/eslint/lib/rules/quotes.js b/tools/eslint/lib/rules/quotes.js
index 10a349da797dfd..b5cce4bbfea2d9 100644
--- a/tools/eslint/lib/rules/quotes.js
+++ b/tools/eslint/lib/rules/quotes.js
@@ -34,6 +34,7 @@ var QUOTE_SETTINGS = {
description: "backtick"
}
};
+
/**
* Switches quoting of javascript string between ' " and `
* escaping and unescaping as necessary.
@@ -48,6 +49,7 @@ QUOTE_SETTINGS.single.convert =
QUOTE_SETTINGS.backtick.convert = function(str) {
var newQuote = this.quote;
var oldQuote = str[0];
+
if (newQuote === oldQuote) {
return str;
}
@@ -113,6 +115,7 @@ module.exports = function(context) {
*/
function isPartOfDirectivePrologue(node) {
var block = node.parent.parent;
+
if (block.type !== "Program" && (block.type !== "BlockStatement" || !FUNCTION_TYPE.test(block.parent.type))) {
return false;
}
@@ -142,6 +145,7 @@ module.exports = function(context) {
var parent = node.parent;
switch (parent.type) {
+
// Directive Prologues.
case "ExpressionStatement":
return isPartOfDirectivePrologue(node);
diff --git a/tools/eslint/lib/rules/radix.js b/tools/eslint/lib/rules/radix.js
index 9ec5231fddad1b..23a2f71d445409 100644
--- a/tools/eslint/lib/rules/radix.js
+++ b/tools/eslint/lib/rules/radix.js
@@ -6,67 +6,152 @@
"use strict";
//------------------------------------------------------------------------------
-// Rule Definition
+// Requirements
//------------------------------------------------------------------------------
-module.exports = function(context) {
+var astUtils = require("../ast-utils");
- var MODE_ALWAYS = "always",
- MODE_AS_NEEDED = "as-needed";
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
- var mode = context.options[0] || MODE_ALWAYS;
+var MODE_ALWAYS = "always",
+ MODE_AS_NEEDED = "as-needed";
- return {
- "CallExpression": function(node) {
+/**
+ * Checks whether a given variable is shadowed or not.
+ *
+ * @param {escope.Variable} variable - A variable to check.
+ * @returns {boolean} `true` if the variable is shadowed.
+ */
+function isShadowed(variable) {
+ return variable.defs.length >= 1;
+}
- var radix;
+/**
+ * Checks whether a given node is a MemberExpression of `parseInt` method or not.
+ *
+ * @param {ASTNode} node - A node to check.
+ * @returns {boolean} `true` if the node is a MemberExpression of `parseInt`
+ * method.
+ */
+function isParseIntMethod(node) {
+ return (
+ node.type === "MemberExpression" &&
+ !node.computed &&
+ node.property.type === "Identifier" &&
+ node.property.name === "parseInt"
+ );
+}
- if (!(node.callee.name === "parseInt" || (
- node.callee.type === "MemberExpression" &&
- node.callee.object.name === "Number" &&
- node.callee.property.name === "parseInt"
- )
- )) {
- return;
- }
+/**
+ * Checks whether a given node is a valid value of radix or not.
+ *
+ * The following values are invalid.
+ *
+ * - A literal except numbers.
+ * - undefined.
+ *
+ * @param {ASTNode} radix - A node of radix to check.
+ * @returns {boolean} `true` if the node is valid.
+ */
+function isValidRadix(radix) {
+ return !(
+ (radix.type === "Literal" && typeof radix.value !== "number") ||
+ (radix.type === "Identifier" && radix.name === "undefined")
+ );
+}
+
+/**
+ * Checks whether a given node is a default value of radix or not.
+ *
+ * @param {ASTNode} radix - A node of radix to check.
+ * @returns {boolean} `true` if the node is the literal node of `10`.
+ */
+function isDefaultRadix(radix) {
+ return radix.type === "Literal" && radix.value === 10;
+}
+
+//------------------------------------------------------------------------------
+// Rule Definition
+//------------------------------------------------------------------------------
+
+module.exports = function(context) {
+ var mode = context.options[0] || MODE_ALWAYS;
+
+ /**
+ * Checks the arguments of a given CallExpression node and reports it if it
+ * offends this rule.
+ *
+ * @param {ASTNode} node - A CallExpression node to check.
+ * @returns {void}
+ */
+ function checkArguments(node) {
+ var args = node.arguments;
- if (node.arguments.length === 0) {
+ switch (args.length) {
+ case 0:
context.report({
node: node,
message: "Missing parameters."
});
- } else if (node.arguments.length < 2 && mode === MODE_ALWAYS) {
- context.report({
- node: node,
- message: "Missing radix parameter."
- });
- } else if (node.arguments.length > 1 && mode === MODE_AS_NEEDED &&
- (node.arguments[1] && node.arguments[1].type === "Literal" &&
- node.arguments[1].value === 10)
- ) {
- context.report({
- node: node,
- message: "Redundant radix parameter."
- });
- } else {
+ break;
- radix = node.arguments[1];
+ case 1:
+ if (mode === MODE_ALWAYS) {
+ context.report({
+ node: node,
+ message: "Missing radix parameter."
+ });
+ }
+ break;
- // don't allow non-numeric literals or undefined
- if (radix &&
- ((radix.type === "Literal" && typeof radix.value !== "number") ||
- (radix.type === "Identifier" && radix.name === "undefined"))
- ) {
+ default:
+ if (mode === MODE_AS_NEEDED && isDefaultRadix(args[1])) {
+ context.report({
+ node: node,
+ message: "Redundant radix parameter."
+ });
+ } else if (!isValidRadix(args[1])) {
context.report({
node: node,
message: "Invalid radix parameter."
});
}
+ break;
+ }
+ }
+
+ return {
+ "Program:exit": function() {
+ var scope = context.getScope();
+ var variable;
+
+ // Check `parseInt()`
+ variable = astUtils.getVariableByName(scope, "parseInt");
+ if (!isShadowed(variable)) {
+ variable.references.forEach(function(reference) {
+ var node = reference.identifier;
+
+ if (astUtils.isCallee(node)) {
+ checkArguments(node.parent);
+ }
+ });
}
+ // Check `Number.parseInt()`
+ variable = astUtils.getVariableByName(scope, "Number");
+ if (!isShadowed(variable)) {
+ variable.references.forEach(function(reference) {
+ var node = reference.identifier.parent;
+
+ if (isParseIntMethod(node) && astUtils.isCallee(node)) {
+ checkArguments(node.parent);
+ }
+ });
+ }
}
};
-
};
module.exports.schema = [
diff --git a/tools/eslint/lib/rules/require-yield.js b/tools/eslint/lib/rules/require-yield.js
index 56d301a4458631..b293ee4c9e1875 100644
--- a/tools/eslint/lib/rules/require-yield.js
+++ b/tools/eslint/lib/rules/require-yield.js
@@ -36,6 +36,7 @@ module.exports = function(context) {
}
var countYield = stack.pop();
+
if (countYield === 0 && node.body.body.length > 0) {
context.report(
node,
@@ -51,6 +52,7 @@ module.exports = function(context) {
// Increases the count of `yield` keyword.
"YieldExpression": function() {
+
/* istanbul ignore else */
if (stack.length > 0) {
stack[stack.length - 1] += 1;
diff --git a/tools/eslint/lib/rules/semi-spacing.js b/tools/eslint/lib/rules/semi-spacing.js
index 879e1848b7242f..37fbc6f3c5cc0c 100644
--- a/tools/eslint/lib/rules/semi-spacing.js
+++ b/tools/eslint/lib/rules/semi-spacing.js
@@ -35,6 +35,7 @@ module.exports = function(context) {
*/
function hasLeadingSpace(token) {
var tokenBefore = context.getTokenBefore(token);
+
return tokenBefore && astUtils.isTokenOnSameLine(tokenBefore, token) && sourceCode.isSpaceBetweenTokens(tokenBefore, token);
}
@@ -45,6 +46,7 @@ module.exports = function(context) {
*/
function hasTrailingSpace(token) {
var tokenAfter = context.getTokenAfter(token);
+
return tokenAfter && astUtils.isTokenOnSameLine(token, tokenAfter) && sourceCode.isSpaceBetweenTokens(token, tokenAfter);
}
@@ -55,6 +57,7 @@ module.exports = function(context) {
*/
function isLastTokenInCurrentLine(token) {
var tokenAfter = context.getTokenAfter(token);
+
return !(tokenAfter && astUtils.isTokenOnSameLine(token, tokenAfter));
}
@@ -65,6 +68,7 @@ module.exports = function(context) {
*/
function isFirstTokenInCurrentLine(token) {
var tokenBefore = context.getTokenBefore(token);
+
return !(tokenBefore && astUtils.isTokenOnSameLine(token, tokenBefore));
}
@@ -75,6 +79,7 @@ module.exports = function(context) {
*/
function isBeforeClosingParen(token) {
var nextToken = context.getTokenAfter(token);
+
return (
nextToken &&
nextToken.type === "Punctuator" &&
@@ -111,6 +116,7 @@ module.exports = function(context) {
message: "Unexpected whitespace before semicolon.",
fix: function(fixer) {
var tokenBefore = context.getTokenBefore(token);
+
return fixer.removeRange([tokenBefore.range[1], token.range[0]]);
}
});
@@ -137,6 +143,7 @@ module.exports = function(context) {
message: "Unexpected whitespace after semicolon.",
fix: function(fixer) {
var tokenAfter = context.getTokenAfter(token);
+
return fixer.removeRange([token.range[1], tokenAfter.range[0]]);
}
});
@@ -164,6 +171,7 @@ module.exports = function(context) {
*/
function checkNode(node) {
var token = context.getLastToken(node);
+
checkSemicolonSpacing(token, node);
}
diff --git a/tools/eslint/lib/rules/semi.js b/tools/eslint/lib/rules/semi.js
index c7a7fe3ec377c7..2986f406e64b13 100644
--- a/tools/eslint/lib/rules/semi.js
+++ b/tools/eslint/lib/rules/semi.js
@@ -101,11 +101,13 @@ module.exports = function(context) {
*/
function isOneLinerBlock(node) {
var nextToken = context.getTokenAfter(node);
+
if (!nextToken || nextToken.value !== "}") {
return false;
}
var parent = node.parent;
+
return parent && parent.type === "BlockStatement" &&
parent.loc.start.line === parent.loc.end.line;
}
diff --git a/tools/eslint/lib/rules/sort-imports.js b/tools/eslint/lib/rules/sort-imports.js
index d74648ddb4a476..4e8807cedb725e 100644
--- a/tools/eslint/lib/rules/sort-imports.js
+++ b/tools/eslint/lib/rules/sort-imports.js
@@ -106,16 +106,23 @@ module.exports = function(context) {
// Multiple members of an import declaration should also be sorted alphabetically.
if (!ignoreMemberSort && node.specifiers.length > 1) {
- node.specifiers.reduce(function(previousSpecifier, currentSpecifier) {
- var currentSpecifierName = currentSpecifier.local.name,
- previousSpecifierName = previousSpecifier.local.name;
+ var previousSpecifier = null;
+ var previousSpecifierName = null;
+
+ for (var i = 0; i < node.specifiers.length; ++i) {
+ var currentSpecifier = node.specifiers[i];
+
+ if (currentSpecifier.type !== "ImportSpecifier") {
+ continue;
+ }
+
+ var currentSpecifierName = currentSpecifier.local.name;
if (ignoreCase) {
currentSpecifierName = currentSpecifierName.toLowerCase();
- previousSpecifierName = previousSpecifierName.toLowerCase();
}
- if (currentSpecifierName < previousSpecifierName) {
+ if (previousSpecifier && currentSpecifierName < previousSpecifierName) {
context.report({
node: currentSpecifier,
message: "Member '{{memberName}}' of the import declaration should be sorted alphabetically.",
@@ -125,8 +132,9 @@ module.exports = function(context) {
});
}
- return currentSpecifier;
- }, node.specifiers[0]);
+ previousSpecifier = currentSpecifier;
+ previousSpecifierName = currentSpecifierName;
+ }
}
previousDeclaration = node;
diff --git a/tools/eslint/lib/rules/space-in-parens.js b/tools/eslint/lib/rules/space-in-parens.js
index 68e03a1077aa79..bd15a41f3c66ba 100644
--- a/tools/eslint/lib/rules/space-in-parens.js
+++ b/tools/eslint/lib/rules/space-in-parens.js
@@ -38,6 +38,7 @@ module.exports = function(context) {
function getExceptions() {
var openers = [],
closers = [];
+
if (options.braceException) {
openers.push("{");
closers.push("}");
@@ -189,6 +190,7 @@ module.exports = function(context) {
return {
"Program": function checkParenSpaces(node) {
var tokens, prevToken, nextToken;
+
exceptions = getExceptions();
tokens = sourceCode.tokensAndComments;
@@ -223,6 +225,7 @@ module.exports = function(context) {
}
});
} else if (token.value === ")" && shouldCloserHaveSpace(prevToken, token)) {
+
// context.report(node, token.loc.start, MISSING_SPACE_MESSAGE);
context.report({
node: node,
diff --git a/tools/eslint/lib/rules/space-infix-ops.js b/tools/eslint/lib/rules/space-infix-ops.js
index 8d696e65b9f6e5..dee07ee31ae75f 100644
--- a/tools/eslint/lib/rules/space-infix-ops.js
+++ b/tools/eslint/lib/rules/space-infix-ops.js
@@ -15,7 +15,7 @@ module.exports = function(context) {
"*", "/", "%", "+", "-", "<<", ">>", ">>>", "<", "<=", ">", ">=", "in",
"instanceof", "==", "!=", "===", "!==", "&", "^", "|", "&&", "||", "=",
"+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "&=", "^=", "|=",
- "?", ":", ","
+ "?", ":", ",", "**"
];
/**
@@ -26,7 +26,9 @@ module.exports = function(context) {
* @private
*/
function getFirstNonSpacedToken(left, right) {
- var op, tokens = context.getTokensBetween(left, right, 1);
+ var op,
+ tokens = context.getTokensBetween(left, right, 1);
+
for (var i = 1, l = tokens.length - 1; i < l; ++i) {
op = tokens[i];
if (
diff --git a/tools/eslint/lib/rules/space-unary-ops.js b/tools/eslint/lib/rules/space-unary-ops.js
index 843f34625af129..d5412e36f3abde 100644
--- a/tools/eslint/lib/rules/space-unary-ops.js
+++ b/tools/eslint/lib/rules/space-unary-ops.js
@@ -35,6 +35,68 @@ module.exports = function(context) {
return node.argument && node.argument.type && node.argument.type === "ObjectExpression";
}
+ /**
+ * Checks if an override exists for a given operator.
+ * @param {ASTnode} node AST node
+ * @param {string} operator Operator
+ * @returns {boolean} Whether or not an override has been provided for the operator
+ */
+ function overrideExistsForOperator(node, operator) {
+ return options.overrides && options.overrides.hasOwnProperty(operator);
+ }
+
+ /**
+ * Gets the value that the override was set to for this operator
+ * @param {ASTnode} node AST node
+ * @param {string} operator Operator
+ * @returns {boolean} Whether or not an override enforces a space with this operator
+ */
+ function overrideEnforcesSpaces(node, operator) {
+ return options.overrides[operator];
+ }
+
+ /**
+ * Verify Unary Word Operator has spaces after the word operator
+ * @param {ASTnode} node AST node
+ * @param {object} firstToken first token from the AST node
+ * @param {object} secondToken second token from the AST node
+ * @param {string} word The word to be used for reporting
+ * @returns {void}
+ */
+ function verifyWordHasSpaces(node, firstToken, secondToken, word) {
+ if (secondToken.range[0] === firstToken.range[1]) {
+ context.report({
+ node: node,
+ message: "Unary word operator '" + word + "' must be followed by whitespace.",
+ fix: function(fixer) {
+ return fixer.insertTextAfter(firstToken, " ");
+ }
+ });
+ }
+ }
+
+ /**
+ * Verify Unary Word Operator doesn't have spaces after the word operator
+ * @param {ASTnode} node AST node
+ * @param {object} firstToken first token from the AST node
+ * @param {object} secondToken second token from the AST node
+ * @param {string} word The word to be used for reporting
+ * @returns {void}
+ */
+ function verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word) {
+ if (isArgumentObjectExpression(node)) {
+ if (secondToken.range[0] > firstToken.range[1]) {
+ context.report({
+ node: node,
+ message: "Unexpected space after unary word operator '" + word + "'.",
+ fix: function(fixer) {
+ return fixer.removeRange([firstToken.range[1], secondToken.range[0]]);
+ }
+ });
+ }
+ }
+ }
+
/**
* Check Unary Word Operators for spaces after the word operator
* @param {ASTnode} node AST node
@@ -46,23 +108,92 @@ module.exports = function(context) {
function checkUnaryWordOperatorForSpaces(node, firstToken, secondToken, word) {
word = word || firstToken.value;
- if (options.words) {
- if (secondToken.range[0] === firstToken.range[1]) {
+ if (overrideExistsForOperator(node, word)) {
+ if (overrideEnforcesSpaces(node, word)) {
+ verifyWordHasSpaces(node, firstToken, secondToken, word);
+ } else {
+ verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word);
+ }
+ } else if (options.words) {
+ verifyWordHasSpaces(node, firstToken, secondToken, word);
+ } else {
+ verifyWordDoesntHaveSpaces(node, firstToken, secondToken, word);
+ }
+ }
+
+ /**
+ * Verifies YieldExpressions satisfy spacing requirements
+ * @param {ASTnode} node AST node
+ * @returns {void}
+ */
+ function checkForSpacesAfterYield(node) {
+ var tokens = context.getFirstTokens(node, 3),
+ word = "yield";
+
+ if (!node.argument || node.delegate) {
+ return;
+ }
+
+ checkUnaryWordOperatorForSpaces(node, tokens[0], tokens[1], word);
+ }
+
+ /**
+ * Verifies UnaryExpression, UpdateExpression and NewExpression have spaces before or after the operator
+ * @param {ASTnode} node AST node
+ * @param {object} firstToken First token in the expression
+ * @param {object} secondToken Second token in the expression
+ * @returns {void}
+ */
+ function verifyNonWordsHaveSpaces(node, firstToken, secondToken) {
+ if (node.prefix) {
+ if (isFirstBangInBangBangExpression(node)) {
+ return;
+ }
+ if (firstToken.range[1] === secondToken.range[0]) {
context.report({
node: node,
- message: "Unary word operator '" + word + "' must be followed by whitespace.",
+ message: "Unary operator '" + firstToken.value + "' must be followed by whitespace.",
fix: function(fixer) {
return fixer.insertTextAfter(firstToken, " ");
}
});
}
+ } else {
+ if (firstToken.range[1] === secondToken.range[0]) {
+ context.report({
+ node: node,
+ message: "Space is required before unary expressions '" + secondToken.value + "'.",
+ fix: function(fixer) {
+ return fixer.insertTextBefore(secondToken, " ");
+ }
+ });
+ }
}
+ }
- if (!options.words && isArgumentObjectExpression(node)) {
+ /**
+ * Verifies UnaryExpression, UpdateExpression and NewExpression don't have spaces before or after the operator
+ * @param {ASTnode} node AST node
+ * @param {object} firstToken First token in the expression
+ * @param {object} secondToken Second token in the expression
+ * @returns {void}
+ */
+ function verifyNonWordsDontHaveSpaces(node, firstToken, secondToken) {
+ if (node.prefix) {
if (secondToken.range[0] > firstToken.range[1]) {
context.report({
node: node,
- message: "Unexpected space after unary word operator '" + word + "'.",
+ message: "Unexpected space after unary operator '" + firstToken.value + "'.",
+ fix: function(fixer) {
+ return fixer.removeRange([firstToken.range[1], secondToken.range[0]]);
+ }
+ });
+ }
+ } else {
+ if (secondToken.range[0] > firstToken.range[1]) {
+ context.report({
+ node: node,
+ message: "Unexpected space before unary operator '" + secondToken.value + "'.",
fix: function(fixer) {
return fixer.removeRange([firstToken.range[1], secondToken.range[0]]);
}
@@ -72,7 +203,7 @@ module.exports = function(context) {
}
/**
- * Checks UnaryExpression, UpdateExpression and NewExpression for spaces before and after the operator
+ * Verifies UnaryExpression, UpdateExpression and NewExpression satisfy spacing requirements
* @param {ASTnode} node AST node
* @returns {void}
*/
@@ -86,53 +217,18 @@ module.exports = function(context) {
return;
}
- if (options.nonwords) {
- if (node.prefix) {
- if (isFirstBangInBangBangExpression(node)) {
- return;
- }
- if (firstToken.range[1] === secondToken.range[0]) {
- context.report({
- node: node,
- message: "Unary operator '" + firstToken.value + "' must be followed by whitespace.",
- fix: function(fixer) {
- return fixer.insertTextAfter(firstToken, " ");
- }
- });
- }
+ var operator = node.prefix ? tokens[0].value : tokens[1].value;
+
+ if (overrideExistsForOperator(node, operator)) {
+ if (overrideEnforcesSpaces(node, operator)) {
+ verifyNonWordsHaveSpaces(node, firstToken, secondToken);
} else {
- if (firstToken.range[1] === secondToken.range[0]) {
- context.report({
- node: node,
- message: "Space is required before unary expressions '" + secondToken.value + "'.",
- fix: function(fixer) {
- return fixer.insertTextBefore(secondToken, " ");
- }
- });
- }
+ verifyNonWordsDontHaveSpaces(node, firstToken, secondToken);
}
+ } else if (options.nonwords) {
+ verifyNonWordsHaveSpaces(node, firstToken, secondToken);
} else {
- if (node.prefix) {
- if (secondToken.range[0] > firstToken.range[1]) {
- context.report({
- node: node,
- message: "Unexpected space after unary operator '" + firstToken.value + "'.",
- fix: function(fixer) {
- return fixer.removeRange([firstToken.range[1], secondToken.range[0]]);
- }
- });
- }
- } else {
- if (secondToken.range[0] > firstToken.range[1]) {
- context.report({
- node: node,
- message: "Unexpected space before unary operator '" + secondToken.value + "'.",
- fix: function(fixer) {
- return fixer.removeRange([firstToken.range[1], secondToken.range[0]]);
- }
- });
- }
- }
+ verifyNonWordsDontHaveSpaces(node, firstToken, secondToken);
}
}
@@ -144,16 +240,7 @@ module.exports = function(context) {
"UnaryExpression": checkForSpaces,
"UpdateExpression": checkForSpaces,
"NewExpression": checkForSpaces,
- "YieldExpression": function(node) {
- var tokens = context.getFirstTokens(node, 3),
- word = "yield";
-
- if (!node.argument || node.delegate) {
- return;
- }
-
- checkUnaryWordOperatorForSpaces(node, tokens[0], tokens[1], word);
- }
+ "YieldExpression": checkForSpacesAfterYield
};
};
@@ -167,6 +254,12 @@ module.exports.schema = [
},
"nonwords": {
"type": "boolean"
+ },
+ "overrides": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "boolean"
+ }
}
},
"additionalProperties": false
diff --git a/tools/eslint/lib/rules/spaced-comment.js b/tools/eslint/lib/rules/spaced-comment.js
index 2ee693ed808560..73f0861c8f39c9 100644
--- a/tools/eslint/lib/rules/spaced-comment.js
+++ b/tools/eslint/lib/rules/spaced-comment.js
@@ -20,6 +20,7 @@ var lodash = require("lodash");
*/
function escape(s) {
var isOneChar = s.length === 1;
+
s = lodash.escapeRegExp(s);
return isOneChar ? s : "(?:" + s + ")";
}
@@ -65,43 +66,57 @@ function parseMarkersOption(markers) {
function createAlwaysStylePattern(markers, exceptions) {
var pattern = "^";
- // A marker or nothing.
- // ["*"] ==> "\*?"
- // ["*", "!"] ==> "(?:\*|!)?"
- // ["*", "/", "!<"] ==> "(?:\*|\/|(?:!<))?" ==> https://jex.im/regulex/#!embed=false&flags=&re=(%3F%3A%5C*%7C%5C%2F%7C(%3F%3A!%3C))%3F
+ /*
+ * A marker or nothing.
+ * ["*"] ==> "\*?"
+ * ["*", "!"] ==> "(?:\*|!)?"
+ * ["*", "/", "!<"] ==> "(?:\*|\/|(?:!<))?" ==> https://jex.im/regulex/#!embed=false&flags=&re=(%3F%3A%5C*%7C%5C%2F%7C(%3F%3A!%3C))%3F
+ */
if (markers.length === 1) {
+
// the marker.
pattern += escape(markers[0]);
} else {
+
// one of markers.
pattern += "(?:";
pattern += markers.map(escape).join("|");
pattern += ")";
}
+
pattern += "?"; // or nothing.
- // A space or an exception pattern sequence.
- // [] ==> "\s"
- // ["-"] ==> "(?:\s|\-+$)"
- // ["-", "="] ==> "(?:\s|(?:\-+|=+)$)"
- // ["-", "=", "--=="] ==> "(?:\s|(?:\-+|=+|(?:\-\-==)+)$)" ==> https://jex.im/regulex/#!embed=false&flags=&re=(%3F%3A%5Cs%7C(%3F%3A%5C-%2B%7C%3D%2B%7C(%3F%3A%5C-%5C-%3D%3D)%2B)%24)
+ /*
+ * A space or an exception pattern sequence.
+ * [] ==> "\s"
+ * ["-"] ==> "(?:\s|\-+$)"
+ * ["-", "="] ==> "(?:\s|(?:\-+|=+)$)"
+ * ["-", "=", "--=="] ==> "(?:\s|(?:\-+|=+|(?:\-\-==)+)$)" ==> https://jex.im/regulex/#!embed=false&flags=&re=(%3F%3A%5Cs%7C(%3F%3A%5C-%2B%7C%3D%2B%7C(%3F%3A%5C-%5C-%3D%3D)%2B)%24)
+ */
if (exceptions.length === 0) {
+
// a space.
pattern += "\\s";
} else {
+
// a space or...
pattern += "(?:\\s|";
+
if (exceptions.length === 1) {
+
// a sequence of the exception pattern.
pattern += escapeAndRepeat(exceptions[0]);
} else {
+
// a sequence of one of exception patterns.
pattern += "(?:";
pattern += exceptions.map(escapeAndRepeat).join("|");
pattern += ")";
}
+
pattern += "(?:$|[\n\r]))"; // the sequence continues until the end.
}
+
return new RegExp(pattern);
}
@@ -117,6 +132,7 @@ function createAlwaysStylePattern(markers, exceptions) {
*/
function createNeverStylePattern(markers) {
var pattern = "^(" + markers.map(escape).join("|") + ")?[ \t]+";
+
return new RegExp(pattern);
}
@@ -125,11 +141,15 @@ function createNeverStylePattern(markers) {
//------------------------------------------------------------------------------
module.exports = function(context) {
+
// Unless the first option is never, require a space
var requireSpace = context.options[0] !== "never";
- // Parse the second options.
- // If markers don't include `"*"`, it's added automatically for JSDoc comments.
+ /*
+ * Parse the second options.
+ * If markers don't include `"*"`, it's added automatically for JSDoc
+ * comments.
+ */
var config = context.options[1] || {};
var styleRules = ["block", "line"].reduce(function(rule, type) {
var markers = parseMarkersOption(config[type] && config[type].markers || config.markers);
@@ -196,6 +216,7 @@ module.exports = function(context) {
if (!rule.regex.test(node.value)) {
var hasMarker = rule.markers.exec(node.value);
var marker = hasMarker ? commentIdentifier + hasMarker[0] : commentIdentifier;
+
if (rule.hasExceptions) {
report(node, "Expected exception block, space or tab after '" + marker + "' in comment.", hasMarker);
} else {
@@ -204,6 +225,7 @@ module.exports = function(context) {
}
} else {
var matched = rule.regex.exec(node.value);
+
if (matched) {
if (!matched[1]) {
report(node, "Unexpected space or tab after '" + commentIdentifier + "' in comment.", matched);
diff --git a/tools/eslint/lib/rules/strict.js b/tools/eslint/lib/rules/strict.js
index 120ad87e64ec13..81f1cfbf8caffd 100644
--- a/tools/eslint/lib/rules/strict.js
+++ b/tools/eslint/lib/rules/strict.js
@@ -189,6 +189,7 @@ module.exports = function(context) {
if (mode === "function") {
lodash.assign(rule, {
+
// Inside of class bodies are always strict mode.
"ClassBody": function() {
classScopes.push(true);
diff --git a/tools/eslint/lib/rules/template-curly-spacing.js b/tools/eslint/lib/rules/template-curly-spacing.js
index 972e2daa28f0ec..4f5f9e1a4187c0 100644
--- a/tools/eslint/lib/rules/template-curly-spacing.js
+++ b/tools/eslint/lib/rules/template-curly-spacing.js
@@ -36,6 +36,7 @@ module.exports = function(context) {
*/
function checkSpacingBefore(token) {
var prevToken = sourceCode.getTokenBefore(token);
+
if (prevToken &&
CLOSE_PAREN.test(token.value) &&
astUtils.isTokenOnSameLine(prevToken, token) &&
@@ -64,6 +65,7 @@ module.exports = function(context) {
*/
function checkSpacingAfter(token) {
var nextToken = sourceCode.getTokenAfter(token);
+
if (nextToken &&
OPEN_PAREN.test(token.value) &&
astUtils.isTokenOnSameLine(token, nextToken) &&
@@ -91,6 +93,7 @@ module.exports = function(context) {
return {
TemplateElement: function(node) {
var token = sourceCode.getFirstToken(node);
+
checkSpacingBefore(token);
checkSpacingAfter(token);
}
diff --git a/tools/eslint/lib/rules/valid-jsdoc.js b/tools/eslint/lib/rules/valid-jsdoc.js
index d2a1dccde64017..299095064dc4c2 100644
--- a/tools/eslint/lib/rules/valid-jsdoc.js
+++ b/tools/eslint/lib/rules/valid-jsdoc.js
@@ -107,13 +107,13 @@ module.exports = function(context) {
var currentType;
var expectedType;
- if (!type.name) {
- currentType = type.expression.name;
- } else {
+ if (type.name) {
currentType = type.name;
+ } else if (type.expression) {
+ currentType = type.expression.name;
}
- expectedType = preferType[currentType];
+ expectedType = currentType && preferType[currentType];
return {
currentType: currentType,
@@ -123,46 +123,49 @@ module.exports = function(context) {
/**
* Check if return tag type is void or undefined
- * @param {Object} tag JSDoc tag
* @param {Object} jsdocNode JSDoc node
+ * @param {Object} type JSDoc tag
* @returns {void}
* @private
*/
- function validateTagType(tag, jsdocNode) {
- if (!tag.type || !canTypeBeValidated(tag.type.type)) {
+ function validateType(jsdocNode, type) {
+ if (!type || !canTypeBeValidated(type.type)) {
return;
}
var typesToCheck = [];
var elements = [];
- if (tag.type.type === "TypeApplication") { // {Array.}
- elements = tag.type.applications;
- typesToCheck.push(getCurrentExpectedTypes(tag.type));
- } else if (tag.type.type === "RecordType") { // {{20:String}}
- elements = tag.type.fields;
- } else if (tag.type.type === "UnionType") { // {String|number|Test}
- elements = tag.type.elements;
- } else {
- typesToCheck.push(getCurrentExpectedTypes(tag.type));
+ switch (type.type) {
+ case "TypeApplication": // {Array.}
+ elements = type.applications[0].type === "UnionType" ? type.applications[0].elements : type.applications;
+ typesToCheck.push(getCurrentExpectedTypes(type));
+ break;
+ case "RecordType": // {{20:String}}
+ elements = type.fields;
+ break;
+ case "UnionType": // {String|number|Test}
+ case "ArrayType": // {[String, number, Test]}
+ elements = type.elements;
+ break;
+ case "FieldType": // Array.<{count: number, votes: number}>
+ typesToCheck.push(getCurrentExpectedTypes(type.value));
+ break;
+ default:
+ typesToCheck.push(getCurrentExpectedTypes(type));
}
- elements.forEach(function(type) {
- type = type.value ? type.value : type; // we have to use type.value for RecordType
- if (canTypeBeValidated(type.type)) {
- typesToCheck.push(getCurrentExpectedTypes(type));
- }
- });
+ elements.forEach(validateType.bind(null, jsdocNode));
- typesToCheck.forEach(function(type) {
- if (type.expectedType &&
- type.expectedType !== type.currentType) {
+ typesToCheck.forEach(function(typeToCheck) {
+ if (typeToCheck.expectedType &&
+ typeToCheck.expectedType !== typeToCheck.currentType) {
context.report({
node: jsdocNode,
message: "Use '{{expectedType}}' instead of '{{currentType}}'.",
data: {
- currentType: type.currentType,
- expectedType: type.expectedType
+ currentType: typeToCheck.currentType,
+ expectedType: typeToCheck.expectedType
}
});
}
@@ -268,8 +271,8 @@ module.exports = function(context) {
}
// validate the types
- if (checkPreferType) {
- validateTagType(tag, jsdocNode);
+ if (checkPreferType && tag.type) {
+ validateType(jsdocNode, tag.type);
}
});
@@ -289,8 +292,12 @@ module.exports = function(context) {
node.params.forEach(function(param, i) {
var name = param.name;
+ if (param.type === "AssignmentPattern") {
+ name = param.left.name;
+ }
+
// TODO(nzakas): Figure out logical things to do with destructured, default, rest params
- if (param.type === "Identifier") {
+ if (param.type === "Identifier" || param.type === "AssignmentPattern") {
if (jsdocParams[i] && (name !== jsdocParams[i])) {
context.report(jsdocNode, "Expected JSDoc for '{{name}}' but found '{{jsdocName}}'.", {
name: name,
diff --git a/tools/eslint/lib/rules/vars-on-top.js b/tools/eslint/lib/rules/vars-on-top.js
index b142e3b56a7106..ae009f85ad4c27 100644
--- a/tools/eslint/lib/rules/vars-on-top.js
+++ b/tools/eslint/lib/rules/vars-on-top.js
@@ -44,7 +44,8 @@ module.exports = function(context) {
* @returns {Boolean} True if var is on top otherwise false
*/
function isVarOnTop(node, statements) {
- var i = 0, l = statements.length;
+ var i = 0,
+ l = statements.length;
// skip over directives
for (; i < l; ++i) {
@@ -54,7 +55,9 @@ module.exports = function(context) {
}
for (; i < l; ++i) {
- if (statements[i].type !== "VariableDeclaration") {
+ if (statements[i].type !== "VariableDeclaration" &&
+ (statements[i].type !== "ExportNamedDeclaration" ||
+ statements[i].declaration.type !== "VariableDeclaration")) {
return false;
}
if (statements[i] === node) {
@@ -103,6 +106,12 @@ module.exports = function(context) {
var grandParent = ancestors.pop();
if (node.kind === "var") { // check variable is `var` type and not `let` or `const`
+ if (parent.type === "ExportNamedDeclaration") {
+ node = parent;
+ parent = grandParent;
+ grandParent = ancestors.pop();
+ }
+
if (parent.type === "Program") { // That means its a global variable
globalVarCheck(node, parent);
} else {
diff --git a/tools/eslint/lib/rules/wrap-iife.js b/tools/eslint/lib/rules/wrap-iife.js
index 87d4d5ed696655..ac5c8a45f02a01 100644
--- a/tools/eslint/lib/rules/wrap-iife.js
+++ b/tools/eslint/lib/rules/wrap-iife.js
@@ -23,6 +23,7 @@ module.exports = function(context) {
function wrapped(node) {
var previousToken = context.getTokenBefore(node),
nextToken = context.getTokenAfter(node);
+
return previousToken && previousToken.value === "(" &&
nextToken && nextToken.value === ")";
}
diff --git a/tools/eslint/lib/rules/yield-star-spacing.js b/tools/eslint/lib/rules/yield-star-spacing.js
index 2ddfe5ce1471aa..c69594ae15a7d2 100644
--- a/tools/eslint/lib/rules/yield-star-spacing.js
+++ b/tools/eslint/lib/rules/yield-star-spacing.js
@@ -41,6 +41,7 @@ module.exports = function(context) {
var node = after ? leftToken : rightToken;
var type = spaceRequired ? "Missing" : "Unexpected";
var message = type + " space " + side + " *.";
+
context.report({
node: node,
message: message,
diff --git a/tools/eslint/lib/rules/yoda.js b/tools/eslint/lib/rules/yoda.js
index 57ac261b95a790..a5ff4a962632c4 100644
--- a/tools/eslint/lib/rules/yoda.js
+++ b/tools/eslint/lib/rules/yoda.js
@@ -96,15 +96,20 @@ function same(a, b) {
switch (a.type) {
case "Identifier":
return a.name === b.name;
+
case "Literal":
return a.value === b.value;
+
case "MemberExpression":
+
// x[0] = x[0]
// x[y] = x[y]
// x.y = x.y
return same(a.object, b.object) && same(a.property, b.property);
+
case "ThisExpression":
return true;
+
default:
return false;
}
diff --git a/tools/eslint/lib/testers/event-generator-tester.js b/tools/eslint/lib/testers/event-generator-tester.js
index 3aec32057f3346..c275a74b7607e9 100644
--- a/tools/eslint/lib/testers/event-generator-tester.js
+++ b/tools/eslint/lib/testers/event-generator-tester.js
@@ -19,6 +19,7 @@ var assert = require("assert");
//------------------------------------------------------------------------------
module.exports = {
+
/**
* Overrideable `describe` function to test.
* @param {string} text - A description.
diff --git a/tools/eslint/lib/testers/rule-tester.js b/tools/eslint/lib/testers/rule-tester.js
index b8e3cbdc1cbfb0..ce4ca1c4ba8a84 100644
--- a/tools/eslint/lib/testers/rule-tester.js
+++ b/tools/eslint/lib/testers/rule-tester.js
@@ -57,12 +57,18 @@ var lodash = require("lodash"),
//------------------------------------------------------------------------------
// Private Members
//------------------------------------------------------------------------------
-// testerDefaultConfig must not be modified as it allows to reset the tester to
-// the initial default configuration
+
+/*
+ * testerDefaultConfig must not be modified as it allows to reset the tester to
+ * the initial default configuration
+ */
var testerDefaultConfig = { rules: {} };
var defaultConfig = { rules: {} };
-// List every parameters possible on a test case that are not related to eslint
-// configuration
+
+/*
+ * List every parameters possible on a test case that are not related to eslint
+ * configuration
+ */
var RuleTesterParameters = [
"code",
"filename",
@@ -89,6 +95,7 @@ function cloneDeeplyExcludesParent(x) {
}
var retv = {};
+
for (var key in x) {
if (key !== "parent" && hasOwnProperty(x, key)) {
retv[key] = cloneDeeplyExcludesParent(x[key]);
@@ -139,8 +146,8 @@ function RuleTester(testerConfig) {
* @type {Object}
*/
this.testerConfig = lodash.merge(
- // we have to clone because merge uses the object on the left for
- // recipient
+
+ // we have to clone because merge uses the first argument for recipient
lodash.cloneDeep(defaultConfig),
testerConfig
);
@@ -228,9 +235,11 @@ RuleTester.prototype = {
code = item;
} else {
code = item.code;
+
// Assumes everything on the item is a config except for the
// parameters used by this tester
var itemConfig = lodash.omit(item, RuleTesterParameters);
+
// Create the config object from the tester config and this item
// specific configurations.
config = lodash.merge(
@@ -245,6 +254,7 @@ RuleTester.prototype = {
if (item.options) {
var options = item.options.concat();
+
options.unshift(1);
config.rules[ruleName] = options;
} else {
@@ -269,8 +279,11 @@ RuleTester.prototype = {
validator.validate(config, "rule-tester");
- // Setup AST getters.
- // To check whether or not AST was not modified in verify.
+ /*
+ * Setup AST getters.
+ * The goal is to check whether or not AST was modified when
+ * running the rule under test.
+ */
eslint.reset();
eslint.on("Program", function(node) {
beforeAST = cloneDeeplyExcludesParent(node);
@@ -282,9 +295,11 @@ RuleTester.prototype = {
// Freezes rule-context properties.
var originalGet = rules.get;
+
try {
rules.get = function(ruleId) {
var rule = originalGet(ruleId);
+
if (typeof rule === "function") {
return function(context) {
Object.freeze(context);
@@ -350,6 +365,9 @@ RuleTester.prototype = {
* @private
*/
function testInvalidTemplate(ruleName, item) {
+ assert.ok(item.errors || item.errors === 0,
+ "Did not specify errors for an invalid test of " + ruleName);
+
var result = runRuleForItem(ruleName, item);
var messages = result.messages;
@@ -368,13 +386,16 @@ RuleTester.prototype = {
assert.equal(messages[i].ruleId, ruleName, "Error rule name should be the same as the name of the rule being tested");
if (typeof item.errors[i] === "string") {
- // Just an error message.
+ // Just an error message.
assert.equal(messages[i].message, item.errors[i], "Error message should be " + item.errors[i]);
} else if (typeof item.errors[i] === "object") {
- // Error object. This may have a message, node type,
- // line, and/or column.
+ /*
+ * Error object.
+ * This may have a message, node type, line, and/or
+ * column.
+ */
if (item.errors[i].message) {
assert.equal(messages[i].message, item.errors[i].message, "Error message should be " + item.errors[i].message);
}
@@ -391,6 +412,7 @@ RuleTester.prototype = {
assert.equal(messages[i].column, item.errors[i].column, "Error column should be " + item.errors[i].column);
}
} else {
+
// Only string or object errors are valid.
assert.fail(messages[i], null, "Error should be a string or object.");
}
@@ -398,6 +420,7 @@ RuleTester.prototype = {
if (item.hasOwnProperty("output")) {
var fixResult = SourceCodeFixer.applyFixes(eslint.getSourceCode(), messages);
+
assert.equal(fixResult.output, item.output, "Output is incorrect.");
}
@@ -410,8 +433,10 @@ RuleTester.prototype = {
);
}
- // this creates a mocha test suite and pipes all supplied info
- // through one of the templates above.
+ /*
+ * This creates a mocha test suite and pipes all supplied info through
+ * one of the templates above.
+ */
RuleTester.describe(ruleName, function() {
RuleTester.describe("valid", function() {
test.valid.forEach(function(valid) {
diff --git a/tools/eslint/lib/timing.js b/tools/eslint/lib/timing.js
index 3af3a43c58e9e7..c1346480fd8a30 100644
--- a/tools/eslint/lib/timing.js
+++ b/tools/eslint/lib/timing.js
@@ -57,6 +57,7 @@ function display(data) {
var rows = Object.keys(data)
.map(function(key) {
var time = data[key];
+
total += time;
return [key, time];
})
@@ -73,8 +74,12 @@ function display(data) {
rows.unshift(HEADERS);
var widths = [];
+
rows.forEach(function(row) {
- var len = row.length, i, n;
+ var len = row.length,
+ i,
+ n;
+
for (i = 0; i < len; i++) {
n = row[i].length;
if (!widths[i] || n > widths[i]) {
@@ -88,6 +93,7 @@ function display(data) {
return ALIGN[index](cell, widths[index]);
}).join(" | ");
});
+
table.splice(1, 0, widths.map(function(w, index) {
if (index !== 0 && index !== widths.length - 1) {
w++;
@@ -118,6 +124,7 @@ module.exports = (function() {
return function() {
var t = process.hrtime();
+
fn.apply(null, Array.prototype.slice.call(arguments));
t = process.hrtime(t);
data[key] += t[0] * 1e3 + t[1] / 1e6;
diff --git a/tools/eslint/lib/token-store.js b/tools/eslint/lib/token-store.js
index 6a0149414236b7..91409b7eedde19 100644
--- a/tools/eslint/lib/token-store.js
+++ b/tools/eslint/lib/token-store.js
@@ -76,6 +76,7 @@ module.exports = function(tokens) {
*/
api.getTokensBefore = function(node, beforeCount) {
var first = starts[node.range[0]];
+
return get(first - (beforeCount || 0), first);
};
@@ -100,6 +101,7 @@ module.exports = function(tokens) {
*/
api.getTokensAfter = function(node, afterCount) {
var start = lastTokenIndex(node) + 1;
+
return get(start, start + (afterCount || 0));
};
@@ -136,6 +138,7 @@ module.exports = function(tokens) {
*/
api.getFirstTokens = function(node, count) {
var first = starts[node.range[0]];
+
return get(
first,
Math.min(lastTokenIndex(node) + 1, first + (count || 0))
@@ -160,6 +163,7 @@ module.exports = function(tokens) {
*/
api.getLastTokens = function(node, count) {
var last = lastTokenIndex(node) + 1;
+
return get(Math.max(starts[node.range[0]], last - (count || 0)), last);
};
diff --git a/tools/eslint/lib/util.js b/tools/eslint/lib/util.js
deleted file mode 100644
index 44d6a7d0cfdcd2..00000000000000
--- a/tools/eslint/lib/util.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @fileoverview Common utilities.
- */
-"use strict";
-
-//------------------------------------------------------------------------------
-// Constants
-//------------------------------------------------------------------------------
-
-/**
- * Gets the last element of a given array.
- * @param {any[]} xs - An array to get.
- * @returns {any|null} The last element, or `null` if the array is empty.
- */
-function getLast(xs) {
- var length = xs.length;
- return (length === 0 ? null : xs[length - 1]);
-}
-
-module.exports = {
- getLast: getLast
-};
diff --git a/tools/eslint/lib/util/comment-event-generator.js b/tools/eslint/lib/util/comment-event-generator.js
index fb56ee1c05141a..90bbfe9f2f444e 100644
--- a/tools/eslint/lib/util/comment-event-generator.js
+++ b/tools/eslint/lib/util/comment-event-generator.js
@@ -24,6 +24,7 @@ function emitComments(comments, emitter, locs, eventName) {
if (comments.length > 0) {
comments.forEach(function(node) {
var index = locs.indexOf(node.loc);
+
if (index >= 0) {
locs.splice(index, 1);
} else {
diff --git a/tools/eslint/lib/util/estraverse.js b/tools/eslint/lib/util/estraverse.js
deleted file mode 100644
index d2e0d9a8f10217..00000000000000
--- a/tools/eslint/lib/util/estraverse.js
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * @fileoverview Patch for estraverse
- * @author Toru Nagashima
- * @copyright 2015 Toru Nagashima. All rights reserved.
- * See LICENSE file in root directory for full license.
- */
-"use strict";
-
-//------------------------------------------------------------------------------
-// Requirements
-//------------------------------------------------------------------------------
-
-var estraverse = require("estraverse"),
- jsxKeys = require("estraverse-fb/keys");
-
-//------------------------------------------------------------------------------
-// Helers
-//------------------------------------------------------------------------------
-
-var experimentalKeys = {
- ExperimentalRestProperty: ["argument"],
- ExperimentalSpreadProperty: ["argument"]
-};
-
-/**
- * Adds a given keys to Syntax and VisitorKeys of estraverse.
- *
- * @param {object} keys - Key definitions to add.
- * This is an object as map.
- * Keys are the node type.
- * Values are an array of property names to visit.
- * @returns {void}
- */
-function installKeys(keys) {
- for (var key in keys) {
- /* istanbul ignore else */
- if (keys.hasOwnProperty(key)) {
- estraverse.Syntax[key] = key;
- if (keys[key]) {
- estraverse.VisitorKeys[key] = keys[key];
- }
- }
- }
-}
-
-// Add JSX node types.
-installKeys(jsxKeys);
-// Add Experimental node types.
-installKeys(experimentalKeys);
-
-//------------------------------------------------------------------------------
-// Public Interface
-//------------------------------------------------------------------------------
-
-module.exports = estraverse;
diff --git a/tools/eslint/lib/util/glob-util.js b/tools/eslint/lib/util/glob-util.js
index 68e64cba64260d..9a704d6308b833 100644
--- a/tools/eslint/lib/util/glob-util.js
+++ b/tools/eslint/lib/util/glob-util.js
@@ -12,9 +12,11 @@
var debug = require("debug"),
fs = require("fs"),
+ path = require("path"),
glob = require("glob"),
shell = require("shelljs"),
+ pathUtil = require("./path-util"),
IgnoredPaths = require("../ignored-paths");
debug = debug("eslint:glob-util");
@@ -33,12 +35,21 @@ debug = debug("eslint:glob-util");
*
* Also makes sure all path separators are POSIX style for `glob` compatibility.
*
- * @param {string[]} extensions An array of accepted extensions
+ * @param {object} [options] An options object
+ * @param {string[]} [options.extensions=[".js"]] An array of accepted extensions
+ * @param {string} [options.cwd=process.cwd()] The cwd to use to resolve relative pathnames
* @returns {Function} A function that takes a pathname and returns a glob that
* matches all files with the provided extensions if
* pathname is a directory.
*/
-function processPath(extensions) {
+function processPath(options) {
+ var cwd = (options && options.cwd) || process.cwd();
+ var extensions = (options && options.extensions) || [".js"];
+
+ extensions = extensions.map(function(ext) {
+ return ext.charAt(0) === "." ? ext.substr(1) : ext;
+ });
+
var suffix = "/**";
if (extensions.length === 1) {
@@ -56,12 +67,13 @@ function processPath(extensions) {
*/
return function(pathname) {
var newPath = pathname;
+ var resolvedPath = path.resolve(cwd, pathname);
- if (shell.test("-d", pathname)) {
+ if (shell.test("-d", resolvedPath)) {
newPath = pathname.replace(/[\/\\]$/, "") + suffix;
}
- return newPath.replace(/\\/g, "/").replace(/^\.\//, "");
+ return pathUtil.convertPathToPosix(newPath);
};
}
@@ -70,19 +82,15 @@ function processPath(extensions) {
//------------------------------------------------------------------------------
/**
- * Resolves the patterns into glob-based patterns for easier handling.
+ * Resolves any directory patterns into glob-based patterns for easier handling.
* @param {string[]} patterns File patterns (such as passed on the command line).
- * @param {string[]} extensions List of valid file extensions.
- * @returns {string[]} The equivalent glob patterns.
+ * @param {Object} options An options object.
+ * @returns {string[]} The equivalent glob patterns and filepath strings.
*/
-function resolveFileGlobPatterns(patterns, extensions) {
- extensions = extensions || [".js"];
+function resolveFileGlobPatterns(patterns, options) {
- extensions = extensions.map(function(ext) {
- return ext.charAt(0) === "." ? ext.substr(1) : ext;
- });
+ var processPathExtensions = processPath(options);
- var processPathExtensions = processPath(extensions);
return patterns.map(processPathExtensions);
}
@@ -92,6 +100,7 @@ function resolveFileGlobPatterns(patterns, extensions) {
*
* @param {string[]} globPatterns Glob patterns.
* @param {Object} [options] An options object.
+ * @param {string} [options.cwd] CWD (considered for relative filenames)
* @param {boolean} [options.ignore] False disables use of .eslintignore.
* @param {string} [options.ignorePath] The ignore file to use instead of .eslintignore.
* @param {string} [options.ignorePattern] A pattern of files to ignore.
@@ -99,46 +108,63 @@ function resolveFileGlobPatterns(patterns, extensions) {
*/
function listFilesToProcess(globPatterns, options) {
var ignoredPaths,
- ignoredPathsList,
files = [],
added = {},
- globOptions,
- rulesKey = "_rules";
+ globOptions;
+
+ var cwd = (options && options.cwd) || process.cwd();
/**
* Executes the linter on a file defined by the `filename`. Skips
* unsupported file extensions and any files that are already linted.
* @param {string} filename The file to be processed
+ * @param {boolean} shouldWarnIgnored Whether or not a report should be made if
+ * the file is ignored
* @returns {void}
*/
- function addFile(filename) {
- if (ignoredPaths.contains(filename)) {
- return;
+ function addFile(filename, shouldWarnIgnored) {
+ var ignored = false;
+ var isSilentlyIgnored;
+
+ if (options.ignore !== false) {
+ if (ignoredPaths.contains(filename, "default")) {
+ isSilentlyIgnored = true;
+ }
+ if (ignoredPaths.contains(filename, "custom")) {
+ if (shouldWarnIgnored) {
+ ignored = true;
+ } else {
+ isSilentlyIgnored = true;
+ }
+ }
+ if (isSilentlyIgnored && !ignored) {
+ return;
+ }
}
- filename = fs.realpathSync(filename);
if (added[filename]) {
return;
}
- files.push(filename);
+ files.push({filename: filename, ignored: ignored});
added[filename] = true;
}
options = options || { ignore: true, dotfiles: true };
ignoredPaths = new IgnoredPaths(options);
- ignoredPathsList = ignoredPaths.ig.custom[rulesKey].map(function(rule) {
- return rule.pattern;
- });
globOptions = {
nodir: true,
- ignore: ignoredPathsList
+ cwd: cwd
};
debug("Creating list of files to process.");
globPatterns.forEach(function(pattern) {
- if (shell.test("-f", pattern)) {
- addFile(pattern);
+ var file = path.resolve(cwd, pattern);
+
+ if (shell.test("-f", file)) {
+ addFile(fs.realpathSync(file), !shell.test("-d", file));
} else {
- glob.sync(pattern, globOptions).forEach(addFile);
+ glob.sync(pattern, globOptions).forEach(function(globMatch) {
+ addFile(path.resolve(cwd, globMatch), false);
+ });
}
});
diff --git a/tools/eslint/lib/util/hash.js b/tools/eslint/lib/util/hash.js
new file mode 100644
index 00000000000000..b0271bbf03dcbb
--- /dev/null
+++ b/tools/eslint/lib/util/hash.js
@@ -0,0 +1,37 @@
+/**
+ * @fileoverview Defining the hashing function in one place.
+ * @author Michael Ficarra
+ * @copyright 2016 Michael Ficarra. All rights reserved.
+ * See LICENSE file in root directory for full license.
+ */
+
+"use strict";
+
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+var murmur = require("imurmurhash");
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+//------------------------------------------------------------------------------
+// Private
+//------------------------------------------------------------------------------
+
+/**
+ * hash the given string
+ * @param {string} str the string to hash
+ * @returns {string} the hash
+ */
+function hash(str) {
+ return murmur(str).result().toString(36);
+}
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+module.exports = hash;
diff --git a/tools/eslint/lib/util/module-resolver.js b/tools/eslint/lib/util/module-resolver.js
new file mode 100644
index 00000000000000..9df544cf2b6840
--- /dev/null
+++ b/tools/eslint/lib/util/module-resolver.js
@@ -0,0 +1,87 @@
+/**
+ * @fileoverview Implements the Node.js require.resolve algorithm
+ * @author Nicholas C. Zakas
+ * @copyright 2016 Nicholas C. Zakas. All rights reserved.
+ * See LICENSE file in root directory for full license.
+ */
+
+"use strict";
+
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+var lodash = require("lodash"),
+ Module = require("module");
+
+//------------------------------------------------------------------------------
+// Private
+//------------------------------------------------------------------------------
+
+var DEFAULT_OPTIONS = {
+
+ /*
+ * module.paths is an array of paths to search for resolving things relative
+ * to this file. Module.globalPaths contains all of the special Node.js
+ * directories that can also be searched for modules.
+ */
+ lookupPaths: module.paths.concat(Module.globalPaths)
+};
+
+/**
+ * Resolves modules based on a set of options.
+ * @param {Object} options The options for resolving modules.
+ * @param {string[]} options.lookupPaths An array of paths to include in the
+ * lookup with the highest priority paths coming first.
+ * @constructor
+ */
+function ModuleResolver(options) {
+ options = options || {};
+
+ this.options = lodash.assign({}, DEFAULT_OPTIONS, options);
+}
+
+ModuleResolver.prototype = {
+
+ /**
+ * Resolves the file location of a given module relative to the configured
+ * lookup paths.
+ * @param {string} name The module name to resolve.
+ * @param {string} extraLookupPath An extra path to look into for the module.
+ * This path is used with the highest priority.
+ * @returns {string} The resolved file path for the module.
+ * @throws {Error} If the module cannot be resolved.
+ */
+ resolve: function(name, extraLookupPath) {
+
+ /*
+ * First, clone the lookup paths so we're not messing things up for
+ * subsequent calls to this function. Then, move the extraLookupPath to the
+ * top of the lookup paths list so it will be searched first.
+ */
+ var lookupPaths = this.options.lookupPaths.concat();
+
+ lookupPaths.unshift(extraLookupPath);
+
+ /**
+ * Module._findPath is an internal method to Node.js, then one they use to
+ * lookup file paths when require() is called. So, we are hooking into the
+ * exact same logic that Node.js uses.
+ */
+ var result = Module._findPath(name, lookupPaths); // eslint-disable-line no-underscore-dangle
+
+ if (!result) {
+ throw new Error("Cannot find module '" + name + "'");
+ }
+
+ return result;
+
+ }
+
+};
+
+//------------------------------------------------------------------------------
+// Public API
+//------------------------------------------------------------------------------
+
+module.exports = ModuleResolver;
diff --git a/tools/eslint/lib/util/npm-util.js b/tools/eslint/lib/util/npm-util.js
index fc9d3a6c7006ef..c45f0790115347 100644
--- a/tools/eslint/lib/util/npm-util.js
+++ b/tools/eslint/lib/util/npm-util.js
@@ -28,8 +28,10 @@ var fs = require("fs"),
*/
function findPackageJson(startDir) {
var dir = path.resolve(startDir || process.cwd());
+
do {
var pkgfile = path.join(dir, "package.json");
+
if (!fs.existsSync(pkgfile)) {
dir = path.join(dir, "..");
continue;
@@ -69,10 +71,12 @@ function installSyncSaveDev(packages) {
function check(packages, opt) {
var deps = [];
var pkgJson = (opt) ? findPackageJson(opt.startDir) : findPackageJson();
+
if (!pkgJson) {
throw new Error("Could not find a package.json file. Run 'npm init' to create one.");
}
var fileJson = JSON.parse(fs.readFileSync(pkgJson, "utf8"));
+
if (opt.devDependencies && typeof fileJson.devDependencies === "object") {
deps = deps.concat(Object.keys(fileJson.devDependencies));
}
diff --git a/tools/eslint/lib/util/path-util.js b/tools/eslint/lib/util/path-util.js
new file mode 100644
index 00000000000000..d1c8197adfb1f2
--- /dev/null
+++ b/tools/eslint/lib/util/path-util.js
@@ -0,0 +1,77 @@
+/**
+ * @fileoverview Common helpers for operations on filenames and paths
+ * @author Ian VanSchooten
+ * @copyright 2016 Ian VanSchooten. All rights reserved.
+ * See LICENSE in root directory for full license.
+ */
+"use strict";
+
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+var path = require("path"),
+ isAbsolute = require("path-is-absolute");
+
+//------------------------------------------------------------------------------
+// Private
+//------------------------------------------------------------------------------
+
+/**
+ * Replace Windows with posix style paths
+ *
+ * @param {string} filepath Path to convert
+ * @returns {string} Converted filepath
+ */
+function convertPathToPosix(filepath) {
+ var normalizedFilepath = path.normalize(filepath);
+ var posixFilepath = normalizedFilepath.replace(/\\/g, "/");
+
+ return posixFilepath;
+}
+
+/**
+ * Converts an absolute filepath to a relative path from a given base path
+ *
+ * For example, if the filepath is `/my/awesome/project/foo.bar`,
+ * and the base directory is `/my/awesome/project/`,
+ * then this function should return `foo.bar`.
+ *
+ * path.relative() does something similar, but it requires a baseDir (`from` argument).
+ * This function makes it optional and just removes a leading slash if the baseDir is not given.
+ *
+ * It does not take into account symlinks (for now).
+ *
+ * @param {string} filepath Path to convert to relative path. If already relative,
+ * it will be assumed to be relative to process.cwd(),
+ * converted to absolute, and then processed.
+ * @param {string} [baseDir] Absolute base directory to resolve the filepath from.
+ * If not provided, all this function will do is remove
+ * a leading slash.
+ * @returns {string} Relative filepath
+ */
+function getRelativePath(filepath, baseDir) {
+ var relativePath;
+
+ if (!isAbsolute(filepath)) {
+ filepath = path.resolve(filepath);
+ }
+ if (baseDir) {
+ if (!isAbsolute(baseDir)) {
+ throw new Error("baseDir should be an absolute path");
+ }
+ relativePath = path.relative(baseDir, filepath);
+ } else {
+ relativePath = filepath.replace(/^\//, "");
+ }
+ return relativePath;
+}
+
+//------------------------------------------------------------------------------
+// Public Interface
+//------------------------------------------------------------------------------
+
+module.exports = {
+ convertPathToPosix: convertPathToPosix,
+ getRelativePath: getRelativePath
+};
diff --git a/tools/eslint/lib/util/source-code-fixer.js b/tools/eslint/lib/util/source-code-fixer.js
index da7a1f98d05b6d..0ea68d382b2e36 100644
--- a/tools/eslint/lib/util/source-code-fixer.js
+++ b/tools/eslint/lib/util/source-code-fixer.js
@@ -105,11 +105,14 @@ SourceCodeFixer.applyFixes = function(sourceCode, messages) {
if (end < lastFixPos) {
if (start < 0) {
+
// Remove BOM.
prefix = "";
start = 0;
}
+
if (start === 0 && insertionText[0] === BOM) {
+
// Set BOM.
prefix = BOM;
insertionText = insertionText.slice(1);
diff --git a/tools/eslint/lib/util/source-code-util.js b/tools/eslint/lib/util/source-code-util.js
index 3a5396fdc0e87a..b12b095f17d0cd 100644
--- a/tools/eslint/lib/util/source-code-util.js
+++ b/tools/eslint/lib/util/source-code-util.js
@@ -36,11 +36,14 @@ function getSourceCodeOfFile(filename, options) {
var opts = lodash.assign({}, options, { rules: {}});
var cli = new CLIEngine(opts);
var results = cli.executeOnFiles([filename]);
+
if (results && results.results[0] && results.results[0].messages[0] && results.results[0].messages[0].fatal) {
var msg = results.results[0].messages[0];
+
throw new Error("(" + filename + ":" + msg.line + ":" + msg.column + ") " + msg.message);
}
var sourceCode = eslint.getSourceCode();
+
return sourceCode;
}
@@ -84,14 +87,17 @@ function getSourceCodeOfFiles(patterns, options, cb) {
opts = lodash.assign({}, defaultOptions, options);
}
debug("constructed options:", opts);
+ patterns = globUtil.resolveFileGlobPatterns(patterns, opts);
- patterns = globUtil.resolveFileGlobPatterns(patterns, opts.extensions);
- filenames = globUtil.listFilesToProcess(patterns, opts);
+ filenames = globUtil.listFilesToProcess(patterns, opts).reduce(function(files, fileInfo) {
+ return !fileInfo.ignored ? files.concat(fileInfo.filename) : files;
+ }, []);
if (filenames.length === 0) {
debug("Did not find any files matching pattern(s): " + patterns);
}
filenames.forEach(function(filename) {
var sourceCode = getSourceCodeOfFile(filename, opts);
+
if (sourceCode) {
debug("got sourceCode of", filename);
sourceCodes[filename] = sourceCode;
diff --git a/tools/eslint/lib/util/source-code.js b/tools/eslint/lib/util/source-code.js
index 9dd0a451203a87..a79bd5b531bcab 100644
--- a/tools/eslint/lib/util/source-code.js
+++ b/tools/eslint/lib/util/source-code.js
@@ -12,7 +12,7 @@
var lodash = require("lodash"),
createTokenStore = require("../token-store.js"),
- estraverse = require("./estraverse");
+ Traverser = require("./traverser");
//------------------------------------------------------------------------------
// Private
@@ -126,11 +126,13 @@ function SourceCode(text, ast) {
// create token store methods
var tokenStore = createTokenStore(ast.tokens);
+
Object.keys(tokenStore).forEach(function(methodName) {
this[methodName] = tokenStore[methodName];
}, this);
var tokensAndCommentsStore = createTokenStore(this.tokensAndComments);
+
this.getTokenOrCommentBefore = tokensAndCommentsStore.getTokenBefore;
this.getTokenOrCommentAfter = tokensAndCommentsStore.getTokenAfter;
@@ -261,10 +263,11 @@ SourceCode.prototype = {
* @returns {ASTNode} The node if found or null if not found.
*/
getNodeByRangeIndex: function(index) {
- var result = null;
- var resultParent = null;
+ var result = null,
+ resultParent = null,
+ traverser = new Traverser();
- estraverse.traverse(this.ast, {
+ traverser.traverse(this.ast, {
enter: function(node, parent) {
if (node.range[0] <= index && index < node.range[1]) {
result = node;
@@ -294,6 +297,7 @@ SourceCode.prototype = {
*/
isSpaceBetweenTokens: function(first, second) {
var text = this.text.slice(first.range[1], second.range[0]);
+
return /\s/.test(text.replace(/\/\*.*?\*\//g, ""));
}
};
diff --git a/tools/eslint/lib/util/traverser.js b/tools/eslint/lib/util/traverser.js
new file mode 100644
index 00000000000000..74cfbec2b2371c
--- /dev/null
+++ b/tools/eslint/lib/util/traverser.js
@@ -0,0 +1,56 @@
+/**
+ * @fileoverview Wrapper around estraverse
+ * @author Nicholas C. Zakas
+ * @copyright 2016 Nicholas C. Zakas. All rights reserved.
+ * See LICENSE in root directory for full license.
+ */
+"use strict";
+
+//------------------------------------------------------------------------------
+// Requirements
+//------------------------------------------------------------------------------
+
+var estraverse = require("estraverse");
+
+//------------------------------------------------------------------------------
+// Helpers
+//------------------------------------------------------------------------------
+
+var KEY_BLACKLIST = [
+ "parent",
+ "leadingComments",
+ "trailingComments"
+];
+
+/**
+ * Wrapper around an estraverse controller that ensures the correct keys
+ * are visited.
+ * @constructor
+ */
+function Traverser() {
+
+ var controller = Object.create(new estraverse.Controller()),
+ originalTraverse = controller.traverse;
+
+ // intercept call to traverse() and add the fallback key to the visitor
+ controller.traverse = function(node, visitor) {
+ visitor.fallback = Traverser.getKeys;
+ return originalTraverse.call(this, node, visitor);
+ };
+
+ return controller;
+}
+
+/**
+ * Calculates the keys to use for traversal.
+ * @param {ASTNode} node The node to read keys from.
+ * @returns {string[]} An array of keys to visit on the node.
+ * @private
+ */
+Traverser.getKeys = function(node) {
+ return Object.keys(node).filter(function(key) {
+ return KEY_BLACKLIST.indexOf(key) === -1;
+ });
+};
+
+module.exports = Traverser;
diff --git a/tools/eslint/messages/plugin-missing.txt b/tools/eslint/messages/plugin-missing.txt
new file mode 100644
index 00000000000000..56679528c9bc3f
--- /dev/null
+++ b/tools/eslint/messages/plugin-missing.txt
@@ -0,0 +1,9 @@
+ESLint couldn't find the plugin "eslint-plugin-<%- pluginName %>". This can happen for a couple different reasons:
+
+1. If ESLint is installed globally, then make sure eslint-plugin-<%- pluginName %> is also installed globally. A globally-installed ESLint cannot find a locally-installed plugin.
+
+2. If ESLint is installed locally, then it's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
+
+ npm i eslint-plugin-<%- pluginName %>@latest --save-dev
+
+If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.
diff --git a/tools/eslint/node_modules/acorn-jsx/.editorconfig b/tools/eslint/node_modules/acorn-jsx/.editorconfig
deleted file mode 100644
index c14d5c67b407d8..00000000000000
--- a/tools/eslint/node_modules/acorn-jsx/.editorconfig
+++ /dev/null
@@ -1,7 +0,0 @@
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-end_of_line = lf
-insert_final_newline = true
diff --git a/tools/eslint/node_modules/acorn-jsx/.gitattributes b/tools/eslint/node_modules/acorn-jsx/.gitattributes
deleted file mode 100644
index fcadb2cf97913f..00000000000000
--- a/tools/eslint/node_modules/acorn-jsx/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-* text eol=lf
diff --git a/tools/eslint/node_modules/acorn-jsx/.npmignore b/tools/eslint/node_modules/acorn-jsx/.npmignore
deleted file mode 100644
index 07e6e472cc75fa..00000000000000
--- a/tools/eslint/node_modules/acorn-jsx/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-/node_modules
diff --git a/tools/eslint/node_modules/acorn-jsx/.travis.yml b/tools/eslint/node_modules/acorn-jsx/.travis.yml
deleted file mode 100644
index ffb9f710ac283a..00000000000000
--- a/tools/eslint/node_modules/acorn-jsx/.travis.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-language: node_js
-node_js: '0.10'
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/.bin/acorn b/tools/eslint/node_modules/acorn-jsx/node_modules/.bin/acorn
new file mode 120000
index 00000000000000..cf76760386200f
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/.bin/acorn
@@ -0,0 +1 @@
+../acorn/bin/acorn
\ No newline at end of file
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/.tern-project b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/.tern-project
new file mode 100644
index 00000000000000..6718ce07e1c8a0
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/.tern-project
@@ -0,0 +1,6 @@
+{
+ "plugins": {
+ "node": true,
+ "es_modules": true
+ }
+}
\ No newline at end of file
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/AUTHORS b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/AUTHORS
new file mode 100644
index 00000000000000..0e8f48b695eaa7
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/AUTHORS
@@ -0,0 +1,43 @@
+List of Acorn contributors. Updated before every release.
+
+Adrian Rakovsky
+Alistair Braidwood
+Andres Suarez
+Aparajita Fishman
+Arian Stolwijk
+Artem Govorov
+Brandon Mills
+Charles Hughes
+Conrad Irwin
+David Bonnet
+ForbesLindesay
+Forbes Lindesay
+Gilad Peleg
+impinball
+Ingvar Stepanyan
+Jesse McCarthy
+Jiaxing Wang
+Joel Kemp
+Johannes Herr
+Jürg Lehni
+keeyipchan
+Kevin Kwok
+krator
+Marijn Haverbeke
+Martin Carlberg
+Mathias Bynens
+Mathieu 'p01' Henri
+Max Schaefer
+Max Zerzouri
+Mihai Bazon
+Mike Rennie
+Nick Fitzgerald
+Oskar Schöldström
+Paul Harper
+Peter Rust
+PlNG
+r-e-d
+Rich Harris
+Sebastian McKenzie
+Timothy Gu
+zsjforcn
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/LICENSE b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/LICENSE
new file mode 100644
index 00000000000000..d4c7fc583804df
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/LICENSE
@@ -0,0 +1,19 @@
+Copyright (C) 2012-2014 by various contributors (see AUTHORS)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/README.md b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/README.md
new file mode 100644
index 00000000000000..12680abf6b3cc7
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/README.md
@@ -0,0 +1,396 @@
+# Acorn
+
+[](https://travis-ci.org/ternjs/acorn)
+[](https://www.npmjs.com/package/acorn)
+[Author funding status: ](https://marijnhaverbeke.nl/fund/)
+
+A tiny, fast JavaScript parser, written completely in JavaScript.
+
+## Community
+
+Acorn is open source software released under an
+[MIT license](https://github.com/ternjs/acorn/blob/master/LICENSE).
+
+You are welcome to
+[report bugs](https://github.com/ternjs/acorn/issues) or create pull
+requests on [github](https://github.com/ternjs/acorn). For questions
+and discussion, please use the
+[Tern discussion forum](https://discuss.ternjs.net).
+
+## Installation
+
+The easiest way to install acorn is with [`npm`][npm].
+
+[npm]: https://www.npmjs.com/
+
+```sh
+npm install acorn
+```
+
+Alternately, download the source.
+
+```sh
+git clone https://github.com/ternjs/acorn.git
+```
+
+## Components
+
+When run in a CommonJS (node.js) or AMD environment, exported values
+appear in the interfaces exposed by the individual files, as usual.
+When loaded in the browser (Acorn works in any JS-enabled browser more
+recent than IE5) without any kind of module management, a single
+global object `acorn` will be defined, and all the exported properties
+will be added to that.
+
+### Main parser
+
+This is implemented in `dist/acorn.js`, and is what you get when you
+`require("acorn")` in node.js.
+
+**parse**`(input, options)` is used to parse a JavaScript program.
+The `input` parameter is a string, `options` can be undefined or an
+object setting some of the options listed below. The return value will
+be an abstract syntax tree object as specified by the
+[ESTree spec][estree].
+
+When encountering a syntax error, the parser will raise a
+`SyntaxError` object with a meaningful message. The error object will
+have a `pos` property that indicates the character offset at which the
+error occurred, and a `loc` object that contains a `{line, column}`
+object referring to that same position.
+
+[estree]: https://github.com/estree/estree
+
+- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
+ either 3, 5, or 6. This influences support for strict mode, the set
+ of reserved words, and support for new syntax features. Default is 5.
+
+- **sourceType**: Indicate the mode the code should be parsed in. Can be
+ either `"script"` or `"module"`.
+
+- **onInsertedSemicolon**: If given a callback, that callback will be
+ called whenever a missing semicolon is inserted by the parser. The
+ callback will be given the character offset of the point where the
+ semicolon is inserted as argument, and if `locations` is on, also a
+ `{line, column}` object representing this position.
+
+- **onTrailingComma**: Like `onInsertedSemicolon`, but for trailing
+ commas.
+
+- **allowReserved**: If `false`, using a reserved word will generate
+ an error. Defaults to `true` for `ecmaVersion` 3, `false` for higher
+ versions. When given the value `"never"`, reserved words and
+ keywords can also not be used as property names (as in Internet
+ Explorer's old parser).
+
+- **allowReturnOutsideFunction**: By default, a return statement at
+ the top level raises an error. Set this to `true` to accept such
+ code.
+
+- **allowImportExportEverywhere**: By default, `import` and `export`
+ declarations can only appear at a program's top level. Setting this
+ option to `true` allows them anywhere where a statement is allowed.
+
+- **allowHashBang**: When this is enabled (off by default), if the
+ code starts with the characters `#!` (as in a shellscript), the
+ first line will be treated as a comment.
+
+- **locations**: When `true`, each node has a `loc` object attached
+ with `start` and `end` subobjects, each of which contains the
+ one-based line and zero-based column numbers in `{line, column}`
+ form. Default is `false`.
+
+- **onToken**: If a function is passed for this option, each found
+ token will be passed in same format as tokens returned from
+ `tokenizer().getToken()`.
+
+ If array is passed, each found token is pushed to it.
+
+ Note that you are not allowed to call the parser from the
+ callback—that will corrupt its internal state.
+
+- **onComment**: If a function is passed for this option, whenever a
+ comment is encountered the function will be called with the
+ following parameters:
+
+ - `block`: `true` if the comment is a block comment, false if it
+ is a line comment.
+ - `text`: The content of the comment.
+ - `start`: Character offset of the start of the comment.
+ - `end`: Character offset of the end of the comment.
+
+ When the `locations` options is on, the `{line, column}` locations
+ of the comment’s start and end are passed as two additional
+ parameters.
+
+ If array is passed for this option, each found comment is pushed
+ to it as object in Esprima format:
+
+ ```javascript
+ {
+ "type": "Line" | "Block",
+ "value": "comment text",
+ "start": Number,
+ "end": Number,
+ // If `locations` option is on:
+ "loc": {
+ "start": {line: Number, column: Number}
+ "end": {line: Number, column: Number}
+ },
+ // If `ranges` option is on:
+ "range": [Number, Number]
+ }
+ ```
+
+ Note that you are not allowed to call the parser from the
+ callback—that will corrupt its internal state.
+
+- **ranges**: Nodes have their start and end characters offsets
+ recorded in `start` and `end` properties (directly on the node,
+ rather than the `loc` object, which holds line/column data. To also
+ add a [semi-standardized][range] `range` property holding a
+ `[start, end]` array with the same numbers, set the `ranges` option
+ to `true`.
+
+- **program**: It is possible to parse multiple files into a single
+ AST by passing the tree produced by parsing the first file as the
+ `program` option in subsequent parses. This will add the toplevel
+ forms of the parsed file to the "Program" (top) node of an existing
+ parse tree.
+
+- **sourceFile**: When the `locations` option is `true`, you can pass
+ this option to add a `source` attribute in every node’s `loc`
+ object. Note that the contents of this option are not examined or
+ processed in any way; you are free to use whatever format you
+ choose.
+
+- **directSourceFile**: Like `sourceFile`, but a `sourceFile` property
+ will be added directly to the nodes, rather than the `loc` object.
+
+- **preserveParens**: If this option is `true`, parenthesized expressions
+ are represented by (non-standard) `ParenthesizedExpression` nodes
+ that have a single `expression` property containing the expression
+ inside parentheses.
+
+[range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
+
+**parseExpressionAt**`(input, offset, options)` will parse a single
+expression in a string, and return its AST. It will not complain if
+there is more of the string left after the expression.
+
+**getLineInfo**`(input, offset)` can be used to get a `{line,
+column}` object for a given program string and character offset.
+
+**tokenizer**`(input, options)` returns an object with a `getToken`
+method that can be called repeatedly to get the next token, a `{start,
+end, type, value}` object (with added `loc` property when the
+`locations` option is enabled and `range` property when the `ranges`
+option is enabled). When the token's type is `tokTypes.eof`, you
+should stop calling the method, since it will keep returning that same
+token forever.
+
+In ES6 environment, returned result can be used as any other
+protocol-compliant iterable:
+
+```javascript
+for (let token of acorn.tokenizer(str)) {
+ // iterate over the tokens
+}
+
+// transform code to array of tokens:
+var tokens = [...acorn.tokenizer(str)];
+```
+
+**tokTypes** holds an object mapping names to the token type objects
+that end up in the `type` properties of tokens.
+
+#### Note on using with [Escodegen][escodegen]
+
+Escodegen supports generating comments from AST, attached in
+Esprima-specific format. In order to simulate same format in
+Acorn, consider following example:
+
+```javascript
+var comments = [], tokens = [];
+
+var ast = acorn.parse('var x = 42; // answer', {
+ // collect ranges for each node
+ ranges: true,
+ // collect comments in Esprima's format
+ onComment: comments,
+ // collect token ranges
+ onToken: tokens
+});
+
+// attach comments using collected information
+escodegen.attachComments(ast, comments, tokens);
+
+// generate code
+console.log(escodegen.generate(ast, {comment: true}));
+// > 'var x = 42; // answer'
+```
+
+[escodegen]: https://github.com/estools/escodegen
+
+### dist/acorn_loose.js ###
+
+This file implements an error-tolerant parser. It exposes a single
+function. The loose parser is accessible in node.js via `require("acorn/dist/acorn_loose")`.
+
+**parse_dammit**`(input, options)` takes the same arguments and
+returns the same syntax tree as the `parse` function in `acorn.js`,
+but never raises an error, and will do its best to parse syntactically
+invalid code in as meaningful a way as it can. It'll insert identifier
+nodes with name `"✖"` as placeholders in places where it can't make
+sense of the input. Depends on `acorn.js`, because it uses the same
+tokenizer.
+
+### dist/walk.js ###
+
+Implements an abstract syntax tree walker. Will store its interface in
+`acorn.walk` when loaded without a module system.
+
+**simple**`(node, visitors, base, state)` does a 'simple' walk over
+a tree. `node` should be the AST node to walk, and `visitors` an
+object with properties whose names correspond to node types in the
+[ESTree spec][estree]. The properties should contain functions
+that will be called with the node object and, if applicable the state
+at that point. The last two arguments are optional. `base` is a walker
+algorithm, and `state` is a start state. The default walker will
+simply visit all statements and expressions and not produce a
+meaningful state. (An example of a use of state is to track scope at
+each point in the tree.)
+
+**ancestor**`(node, visitors, base, state)` does a 'simple' walk over
+a tree, building up an array of ancestor nodes (including the current node)
+and passing the array to callbacks in the `state` parameter.
+
+**recursive**`(node, state, functions, base)` does a 'recursive'
+walk, where the walker functions are responsible for continuing the
+walk on the child nodes of their target node. `state` is the start
+state, and `functions` should contain an object that maps node types
+to walker functions. Such functions are called with `(node, state, c)`
+arguments, and can cause the walk to continue on a sub-node by calling
+the `c` argument on it with `(node, state)` arguments. The optional
+`base` argument provides the fallback walker functions for node types
+that aren't handled in the `functions` object. If not given, the
+default walkers will be used.
+
+**make**`(functions, base)` builds a new walker object by using the
+walker functions in `functions` and filling in the missing ones by
+taking defaults from `base`.
+
+**findNodeAt**`(node, start, end, test, base, state)` tries to
+locate a node in a tree at the given start and/or end offsets, which
+satisfies the predicate `test`. `start` and `end` can be either `null`
+(as wildcard) or a number. `test` may be a string (indicating a node
+type) or a function that takes `(nodeType, node)` arguments and
+returns a boolean indicating whether this node is interesting. `base`
+and `state` are optional, and can be used to specify a custom walker.
+Nodes are tested from inner to outer, so if two nodes match the
+boundaries, the inner one will be preferred.
+
+**findNodeAround**`(node, pos, test, base, state)` is a lot like
+`findNodeAt`, but will match any node that exists 'around' (spanning)
+the given position.
+
+**findNodeAfter**`(node, pos, test, base, state)` is similar to
+`findNodeAround`, but will match all nodes *after* the given position
+(testing outer nodes before inner nodes).
+
+## Command line interface
+
+The `bin/acorn` utility can be used to parse a file from the command
+line. It accepts as arguments its input file and the following
+options:
+
+- `--ecma3|--ecma5|--ecma6`: Sets the ECMAScript version to parse. Default is
+ version 5.
+
+- `--module`: Sets the parsing mode to `"module"`. Is set to `"script"` otherwise.
+
+- `--locations`: Attaches a "loc" object to each node with "start" and
+ "end" subobjects, each of which contains the one-based line and
+ zero-based column numbers in `{line, column}` form.
+
+- `--allow-hash-bang`: If the code starts with the characters #! (as in a shellscript), the first line will be treated as a comment.
+
+- `--compact`: No whitespace is used in the AST output.
+
+- `--silent`: Do not output the AST, just return the exit status.
+
+- `--help`: Print the usage information and quit.
+
+The utility spits out the syntax tree as JSON data.
+
+## Build system
+
+Acorn is written in ECMAScript 6, as a set of small modules, in the
+project's `src` directory, and compiled down to bigger ECMAScript 3
+files in `dist` using [Browserify](http://browserify.org) and
+[Babel](http://babeljs.io/). If you are already using Babel, you can
+consider including the modules directly.
+
+The command-line test runner (`npm test`) uses the ES6 modules. The
+browser-based test page (`test/index.html`) uses the compiled modules.
+The `bin/build-acorn.js` script builds the latter from the former.
+
+If you are working on Acorn, you'll probably want to try the code out
+directly, without an intermediate build step. In your scripts, you can
+register the Babel require shim like this:
+
+ require("babel-core/register")
+
+That will allow you to directly `require` the ES6 modules.
+
+## Plugins
+
+Acorn is designed support allow plugins which, within reasonable
+bounds, redefine the way the parser works. Plugins can add new token
+types and new tokenizer contexts (if necessary), and extend methods in
+the parser object. This is not a clean, elegant API—using it requires
+an understanding of Acorn's internals, and plugins are likely to break
+whenever those internals are significantly changed. But still, it is
+_possible_, in this way, to create parsers for JavaScript dialects
+without forking all of Acorn. And in principle it is even possible to
+combine such plugins, so that if you have, for example, a plugin for
+parsing types and a plugin for parsing JSX-style XML literals, you
+could load them both and parse code with both JSX tags and types.
+
+A plugin should register itself by adding a property to
+`acorn.plugins`, which holds a function. Calling `acorn.parse`, a
+`plugins` option can be passed, holding an object mapping plugin names
+to configuration values (or just `true` for plugins that don't take
+options). After the parser object has been created, the initialization
+functions for the chosen plugins are called with `(parser,
+configValue)` arguments. They are expected to use the `parser.extend`
+method to extend parser methods. For example, the `readToken` method
+could be extended like this:
+
+```javascript
+parser.extend("readToken", function(nextMethod) {
+ return function(code) {
+ console.log("Reading a token!")
+ return nextMethod.call(this, code)
+ }
+})
+```
+
+The `nextMethod` argument passed to `extend`'s second argument is the
+previous value of this method, and should usually be called through to
+whenever the extended method does not handle the call itself.
+
+Similarly, the loose parser allows plugins to register themselves via
+`acorn.pluginsLoose`. The extension mechanism is the same as for the
+normal parser:
+
+```javascript
+looseParser.extend("readToken", function(nextMethod) {
+ return function() {
+ console.log("Reading a token in the loose parser!")
+ return nextMethod.call(this)
+ }
+})
+```
+
+There is a proof-of-concept JSX plugin in the [`acorn-jsx`](https://github.com/RReverser/acorn-jsx) project.
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/acorn b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/acorn
new file mode 100755
index 00000000000000..db079096d3749a
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/acorn
@@ -0,0 +1,71 @@
+#!/usr/bin/env node
+"use strict";
+
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } }
+
+var _path = require("path");
+
+var _fs = require("fs");
+
+var _distAcornJs = require("../dist/acorn.js");
+
+var acorn = _interopRequireWildcard(_distAcornJs);
+
+var infile = undefined,
+ forceFile = undefined,
+ silent = false,
+ compact = false,
+ tokenize = false;
+var options = {};
+
+function help(status) {
+ var print = status == 0 ? console.log : console.error;
+ print("usage: " + (0, _path.basename)(process.argv[1]) + " [--ecma3|--ecma5|--ecma6]");
+ print(" [--tokenize] [--locations] [---allow-hash-bang] [--compact] [--silent] [--module] [--help] [--] [infile]");
+ process.exit(status);
+}
+
+for (var i = 2; i < process.argv.length; ++i) {
+ var arg = process.argv[i];
+ if ((arg == "-" || arg[0] != "-") && !infile) infile = arg;else if (arg == "--" && !infile && i + 2 == process.argv.length) forceFile = infile = process.argv[++i];else if (arg == "--ecma3") options.ecmaVersion = 3;else if (arg == "--ecma5") options.ecmaVersion = 5;else if (arg == "--ecma6") options.ecmaVersion = 6;else if (arg == "--locations") options.locations = true;else if (arg == "--allow-hash-bang") options.allowHashBang = true;else if (arg == "--silent") silent = true;else if (arg == "--compact") compact = true;else if (arg == "--help") help(0);else if (arg == "--tokenize") tokenize = true;else if (arg == "--module") options.sourceType = 'module';else help(1);
+}
+
+function run(code) {
+ var result = undefined;
+ if (!tokenize) {
+ try {
+ result = acorn.parse(code, options);
+ } catch (e) {
+ console.error(e.message);process.exit(1);
+ }
+ } else {
+ result = [];
+ var tokenizer = acorn.tokenizer(code, options),
+ token = undefined;
+ while (true) {
+ try {
+ token = tokenizer.getToken();
+ } catch (e) {
+ console.error(e.message);process.exit(1);
+ }
+ result.push(token);
+ if (token.type == acorn.tokTypes.eof) break;
+ }
+ }
+ if (!silent) console.log(JSON.stringify(result, null, compact ? null : 2));
+}
+
+if (forceFile || infile && infile != "-") {
+ run((0, _fs.readFileSync)(infile, "utf8"));
+} else {
+ (function () {
+ var code = "";
+ process.stdin.resume();
+ process.stdin.on("data", function (chunk) {
+ return code += chunk;
+ });
+ process.stdin.on("end", function () {
+ return run(code);
+ });
+ })();
+}
\ No newline at end of file
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/build-acorn.js b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/build-acorn.js
new file mode 100644
index 00000000000000..71f2cf941f5b4d
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/build-acorn.js
@@ -0,0 +1,82 @@
+var fs = require("fs"), path = require("path")
+var stream = require("stream")
+
+var browserify = require("browserify")
+var babel = require('babel-core')
+var babelify = require("babelify").configure({loose: "all"})
+
+process.chdir(path.resolve(__dirname, ".."))
+
+browserify({standalone: "acorn"})
+ .plugin(require('browserify-derequire'))
+ .transform(babelify)
+ .require("./src/index.js", {entry: true})
+ .bundle()
+ .on("error", function (err) { console.log("Error: " + err.message) })
+ .pipe(fs.createWriteStream("dist/acorn.js"))
+
+var ACORN_PLACEHOLDER = "this_function_call_should_be_replaced_with_a_call_to_load_acorn()";
+function acornShimPrepare(file) {
+ var tr = new stream.Transform
+ if (file == path.resolve(__dirname, "../src/index.js")) {
+ var sent = false
+ tr._transform = function(chunk, _, callback) {
+ if (!sent) {
+ sent = true
+ callback(null, ACORN_PLACEHOLDER);
+ } else {
+ callback()
+ }
+ }
+ } else {
+ tr._transform = function(chunk, _, callback) { callback(null, chunk) }
+ }
+ return tr
+}
+function acornShimComplete() {
+ var tr = new stream.Transform
+ var buffer = "";
+ tr._transform = function(chunk, _, callback) {
+ buffer += chunk.toString("utf8");
+ callback();
+ };
+ tr._flush = function (callback) {
+ tr.push(buffer.replace(ACORN_PLACEHOLDER, "module.exports = typeof acorn != 'undefined' ? acorn : require(\"./acorn\")"));
+ callback(null);
+ };
+ return tr;
+}
+
+browserify({standalone: "acorn.loose"})
+ .plugin(require('browserify-derequire'))
+ .transform(acornShimPrepare)
+ .transform(babelify)
+ .require("./src/loose/index.js", {entry: true})
+ .bundle()
+ .on("error", function (err) { console.log("Error: " + err.message) })
+ .pipe(acornShimComplete())
+ .pipe(fs.createWriteStream("dist/acorn_loose.js"))
+
+browserify({standalone: "acorn.walk"})
+ .plugin(require('browserify-derequire'))
+ .transform(acornShimPrepare)
+ .transform(babelify)
+ .require("./src/walk/index.js", {entry: true})
+ .bundle()
+ .on("error", function (err) { console.log("Error: " + err.message) })
+ .pipe(acornShimComplete())
+ .pipe(fs.createWriteStream("dist/walk.js"))
+
+babel.transformFile("./src/bin/acorn.js", function (err, result) {
+ if (err) return console.log("Error: " + err.message)
+ fs.writeFile("bin/acorn", result.code, function (err) {
+ if (err) return console.log("Error: " + err.message)
+
+ // Make bin/acorn executable
+ if (process.platform === 'win32')
+ return
+ var stat = fs.statSync("bin/acorn")
+ var newPerm = stat.mode | parseInt('111', 8)
+ fs.chmodSync("bin/acorn", newPerm)
+ })
+})
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/generate-identifier-regex.js b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/generate-identifier-regex.js
new file mode 100644
index 00000000000000..0d7c50fc384ee5
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/generate-identifier-regex.js
@@ -0,0 +1,47 @@
+// Note: run `npm install unicode-7.0.0` first.
+
+// Which Unicode version should be used?
+var version = '7.0.0';
+
+var start = require('unicode-' + version + '/properties/ID_Start/code-points')
+ .filter(function(ch) { return ch > 127; });
+var cont = [0x200c, 0x200d].concat(require('unicode-' + version + '/properties/ID_Continue/code-points')
+ .filter(function(ch) { return ch > 127 && start.indexOf(ch) == -1; }));
+
+function pad(str, width) {
+ while (str.length < width) str = "0" + str;
+ return str;
+}
+
+function esc(code) {
+ var hex = code.toString(16);
+ if (hex.length <= 2) return "\\x" + pad(hex, 2);
+ else return "\\u" + pad(hex, 4);
+}
+
+function generate(chars) {
+ var astral = [], re = "";
+ for (var i = 0, at = 0x10000; i < chars.length; i++) {
+ var from = chars[i], to = from;
+ while (i < chars.length - 1 && chars[i + 1] == to + 1) {
+ i++;
+ to++;
+ }
+ if (to <= 0xffff) {
+ if (from == to) re += esc(from);
+ else if (from + 1 == to) re += esc(from) + esc(to);
+ else re += esc(from) + "-" + esc(to);
+ } else {
+ astral.push(from - at, to - from);
+ at = to;
+ }
+ }
+ return {nonASCII: re, astral: astral};
+}
+
+var startData = generate(start), contData = generate(cont);
+
+console.log(" var nonASCIIidentifierStartChars = \"" + startData.nonASCII + "\";");
+console.log(" var nonASCIIidentifierChars = \"" + contData.nonASCII + "\";");
+console.log(" var astralIdentifierStartCodes = " + JSON.stringify(startData.astral) + ";");
+console.log(" var astralIdentifierCodes = " + JSON.stringify(contData.astral) + ";");
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/update_authors.sh b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/update_authors.sh
new file mode 100755
index 00000000000000..466c8db5867cba
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/bin/update_authors.sh
@@ -0,0 +1,6 @@
+# Combine existing list of authors with everyone known in git, sort, add header.
+tail --lines=+3 AUTHORS > AUTHORS.tmp
+git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp
+echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
+sort -u AUTHORS.tmp >> AUTHORS
+rm -f AUTHORS.tmp
diff --git a/tools/eslint/node_modules/resolve/test/pathfilter/deep_ref/main.js b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/dist/.keep
similarity index 100%
rename from tools/eslint/node_modules/resolve/test/pathfilter/deep_ref/main.js
rename to tools/eslint/node_modules/acorn-jsx/node_modules/acorn/dist/.keep
diff --git a/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/dist/acorn.js b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/dist/acorn.js
new file mode 100644
index 00000000000000..9419f862ae779e
--- /dev/null
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/dist/acorn.js
@@ -0,0 +1,3340 @@
+(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.acorn = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o= 6 && (prop.computed || prop.method || prop.shorthand)) return;
+ var key = prop.key;var name = undefined;
+ switch (key.type) {
+ case "Identifier":
+ name = key.name;break;
+ case "Literal":
+ name = String(key.value);break;
+ default:
+ return;
+ }
+ var kind = prop.kind;
+
+ if (this.options.ecmaVersion >= 6) {
+ if (name === "__proto__" && kind === "init") {
+ if (propHash.proto) this.raise(key.start, "Redefinition of __proto__ property");
+ propHash.proto = true;
+ }
+ return;
+ }
+ name = "$" + name;
+ var other = propHash[name];
+ if (other) {
+ var isGetSet = kind !== "init";
+ if ((this.strict || isGetSet) && other[kind] || !(isGetSet ^ other.init)) this.raise(key.start, "Redefinition of property");
+ } else {
+ other = propHash[name] = {
+ init: false,
+ get: false,
+ set: false
+ };
+ }
+ other[kind] = true;
+};
+
+// ### Expression parsing
+
+// These nest, from the most general expression type at the top to
+// 'atomic', nondivisible expression types at the bottom. Most of
+// the functions will simply let the function(s) below them parse,
+// and, *if* the syntactic construct they handle is present, wrap
+// the AST node that the inner parser gave them in another node.
+
+// Parse a full expression. The optional arguments are used to
+// forbid the `in` operator (in for loops initalization expressions)
+// and provide reference for storing '=' operator inside shorthand
+// property assignment in contexts where both object expression
+// and object pattern might appear (so it's possible to raise
+// delayed syntax error at correct position).
+
+pp.parseExpression = function (noIn, refDestructuringErrors) {
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ var expr = this.parseMaybeAssign(noIn, refDestructuringErrors);
+ if (this.type === _tokentype.types.comma) {
+ var node = this.startNodeAt(startPos, startLoc);
+ node.expressions = [expr];
+ while (this.eat(_tokentype.types.comma)) node.expressions.push(this.parseMaybeAssign(noIn, refDestructuringErrors));
+ return this.finishNode(node, "SequenceExpression");
+ }
+ return expr;
+};
+
+// Parse an assignment expression. This includes applications of
+// operators like `+=`.
+
+pp.parseMaybeAssign = function (noIn, refDestructuringErrors, afterLeftParse) {
+ if (this.type == _tokentype.types._yield && this.inGenerator) return this.parseYield();
+
+ var validateDestructuring = false;
+ if (!refDestructuringErrors) {
+ refDestructuringErrors = { shorthandAssign: 0, trailingComma: 0 };
+ validateDestructuring = true;
+ }
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ if (this.type == _tokentype.types.parenL || this.type == _tokentype.types.name) this.potentialArrowAt = this.start;
+ var left = this.parseMaybeConditional(noIn, refDestructuringErrors);
+ if (afterLeftParse) left = afterLeftParse.call(this, left, startPos, startLoc);
+ if (this.type.isAssign) {
+ if (validateDestructuring) this.checkPatternErrors(refDestructuringErrors, true);
+ var node = this.startNodeAt(startPos, startLoc);
+ node.operator = this.value;
+ node.left = this.type === _tokentype.types.eq ? this.toAssignable(left) : left;
+ refDestructuringErrors.shorthandAssign = 0; // reset because shorthand default was used correctly
+ this.checkLVal(left);
+ this.next();
+ node.right = this.parseMaybeAssign(noIn);
+ return this.finishNode(node, "AssignmentExpression");
+ } else {
+ if (validateDestructuring) this.checkExpressionErrors(refDestructuringErrors, true);
+ }
+ return left;
+};
+
+// Parse a ternary conditional (`?:`) operator.
+
+pp.parseMaybeConditional = function (noIn, refDestructuringErrors) {
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ var expr = this.parseExprOps(noIn, refDestructuringErrors);
+ if (this.checkExpressionErrors(refDestructuringErrors)) return expr;
+ if (this.eat(_tokentype.types.question)) {
+ var node = this.startNodeAt(startPos, startLoc);
+ node.test = expr;
+ node.consequent = this.parseMaybeAssign();
+ this.expect(_tokentype.types.colon);
+ node.alternate = this.parseMaybeAssign(noIn);
+ return this.finishNode(node, "ConditionalExpression");
+ }
+ return expr;
+};
+
+// Start the precedence parser.
+
+pp.parseExprOps = function (noIn, refDestructuringErrors) {
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ var expr = this.parseMaybeUnary(refDestructuringErrors);
+ if (this.checkExpressionErrors(refDestructuringErrors)) return expr;
+ return this.parseExprOp(expr, startPos, startLoc, -1, noIn);
+};
+
+// Parse binary operators with the operator precedence parsing
+// algorithm. `left` is the left-hand side of the operator.
+// `minPrec` provides context that allows the function to stop and
+// defer further parser to one of its callers when it encounters an
+// operator that has a lower precedence than the set it is parsing.
+
+pp.parseExprOp = function (left, leftStartPos, leftStartLoc, minPrec, noIn) {
+ var prec = this.type.binop;
+ if (prec != null && (!noIn || this.type !== _tokentype.types._in)) {
+ if (prec > minPrec) {
+ var node = this.startNodeAt(leftStartPos, leftStartLoc);
+ node.left = left;
+ node.operator = this.value;
+ var op = this.type;
+ this.next();
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ node.right = this.parseExprOp(this.parseMaybeUnary(), startPos, startLoc, prec, noIn);
+ this.finishNode(node, op === _tokentype.types.logicalOR || op === _tokentype.types.logicalAND ? "LogicalExpression" : "BinaryExpression");
+ return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, noIn);
+ }
+ }
+ return left;
+};
+
+// Parse unary operators, both prefix and postfix.
+
+pp.parseMaybeUnary = function (refDestructuringErrors) {
+ if (this.type.prefix) {
+ var node = this.startNode(),
+ update = this.type === _tokentype.types.incDec;
+ node.operator = this.value;
+ node.prefix = true;
+ this.next();
+ node.argument = this.parseMaybeUnary();
+ this.checkExpressionErrors(refDestructuringErrors, true);
+ if (update) this.checkLVal(node.argument);else if (this.strict && node.operator === "delete" && node.argument.type === "Identifier") this.raise(node.start, "Deleting local variable in strict mode");
+ return this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression");
+ }
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ var expr = this.parseExprSubscripts(refDestructuringErrors);
+ if (this.checkExpressionErrors(refDestructuringErrors)) return expr;
+ while (this.type.postfix && !this.canInsertSemicolon()) {
+ var node = this.startNodeAt(startPos, startLoc);
+ node.operator = this.value;
+ node.prefix = false;
+ node.argument = expr;
+ this.checkLVal(expr);
+ this.next();
+ expr = this.finishNode(node, "UpdateExpression");
+ }
+ return expr;
+};
+
+// Parse call, dot, and `[]`-subscript expressions.
+
+pp.parseExprSubscripts = function (refDestructuringErrors) {
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ var expr = this.parseExprAtom(refDestructuringErrors);
+ var skipArrowSubscripts = expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")";
+ if (this.checkExpressionErrors(refDestructuringErrors) || skipArrowSubscripts) return expr;
+ return this.parseSubscripts(expr, startPos, startLoc);
+};
+
+pp.parseSubscripts = function (base, startPos, startLoc, noCalls) {
+ for (;;) {
+ if (this.eat(_tokentype.types.dot)) {
+ var node = this.startNodeAt(startPos, startLoc);
+ node.object = base;
+ node.property = this.parseIdent(true);
+ node.computed = false;
+ base = this.finishNode(node, "MemberExpression");
+ } else if (this.eat(_tokentype.types.bracketL)) {
+ var node = this.startNodeAt(startPos, startLoc);
+ node.object = base;
+ node.property = this.parseExpression();
+ node.computed = true;
+ this.expect(_tokentype.types.bracketR);
+ base = this.finishNode(node, "MemberExpression");
+ } else if (!noCalls && this.eat(_tokentype.types.parenL)) {
+ var node = this.startNodeAt(startPos, startLoc);
+ node.callee = base;
+ node.arguments = this.parseExprList(_tokentype.types.parenR, false);
+ base = this.finishNode(node, "CallExpression");
+ } else if (this.type === _tokentype.types.backQuote) {
+ var node = this.startNodeAt(startPos, startLoc);
+ node.tag = base;
+ node.quasi = this.parseTemplate();
+ base = this.finishNode(node, "TaggedTemplateExpression");
+ } else {
+ return base;
+ }
+ }
+};
+
+// Parse an atomic expression — either a single token that is an
+// expression, an expression started by a keyword like `function` or
+// `new`, or an expression wrapped in punctuation like `()`, `[]`,
+// or `{}`.
+
+pp.parseExprAtom = function (refDestructuringErrors) {
+ var node = undefined,
+ canBeArrow = this.potentialArrowAt == this.start;
+ switch (this.type) {
+ case _tokentype.types._super:
+ if (!this.inFunction) this.raise(this.start, "'super' outside of function or class");
+ case _tokentype.types._this:
+ var type = this.type === _tokentype.types._this ? "ThisExpression" : "Super";
+ node = this.startNode();
+ this.next();
+ return this.finishNode(node, type);
+
+ case _tokentype.types._yield:
+ if (this.inGenerator) this.unexpected();
+
+ case _tokentype.types.name:
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ var id = this.parseIdent(this.type !== _tokentype.types.name);
+ if (canBeArrow && !this.canInsertSemicolon() && this.eat(_tokentype.types.arrow)) return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id]);
+ return id;
+
+ case _tokentype.types.regexp:
+ var value = this.value;
+ node = this.parseLiteral(value.value);
+ node.regex = { pattern: value.pattern, flags: value.flags };
+ return node;
+
+ case _tokentype.types.num:case _tokentype.types.string:
+ return this.parseLiteral(this.value);
+
+ case _tokentype.types._null:case _tokentype.types._true:case _tokentype.types._false:
+ node = this.startNode();
+ node.value = this.type === _tokentype.types._null ? null : this.type === _tokentype.types._true;
+ node.raw = this.type.keyword;
+ this.next();
+ return this.finishNode(node, "Literal");
+
+ case _tokentype.types.parenL:
+ return this.parseParenAndDistinguishExpression(canBeArrow);
+
+ case _tokentype.types.bracketL:
+ node = this.startNode();
+ this.next();
+ // check whether this is array comprehension or regular array
+ if (this.options.ecmaVersion >= 7 && this.type === _tokentype.types._for) {
+ return this.parseComprehension(node, false);
+ }
+ node.elements = this.parseExprList(_tokentype.types.bracketR, true, true, refDestructuringErrors);
+ return this.finishNode(node, "ArrayExpression");
+
+ case _tokentype.types.braceL:
+ return this.parseObj(false, refDestructuringErrors);
+
+ case _tokentype.types._function:
+ node = this.startNode();
+ this.next();
+ return this.parseFunction(node, false);
+
+ case _tokentype.types._class:
+ return this.parseClass(this.startNode(), false);
+
+ case _tokentype.types._new:
+ return this.parseNew();
+
+ case _tokentype.types.backQuote:
+ return this.parseTemplate();
+
+ default:
+ this.unexpected();
+ }
+};
+
+pp.parseLiteral = function (value) {
+ var node = this.startNode();
+ node.value = value;
+ node.raw = this.input.slice(this.start, this.end);
+ this.next();
+ return this.finishNode(node, "Literal");
+};
+
+pp.parseParenExpression = function () {
+ this.expect(_tokentype.types.parenL);
+ var val = this.parseExpression();
+ this.expect(_tokentype.types.parenR);
+ return val;
+};
+
+pp.parseParenAndDistinguishExpression = function (canBeArrow) {
+ var startPos = this.start,
+ startLoc = this.startLoc,
+ val = undefined;
+ if (this.options.ecmaVersion >= 6) {
+ this.next();
+
+ if (this.options.ecmaVersion >= 7 && this.type === _tokentype.types._for) {
+ return this.parseComprehension(this.startNodeAt(startPos, startLoc), true);
+ }
+
+ var innerStartPos = this.start,
+ innerStartLoc = this.startLoc;
+ var exprList = [],
+ first = true;
+ var refDestructuringErrors = { shorthandAssign: 0, trailingComma: 0 },
+ spreadStart = undefined,
+ innerParenStart = undefined;
+ while (this.type !== _tokentype.types.parenR) {
+ first ? first = false : this.expect(_tokentype.types.comma);
+ if (this.type === _tokentype.types.ellipsis) {
+ spreadStart = this.start;
+ exprList.push(this.parseParenItem(this.parseRest()));
+ break;
+ } else {
+ if (this.type === _tokentype.types.parenL && !innerParenStart) {
+ innerParenStart = this.start;
+ }
+ exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));
+ }
+ }
+ var innerEndPos = this.start,
+ innerEndLoc = this.startLoc;
+ this.expect(_tokentype.types.parenR);
+
+ if (canBeArrow && !this.canInsertSemicolon() && this.eat(_tokentype.types.arrow)) {
+ this.checkPatternErrors(refDestructuringErrors, true);
+ if (innerParenStart) this.unexpected(innerParenStart);
+ return this.parseParenArrowList(startPos, startLoc, exprList);
+ }
+
+ if (!exprList.length) this.unexpected(this.lastTokStart);
+ if (spreadStart) this.unexpected(spreadStart);
+ this.checkExpressionErrors(refDestructuringErrors, true);
+
+ if (exprList.length > 1) {
+ val = this.startNodeAt(innerStartPos, innerStartLoc);
+ val.expressions = exprList;
+ this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc);
+ } else {
+ val = exprList[0];
+ }
+ } else {
+ val = this.parseParenExpression();
+ }
+
+ if (this.options.preserveParens) {
+ var par = this.startNodeAt(startPos, startLoc);
+ par.expression = val;
+ return this.finishNode(par, "ParenthesizedExpression");
+ } else {
+ return val;
+ }
+};
+
+pp.parseParenItem = function (item) {
+ return item;
+};
+
+pp.parseParenArrowList = function (startPos, startLoc, exprList) {
+ return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList);
+};
+
+// New's precedence is slightly tricky. It must allow its argument to
+// be a `[]` or dot subscript expression, but not a call — at least,
+// not without wrapping it in parentheses. Thus, it uses the noCalls
+// argument to parseSubscripts to prevent it from consuming the
+// argument list.
+
+var empty = [];
+
+pp.parseNew = function () {
+ var node = this.startNode();
+ var meta = this.parseIdent(true);
+ if (this.options.ecmaVersion >= 6 && this.eat(_tokentype.types.dot)) {
+ node.meta = meta;
+ node.property = this.parseIdent(true);
+ if (node.property.name !== "target") this.raise(node.property.start, "The only valid meta property for new is new.target");
+ if (!this.inFunction) this.raise(node.start, "new.target can only be used in functions");
+ return this.finishNode(node, "MetaProperty");
+ }
+ var startPos = this.start,
+ startLoc = this.startLoc;
+ node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true);
+ if (this.eat(_tokentype.types.parenL)) node.arguments = this.parseExprList(_tokentype.types.parenR, false);else node.arguments = empty;
+ return this.finishNode(node, "NewExpression");
+};
+
+// Parse template expression.
+
+pp.parseTemplateElement = function () {
+ var elem = this.startNode();
+ elem.value = {
+ raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, '\n'),
+ cooked: this.value
+ };
+ this.next();
+ elem.tail = this.type === _tokentype.types.backQuote;
+ return this.finishNode(elem, "TemplateElement");
+};
+
+pp.parseTemplate = function () {
+ var node = this.startNode();
+ this.next();
+ node.expressions = [];
+ var curElt = this.parseTemplateElement();
+ node.quasis = [curElt];
+ while (!curElt.tail) {
+ this.expect(_tokentype.types.dollarBraceL);
+ node.expressions.push(this.parseExpression());
+ this.expect(_tokentype.types.braceR);
+ node.quasis.push(curElt = this.parseTemplateElement());
+ }
+ this.next();
+ return this.finishNode(node, "TemplateLiteral");
+};
+
+// Parse an object literal or binding pattern.
+
+pp.parseObj = function (isPattern, refDestructuringErrors) {
+ var node = this.startNode(),
+ first = true,
+ propHash = {};
+ node.properties = [];
+ this.next();
+ while (!this.eat(_tokentype.types.braceR)) {
+ if (!first) {
+ this.expect(_tokentype.types.comma);
+ if (this.afterTrailingComma(_tokentype.types.braceR)) break;
+ } else first = false;
+
+ var prop = this.startNode(),
+ isGenerator = undefined,
+ startPos = undefined,
+ startLoc = undefined;
+ if (this.options.ecmaVersion >= 6) {
+ prop.method = false;
+ prop.shorthand = false;
+ if (isPattern || refDestructuringErrors) {
+ startPos = this.start;
+ startLoc = this.startLoc;
+ }
+ if (!isPattern) isGenerator = this.eat(_tokentype.types.star);
+ }
+ this.parsePropertyName(prop);
+ this.parsePropertyValue(prop, isPattern, isGenerator, startPos, startLoc, refDestructuringErrors);
+ this.checkPropClash(prop, propHash);
+ node.properties.push(this.finishNode(prop, "Property"));
+ }
+ return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression");
+};
+
+pp.parsePropertyValue = function (prop, isPattern, isGenerator, startPos, startLoc, refDestructuringErrors) {
+ if (this.eat(_tokentype.types.colon)) {
+ prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);
+ prop.kind = "init";
+ } else if (this.options.ecmaVersion >= 6 && this.type === _tokentype.types.parenL) {
+ if (isPattern) this.unexpected();
+ prop.kind = "init";
+ prop.method = true;
+ prop.value = this.parseMethod(isGenerator);
+ } else if (this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.type != _tokentype.types.comma && this.type != _tokentype.types.braceR)) {
+ if (isGenerator || isPattern) this.unexpected();
+ prop.kind = prop.key.name;
+ this.parsePropertyName(prop);
+ prop.value = this.parseMethod(false);
+ var paramCount = prop.kind === "get" ? 0 : 1;
+ if (prop.value.params.length !== paramCount) {
+ var start = prop.value.start;
+ if (prop.kind === "get") this.raise(start, "getter should have no params");else this.raise(start, "setter should have exactly one param");
+ }
+ if (prop.kind === "set" && prop.value.params[0].type === "RestElement") this.raise(prop.value.params[0].start, "Setter cannot use rest params");
+ } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
+ prop.kind = "init";
+ if (isPattern) {
+ if (this.keywords.test(prop.key.name) || (this.strict ? this.reservedWordsStrictBind : this.reservedWords).test(prop.key.name)) this.raise(prop.key.start, "Binding " + prop.key.name);
+ prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key);
+ } else if (this.type === _tokentype.types.eq && refDestructuringErrors) {
+ if (!refDestructuringErrors.shorthandAssign) refDestructuringErrors.shorthandAssign = this.start;
+ prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key);
+ } else {
+ prop.value = prop.key;
+ }
+ prop.shorthand = true;
+ } else this.unexpected();
+};
+
+pp.parsePropertyName = function (prop) {
+ if (this.options.ecmaVersion >= 6) {
+ if (this.eat(_tokentype.types.bracketL)) {
+ prop.computed = true;
+ prop.key = this.parseMaybeAssign();
+ this.expect(_tokentype.types.bracketR);
+ return prop.key;
+ } else {
+ prop.computed = false;
+ }
+ }
+ return prop.key = this.type === _tokentype.types.num || this.type === _tokentype.types.string ? this.parseExprAtom() : this.parseIdent(true);
+};
+
+// Initialize empty function node.
+
+pp.initFunction = function (node) {
+ node.id = null;
+ if (this.options.ecmaVersion >= 6) {
+ node.generator = false;
+ node.expression = false;
+ }
+};
+
+// Parse object or class method.
+
+pp.parseMethod = function (isGenerator) {
+ var node = this.startNode();
+ this.initFunction(node);
+ this.expect(_tokentype.types.parenL);
+ node.params = this.parseBindingList(_tokentype.types.parenR, false, false);
+ if (this.options.ecmaVersion >= 6) node.generator = isGenerator;
+ this.parseFunctionBody(node, false);
+ return this.finishNode(node, "FunctionExpression");
+};
+
+// Parse arrow function expression with given parameters.
+
+pp.parseArrowExpression = function (node, params) {
+ this.initFunction(node);
+ node.params = this.toAssignableList(params, true);
+ this.parseFunctionBody(node, true);
+ return this.finishNode(node, "ArrowFunctionExpression");
+};
+
+// Parse function body and check parameters.
+
+pp.parseFunctionBody = function (node, isArrowFunction) {
+ var isExpression = isArrowFunction && this.type !== _tokentype.types.braceL;
+
+ if (isExpression) {
+ node.body = this.parseMaybeAssign();
+ node.expression = true;
+ } else {
+ // Start a new scope with regard to labels and the `inFunction`
+ // flag (restore them to their old value afterwards).
+ var oldInFunc = this.inFunction,
+ oldInGen = this.inGenerator,
+ oldLabels = this.labels;
+ this.inFunction = true;this.inGenerator = node.generator;this.labels = [];
+ node.body = this.parseBlock(true);
+ node.expression = false;
+ this.inFunction = oldInFunc;this.inGenerator = oldInGen;this.labels = oldLabels;
+ }
+
+ // If this is a strict mode function, verify that argument names
+ // are not repeated, and it does not try to bind the words `eval`
+ // or `arguments`.
+ if (this.strict || !isExpression && node.body.body.length && this.isUseStrict(node.body.body[0])) {
+ var oldStrict = this.strict;
+ this.strict = true;
+ if (node.id) this.checkLVal(node.id, true);
+ this.checkParams(node);
+ this.strict = oldStrict;
+ } else if (isArrowFunction) {
+ this.checkParams(node);
+ }
+};
+
+// Checks function params for various disallowed patterns such as using "eval"
+// or "arguments" and duplicate parameters.
+
+pp.checkParams = function (node) {
+ var nameHash = {};
+ for (var i = 0; i < node.params.length; i++) {
+ this.checkLVal(node.params[i], true, nameHash);
+ }
+};
+
+// Parses a comma-separated list of expressions, and returns them as
+// an array. `close` is the token type that ends the list, and
+// `allowEmpty` can be turned on to allow subsequent commas with
+// nothing in between them to be parsed as `null` (which is needed
+// for array literals).
+
+pp.parseExprList = function (close, allowTrailingComma, allowEmpty, refDestructuringErrors) {
+ var elts = [],
+ first = true;
+ while (!this.eat(close)) {
+ if (!first) {
+ this.expect(_tokentype.types.comma);
+ if (this.type === close && refDestructuringErrors && !refDestructuringErrors.trailingComma) {
+ refDestructuringErrors.trailingComma = this.lastTokStart;
+ }
+ if (allowTrailingComma && this.afterTrailingComma(close)) break;
+ } else first = false;
+
+ var elt = undefined;
+ if (allowEmpty && this.type === _tokentype.types.comma) elt = null;else if (this.type === _tokentype.types.ellipsis) elt = this.parseSpread(refDestructuringErrors);else elt = this.parseMaybeAssign(false, refDestructuringErrors);
+ elts.push(elt);
+ }
+ return elts;
+};
+
+// Parse the next token as an identifier. If `liberal` is true (used
+// when parsing properties), it will also convert keywords into
+// identifiers.
+
+pp.parseIdent = function (liberal) {
+ var node = this.startNode();
+ if (liberal && this.options.allowReserved == "never") liberal = false;
+ if (this.type === _tokentype.types.name) {
+ if (!liberal && (this.strict ? this.reservedWordsStrict : this.reservedWords).test(this.value) && (this.options.ecmaVersion >= 6 || this.input.slice(this.start, this.end).indexOf("\\") == -1)) this.raise(this.start, "The keyword '" + this.value + "' is reserved");
+ node.name = this.value;
+ } else if (liberal && this.type.keyword) {
+ node.name = this.type.keyword;
+ } else {
+ this.unexpected();
+ }
+ this.next();
+ return this.finishNode(node, "Identifier");
+};
+
+// Parses yield expression inside generator.
+
+pp.parseYield = function () {
+ var node = this.startNode();
+ this.next();
+ if (this.type == _tokentype.types.semi || this.canInsertSemicolon() || this.type != _tokentype.types.star && !this.type.startsExpr) {
+ node.delegate = false;
+ node.argument = null;
+ } else {
+ node.delegate = this.eat(_tokentype.types.star);
+ node.argument = this.parseMaybeAssign();
+ }
+ return this.finishNode(node, "YieldExpression");
+};
+
+// Parses array and generator comprehensions.
+
+pp.parseComprehension = function (node, isGenerator) {
+ node.blocks = [];
+ while (this.type === _tokentype.types._for) {
+ var block = this.startNode();
+ this.next();
+ this.expect(_tokentype.types.parenL);
+ block.left = this.parseBindingAtom();
+ this.checkLVal(block.left, true);
+ this.expectContextual("of");
+ block.right = this.parseExpression();
+ this.expect(_tokentype.types.parenR);
+ node.blocks.push(this.finishNode(block, "ComprehensionBlock"));
+ }
+ node.filter = this.eat(_tokentype.types._if) ? this.parseParenExpression() : null;
+ node.body = this.parseExpression();
+ this.expect(isGenerator ? _tokentype.types.parenR : _tokentype.types.bracketR);
+ node.generator = isGenerator;
+ return this.finishNode(node, "ComprehensionExpression");
+};
+
+},{"./state":10,"./tokentype":14}],2:[function(_dereq_,module,exports){
+// This is a trick taken from Esprima. It turns out that, on
+// non-Chrome browsers, to check whether a string is in a set, a
+// predicate containing a big ugly `switch` statement is faster than
+// a regular expression, and on Chrome the two are about on par.
+// This function uses `eval` (non-lexical) to produce such a
+// predicate from a space-separated string of words.
+//
+// It starts by sorting the words by length.
+
+// Reserved word lists for various dialects of the language
+
+"use strict";
+
+exports.__esModule = true;
+exports.isIdentifierStart = isIdentifierStart;
+exports.isIdentifierChar = isIdentifierChar;
+var reservedWords = {
+ 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
+ 5: "class enum extends super const export import",
+ 6: "enum",
+ strict: "implements interface let package private protected public static yield",
+ strictBind: "eval arguments"
+};
+
+exports.reservedWords = reservedWords;
+// And the keywords
+
+var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this";
+
+var keywords = {
+ 5: ecma5AndLessKeywords,
+ 6: ecma5AndLessKeywords + " let const class extends export import yield super"
+};
+
+exports.keywords = keywords;
+// ## Character categories
+
+// Big ugly regular expressions that match characters in the
+// whitespace, identifier, and identifier-start categories. These
+// are only applied when a character is found to actually have a
+// code point above 128.
+// Generated by `bin/generate-identifier-regex.js`.
+
+var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
+var nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_";
+
+var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
+var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
+
+nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
+
+// These are a run-length and offset encoded representation of the
+// >0xffff code points that are a valid part of identifiers. The
+// offset starts at 0x10000, and each pair of numbers represents an
+// offset to the next range, and then a size of the range. They were
+// generated by tools/generate-identifier-regex.js
+var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 17, 26, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 99, 39, 9, 51, 157, 310, 10, 21, 11, 7, 153, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 98, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 26, 45, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 955, 52, 76, 44, 33, 24, 27, 35, 42, 34, 4, 0, 13, 47, 15, 3, 22, 0, 38, 17, 2, 24, 133, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 32, 4, 287, 47, 21, 1, 2, 0, 185, 46, 82, 47, 21, 0, 60, 42, 502, 63, 32, 0, 449, 56, 1288, 920, 104, 110, 2962, 1070, 13266, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 881, 68, 12, 0, 67, 12, 16481, 1, 3071, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 4149, 196, 1340, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42710, 42, 4148, 12, 221, 16355, 541];
+var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 1306, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 52, 0, 13, 2, 49, 13, 16, 9, 83, 11, 168, 11, 6, 9, 8, 2, 57, 0, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 316, 19, 13, 9, 214, 6, 3, 8, 112, 16, 16, 9, 82, 12, 9, 9, 535, 9, 20855, 9, 135, 4, 60, 6, 26, 9, 1016, 45, 17, 3, 19723, 1, 5319, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 4305, 6, 792618, 239];
+
+// This has a complexity linear to the value of the code. The
+// assumption is that looking up astral identifier characters is
+// rare.
+function isInAstralSet(code, set) {
+ var pos = 0x10000;
+ for (var i = 0; i < set.length; i += 2) {
+ pos += set[i];
+ if (pos > code) return false;
+ pos += set[i + 1];
+ if (pos >= code) return true;
+ }
+}
+
+// Test whether a given character code starts an identifier.
+
+function isIdentifierStart(code, astral) {
+ if (code < 65) return code === 36;
+ if (code < 91) return true;
+ if (code < 97) return code === 95;
+ if (code < 123) return true;
+ if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
+ if (astral === false) return false;
+ return isInAstralSet(code, astralIdentifierStartCodes);
+}
+
+// Test whether a given character is part of an identifier.
+
+function isIdentifierChar(code, astral) {
+ if (code < 48) return code === 36;
+ if (code < 58) return true;
+ if (code < 65) return false;
+ if (code < 91) return true;
+ if (code < 97) return code === 95;
+ if (code < 123) return true;
+ if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
+ if (astral === false) return false;
+ return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
+}
+
+},{}],3:[function(_dereq_,module,exports){
+// Acorn is a tiny, fast JavaScript parser written in JavaScript.
+//
+// Acorn was written by Marijn Haverbeke, Ingvar Stepanyan, and
+// various contributors and released under an MIT license.
+//
+// Git repositories for Acorn are available at
+//
+// http://marijnhaverbeke.nl/git/acorn
+// https://github.com/ternjs/acorn.git
+//
+// Please use the [github bug tracker][ghbt] to report issues.
+//
+// [ghbt]: https://github.com/ternjs/acorn/issues
+//
+// This file defines the main parser interface. The library also comes
+// with a [error-tolerant parser][dammit] and an
+// [abstract syntax tree walker][walk], defined in other files.
+//
+// [dammit]: acorn_loose.js
+// [walk]: util/walk.js
+
+"use strict";
+
+exports.__esModule = true;
+exports.parse = parse;
+exports.parseExpressionAt = parseExpressionAt;
+exports.tokenizer = tokenizer;
+
+var _state = _dereq_("./state");
+
+_dereq_("./parseutil");
+
+_dereq_("./statement");
+
+_dereq_("./lval");
+
+_dereq_("./expression");
+
+_dereq_("./location");
+
+exports.Parser = _state.Parser;
+exports.plugins = _state.plugins;
+
+var _options = _dereq_("./options");
+
+exports.defaultOptions = _options.defaultOptions;
+
+var _locutil = _dereq_("./locutil");
+
+exports.Position = _locutil.Position;
+exports.SourceLocation = _locutil.SourceLocation;
+exports.getLineInfo = _locutil.getLineInfo;
+
+var _node = _dereq_("./node");
+
+exports.Node = _node.Node;
+
+var _tokentype = _dereq_("./tokentype");
+
+exports.TokenType = _tokentype.TokenType;
+exports.tokTypes = _tokentype.types;
+
+var _tokencontext = _dereq_("./tokencontext");
+
+exports.TokContext = _tokencontext.TokContext;
+exports.tokContexts = _tokencontext.types;
+
+var _identifier = _dereq_("./identifier");
+
+exports.isIdentifierChar = _identifier.isIdentifierChar;
+exports.isIdentifierStart = _identifier.isIdentifierStart;
+
+var _tokenize = _dereq_("./tokenize");
+
+exports.Token = _tokenize.Token;
+
+var _whitespace = _dereq_("./whitespace");
+
+exports.isNewLine = _whitespace.isNewLine;
+exports.lineBreak = _whitespace.lineBreak;
+exports.lineBreakG = _whitespace.lineBreakG;
+var version = "2.7.0";
+
+exports.version = version;
+// The main exported interface (under `self.acorn` when in the
+// browser) is a `parse` function that takes a code string and
+// returns an abstract syntax tree as specified by [Mozilla parser
+// API][api].
+//
+// [api]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
+
+function parse(input, options) {
+ return new _state.Parser(options, input).parse();
+}
+
+// This function tries to parse a single expression at a given
+// offset in a string. Useful for parsing mixed-language formats
+// that embed JavaScript expressions.
+
+function parseExpressionAt(input, pos, options) {
+ var p = new _state.Parser(options, input, pos);
+ p.nextToken();
+ return p.parseExpression();
+}
+
+// Acorn is organized as a tokenizer and a recursive-descent parser.
+// The `tokenizer` export provides an interface to the tokenizer.
+
+function tokenizer(input, options) {
+ return new _state.Parser(options, input);
+}
+
+},{"./expression":1,"./identifier":2,"./location":4,"./locutil":5,"./lval":6,"./node":7,"./options":8,"./parseutil":9,"./state":10,"./statement":11,"./tokencontext":12,"./tokenize":13,"./tokentype":14,"./whitespace":16}],4:[function(_dereq_,module,exports){
+"use strict";
+
+var _state = _dereq_("./state");
+
+var _locutil = _dereq_("./locutil");
+
+var pp = _state.Parser.prototype;
+
+// This function is used to raise exceptions on parse errors. It
+// takes an offset integer (into the current `input`) to indicate
+// the location of the error, attaches the position to the end
+// of the error message, and then raises a `SyntaxError` with that
+// message.
+
+pp.raise = function (pos, message) {
+ var loc = _locutil.getLineInfo(this.input, pos);
+ message += " (" + loc.line + ":" + loc.column + ")";
+ var err = new SyntaxError(message);
+ err.pos = pos;err.loc = loc;err.raisedAt = this.pos;
+ throw err;
+};
+
+pp.curPosition = function () {
+ if (this.options.locations) {
+ return new _locutil.Position(this.curLine, this.pos - this.lineStart);
+ }
+};
+
+},{"./locutil":5,"./state":10}],5:[function(_dereq_,module,exports){
+"use strict";
+
+exports.__esModule = true;
+exports.getLineInfo = getLineInfo;
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var _whitespace = _dereq_("./whitespace");
+
+// These are used when `options.locations` is on, for the
+// `startLoc` and `endLoc` properties.
+
+var Position = (function () {
+ function Position(line, col) {
+ _classCallCheck(this, Position);
+
+ this.line = line;
+ this.column = col;
+ }
+
+ Position.prototype.offset = function offset(n) {
+ return new Position(this.line, this.column + n);
+ };
+
+ return Position;
+})();
+
+exports.Position = Position;
+
+var SourceLocation = function SourceLocation(p, start, end) {
+ _classCallCheck(this, SourceLocation);
+
+ this.start = start;
+ this.end = end;
+ if (p.sourceFile !== null) this.source = p.sourceFile;
+}
+
+// The `getLineInfo` function is mostly useful when the
+// `locations` option is off (for performance reasons) and you
+// want to find the line/column position for a given character
+// offset. `input` should be the code string that the offset refers
+// into.
+
+;
+
+exports.SourceLocation = SourceLocation;
+
+function getLineInfo(input, offset) {
+ for (var line = 1, cur = 0;;) {
+ _whitespace.lineBreakG.lastIndex = cur;
+ var match = _whitespace.lineBreakG.exec(input);
+ if (match && match.index < offset) {
+ ++line;
+ cur = match.index + match[0].length;
+ } else {
+ return new Position(line, offset - cur);
+ }
+ }
+}
+
+},{"./whitespace":16}],6:[function(_dereq_,module,exports){
+"use strict";
+
+var _tokentype = _dereq_("./tokentype");
+
+var _state = _dereq_("./state");
+
+var _util = _dereq_("./util");
+
+var pp = _state.Parser.prototype;
+
+// Convert existing expression atom to assignable pattern
+// if possible.
+
+pp.toAssignable = function (node, isBinding) {
+ if (this.options.ecmaVersion >= 6 && node) {
+ switch (node.type) {
+ case "Identifier":
+ case "ObjectPattern":
+ case "ArrayPattern":
+ break;
+
+ case "ObjectExpression":
+ node.type = "ObjectPattern";
+ for (var i = 0; i < node.properties.length; i++) {
+ var prop = node.properties[i];
+ if (prop.kind !== "init") this.raise(prop.key.start, "Object pattern can't contain getter or setter");
+ this.toAssignable(prop.value, isBinding);
+ }
+ break;
+
+ case "ArrayExpression":
+ node.type = "ArrayPattern";
+ this.toAssignableList(node.elements, isBinding);
+ break;
+
+ case "AssignmentExpression":
+ if (node.operator === "=") {
+ node.type = "AssignmentPattern";
+ delete node.operator;
+ // falls through to AssignmentPattern
+ } else {
+ this.raise(node.left.end, "Only '=' operator can be used for specifying default value.");
+ break;
+ }
+
+ case "AssignmentPattern":
+ if (node.right.type === "YieldExpression") this.raise(node.right.start, "Yield expression cannot be a default value");
+ break;
+
+ case "ParenthesizedExpression":
+ node.expression = this.toAssignable(node.expression, isBinding);
+ break;
+
+ case "MemberExpression":
+ if (!isBinding) break;
+
+ default:
+ this.raise(node.start, "Assigning to rvalue");
+ }
+ }
+ return node;
+};
+
+// Convert list of expression atoms to binding list.
+
+pp.toAssignableList = function (exprList, isBinding) {
+ var end = exprList.length;
+ if (end) {
+ var last = exprList[end - 1];
+ if (last && last.type == "RestElement") {
+ --end;
+ } else if (last && last.type == "SpreadElement") {
+ last.type = "RestElement";
+ var arg = last.argument;
+ this.toAssignable(arg, isBinding);
+ if (arg.type !== "Identifier" && arg.type !== "MemberExpression" && arg.type !== "ArrayPattern") this.unexpected(arg.start);
+ --end;
+ }
+
+ if (isBinding && last.type === "RestElement" && last.argument.type !== "Identifier") this.unexpected(last.argument.start);
+ }
+ for (var i = 0; i < end; i++) {
+ var elt = exprList[i];
+ if (elt) this.toAssignable(elt, isBinding);
+ }
+ return exprList;
+};
+
+// Parses spread element.
+
+pp.parseSpread = function (refDestructuringErrors) {
+ var node = this.startNode();
+ this.next();
+ node.argument = this.parseMaybeAssign(refDestructuringErrors);
+ return this.finishNode(node, "SpreadElement");
+};
+
+pp.parseRest = function (allowNonIdent) {
+ var node = this.startNode();
+ this.next();
+
+ // RestElement inside of a function parameter must be an identifier
+ if (allowNonIdent) node.argument = this.type === _tokentype.types.name ? this.parseIdent() : this.unexpected();else node.argument = this.type === _tokentype.types.name || this.type === _tokentype.types.bracketL ? this.parseBindingAtom() : this.unexpected();
+
+ return this.finishNode(node, "RestElement");
+};
+
+// Parses lvalue (assignable) atom.
+
+pp.parseBindingAtom = function () {
+ if (this.options.ecmaVersion < 6) return this.parseIdent();
+ switch (this.type) {
+ case _tokentype.types.name:
+ return this.parseIdent();
+
+ case _tokentype.types.bracketL:
+ var node = this.startNode();
+ this.next();
+ node.elements = this.parseBindingList(_tokentype.types.bracketR, true, true);
+ return this.finishNode(node, "ArrayPattern");
+
+ case _tokentype.types.braceL:
+ return this.parseObj(true);
+
+ default:
+ this.unexpected();
+ }
+};
+
+pp.parseBindingList = function (close, allowEmpty, allowTrailingComma, allowNonIdent) {
+ var elts = [],
+ first = true;
+ while (!this.eat(close)) {
+ if (first) first = false;else this.expect(_tokentype.types.comma);
+ if (allowEmpty && this.type === _tokentype.types.comma) {
+ elts.push(null);
+ } else if (allowTrailingComma && this.afterTrailingComma(close)) {
+ break;
+ } else if (this.type === _tokentype.types.ellipsis) {
+ var rest = this.parseRest(allowNonIdent);
+ this.parseBindingListItem(rest);
+ elts.push(rest);
+ this.expect(close);
+ break;
+ } else {
+ var elem = this.parseMaybeDefault(this.start, this.startLoc);
+ this.parseBindingListItem(elem);
+ elts.push(elem);
+ }
+ }
+ return elts;
+};
+
+pp.parseBindingListItem = function (param) {
+ return param;
+};
+
+// Parses assignment pattern around given atom if possible.
+
+pp.parseMaybeDefault = function (startPos, startLoc, left) {
+ left = left || this.parseBindingAtom();
+ if (this.options.ecmaVersion < 6 || !this.eat(_tokentype.types.eq)) return left;
+ var node = this.startNodeAt(startPos, startLoc);
+ node.left = left;
+ node.right = this.parseMaybeAssign();
+ return this.finishNode(node, "AssignmentPattern");
+};
+
+// Verify that a node is an lval — something that can be assigned
+// to.
+
+pp.checkLVal = function (expr, isBinding, checkClashes) {
+ switch (expr.type) {
+ case "Identifier":
+ if (this.strict && this.reservedWordsStrictBind.test(expr.name)) this.raise(expr.start, (isBinding ? "Binding " : "Assigning to ") + expr.name + " in strict mode");
+ if (checkClashes) {
+ if (_util.has(checkClashes, expr.name)) this.raise(expr.start, "Argument name clash");
+ checkClashes[expr.name] = true;
+ }
+ break;
+
+ case "MemberExpression":
+ if (isBinding) this.raise(expr.start, (isBinding ? "Binding" : "Assigning to") + " member expression");
+ break;
+
+ case "ObjectPattern":
+ for (var i = 0; i < expr.properties.length; i++) {
+ this.checkLVal(expr.properties[i].value, isBinding, checkClashes);
+ }break;
+
+ case "ArrayPattern":
+ for (var i = 0; i < expr.elements.length; i++) {
+ var elem = expr.elements[i];
+ if (elem) this.checkLVal(elem, isBinding, checkClashes);
+ }
+ break;
+
+ case "AssignmentPattern":
+ this.checkLVal(expr.left, isBinding, checkClashes);
+ break;
+
+ case "RestElement":
+ this.checkLVal(expr.argument, isBinding, checkClashes);
+ break;
+
+ case "ParenthesizedExpression":
+ this.checkLVal(expr.expression, isBinding, checkClashes);
+ break;
+
+ default:
+ this.raise(expr.start, (isBinding ? "Binding" : "Assigning to") + " rvalue");
+ }
+};
+
+},{"./state":10,"./tokentype":14,"./util":15}],7:[function(_dereq_,module,exports){
+"use strict";
+
+exports.__esModule = true;
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var _state = _dereq_("./state");
+
+var _locutil = _dereq_("./locutil");
+
+var Node = function Node(parser, pos, loc) {
+ _classCallCheck(this, Node);
+
+ this.type = "";
+ this.start = pos;
+ this.end = 0;
+ if (parser.options.locations) this.loc = new _locutil.SourceLocation(parser, loc);
+ if (parser.options.directSourceFile) this.sourceFile = parser.options.directSourceFile;
+ if (parser.options.ranges) this.range = [pos, 0];
+}
+
+// Start an AST node, attaching a start offset.
+
+;
+
+exports.Node = Node;
+var pp = _state.Parser.prototype;
+
+pp.startNode = function () {
+ return new Node(this, this.start, this.startLoc);
+};
+
+pp.startNodeAt = function (pos, loc) {
+ return new Node(this, pos, loc);
+};
+
+// Finish an AST node, adding `type` and `end` properties.
+
+function finishNodeAt(node, type, pos, loc) {
+ node.type = type;
+ node.end = pos;
+ if (this.options.locations) node.loc.end = loc;
+ if (this.options.ranges) node.range[1] = pos;
+ return node;
+}
+
+pp.finishNode = function (node, type) {
+ return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
+};
+
+// Finish node at given position
+
+pp.finishNodeAt = function (node, type, pos, loc) {
+ return finishNodeAt.call(this, node, type, pos, loc);
+};
+
+},{"./locutil":5,"./state":10}],8:[function(_dereq_,module,exports){
+"use strict";
+
+exports.__esModule = true;
+exports.getOptions = getOptions;
+
+var _util = _dereq_("./util");
+
+var _locutil = _dereq_("./locutil");
+
+// A second optional argument can be given to further configure
+// the parser process. These options are recognized:
+
+var defaultOptions = {
+ // `ecmaVersion` indicates the ECMAScript version to parse. Must
+ // be either 3, or 5, or 6. This influences support for strict
+ // mode, the set of reserved words, support for getters and
+ // setters and other features.
+ ecmaVersion: 5,
+ // Source type ("script" or "module") for different semantics
+ sourceType: "script",
+ // `onInsertedSemicolon` can be a callback that will be called
+ // when a semicolon is automatically inserted. It will be passed
+ // th position of the comma as an offset, and if `locations` is
+ // enabled, it is given the location as a `{line, column}` object
+ // as second argument.
+ onInsertedSemicolon: null,
+ // `onTrailingComma` is similar to `onInsertedSemicolon`, but for
+ // trailing commas.
+ onTrailingComma: null,
+ // By default, reserved words are only enforced if ecmaVersion >= 5.
+ // Set `allowReserved` to a boolean value to explicitly turn this on
+ // an off. When this option has the value "never", reserved words
+ // and keywords can also not be used as property names.
+ allowReserved: null,
+ // When enabled, a return at the top level is not considered an
+ // error.
+ allowReturnOutsideFunction: false,
+ // When enabled, import/export statements are not constrained to
+ // appearing at the top of the program.
+ allowImportExportEverywhere: false,
+ // When enabled, hashbang directive in the beginning of file
+ // is allowed and treated as a line comment.
+ allowHashBang: false,
+ // When `locations` is on, `loc` properties holding objects with
+ // `start` and `end` properties in `{line, column}` form (with
+ // line being 1-based and column 0-based) will be attached to the
+ // nodes.
+ locations: false,
+ // A function can be passed as `onToken` option, which will
+ // cause Acorn to call that function with object in the same
+ // format as tokens returned from `tokenizer().getToken()`. Note
+ // that you are not allowed to call the parser from the
+ // callback—that will corrupt its internal state.
+ onToken: null,
+ // A function can be passed as `onComment` option, which will
+ // cause Acorn to call that function with `(block, text, start,
+ // end)` parameters whenever a comment is skipped. `block` is a
+ // boolean indicating whether this is a block (`/* */`) comment,
+ // `text` is the content of the comment, and `start` and `end` are
+ // character offsets that denote the start and end of the comment.
+ // When the `locations` option is on, two more parameters are
+ // passed, the full `{line, column}` locations of the start and
+ // end of the comments. Note that you are not allowed to call the
+ // parser from the callback—that will corrupt its internal state.
+ onComment: null,
+ // Nodes have their start and end characters offsets recorded in
+ // `start` and `end` properties (directly on the node, rather than
+ // the `loc` object, which holds line/column data. To also add a
+ // [semi-standardized][range] `range` property holding a `[start,
+ // end]` array with the same numbers, set the `ranges` option to
+ // `true`.
+ //
+ // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678
+ ranges: false,
+ // It is possible to parse multiple files into a single AST by
+ // passing the tree produced by parsing the first file as
+ // `program` option in subsequent parses. This will add the
+ // toplevel forms of the parsed file to the `Program` (top) node
+ // of an existing parse tree.
+ program: null,
+ // When `locations` is on, you can pass this to record the source
+ // file in every node's `loc` object.
+ sourceFile: null,
+ // This value, if given, is stored in every node, whether
+ // `locations` is on or off.
+ directSourceFile: null,
+ // When enabled, parenthesized expressions are represented by
+ // (non-standard) ParenthesizedExpression nodes
+ preserveParens: false,
+ plugins: {}
+};
+
+exports.defaultOptions = defaultOptions;
+// Interpret and default an options object
+
+function getOptions(opts) {
+ var options = {};
+ for (var opt in defaultOptions) {
+ options[opt] = opts && _util.has(opts, opt) ? opts[opt] : defaultOptions[opt];
+ }if (options.allowReserved == null) options.allowReserved = options.ecmaVersion < 5;
+
+ if (_util.isArray(options.onToken)) {
+ (function () {
+ var tokens = options.onToken;
+ options.onToken = function (token) {
+ return tokens.push(token);
+ };
+ })();
+ }
+ if (_util.isArray(options.onComment)) options.onComment = pushComment(options, options.onComment);
+
+ return options;
+}
+
+function pushComment(options, array) {
+ return function (block, text, start, end, startLoc, endLoc) {
+ var comment = {
+ type: block ? 'Block' : 'Line',
+ value: text,
+ start: start,
+ end: end
+ };
+ if (options.locations) comment.loc = new _locutil.SourceLocation(this, startLoc, endLoc);
+ if (options.ranges) comment.range = [start, end];
+ array.push(comment);
+ };
+}
+
+},{"./locutil":5,"./util":15}],9:[function(_dereq_,module,exports){
+"use strict";
+
+var _tokentype = _dereq_("./tokentype");
+
+var _state = _dereq_("./state");
+
+var _whitespace = _dereq_("./whitespace");
+
+var pp = _state.Parser.prototype;
+
+// ## Parser utilities
+
+// Test whether a statement node is the string literal `"use strict"`.
+
+pp.isUseStrict = function (stmt) {
+ return this.options.ecmaVersion >= 5 && stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && stmt.expression.raw.slice(1, -1) === "use strict";
+};
+
+// Predicate that tests whether the next token is of the given
+// type, and if yes, consumes it as a side effect.
+
+pp.eat = function (type) {
+ if (this.type === type) {
+ this.next();
+ return true;
+ } else {
+ return false;
+ }
+};
+
+// Tests whether parsed token is a contextual keyword.
+
+pp.isContextual = function (name) {
+ return this.type === _tokentype.types.name && this.value === name;
+};
+
+// Consumes contextual keyword if possible.
+
+pp.eatContextual = function (name) {
+ return this.value === name && this.eat(_tokentype.types.name);
+};
+
+// Asserts that following token is given contextual keyword.
+
+pp.expectContextual = function (name) {
+ if (!this.eatContextual(name)) this.unexpected();
+};
+
+// Test whether a semicolon can be inserted at the current position.
+
+pp.canInsertSemicolon = function () {
+ return this.type === _tokentype.types.eof || this.type === _tokentype.types.braceR || _whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.start));
+};
+
+pp.insertSemicolon = function () {
+ if (this.canInsertSemicolon()) {
+ if (this.options.onInsertedSemicolon) this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc);
+ return true;
+ }
+};
+
+// Consume a semicolon, or, failing that, see if we are allowed to
+// pretend that there is a semicolon at this position.
+
+pp.semicolon = function () {
+ if (!this.eat(_tokentype.types.semi) && !this.insertSemicolon()) this.unexpected();
+};
+
+pp.afterTrailingComma = function (tokType) {
+ if (this.type == tokType) {
+ if (this.options.onTrailingComma) this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc);
+ this.next();
+ return true;
+ }
+};
+
+// Expect a token of a given type. If found, consume it, otherwise,
+// raise an unexpected token error.
+
+pp.expect = function (type) {
+ this.eat(type) || this.unexpected();
+};
+
+// Raise an unexpected token error.
+
+pp.unexpected = function (pos) {
+ this.raise(pos != null ? pos : this.start, "Unexpected token");
+};
+
+pp.checkPatternErrors = function (refDestructuringErrors, andThrow) {
+ var pos = refDestructuringErrors && refDestructuringErrors.trailingComma;
+ if (!andThrow) return !!pos;
+ if (pos) this.raise(pos, "Trailing comma is not permitted in destructuring patterns");
+};
+
+pp.checkExpressionErrors = function (refDestructuringErrors, andThrow) {
+ var pos = refDestructuringErrors && refDestructuringErrors.shorthandAssign;
+ if (!andThrow) return !!pos;
+ if (pos) this.raise(pos, "Shorthand property assignments are valid only in destructuring patterns");
+};
+
+},{"./state":10,"./tokentype":14,"./whitespace":16}],10:[function(_dereq_,module,exports){
+"use strict";
+
+exports.__esModule = true;
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var _identifier = _dereq_("./identifier");
+
+var _tokentype = _dereq_("./tokentype");
+
+var _whitespace = _dereq_("./whitespace");
+
+var _options = _dereq_("./options");
+
+// Registered plugins
+var plugins = {};
+
+exports.plugins = plugins;
+function keywordRegexp(words) {
+ return new RegExp("^(" + words.replace(/ /g, "|") + ")$");
+}
+
+var Parser = (function () {
+ function Parser(options, input, startPos) {
+ _classCallCheck(this, Parser);
+
+ this.options = options = _options.getOptions(options);
+ this.sourceFile = options.sourceFile;
+ this.keywords = keywordRegexp(_identifier.keywords[options.ecmaVersion >= 6 ? 6 : 5]);
+ var reserved = options.allowReserved ? "" : _identifier.reservedWords[options.ecmaVersion] + (options.sourceType == "module" ? " await" : "");
+ this.reservedWords = keywordRegexp(reserved);
+ var reservedStrict = (reserved ? reserved + " " : "") + _identifier.reservedWords.strict;
+ this.reservedWordsStrict = keywordRegexp(reservedStrict);
+ this.reservedWordsStrictBind = keywordRegexp(reservedStrict + " " + _identifier.reservedWords.strictBind);
+ this.input = String(input);
+
+ // Used to signal to callers of `readWord1` whether the word
+ // contained any escape sequences. This is needed because words with
+ // escape sequences must not be interpreted as keywords.
+ this.containsEsc = false;
+
+ // Load plugins
+ this.loadPlugins(options.plugins);
+
+ // Set up token state
+
+ // The current position of the tokenizer in the input.
+ if (startPos) {
+ this.pos = startPos;
+ this.lineStart = Math.max(0, this.input.lastIndexOf("\n", startPos));
+ this.curLine = this.input.slice(0, this.lineStart).split(_whitespace.lineBreak).length;
+ } else {
+ this.pos = this.lineStart = 0;
+ this.curLine = 1;
+ }
+
+ // Properties of the current token:
+ // Its type
+ this.type = _tokentype.types.eof;
+ // For tokens that include more information than their type, the value
+ this.value = null;
+ // Its start and end offset
+ this.start = this.end = this.pos;
+ // And, if locations are used, the {line, column} object
+ // corresponding to those offsets
+ this.startLoc = this.endLoc = this.curPosition();
+
+ // Position information for the previous token
+ this.lastTokEndLoc = this.lastTokStartLoc = null;
+ this.lastTokStart = this.lastTokEnd = this.pos;
+
+ // The context stack is used to superficially track syntactic
+ // context to predict whether a regular expression is allowed in a
+ // given position.
+ this.context = this.initialContext();
+ this.exprAllowed = true;
+
+ // Figure out if it's a module code.
+ this.strict = this.inModule = options.sourceType === "module";
+
+ // Used to signify the start of a potential arrow function
+ this.potentialArrowAt = -1;
+
+ // Flags to track whether we are in a function, a generator.
+ this.inFunction = this.inGenerator = false;
+ // Labels in scope.
+ this.labels = [];
+
+ // If enabled, skip leading hashbang line.
+ if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === '#!') this.skipLineComment(2);
+ }
+
+ // DEPRECATED Kept for backwards compatibility until 3.0 in case a plugin uses them
+
+ Parser.prototype.isKeyword = function isKeyword(word) {
+ return this.keywords.test(word);
+ };
+
+ Parser.prototype.isReservedWord = function isReservedWord(word) {
+ return this.reservedWords.test(word);
+ };
+
+ Parser.prototype.extend = function extend(name, f) {
+ this[name] = f(this[name]);
+ };
+
+ Parser.prototype.loadPlugins = function loadPlugins(pluginConfigs) {
+ for (var _name in pluginConfigs) {
+ var plugin = plugins[_name];
+ if (!plugin) throw new Error("Plugin '" + _name + "' not found");
+ plugin(this, pluginConfigs[_name]);
+ }
+ };
+
+ Parser.prototype.parse = function parse() {
+ var node = this.options.program || this.startNode();
+ this.nextToken();
+ return this.parseTopLevel(node);
+ };
+
+ return Parser;
+})();
+
+exports.Parser = Parser;
+
+},{"./identifier":2,"./options":8,"./tokentype":14,"./whitespace":16}],11:[function(_dereq_,module,exports){
+"use strict";
+
+var _tokentype = _dereq_("./tokentype");
+
+var _state = _dereq_("./state");
+
+var _whitespace = _dereq_("./whitespace");
+
+var pp = _state.Parser.prototype;
+
+// ### Statement parsing
+
+// Parse a program. Initializes the parser, reads any number of
+// statements, and wraps them in a Program node. Optionally takes a
+// `program` argument. If present, the statements will be appended
+// to its body instead of creating a new node.
+
+pp.parseTopLevel = function (node) {
+ var first = true;
+ if (!node.body) node.body = [];
+ while (this.type !== _tokentype.types.eof) {
+ var stmt = this.parseStatement(true, true);
+ node.body.push(stmt);
+ if (first) {
+ if (this.isUseStrict(stmt)) this.setStrict(true);
+ first = false;
+ }
+ }
+ this.next();
+ if (this.options.ecmaVersion >= 6) {
+ node.sourceType = this.options.sourceType;
+ }
+ return this.finishNode(node, "Program");
+};
+
+var loopLabel = { kind: "loop" },
+ switchLabel = { kind: "switch" };
+
+// Parse a single statement.
+//
+// If expecting a statement and finding a slash operator, parse a
+// regular expression literal. This is to handle cases like
+// `if (foo) /blah/.exec(foo)`, where looking at the previous token
+// does not help.
+
+pp.parseStatement = function (declaration, topLevel) {
+ var starttype = this.type,
+ node = this.startNode();
+
+ // Most types of statements are recognized by the keyword they
+ // start with. Many are trivial to parse, some require a bit of
+ // complexity.
+
+ switch (starttype) {
+ case _tokentype.types._break:case _tokentype.types._continue:
+ return this.parseBreakContinueStatement(node, starttype.keyword);
+ case _tokentype.types._debugger:
+ return this.parseDebuggerStatement(node);
+ case _tokentype.types._do:
+ return this.parseDoStatement(node);
+ case _tokentype.types._for:
+ return this.parseForStatement(node);
+ case _tokentype.types._function:
+ if (!declaration && this.options.ecmaVersion >= 6) this.unexpected();
+ return this.parseFunctionStatement(node);
+ case _tokentype.types._class:
+ if (!declaration) this.unexpected();
+ return this.parseClass(node, true);
+ case _tokentype.types._if:
+ return this.parseIfStatement(node);
+ case _tokentype.types._return:
+ return this.parseReturnStatement(node);
+ case _tokentype.types._switch:
+ return this.parseSwitchStatement(node);
+ case _tokentype.types._throw:
+ return this.parseThrowStatement(node);
+ case _tokentype.types._try:
+ return this.parseTryStatement(node);
+ case _tokentype.types._let:case _tokentype.types._const:
+ if (!declaration) this.unexpected(); // NOTE: falls through to _var
+ case _tokentype.types._var:
+ return this.parseVarStatement(node, starttype);
+ case _tokentype.types._while:
+ return this.parseWhileStatement(node);
+ case _tokentype.types._with:
+ return this.parseWithStatement(node);
+ case _tokentype.types.braceL:
+ return this.parseBlock();
+ case _tokentype.types.semi:
+ return this.parseEmptyStatement(node);
+ case _tokentype.types._export:
+ case _tokentype.types._import:
+ if (!this.options.allowImportExportEverywhere) {
+ if (!topLevel) this.raise(this.start, "'import' and 'export' may only appear at the top level");
+ if (!this.inModule) this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'");
+ }
+ return starttype === _tokentype.types._import ? this.parseImport(node) : this.parseExport(node);
+
+ // If the statement does not start with a statement keyword or a
+ // brace, it's an ExpressionStatement or LabeledStatement. We
+ // simply start parsing an expression, and afterwards, if the
+ // next token is a colon and the expression was a simple
+ // Identifier node, we switch to interpreting it as a label.
+ default:
+ var maybeName = this.value,
+ expr = this.parseExpression();
+ if (starttype === _tokentype.types.name && expr.type === "Identifier" && this.eat(_tokentype.types.colon)) return this.parseLabeledStatement(node, maybeName, expr);else return this.parseExpressionStatement(node, expr);
+ }
+};
+
+pp.parseBreakContinueStatement = function (node, keyword) {
+ var isBreak = keyword == "break";
+ this.next();
+ if (this.eat(_tokentype.types.semi) || this.insertSemicolon()) node.label = null;else if (this.type !== _tokentype.types.name) this.unexpected();else {
+ node.label = this.parseIdent();
+ this.semicolon();
+ }
+
+ // Verify that there is an actual destination to break or
+ // continue to.
+ for (var i = 0; i < this.labels.length; ++i) {
+ var lab = this.labels[i];
+ if (node.label == null || lab.name === node.label.name) {
+ if (lab.kind != null && (isBreak || lab.kind === "loop")) break;
+ if (node.label && isBreak) break;
+ }
+ }
+ if (i === this.labels.length) this.raise(node.start, "Unsyntactic " + keyword);
+ return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement");
+};
+
+pp.parseDebuggerStatement = function (node) {
+ this.next();
+ this.semicolon();
+ return this.finishNode(node, "DebuggerStatement");
+};
+
+pp.parseDoStatement = function (node) {
+ this.next();
+ this.labels.push(loopLabel);
+ node.body = this.parseStatement(false);
+ this.labels.pop();
+ this.expect(_tokentype.types._while);
+ node.test = this.parseParenExpression();
+ if (this.options.ecmaVersion >= 6) this.eat(_tokentype.types.semi);else this.semicolon();
+ return this.finishNode(node, "DoWhileStatement");
+};
+
+// Disambiguating between a `for` and a `for`/`in` or `for`/`of`
+// loop is non-trivial. Basically, we have to parse the init `var`
+// statement or expression, disallowing the `in` operator (see
+// the second parameter to `parseExpression`), and then check
+// whether the next token is `in` or `of`. When there is no init
+// part (semicolon immediately after the opening parenthesis), it
+// is a regular `for` loop.
+
+pp.parseForStatement = function (node) {
+ this.next();
+ this.labels.push(loopLabel);
+ this.expect(_tokentype.types.parenL);
+ if (this.type === _tokentype.types.semi) return this.parseFor(node, null);
+ if (this.type === _tokentype.types._var || this.type === _tokentype.types._let || this.type === _tokentype.types._const) {
+ var _init = this.startNode(),
+ varKind = this.type;
+ this.next();
+ this.parseVar(_init, true, varKind);
+ this.finishNode(_init, "VariableDeclaration");
+ if ((this.type === _tokentype.types._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && _init.declarations.length === 1 && !(varKind !== _tokentype.types._var && _init.declarations[0].init)) return this.parseForIn(node, _init);
+ return this.parseFor(node, _init);
+ }
+ var refDestructuringErrors = { shorthandAssign: 0, trailingComma: 0 };
+ var init = this.parseExpression(true, refDestructuringErrors);
+ if (this.type === _tokentype.types._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) {
+ this.checkPatternErrors(refDestructuringErrors, true);
+ this.toAssignable(init);
+ this.checkLVal(init);
+ return this.parseForIn(node, init);
+ } else {
+ this.checkExpressionErrors(refDestructuringErrors, true);
+ }
+ return this.parseFor(node, init);
+};
+
+pp.parseFunctionStatement = function (node) {
+ this.next();
+ return this.parseFunction(node, true);
+};
+
+pp.parseIfStatement = function (node) {
+ this.next();
+ node.test = this.parseParenExpression();
+ node.consequent = this.parseStatement(false);
+ node.alternate = this.eat(_tokentype.types._else) ? this.parseStatement(false) : null;
+ return this.finishNode(node, "IfStatement");
+};
+
+pp.parseReturnStatement = function (node) {
+ if (!this.inFunction && !this.options.allowReturnOutsideFunction) this.raise(this.start, "'return' outside of function");
+ this.next();
+
+ // In `return` (and `break`/`continue`), the keywords with
+ // optional arguments, we eagerly look for a semicolon or the
+ // possibility to insert one.
+
+ if (this.eat(_tokentype.types.semi) || this.insertSemicolon()) node.argument = null;else {
+ node.argument = this.parseExpression();this.semicolon();
+ }
+ return this.finishNode(node, "ReturnStatement");
+};
+
+pp.parseSwitchStatement = function (node) {
+ this.next();
+ node.discriminant = this.parseParenExpression();
+ node.cases = [];
+ this.expect(_tokentype.types.braceL);
+ this.labels.push(switchLabel);
+
+ // Statements under must be grouped (by label) in SwitchCase
+ // nodes. `cur` is used to keep the node that we are currently
+ // adding statements to.
+
+ for (var cur, sawDefault = false; this.type != _tokentype.types.braceR;) {
+ if (this.type === _tokentype.types._case || this.type === _tokentype.types._default) {
+ var isCase = this.type === _tokentype.types._case;
+ if (cur) this.finishNode(cur, "SwitchCase");
+ node.cases.push(cur = this.startNode());
+ cur.consequent = [];
+ this.next();
+ if (isCase) {
+ cur.test = this.parseExpression();
+ } else {
+ if (sawDefault) this.raise(this.lastTokStart, "Multiple default clauses");
+ sawDefault = true;
+ cur.test = null;
+ }
+ this.expect(_tokentype.types.colon);
+ } else {
+ if (!cur) this.unexpected();
+ cur.consequent.push(this.parseStatement(true));
+ }
+ }
+ if (cur) this.finishNode(cur, "SwitchCase");
+ this.next(); // Closing brace
+ this.labels.pop();
+ return this.finishNode(node, "SwitchStatement");
+};
+
+pp.parseThrowStatement = function (node) {
+ this.next();
+ if (_whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) this.raise(this.lastTokEnd, "Illegal newline after throw");
+ node.argument = this.parseExpression();
+ this.semicolon();
+ return this.finishNode(node, "ThrowStatement");
+};
+
+// Reused empty array added for node fields that are always empty.
+
+var empty = [];
+
+pp.parseTryStatement = function (node) {
+ this.next();
+ node.block = this.parseBlock();
+ node.handler = null;
+ if (this.type === _tokentype.types._catch) {
+ var clause = this.startNode();
+ this.next();
+ this.expect(_tokentype.types.parenL);
+ clause.param = this.parseBindingAtom();
+ this.checkLVal(clause.param, true);
+ this.expect(_tokentype.types.parenR);
+ clause.body = this.parseBlock();
+ node.handler = this.finishNode(clause, "CatchClause");
+ }
+ node.finalizer = this.eat(_tokentype.types._finally) ? this.parseBlock() : null;
+ if (!node.handler && !node.finalizer) this.raise(node.start, "Missing catch or finally clause");
+ return this.finishNode(node, "TryStatement");
+};
+
+pp.parseVarStatement = function (node, kind) {
+ this.next();
+ this.parseVar(node, false, kind);
+ this.semicolon();
+ return this.finishNode(node, "VariableDeclaration");
+};
+
+pp.parseWhileStatement = function (node) {
+ this.next();
+ node.test = this.parseParenExpression();
+ this.labels.push(loopLabel);
+ node.body = this.parseStatement(false);
+ this.labels.pop();
+ return this.finishNode(node, "WhileStatement");
+};
+
+pp.parseWithStatement = function (node) {
+ if (this.strict) this.raise(this.start, "'with' in strict mode");
+ this.next();
+ node.object = this.parseParenExpression();
+ node.body = this.parseStatement(false);
+ return this.finishNode(node, "WithStatement");
+};
+
+pp.parseEmptyStatement = function (node) {
+ this.next();
+ return this.finishNode(node, "EmptyStatement");
+};
+
+pp.parseLabeledStatement = function (node, maybeName, expr) {
+ for (var i = 0; i < this.labels.length; ++i) {
+ if (this.labels[i].name === maybeName) this.raise(expr.start, "Label '" + maybeName + "' is already declared");
+ }var kind = this.type.isLoop ? "loop" : this.type === _tokentype.types._switch ? "switch" : null;
+ for (var i = this.labels.length - 1; i >= 0; i--) {
+ var label = this.labels[i];
+ if (label.statementStart == node.start) {
+ label.statementStart = this.start;
+ label.kind = kind;
+ } else break;
+ }
+ this.labels.push({ name: maybeName, kind: kind, statementStart: this.start });
+ node.body = this.parseStatement(true);
+ this.labels.pop();
+ node.label = expr;
+ return this.finishNode(node, "LabeledStatement");
+};
+
+pp.parseExpressionStatement = function (node, expr) {
+ node.expression = expr;
+ this.semicolon();
+ return this.finishNode(node, "ExpressionStatement");
+};
+
+// Parse a semicolon-enclosed block of statements, handling `"use
+// strict"` declarations when `allowStrict` is true (used for
+// function bodies).
+
+pp.parseBlock = function (allowStrict) {
+ var node = this.startNode(),
+ first = true,
+ oldStrict = undefined;
+ node.body = [];
+ this.expect(_tokentype.types.braceL);
+ while (!this.eat(_tokentype.types.braceR)) {
+ var stmt = this.parseStatement(true);
+ node.body.push(stmt);
+ if (first && allowStrict && this.isUseStrict(stmt)) {
+ oldStrict = this.strict;
+ this.setStrict(this.strict = true);
+ }
+ first = false;
+ }
+ if (oldStrict === false) this.setStrict(false);
+ return this.finishNode(node, "BlockStatement");
+};
+
+// Parse a regular `for` loop. The disambiguation code in
+// `parseStatement` will already have parsed the init statement or
+// expression.
+
+pp.parseFor = function (node, init) {
+ node.init = init;
+ this.expect(_tokentype.types.semi);
+ node.test = this.type === _tokentype.types.semi ? null : this.parseExpression();
+ this.expect(_tokentype.types.semi);
+ node.update = this.type === _tokentype.types.parenR ? null : this.parseExpression();
+ this.expect(_tokentype.types.parenR);
+ node.body = this.parseStatement(false);
+ this.labels.pop();
+ return this.finishNode(node, "ForStatement");
+};
+
+// Parse a `for`/`in` and `for`/`of` loop, which are almost
+// same from parser's perspective.
+
+pp.parseForIn = function (node, init) {
+ var type = this.type === _tokentype.types._in ? "ForInStatement" : "ForOfStatement";
+ this.next();
+ node.left = init;
+ node.right = this.parseExpression();
+ this.expect(_tokentype.types.parenR);
+ node.body = this.parseStatement(false);
+ this.labels.pop();
+ return this.finishNode(node, type);
+};
+
+// Parse a list of variable declarations.
+
+pp.parseVar = function (node, isFor, kind) {
+ node.declarations = [];
+ node.kind = kind.keyword;
+ for (;;) {
+ var decl = this.startNode();
+ this.parseVarId(decl);
+ if (this.eat(_tokentype.types.eq)) {
+ decl.init = this.parseMaybeAssign(isFor);
+ } else if (kind === _tokentype.types._const && !(this.type === _tokentype.types._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
+ this.unexpected();
+ } else if (decl.id.type != "Identifier" && !(isFor && (this.type === _tokentype.types._in || this.isContextual("of")))) {
+ this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
+ } else {
+ decl.init = null;
+ }
+ node.declarations.push(this.finishNode(decl, "VariableDeclarator"));
+ if (!this.eat(_tokentype.types.comma)) break;
+ }
+ return node;
+};
+
+pp.parseVarId = function (decl) {
+ decl.id = this.parseBindingAtom();
+ this.checkLVal(decl.id, true);
+};
+
+// Parse a function declaration or literal (depending on the
+// `isStatement` parameter).
+
+pp.parseFunction = function (node, isStatement, allowExpressionBody) {
+ this.initFunction(node);
+ if (this.options.ecmaVersion >= 6) node.generator = this.eat(_tokentype.types.star);
+ if (isStatement || this.type === _tokentype.types.name) node.id = this.parseIdent();
+ this.parseFunctionParams(node);
+ this.parseFunctionBody(node, allowExpressionBody);
+ return this.finishNode(node, isStatement ? "FunctionDeclaration" : "FunctionExpression");
+};
+
+pp.parseFunctionParams = function (node) {
+ this.expect(_tokentype.types.parenL);
+ node.params = this.parseBindingList(_tokentype.types.parenR, false, false, true);
+};
+
+// Parse a class declaration or literal (depending on the
+// `isStatement` parameter).
+
+pp.parseClass = function (node, isStatement) {
+ this.next();
+ this.parseClassId(node, isStatement);
+ this.parseClassSuper(node);
+ var classBody = this.startNode();
+ var hadConstructor = false;
+ classBody.body = [];
+ this.expect(_tokentype.types.braceL);
+ while (!this.eat(_tokentype.types.braceR)) {
+ if (this.eat(_tokentype.types.semi)) continue;
+ var method = this.startNode();
+ var isGenerator = this.eat(_tokentype.types.star);
+ var isMaybeStatic = this.type === _tokentype.types.name && this.value === "static";
+ this.parsePropertyName(method);
+ method["static"] = isMaybeStatic && this.type !== _tokentype.types.parenL;
+ if (method["static"]) {
+ if (isGenerator) this.unexpected();
+ isGenerator = this.eat(_tokentype.types.star);
+ this.parsePropertyName(method);
+ }
+ method.kind = "method";
+ var isGetSet = false;
+ if (!method.computed) {
+ var key = method.key;
+
+ if (!isGenerator && key.type === "Identifier" && this.type !== _tokentype.types.parenL && (key.name === "get" || key.name === "set")) {
+ isGetSet = true;
+ method.kind = key.name;
+ key = this.parsePropertyName(method);
+ }
+ if (!method["static"] && (key.type === "Identifier" && key.name === "constructor" || key.type === "Literal" && key.value === "constructor")) {
+ if (hadConstructor) this.raise(key.start, "Duplicate constructor in the same class");
+ if (isGetSet) this.raise(key.start, "Constructor can't have get/set modifier");
+ if (isGenerator) this.raise(key.start, "Constructor can't be a generator");
+ method.kind = "constructor";
+ hadConstructor = true;
+ }
+ }
+ this.parseClassMethod(classBody, method, isGenerator);
+ if (isGetSet) {
+ var paramCount = method.kind === "get" ? 0 : 1;
+ if (method.value.params.length !== paramCount) {
+ var start = method.value.start;
+ if (method.kind === "get") this.raise(start, "getter should have no params");else this.raise(start, "setter should have exactly one param");
+ }
+ if (method.kind === "set" && method.value.params[0].type === "RestElement") this.raise(method.value.params[0].start, "Setter cannot use rest params");
+ }
+ }
+ node.body = this.finishNode(classBody, "ClassBody");
+ return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression");
+};
+
+pp.parseClassMethod = function (classBody, method, isGenerator) {
+ method.value = this.parseMethod(isGenerator);
+ classBody.body.push(this.finishNode(method, "MethodDefinition"));
+};
+
+pp.parseClassId = function (node, isStatement) {
+ node.id = this.type === _tokentype.types.name ? this.parseIdent() : isStatement ? this.unexpected() : null;
+};
+
+pp.parseClassSuper = function (node) {
+ node.superClass = this.eat(_tokentype.types._extends) ? this.parseExprSubscripts() : null;
+};
+
+// Parses module export declaration.
+
+pp.parseExport = function (node) {
+ this.next();
+ // export * from '...'
+ if (this.eat(_tokentype.types.star)) {
+ this.expectContextual("from");
+ node.source = this.type === _tokentype.types.string ? this.parseExprAtom() : this.unexpected();
+ this.semicolon();
+ return this.finishNode(node, "ExportAllDeclaration");
+ }
+ if (this.eat(_tokentype.types._default)) {
+ // export default ...
+ var expr = this.parseMaybeAssign();
+ var needsSemi = true;
+ if (expr.type == "FunctionExpression" || expr.type == "ClassExpression") {
+ needsSemi = false;
+ if (expr.id) {
+ expr.type = expr.type == "FunctionExpression" ? "FunctionDeclaration" : "ClassDeclaration";
+ }
+ }
+ node.declaration = expr;
+ if (needsSemi) this.semicolon();
+ return this.finishNode(node, "ExportDefaultDeclaration");
+ }
+ // export var|const|let|function|class ...
+ if (this.shouldParseExportStatement()) {
+ node.declaration = this.parseStatement(true);
+ node.specifiers = [];
+ node.source = null;
+ } else {
+ // export { x, y as z } [from '...']
+ node.declaration = null;
+ node.specifiers = this.parseExportSpecifiers();
+ if (this.eatContextual("from")) {
+ node.source = this.type === _tokentype.types.string ? this.parseExprAtom() : this.unexpected();
+ } else {
+ // check for keywords used as local names
+ for (var i = 0; i < node.specifiers.length; i++) {
+ if (this.keywords.test(node.specifiers[i].local.name) || this.reservedWords.test(node.specifiers[i].local.name)) {
+ this.unexpected(node.specifiers[i].local.start);
+ }
+ }
+
+ node.source = null;
+ }
+ this.semicolon();
+ }
+ return this.finishNode(node, "ExportNamedDeclaration");
+};
+
+pp.shouldParseExportStatement = function () {
+ return this.type.keyword;
+};
+
+// Parses a comma-separated list of module exports.
+
+pp.parseExportSpecifiers = function () {
+ var nodes = [],
+ first = true;
+ // export { x, y as z } [from '...']
+ this.expect(_tokentype.types.braceL);
+ while (!this.eat(_tokentype.types.braceR)) {
+ if (!first) {
+ this.expect(_tokentype.types.comma);
+ if (this.afterTrailingComma(_tokentype.types.braceR)) break;
+ } else first = false;
+
+ var node = this.startNode();
+ node.local = this.parseIdent(this.type === _tokentype.types._default);
+ node.exported = this.eatContextual("as") ? this.parseIdent(true) : node.local;
+ nodes.push(this.finishNode(node, "ExportSpecifier"));
+ }
+ return nodes;
+};
+
+// Parses import declaration.
+
+pp.parseImport = function (node) {
+ this.next();
+ // import '...'
+ if (this.type === _tokentype.types.string) {
+ node.specifiers = empty;
+ node.source = this.parseExprAtom();
+ } else {
+ node.specifiers = this.parseImportSpecifiers();
+ this.expectContextual("from");
+ node.source = this.type === _tokentype.types.string ? this.parseExprAtom() : this.unexpected();
+ }
+ this.semicolon();
+ return this.finishNode(node, "ImportDeclaration");
+};
+
+// Parses a comma-separated list of module imports.
+
+pp.parseImportSpecifiers = function () {
+ var nodes = [],
+ first = true;
+ if (this.type === _tokentype.types.name) {
+ // import defaultObj, { x, y as z } from '...'
+ var node = this.startNode();
+ node.local = this.parseIdent();
+ this.checkLVal(node.local, true);
+ nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
+ if (!this.eat(_tokentype.types.comma)) return nodes;
+ }
+ if (this.type === _tokentype.types.star) {
+ var node = this.startNode();
+ this.next();
+ this.expectContextual("as");
+ node.local = this.parseIdent();
+ this.checkLVal(node.local, true);
+ nodes.push(this.finishNode(node, "ImportNamespaceSpecifier"));
+ return nodes;
+ }
+ this.expect(_tokentype.types.braceL);
+ while (!this.eat(_tokentype.types.braceR)) {
+ if (!first) {
+ this.expect(_tokentype.types.comma);
+ if (this.afterTrailingComma(_tokentype.types.braceR)) break;
+ } else first = false;
+
+ var node = this.startNode();
+ node.imported = this.parseIdent(true);
+ if (this.eatContextual("as")) {
+ node.local = this.parseIdent();
+ } else {
+ node.local = node.imported;
+ if (this.isKeyword(node.local.name)) this.unexpected(node.local.start);
+ if (this.reservedWordsStrict.test(node.local.name)) this.raise(node.local.start, "The keyword '" + node.local.name + "' is reserved");
+ }
+ this.checkLVal(node.local, true);
+ nodes.push(this.finishNode(node, "ImportSpecifier"));
+ }
+ return nodes;
+};
+
+},{"./state":10,"./tokentype":14,"./whitespace":16}],12:[function(_dereq_,module,exports){
+// The algorithm used to determine whether a regexp can appear at a
+// given point in the program is loosely based on sweet.js' approach.
+// See https://github.com/mozilla/sweet.js/wiki/design
+
+"use strict";
+
+exports.__esModule = true;
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var _state = _dereq_("./state");
+
+var _tokentype = _dereq_("./tokentype");
+
+var _whitespace = _dereq_("./whitespace");
+
+var TokContext = function TokContext(token, isExpr, preserveSpace, override) {
+ _classCallCheck(this, TokContext);
+
+ this.token = token;
+ this.isExpr = !!isExpr;
+ this.preserveSpace = !!preserveSpace;
+ this.override = override;
+};
+
+exports.TokContext = TokContext;
+var types = {
+ b_stat: new TokContext("{", false),
+ b_expr: new TokContext("{", true),
+ b_tmpl: new TokContext("${", true),
+ p_stat: new TokContext("(", false),
+ p_expr: new TokContext("(", true),
+ q_tmpl: new TokContext("`", true, true, function (p) {
+ return p.readTmplToken();
+ }),
+ f_expr: new TokContext("function", true)
+};
+
+exports.types = types;
+var pp = _state.Parser.prototype;
+
+pp.initialContext = function () {
+ return [types.b_stat];
+};
+
+pp.braceIsBlock = function (prevType) {
+ if (prevType === _tokentype.types.colon) {
+ var _parent = this.curContext();
+ if (_parent === types.b_stat || _parent === types.b_expr) return !_parent.isExpr;
+ }
+ if (prevType === _tokentype.types._return) return _whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.start));
+ if (prevType === _tokentype.types._else || prevType === _tokentype.types.semi || prevType === _tokentype.types.eof || prevType === _tokentype.types.parenR) return true;
+ if (prevType == _tokentype.types.braceL) return this.curContext() === types.b_stat;
+ return !this.exprAllowed;
+};
+
+pp.updateContext = function (prevType) {
+ var update = undefined,
+ type = this.type;
+ if (type.keyword && prevType == _tokentype.types.dot) this.exprAllowed = false;else if (update = type.updateContext) update.call(this, prevType);else this.exprAllowed = type.beforeExpr;
+};
+
+// Token-specific context update code
+
+_tokentype.types.parenR.updateContext = _tokentype.types.braceR.updateContext = function () {
+ if (this.context.length == 1) {
+ this.exprAllowed = true;
+ return;
+ }
+ var out = this.context.pop();
+ if (out === types.b_stat && this.curContext() === types.f_expr) {
+ this.context.pop();
+ this.exprAllowed = false;
+ } else if (out === types.b_tmpl) {
+ this.exprAllowed = true;
+ } else {
+ this.exprAllowed = !out.isExpr;
+ }
+};
+
+_tokentype.types.braceL.updateContext = function (prevType) {
+ this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr);
+ this.exprAllowed = true;
+};
+
+_tokentype.types.dollarBraceL.updateContext = function () {
+ this.context.push(types.b_tmpl);
+ this.exprAllowed = true;
+};
+
+_tokentype.types.parenL.updateContext = function (prevType) {
+ var statementParens = prevType === _tokentype.types._if || prevType === _tokentype.types._for || prevType === _tokentype.types._with || prevType === _tokentype.types._while;
+ this.context.push(statementParens ? types.p_stat : types.p_expr);
+ this.exprAllowed = true;
+};
+
+_tokentype.types.incDec.updateContext = function () {
+ // tokExprAllowed stays unchanged
+};
+
+_tokentype.types._function.updateContext = function () {
+ if (this.curContext() !== types.b_stat) this.context.push(types.f_expr);
+ this.exprAllowed = false;
+};
+
+_tokentype.types.backQuote.updateContext = function () {
+ if (this.curContext() === types.q_tmpl) this.context.pop();else this.context.push(types.q_tmpl);
+ this.exprAllowed = false;
+};
+
+},{"./state":10,"./tokentype":14,"./whitespace":16}],13:[function(_dereq_,module,exports){
+"use strict";
+
+exports.__esModule = true;
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+var _identifier = _dereq_("./identifier");
+
+var _tokentype = _dereq_("./tokentype");
+
+var _state = _dereq_("./state");
+
+var _locutil = _dereq_("./locutil");
+
+var _whitespace = _dereq_("./whitespace");
+
+// Object type used to represent tokens. Note that normally, tokens
+// simply exist as properties on the parser object. This is only
+// used for the onToken callback and the external tokenizer.
+
+var Token = function Token(p) {
+ _classCallCheck(this, Token);
+
+ this.type = p.type;
+ this.value = p.value;
+ this.start = p.start;
+ this.end = p.end;
+ if (p.options.locations) this.loc = new _locutil.SourceLocation(p, p.startLoc, p.endLoc);
+ if (p.options.ranges) this.range = [p.start, p.end];
+}
+
+// ## Tokenizer
+
+;
+
+exports.Token = Token;
+var pp = _state.Parser.prototype;
+
+// Are we running under Rhino?
+var isRhino = typeof Packages == "object" && Object.prototype.toString.call(Packages) == "[object JavaPackage]";
+
+// Move to the next token
+
+pp.next = function () {
+ if (this.options.onToken) this.options.onToken(new Token(this));
+
+ this.lastTokEnd = this.end;
+ this.lastTokStart = this.start;
+ this.lastTokEndLoc = this.endLoc;
+ this.lastTokStartLoc = this.startLoc;
+ this.nextToken();
+};
+
+pp.getToken = function () {
+ this.next();
+ return new Token(this);
+};
+
+// If we're in an ES6 environment, make parsers iterable
+if (typeof Symbol !== "undefined") pp[Symbol.iterator] = function () {
+ var self = this;
+ return { next: function next() {
+ var token = self.getToken();
+ return {
+ done: token.type === _tokentype.types.eof,
+ value: token
+ };
+ } };
+};
+
+// Toggle strict mode. Re-reads the next number or string to please
+// pedantic tests (`"use strict"; 010;` should fail).
+
+pp.setStrict = function (strict) {
+ this.strict = strict;
+ if (this.type !== _tokentype.types.num && this.type !== _tokentype.types.string) return;
+ this.pos = this.start;
+ if (this.options.locations) {
+ while (this.pos < this.lineStart) {
+ this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1;
+ --this.curLine;
+ }
+ }
+ this.nextToken();
+};
+
+pp.curContext = function () {
+ return this.context[this.context.length - 1];
+};
+
+// Read a single token, updating the parser object's token-related
+// properties.
+
+pp.nextToken = function () {
+ var curContext = this.curContext();
+ if (!curContext || !curContext.preserveSpace) this.skipSpace();
+
+ this.start = this.pos;
+ if (this.options.locations) this.startLoc = this.curPosition();
+ if (this.pos >= this.input.length) return this.finishToken(_tokentype.types.eof);
+
+ if (curContext.override) return curContext.override(this);else this.readToken(this.fullCharCodeAtPos());
+};
+
+pp.readToken = function (code) {
+ // Identifier or keyword. '\uXXXX' sequences are allowed in
+ // identifiers, so '\' also dispatches to that.
+ if (_identifier.isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\' */) return this.readWord();
+
+ return this.getTokenFromCode(code);
+};
+
+pp.fullCharCodeAtPos = function () {
+ var code = this.input.charCodeAt(this.pos);
+ if (code <= 0xd7ff || code >= 0xe000) return code;
+ var next = this.input.charCodeAt(this.pos + 1);
+ return (code << 10) + next - 0x35fdc00;
+};
+
+pp.skipBlockComment = function () {
+ var startLoc = this.options.onComment && this.curPosition();
+ var start = this.pos,
+ end = this.input.indexOf("*/", this.pos += 2);
+ if (end === -1) this.raise(this.pos - 2, "Unterminated comment");
+ this.pos = end + 2;
+ if (this.options.locations) {
+ _whitespace.lineBreakG.lastIndex = start;
+ var match = undefined;
+ while ((match = _whitespace.lineBreakG.exec(this.input)) && match.index < this.pos) {
+ ++this.curLine;
+ this.lineStart = match.index + match[0].length;
+ }
+ }
+ if (this.options.onComment) this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, startLoc, this.curPosition());
+};
+
+pp.skipLineComment = function (startSkip) {
+ var start = this.pos;
+ var startLoc = this.options.onComment && this.curPosition();
+ var ch = this.input.charCodeAt(this.pos += startSkip);
+ while (this.pos < this.input.length && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233) {
+ ++this.pos;
+ ch = this.input.charCodeAt(this.pos);
+ }
+ if (this.options.onComment) this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, startLoc, this.curPosition());
+};
+
+// Called at the start of the parse and after every token. Skips
+// whitespace and comments, and.
+
+pp.skipSpace = function () {
+ loop: while (this.pos < this.input.length) {
+ var ch = this.input.charCodeAt(this.pos);
+ switch (ch) {
+ case 32:case 160:
+ // ' '
+ ++this.pos;
+ break;
+ case 13:
+ if (this.input.charCodeAt(this.pos + 1) === 10) {
+ ++this.pos;
+ }
+ case 10:case 8232:case 8233:
+ ++this.pos;
+ if (this.options.locations) {
+ ++this.curLine;
+ this.lineStart = this.pos;
+ }
+ break;
+ case 47:
+ // '/'
+ switch (this.input.charCodeAt(this.pos + 1)) {
+ case 42:
+ // '*'
+ this.skipBlockComment();
+ break;
+ case 47:
+ this.skipLineComment(2);
+ break;
+ default:
+ break loop;
+ }
+ break;
+ default:
+ if (ch > 8 && ch < 14 || ch >= 5760 && _whitespace.nonASCIIwhitespace.test(String.fromCharCode(ch))) {
+ ++this.pos;
+ } else {
+ break loop;
+ }
+ }
+ }
+};
+
+// Called at the end of every token. Sets `end`, `val`, and
+// maintains `context` and `exprAllowed`, and skips the space after
+// the token, so that the next one's `start` will point at the
+// right position.
+
+pp.finishToken = function (type, val) {
+ this.end = this.pos;
+ if (this.options.locations) this.endLoc = this.curPosition();
+ var prevType = this.type;
+ this.type = type;
+ this.value = val;
+
+ this.updateContext(prevType);
+};
+
+// ### Token reading
+
+// This is the function that is called to fetch the next token. It
+// is somewhat obscure, because it works in character codes rather
+// than characters, and because operator parsing has been inlined
+// into it.
+//
+// All in the name of speed.
+//
+pp.readToken_dot = function () {
+ var next = this.input.charCodeAt(this.pos + 1);
+ if (next >= 48 && next <= 57) return this.readNumber(true);
+ var next2 = this.input.charCodeAt(this.pos + 2);
+ if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) {
+ // 46 = dot '.'
+ this.pos += 3;
+ return this.finishToken(_tokentype.types.ellipsis);
+ } else {
+ ++this.pos;
+ return this.finishToken(_tokentype.types.dot);
+ }
+};
+
+pp.readToken_slash = function () {
+ // '/'
+ var next = this.input.charCodeAt(this.pos + 1);
+ if (this.exprAllowed) {
+ ++this.pos;return this.readRegexp();
+ }
+ if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
+ return this.finishOp(_tokentype.types.slash, 1);
+};
+
+pp.readToken_mult_modulo = function (code) {
+ // '%*'
+ var next = this.input.charCodeAt(this.pos + 1);
+ if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
+ return this.finishOp(code === 42 ? _tokentype.types.star : _tokentype.types.modulo, 1);
+};
+
+pp.readToken_pipe_amp = function (code) {
+ // '|&'
+ var next = this.input.charCodeAt(this.pos + 1);
+ if (next === code) return this.finishOp(code === 124 ? _tokentype.types.logicalOR : _tokentype.types.logicalAND, 2);
+ if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
+ return this.finishOp(code === 124 ? _tokentype.types.bitwiseOR : _tokentype.types.bitwiseAND, 1);
+};
+
+pp.readToken_caret = function () {
+ // '^'
+ var next = this.input.charCodeAt(this.pos + 1);
+ if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
+ return this.finishOp(_tokentype.types.bitwiseXOR, 1);
+};
+
+pp.readToken_plus_min = function (code) {
+ // '+-'
+ var next = this.input.charCodeAt(this.pos + 1);
+ if (next === code) {
+ if (next == 45 && this.input.charCodeAt(this.pos + 2) == 62 && _whitespace.lineBreak.test(this.input.slice(this.lastTokEnd, this.pos))) {
+ // A `-->` line comment
+ this.skipLineComment(3);
+ this.skipSpace();
+ return this.nextToken();
+ }
+ return this.finishOp(_tokentype.types.incDec, 2);
+ }
+ if (next === 61) return this.finishOp(_tokentype.types.assign, 2);
+ return this.finishOp(_tokentype.types.plusMin, 1);
+};
+
+pp.readToken_lt_gt = function (code) {
+ // '<>'
+ var next = this.input.charCodeAt(this.pos + 1);
+ var size = 1;
+ if (next === code) {
+ size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;
+ if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp(_tokentype.types.assign, size + 1);
+ return this.finishOp(_tokentype.types.bitShift, size);
+ }
+ if (next == 33 && code == 60 && this.input.charCodeAt(this.pos + 2) == 45 && this.input.charCodeAt(this.pos + 3) == 45) {
+ if (this.inModule) this.unexpected();
+ // `` line comment
+ this.skipLineComment(3)
+ this.skipSpace()
+ return this.nextToken()
+ }
+ return this.finishOp(tt.incDec, 2)
+ }
+ if (next === 61) return this.finishOp(tt.assign, 2)
+ return this.finishOp(tt.plusMin, 1)
+}
+
+pp.readToken_lt_gt = function(code) { // '<>'
+ let next = this.input.charCodeAt(this.pos + 1)
+ let size = 1
+ if (next === code) {
+ size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2
+ if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp(tt.assign, size + 1)
+ return this.finishOp(tt.bitShift, size)
+ }
+ if (next == 33 && code == 60 && this.input.charCodeAt(this.pos + 2) == 45 &&
+ this.input.charCodeAt(this.pos + 3) == 45) {
+ if (this.inModule) this.unexpected()
+ // `)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]);
diff --git a/tools/eslint/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png b/tools/eslint/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png
deleted file mode 100644
index 03f704a609c6fd..00000000000000
Binary files a/tools/eslint/node_modules/cli-width/coverage/lcov-report/sort-arrow-sprite.png and /dev/null differ
diff --git a/tools/eslint/node_modules/cli-width/coverage/lcov-report/sorter.js b/tools/eslint/node_modules/cli-width/coverage/lcov-report/sorter.js
deleted file mode 100644
index 6afb736c39fb15..00000000000000
--- a/tools/eslint/node_modules/cli-width/coverage/lcov-report/sorter.js
+++ /dev/null
@@ -1,156 +0,0 @@
-var addSorting = (function () {
- "use strict";
- var cols,
- currentSort = {
- index: 0,
- desc: false
- };
-
- // returns the summary table element
- function getTable() { return document.querySelector('.coverage-summary table'); }
- // returns the thead element of the summary table
- function getTableHeader() { return getTable().querySelector('thead tr'); }
- // returns the tbody element of the summary table
- function getTableBody() { return getTable().querySelector('tbody'); }
- // returns the th element for nth column
- function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
-
- // loads all columns
- function loadColumns() {
- var colNodes = getTableHeader().querySelectorAll('th'),
- colNode,
- cols = [],
- col,
- i;
-
- for (i = 0; i < colNodes.length; i += 1) {
- colNode = colNodes[i];
- col = {
- key: colNode.getAttribute('data-col'),
- sortable: !colNode.getAttribute('data-nosort'),
- type: colNode.getAttribute('data-type') || 'string'
- };
- cols.push(col);
- if (col.sortable) {
- col.defaultDescSort = col.type === 'number';
- colNode.innerHTML = colNode.innerHTML + '';
- }
- }
- return cols;
- }
- // attaches a data attribute to every tr element with an object
- // of data values keyed by column name
- function loadRowData(tableRow) {
- var tableCols = tableRow.querySelectorAll('td'),
- colNode,
- col,
- data = {},
- i,
- val;
- for (i = 0; i < tableCols.length; i += 1) {
- colNode = tableCols[i];
- col = cols[i];
- val = colNode.getAttribute('data-value');
- if (col.type === 'number') {
- val = Number(val);
- }
- data[col.key] = val;
- }
- return data;
- }
- // loads all row data
- function loadData() {
- var rows = getTableBody().querySelectorAll('tr'),
- i;
-
- for (i = 0; i < rows.length; i += 1) {
- rows[i].data = loadRowData(rows[i]);
- }
- }
- // sorts the table using the data for the ith column
- function sortByIndex(index, desc) {
- var key = cols[index].key,
- sorter = function (a, b) {
- a = a.data[key];
- b = b.data[key];
- return a < b ? -1 : a > b ? 1 : 0;
- },
- finalSorter = sorter,
- tableBody = document.querySelector('.coverage-summary tbody'),
- rowNodes = tableBody.querySelectorAll('tr'),
- rows = [],
- i;
-
- if (desc) {
- finalSorter = function (a, b) {
- return -1 * sorter(a, b);
- };
- }
-
- for (i = 0; i < rowNodes.length; i += 1) {
- rows.push(rowNodes[i]);
- tableBody.removeChild(rowNodes[i]);
- }
-
- rows.sort(finalSorter);
-
- for (i = 0; i < rows.length; i += 1) {
- tableBody.appendChild(rows[i]);
- }
- }
- // removes sort indicators for current column being sorted
- function removeSortIndicators() {
- var col = getNthColumn(currentSort.index),
- cls = col.className;
-
- cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
- col.className = cls;
- }
- // adds sort indicators for current column being sorted
- function addSortIndicators() {
- getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
- }
- // adds event listeners for all sorter widgets
- function enableUI() {
- var i,
- el,
- ithSorter = function ithSorter(i) {
- var col = cols[i];
-
- return function () {
- var desc = col.defaultDescSort;
-
- if (currentSort.index === i) {
- desc = !currentSort.desc;
- }
- sortByIndex(i, desc);
- removeSortIndicators();
- currentSort.index = i;
- currentSort.desc = desc;
- addSortIndicators();
- };
- };
- for (i =0 ; i < cols.length; i += 1) {
- if (cols[i].sortable) {
- el = getNthColumn(i).querySelector('.sorter');
- if (el.addEventListener) {
- el.addEventListener('click', ithSorter(i));
- } else {
- el.attachEvent('onclick', ithSorter(i));
- }
- }
- }
- }
- // adds sorting functionality to the UI
- return function () {
- if (!getTable()) {
- return;
- }
- cols = loadColumns();
- loadData(cols);
- addSortIndicators();
- enableUI();
- };
-})();
-
-window.addEventListener('load', addSorting);
diff --git a/tools/eslint/node_modules/cli-width/coverage/lcov.info b/tools/eslint/node_modules/cli-width/coverage/lcov.info
deleted file mode 100644
index 5ec1cb2ff7d74d..00000000000000
--- a/tools/eslint/node_modules/cli-width/coverage/lcov.info
+++ /dev/null
@@ -1,32 +0,0 @@
-TN:
-SF:/Users/iradchenko/sandbox/cli-width/index.js
-FN:6,cliWidth
-FNF:1
-FNH:1
-FNDA:6,cliWidth
-DA:3,1
-DA:4,1
-DA:6,1
-DA:7,6
-DA:8,1
-DA:11,5
-DA:13,5
-DA:14,1
-DA:17,4
-DA:18,2
-DA:20,2
-DA:21,1
-DA:25,3
-LF:13
-LH:13
-BRDA:7,1,0,1
-BRDA:7,1,1,5
-BRDA:12,2,0,1
-BRDA:12,2,1,4
-BRDA:15,3,0,2
-BRDA:15,3,1,2
-BRDA:18,4,0,1
-BRDA:18,4,1,1
-BRF:8
-BRH:8
-end_of_record
diff --git a/tools/eslint/node_modules/cli-width/package.json b/tools/eslint/node_modules/cli-width/package.json
index b39ae0f57b2f83..cfe7285c9187f6 100644
--- a/tools/eslint/node_modules/cli-width/package.json
+++ b/tools/eslint/node_modules/cli-width/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"cli-width@^2.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/inquirer"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/inquirer"
]
],
"_from": "cli-width@>=2.0.0 <3.0.0",
"_id": "cli-width@2.1.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/cli-width",
+ "_location": "/cli-width",
"_nodeVersion": "4.2.6",
"_npmOperationalInternal": {
"host": "packages-9-west.internal.npmjs.com",
@@ -30,13 +30,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/inquirer"
+ "/inquirer"
],
"_resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.1.0.tgz",
"_shasum": "b234ca209b29ef66fc518d9b98d5847b00edf00a",
"_shrinkwrap": null,
"_spec": "cli-width@^2.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/inquirer",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/inquirer",
"author": {
"email": "ilya@burstcreations.com",
"name": "Ilya Radchenko"
@@ -64,8 +64,8 @@
"main": "index.js",
"maintainers": [
{
- "email": "ilya@burstcreations.com",
- "name": "knownasilya"
+ "name": "knownasilya",
+ "email": "ilya@burstcreations.com"
}
],
"name": "cli-width",
diff --git a/tools/eslint/node_modules/code-point-at/package.json b/tools/eslint/node_modules/code-point-at/package.json
index 6107f2629646cd..e07626f4aac15b 100644
--- a/tools/eslint/node_modules/code-point-at/package.json
+++ b/tools/eslint/node_modules/code-point-at/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"code-point-at@^1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/readline2"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/readline2"
]
],
"_from": "code-point-at@>=1.0.0 <2.0.0",
"_id": "code-point-at@1.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/code-point-at",
+ "_location": "/code-point-at",
"_nodeVersion": "0.12.5",
"_npmUser": {
"email": "sindresorhus@gmail.com",
@@ -26,14 +26,14 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/readline2",
- "/eslint/string-width"
+ "/readline2",
+ "/string-width"
],
"_resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.0.0.tgz",
"_shasum": "f69b192d3f7d91e382e4b71bddb77878619ab0c6",
"_shrinkwrap": null,
"_spec": "code-point-at@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/readline2",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/readline2",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -63,24 +63,24 @@
"gitHead": "c2ffa4064718b37c84c73a633abeeed5b486a469",
"homepage": "https://github.com/sindresorhus/code-point-at",
"keywords": [
+ "at",
+ "code",
+ "codepoint",
"es2015",
"es6",
- "ponyfill",
+ "point",
"polyfill",
+ "ponyfill",
"shim",
- "string",
"str",
- "code",
- "point",
- "at",
- "codepoint",
+ "string",
"unicode"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "code-point-at",
diff --git a/tools/eslint/node_modules/concat-map/.travis.yml b/tools/eslint/node_modules/concat-map/.travis.yml
deleted file mode 100644
index f1d0f13c8a54d0..00000000000000
--- a/tools/eslint/node_modules/concat-map/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.4
- - 0.6
diff --git a/tools/eslint/node_modules/concat-map/example/map.js b/tools/eslint/node_modules/concat-map/example/map.js
deleted file mode 100644
index 33656217b61d8f..00000000000000
--- a/tools/eslint/node_modules/concat-map/example/map.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var concatMap = require('../');
-var xs = [ 1, 2, 3, 4, 5, 6 ];
-var ys = concatMap(xs, function (x) {
- return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
-});
-console.dir(ys);
diff --git a/tools/eslint/node_modules/concat-map/package.json b/tools/eslint/node_modules/concat-map/package.json
index 64765c7eec42e2..85e7e2829250b9 100644
--- a/tools/eslint/node_modules/concat-map/package.json
+++ b/tools/eslint/node_modules/concat-map/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"concat-map@0.0.1",
- "/Users/trott/test/node_modules/eslint/node_modules/brace-expansion"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/brace-expansion"
]
],
"_from": "concat-map@0.0.1",
"_id": "concat-map@0.0.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/concat-map",
+ "_location": "/concat-map",
"_npmUser": {
"email": "mail@substack.net",
"name": "substack"
@@ -25,13 +25,13 @@
"type": "version"
},
"_requiredBy": [
- "/eslint/brace-expansion"
+ "/brace-expansion"
],
"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"_shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
"_shrinkwrap": null,
"_spec": "concat-map@0.0.1",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/brace-expansion",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/brace-expansion",
"author": {
"email": "mail@substack.net",
"name": "James Halliday",
@@ -57,16 +57,16 @@
"keywords": [
"concat",
"concatMap",
- "map",
"functional",
- "higher-order"
+ "higher-order",
+ "map"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
- "email": "mail@substack.net",
- "name": "substack"
+ "name": "substack",
+ "email": "mail@substack.net"
}
],
"name": "concat-map",
@@ -86,9 +86,9 @@
22
],
"ff": [
- 3.5,
10,
- 15
+ 15,
+ 3.5
],
"ie": [
6,
diff --git a/tools/eslint/node_modules/concat-map/test/map.js b/tools/eslint/node_modules/concat-map/test/map.js
deleted file mode 100644
index fdbd7022f6da17..00000000000000
--- a/tools/eslint/node_modules/concat-map/test/map.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var concatMap = require('../');
-var test = require('tape');
-
-test('empty or not', function (t) {
- var xs = [ 1, 2, 3, 4, 5, 6 ];
- var ixes = [];
- var ys = concatMap(xs, function (x, ix) {
- ixes.push(ix);
- return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
- });
- t.same(ys, [ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]);
- t.same(ixes, [ 0, 1, 2, 3, 4, 5 ]);
- t.end();
-});
-
-test('always something', function (t) {
- var xs = [ 'a', 'b', 'c', 'd' ];
- var ys = concatMap(xs, function (x) {
- return x === 'b' ? [ 'B', 'B', 'B' ] : [ x ];
- });
- t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
- t.end();
-});
-
-test('scalars', function (t) {
- var xs = [ 'a', 'b', 'c', 'd' ];
- var ys = concatMap(xs, function (x) {
- return x === 'b' ? [ 'B', 'B', 'B' ] : x;
- });
- t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
- t.end();
-});
-
-test('undefs', function (t) {
- var xs = [ 'a', 'b', 'c', 'd' ];
- var ys = concatMap(xs, function () {});
- t.same(ys, [ undefined, undefined, undefined, undefined ]);
- t.end();
-});
diff --git a/tools/eslint/node_modules/concat-stream/package.json b/tools/eslint/node_modules/concat-stream/package.json
index 19b51af5e0718d..7a377b67e53a17 100644
--- a/tools/eslint/node_modules/concat-stream/package.json
+++ b/tools/eslint/node_modules/concat-stream/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"concat-stream@^1.4.6",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "concat-stream@>=1.4.6 <2.0.0",
"_id": "concat-stream@1.5.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/concat-stream",
+ "_location": "/concat-stream",
"_nodeVersion": "4.0.0",
"_npmUser": {
"email": "max@maxogden.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
"_resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.1.tgz",
"_shasum": "f3b80acf9e1f48e3875c0688b41b6c31602eea1c",
"_shrinkwrap": null,
"_spec": "concat-stream@^1.4.6",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "max@maxogden.com",
"name": "Max Ogden"
@@ -52,7 +52,7 @@
"directories": {},
"dist": {
"shasum": "f3b80acf9e1f48e3875c0688b41b6c31602eea1c",
- "tarball": "http://registry.npmjs.org/concat-stream/-/concat-stream-1.5.1.tgz"
+ "tarball": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.1.tgz"
},
"engines": [
"node >= 0.8"
@@ -66,8 +66,8 @@
"main": "index.js",
"maintainers": [
{
- "email": "max@maxogden.com",
- "name": "maxogden"
+ "name": "maxogden",
+ "email": "max@maxogden.com"
}
],
"name": "concat-stream",
@@ -81,24 +81,24 @@
"test": "tape test/*.js test/server/*.js"
},
"tags": [
- "stream",
"simple",
+ "stream",
"util",
"utility"
],
"testling": {
"browsers": [
- "ie/8..latest",
- "firefox/17..latest",
- "firefox/nightly",
+ "android-browser/4.2..latest",
"chrome/22..latest",
"chrome/canary",
- "opera/12..latest",
- "opera/next",
- "safari/5.1..latest",
+ "firefox/17..latest",
+ "firefox/nightly",
+ "ie/8..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
- "android-browser/4.2..latest"
+ "opera/12..latest",
+ "opera/next",
+ "safari/5.1..latest"
],
"files": "test/*.js"
},
diff --git a/tools/eslint/node_modules/core-util-is/package.json b/tools/eslint/node_modules/core-util-is/package.json
index 403fe40270acd1..586ac59398b627 100644
--- a/tools/eslint/node_modules/core-util-is/package.json
+++ b/tools/eslint/node_modules/core-util-is/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"core-util-is@~1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/readable-stream"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/readable-stream"
]
],
"_from": "core-util-is@>=1.0.0 <1.1.0",
"_id": "core-util-is@1.0.2",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/core-util-is",
+ "_location": "/core-util-is",
"_nodeVersion": "4.0.0",
"_npmUser": {
"email": "i@izs.me",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/readable-stream"
+ "/readable-stream"
],
"_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7",
"_shrinkwrap": null,
"_spec": "core-util-is@~1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/readable-stream",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/readable-stream",
"author": {
"email": "i@izs.me",
"name": "Isaac Z. Schlueter",
@@ -54,22 +54,22 @@
"gitHead": "a177da234df5638b363ddc15fa324619a38577c8",
"homepage": "https://github.com/isaacs/core-util-is#readme",
"keywords": [
- "util",
- "isBuffer",
"isArray",
+ "isBuffer",
"isNumber",
- "isString",
"isRegExp",
- "isThis",
+ "isString",
"isThat",
- "polyfill"
+ "isThis",
+ "polyfill",
+ "util"
],
"license": "MIT",
"main": "lib/util.js",
"maintainers": [
{
- "email": "i@izs.me",
- "name": "isaacs"
+ "name": "isaacs",
+ "email": "i@izs.me"
}
],
"name": "core-util-is",
diff --git a/tools/eslint/node_modules/d/.npmignore b/tools/eslint/node_modules/d/.npmignore
deleted file mode 100644
index 155e41f69142ef..00000000000000
--- a/tools/eslint/node_modules/d/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-/node_modules
-/npm-debug.log
-/.lintcache
diff --git a/tools/eslint/node_modules/d/.travis.yml b/tools/eslint/node_modules/d/.travis.yml
deleted file mode 100644
index 50008b23e6bcb9..00000000000000
--- a/tools/eslint/node_modules/d/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: node_js
-node_js:
- - 0.8
- - 0.10
- - 0.11
-
-notifications:
- email:
- - medikoo+d@medikoo.com
diff --git a/tools/eslint/node_modules/d/CHANGES b/tools/eslint/node_modules/d/CHANGES
deleted file mode 100644
index 45233f747eca72..00000000000000
--- a/tools/eslint/node_modules/d/CHANGES
+++ /dev/null
@@ -1,7 +0,0 @@
-v0.1.1 -- 2014.04.24
-- Add `autoBind` and `lazy` utilities
-- Allow to pass other options to be merged onto created descriptor.
- Useful when used with other custom utilties
-
-v0.1.0 -- 2013.06.20
-Initial (derived from es5-ext project)
diff --git a/tools/eslint/node_modules/d/package.json b/tools/eslint/node_modules/d/package.json
index c24ec5439461d9..f5b006a2967663 100644
--- a/tools/eslint/node_modules/d/package.json
+++ b/tools/eslint/node_modules/d/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"d@~0.1.1",
- "/Users/trott/test/node_modules/eslint/node_modules/es6-map"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map"
]
],
"_from": "d@>=0.1.1 <0.2.0",
"_id": "d@0.1.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/d",
+ "_location": "/d",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
"name": "medikoo"
@@ -25,18 +25,18 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/es6-iterator",
- "/eslint/es6-map",
- "/eslint/es6-set",
- "/eslint/es6-symbol",
- "/eslint/es6-weak-map",
- "/eslint/event-emitter"
+ "/es6-iterator",
+ "/es6-map",
+ "/es6-set",
+ "/es6-symbol",
+ "/es6-weak-map",
+ "/event-emitter"
],
"_resolved": "https://registry.npmjs.org/d/-/d-0.1.1.tgz",
"_shasum": "da184c535d18d8ee7ba2aa229b914009fae11309",
"_shrinkwrap": null,
"_spec": "d@~0.1.1",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/es6-map",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -60,19 +60,19 @@
"homepage": "https://github.com/medikoo/d",
"keywords": [
"descriptor",
- "es",
- "ecmascript",
- "ecma",
- "property",
"descriptors",
+ "ecma",
+ "ecmascript",
+ "es",
"meta",
- "properties"
+ "properties",
+ "property"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "d",
diff --git a/tools/eslint/node_modules/d/test/auto-bind.js b/tools/eslint/node_modules/d/test/auto-bind.js
deleted file mode 100644
index 89edfb88bbec53..00000000000000
--- a/tools/eslint/node_modules/d/test/auto-bind.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var d = require('../');
-
-module.exports = function (t, a) {
- var o = Object.defineProperties({}, t({
- bar: d(function () { return this === o; }),
- bar2: d(function () { return this; })
- }));
-
- a.deep([(o.bar)(), (o.bar2)()], [true, o]);
-};
diff --git a/tools/eslint/node_modules/d/test/index.js b/tools/eslint/node_modules/d/test/index.js
deleted file mode 100644
index 3db0af10acd3ca..00000000000000
--- a/tools/eslint/node_modules/d/test/index.js
+++ /dev/null
@@ -1,182 +0,0 @@
-'use strict';
-
-var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
-
-module.exports = function (t, a) {
- var o, c, cg, cs, ce, ceg, ces, cew, cw, e, eg, es, ew, v, vg, vs, w, df, dfg
- , dfs;
-
- o = Object.create(Object.prototype, {
- c: t('c', c = {}),
- cgs: t.gs('c', cg = function () {}, cs = function () {}),
- ce: t('ce', ce = {}),
- cegs: t.gs('ce', ceg = function () {}, ces = function () {}),
- cew: t('cew', cew = {}),
- cw: t('cw', cw = {}),
- e: t('e', e = {}),
- egs: t.gs('e', eg = function () {}, es = function () {}),
- ew: t('ew', ew = {}),
- v: t('', v = {}),
- vgs: t.gs('', vg = function () {}, vs = function () {}),
- w: t('w', w = {}),
-
- df: t(df = {}),
- dfgs: t.gs(dfg = function () {}, dfs = function () {})
- });
-
- return {
- c: function (a) {
- var d = getOwnPropertyDescriptor(o, 'c');
- a(d.value, c, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, true, "Configurable");
- a(d.enumerable, false, "Enumerable");
- a(d.writable, false, "Writable");
-
- d = getOwnPropertyDescriptor(o, 'cgs');
- a(d.value, undefined, "GS Value");
- a(d.get, cg, "GS Get");
- a(d.set, cs, "GS Set");
- a(d.configurable, true, "GS Configurable");
- a(d.enumerable, false, "GS Enumerable");
- a(d.writable, undefined, "GS Writable");
- },
- ce: function (a) {
- var d = getOwnPropertyDescriptor(o, 'ce');
- a(d.value, ce, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, true, "Configurable");
- a(d.enumerable, true, "Enumerable");
- a(d.writable, false, "Writable");
-
- d = getOwnPropertyDescriptor(o, 'cegs');
- a(d.value, undefined, "GS Value");
- a(d.get, ceg, "GS Get");
- a(d.set, ces, "GS Set");
- a(d.configurable, true, "GS Configurable");
- a(d.enumerable, true, "GS Enumerable");
- a(d.writable, undefined, "GS Writable");
- },
- cew: function (a) {
- var d = getOwnPropertyDescriptor(o, 'cew');
- a(d.value, cew, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, true, "Configurable");
- a(d.enumerable, true, "Enumerable");
- a(d.writable, true, "Writable");
- },
- cw: function (a) {
- var d = getOwnPropertyDescriptor(o, 'cw');
- a(d.value, cw, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, true, "Configurable");
- a(d.enumerable, false, "Enumerable");
- a(d.writable, true, "Writable");
- },
- e: function (a) {
- var d = getOwnPropertyDescriptor(o, 'e');
- a(d.value, e, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, false, "Configurable");
- a(d.enumerable, true, "Enumerable");
- a(d.writable, false, "Writable");
-
- d = getOwnPropertyDescriptor(o, 'egs');
- a(d.value, undefined, "GS Value");
- a(d.get, eg, "GS Get");
- a(d.set, es, "GS Set");
- a(d.configurable, false, "GS Configurable");
- a(d.enumerable, true, "GS Enumerable");
- a(d.writable, undefined, "GS Writable");
- },
- ew: function (a) {
- var d = getOwnPropertyDescriptor(o, 'ew');
- a(d.value, ew, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, false, "Configurable");
- a(d.enumerable, true, "Enumerable");
- a(d.writable, true, "Writable");
- },
- v: function (a) {
- var d = getOwnPropertyDescriptor(o, 'v');
- a(d.value, v, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, false, "Configurable");
- a(d.enumerable, false, "Enumerable");
- a(d.writable, false, "Writable");
-
- d = getOwnPropertyDescriptor(o, 'vgs');
- a(d.value, undefined, "GS Value");
- a(d.get, vg, "GS Get");
- a(d.set, vs, "GS Set");
- a(d.configurable, false, "GS Configurable");
- a(d.enumerable, false, "GS Enumerable");
- a(d.writable, undefined, "GS Writable");
- },
- w: function (a) {
- var d = getOwnPropertyDescriptor(o, 'w');
- a(d.value, w, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, false, "Configurable");
- a(d.enumerable, false, "Enumerable");
- a(d.writable, true, "Writable");
- },
- d: function (a) {
- var d = getOwnPropertyDescriptor(o, 'df');
- a(d.value, df, "Value");
- a(d.get, undefined, "Get");
- a(d.set, undefined, "Set");
- a(d.configurable, true, "Configurable");
- a(d.enumerable, false, "Enumerable");
- a(d.writable, true, "Writable");
-
- d = getOwnPropertyDescriptor(o, 'dfgs');
- a(d.value, undefined, "GS Value");
- a(d.get, dfg, "GS Get");
- a(d.set, dfs, "GS Set");
- a(d.configurable, true, "GS Configurable");
- a(d.enumerable, false, "GS Enumerable");
- a(d.writable, undefined, "GS Writable");
- },
- Options: {
- v: function (a) {
- var x = {}, d = t(x, { foo: true });
- a.deep(d, { configurable: true, enumerable: false, writable: true,
- value: x, foo: true }, "No descriptor");
- d = t('c', 'foo', { marko: 'elo' });
- a.deep(d, { configurable: true, enumerable: false, writable: false,
- value: 'foo', marko: 'elo' }, "Descriptor");
- },
- gs: function (a) {
- var gFn = function () {}, sFn = function () {}, d;
- d = t.gs(gFn, sFn, { foo: true });
- a.deep(d, { configurable: true, enumerable: false, get: gFn, set: sFn,
- foo: true }, "No descriptor");
- d = t.gs(null, sFn, { foo: true });
- a.deep(d, { configurable: true, enumerable: false, get: undefined,
- set: sFn, foo: true }, "No descriptor: Just set");
- d = t.gs(gFn, { foo: true });
- a.deep(d, { configurable: true, enumerable: false, get: gFn,
- set: undefined, foo: true }, "No descriptor: Just get");
-
- d = t.gs('e', gFn, sFn, { bar: true });
- a.deep(d, { configurable: false, enumerable: true, get: gFn, set: sFn,
- bar: true }, "Descriptor");
- d = t.gs('e', null, sFn, { bar: true });
- a.deep(d, { configurable: false, enumerable: true, get: undefined,
- set: sFn, bar: true }, "Descriptor: Just set");
- d = t.gs('e', gFn, { bar: true });
- a.deep(d, { configurable: false, enumerable: true, get: gFn,
- set: undefined, bar: true }, "Descriptor: Just get");
- }
- }
- };
-};
diff --git a/tools/eslint/node_modules/d/test/lazy.js b/tools/eslint/node_modules/d/test/lazy.js
deleted file mode 100644
index 8266deb240fda3..00000000000000
--- a/tools/eslint/node_modules/d/test/lazy.js
+++ /dev/null
@@ -1,77 +0,0 @@
-'use strict';
-
-var d = require('../')
-
- , getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
-
-module.exports = function (t, a) {
- var Foo = function () {}, i = 1, o, o2, desc;
- Object.defineProperties(Foo.prototype, t({
- bar: d(function () { return ++i; }),
- bar2: d(function () { return this.bar + 23; }),
- bar3: d(function () { return this.bar2 + 34; }, { desc: 'ew' }),
- bar4: d(function () { return this.bar3 + 12; }, { cacheName: '_bar4_' }),
- bar5: d(function () { return this.bar4 + 3; },
- { cacheName: '_bar5_', desc: 'e' })
- }));
-
- desc = getOwnPropertyDescriptor(Foo.prototype, 'bar');
- a(desc.configurable, true, "Configurable: default");
- a(desc.enumerable, false, "Enumerable: default");
-
- o = new Foo();
- a.deep([o.bar, o.bar2, o.bar3, o.bar4, o.bar5], [2, 25, 59, 71, 74],
- "Values");
-
- a.deep(getOwnPropertyDescriptor(o, 'bar3'), { configurable: false,
- enumerable: true, writable: true, value: 59 }, "Desc");
- a(o.hasOwnProperty('bar4'), false, "Cache not exposed");
- desc = getOwnPropertyDescriptor(o, 'bar5');
- a.deep(desc, { configurable: false,
- enumerable: true, get: desc.get, set: desc.set }, "Cache & Desc: desc");
-
- o2 = Object.create(o);
- o2.bar = 30;
- o2.bar3 = 100;
-
- a.deep([o2.bar, o2.bar2, o2.bar3, o2.bar4, o2.bar5], [30, 25, 100, 112, 115],
- "Extension Values");
-
- Foo = function () {};
- Object.defineProperties(Foo.prototype, t({
- test: d('w', function () { return 'raz'; }),
- test2: d('', function () { return 'raz'; }, { desc: 'w' }),
- test3: d('', function () { return 'raz'; },
- { cacheName: '__test3__', desc: 'w' }),
- test4: d('w', 'bar')
- }));
-
- o = new Foo();
- o.test = 'marko';
- a.deep(getOwnPropertyDescriptor(o, 'test'),
- { configurable: false, enumerable: false, writable: true, value: 'marko' },
- "Set before get");
- o.test2 = 'marko2';
- a.deep(getOwnPropertyDescriptor(o, 'test2'),
- { configurable: false, enumerable: false, writable: true, value: 'marko2' },
- "Set before get: Custom desc");
- o.test3 = 'marko3';
- a.deep(getOwnPropertyDescriptor(o, '__test3__'),
- { configurable: false, enumerable: false, writable: true, value: 'marko3' },
- "Set before get: Custom cache name");
- a(o.test4, 'bar', "Resolve by value");
-
- a.h1("Flat");
- Object.defineProperties(Foo.prototype, t({
- flat: d(function () { return 'foo'; }, { flat: true }),
- flat2: d(function () { return 'bar'; }, { flat: true })
- }));
-
- a.h2("Instance");
- a(o.flat, 'foo', "Value");
- a(o.hasOwnProperty('flat'), false, "Instance");
- a(Foo.prototype.flat, 'foo', "Prototype");
-
- a.h2("Direct");
- a(Foo.prototype.flat2, 'bar');
-};
diff --git a/tools/eslint/node_modules/debug/.jshintrc b/tools/eslint/node_modules/debug/.jshintrc
deleted file mode 100644
index 299877f26aeb6c..00000000000000
--- a/tools/eslint/node_modules/debug/.jshintrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "laxbreak": true
-}
diff --git a/tools/eslint/node_modules/debug/.npmignore b/tools/eslint/node_modules/debug/.npmignore
deleted file mode 100644
index 7e6163db02e5e7..00000000000000
--- a/tools/eslint/node_modules/debug/.npmignore
+++ /dev/null
@@ -1,6 +0,0 @@
-support
-test
-examples
-example
-*.sock
-dist
diff --git a/tools/eslint/node_modules/debug/History.md b/tools/eslint/node_modules/debug/History.md
deleted file mode 100644
index 854c9711c6fd68..00000000000000
--- a/tools/eslint/node_modules/debug/History.md
+++ /dev/null
@@ -1,195 +0,0 @@
-
-2.2.0 / 2015-05-09
-==================
-
- * package: update "ms" to v0.7.1 (#202, @dougwilson)
- * README: add logging to file example (#193, @DanielOchoa)
- * README: fixed a typo (#191, @amir-s)
- * browser: expose `storage` (#190, @stephenmathieson)
- * Makefile: add a `distclean` target (#189, @stephenmathieson)
-
-2.1.3 / 2015-03-13
-==================
-
- * Updated stdout/stderr example (#186)
- * Updated example/stdout.js to match debug current behaviour
- * Renamed example/stderr.js to stdout.js
- * Update Readme.md (#184)
- * replace high intensity foreground color for bold (#182, #183)
-
-2.1.2 / 2015-03-01
-==================
-
- * dist: recompile
- * update "ms" to v0.7.0
- * package: update "browserify" to v9.0.3
- * component: fix "ms.js" repo location
- * changed bower package name
- * updated documentation about using debug in a browser
- * fix: security error on safari (#167, #168, @yields)
-
-2.1.1 / 2014-12-29
-==================
-
- * browser: use `typeof` to check for `console` existence
- * browser: check for `console.log` truthiness (fix IE 8/9)
- * browser: add support for Chrome apps
- * Readme: added Windows usage remarks
- * Add `bower.json` to properly support bower install
-
-2.1.0 / 2014-10-15
-==================
-
- * node: implement `DEBUG_FD` env variable support
- * package: update "browserify" to v6.1.0
- * package: add "license" field to package.json (#135, @panuhorsmalahti)
-
-2.0.0 / 2014-09-01
-==================
-
- * package: update "browserify" to v5.11.0
- * node: use stderr rather than stdout for logging (#29, @stephenmathieson)
-
-1.0.4 / 2014-07-15
-==================
-
- * dist: recompile
- * example: remove `console.info()` log usage
- * example: add "Content-Type" UTF-8 header to browser example
- * browser: place %c marker after the space character
- * browser: reset the "content" color via `color: inherit`
- * browser: add colors support for Firefox >= v31
- * debug: prefer an instance `log()` function over the global one (#119)
- * Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
-
-1.0.3 / 2014-07-09
-==================
-
- * Add support for multiple wildcards in namespaces (#122, @seegno)
- * browser: fix lint
-
-1.0.2 / 2014-06-10
-==================
-
- * browser: update color palette (#113, @gscottolson)
- * common: make console logging function configurable (#108, @timoxley)
- * node: fix %o colors on old node <= 0.8.x
- * Makefile: find node path using shell/which (#109, @timoxley)
-
-1.0.1 / 2014-06-06
-==================
-
- * browser: use `removeItem()` to clear localStorage
- * browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
- * package: add "contributors" section
- * node: fix comment typo
- * README: list authors
-
-1.0.0 / 2014-06-04
-==================
-
- * make ms diff be global, not be scope
- * debug: ignore empty strings in enable()
- * node: make DEBUG_COLORS able to disable coloring
- * *: export the `colors` array
- * npmignore: don't publish the `dist` dir
- * Makefile: refactor to use browserify
- * package: add "browserify" as a dev dependency
- * Readme: add Web Inspector Colors section
- * node: reset terminal color for the debug content
- * node: map "%o" to `util.inspect()`
- * browser: map "%j" to `JSON.stringify()`
- * debug: add custom "formatters"
- * debug: use "ms" module for humanizing the diff
- * Readme: add "bash" syntax highlighting
- * browser: add Firebug color support
- * browser: add colors for WebKit browsers
- * node: apply log to `console`
- * rewrite: abstract common logic for Node & browsers
- * add .jshintrc file
-
-0.8.1 / 2014-04-14
-==================
-
- * package: re-add the "component" section
-
-0.8.0 / 2014-03-30
-==================
-
- * add `enable()` method for nodejs. Closes #27
- * change from stderr to stdout
- * remove unnecessary index.js file
-
-0.7.4 / 2013-11-13
-==================
-
- * remove "browserify" key from package.json (fixes something in browserify)
-
-0.7.3 / 2013-10-30
-==================
-
- * fix: catch localStorage security error when cookies are blocked (Chrome)
- * add debug(err) support. Closes #46
- * add .browser prop to package.json. Closes #42
-
-0.7.2 / 2013-02-06
-==================
-
- * fix package.json
- * fix: Mobile Safari (private mode) is broken with debug
- * fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
-
-0.7.1 / 2013-02-05
-==================
-
- * add repository URL to package.json
- * add DEBUG_COLORED to force colored output
- * add browserify support
- * fix component. Closes #24
-
-0.7.0 / 2012-05-04
-==================
-
- * Added .component to package.json
- * Added debug.component.js build
-
-0.6.0 / 2012-03-16
-==================
-
- * Added support for "-" prefix in DEBUG [Vinay Pulim]
- * Added `.enabled` flag to the node version [TooTallNate]
-
-0.5.0 / 2012-02-02
-==================
-
- * Added: humanize diffs. Closes #8
- * Added `debug.disable()` to the CS variant
- * Removed padding. Closes #10
- * Fixed: persist client-side variant again. Closes #9
-
-0.4.0 / 2012-02-01
-==================
-
- * Added browser variant support for older browsers [TooTallNate]
- * Added `debug.enable('project:*')` to browser variant [TooTallNate]
- * Added padding to diff (moved it to the right)
-
-0.3.0 / 2012-01-26
-==================
-
- * Added millisecond diff when isatty, otherwise UTC string
-
-0.2.0 / 2012-01-22
-==================
-
- * Added wildcard support
-
-0.1.0 / 2011-12-02
-==================
-
- * Added: remove colors unless stderr isatty [TooTallNate]
-
-0.0.1 / 2010-01-03
-==================
-
- * Initial release
diff --git a/tools/eslint/node_modules/debug/bower.json b/tools/eslint/node_modules/debug/bower.json
deleted file mode 100644
index 6af573ff5c260d..00000000000000
--- a/tools/eslint/node_modules/debug/bower.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "name": "visionmedia-debug",
- "main": "dist/debug.js",
- "version": "2.2.0",
- "homepage": "https://github.com/visionmedia/debug",
- "authors": [
- "TJ Holowaychuk "
- ],
- "description": "visionmedia-debug",
- "moduleType": [
- "amd",
- "es6",
- "globals",
- "node"
- ],
- "keywords": [
- "visionmedia",
- "debug"
- ],
- "license": "MIT",
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ]
-}
diff --git a/tools/eslint/node_modules/debug/component.json b/tools/eslint/node_modules/debug/component.json
deleted file mode 100644
index ca1063724a4498..00000000000000
--- a/tools/eslint/node_modules/debug/component.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "debug",
- "repo": "visionmedia/debug",
- "description": "small debugging utility",
- "version": "2.2.0",
- "keywords": [
- "debug",
- "log",
- "debugger"
- ],
- "main": "browser.js",
- "scripts": [
- "browser.js",
- "debug.js"
- ],
- "dependencies": {
- "rauchg/ms.js": "0.7.1"
- }
-}
diff --git a/tools/eslint/node_modules/debug/package.json b/tools/eslint/node_modules/debug/package.json
index 6b4bce3216031d..3679ef340ad474 100644
--- a/tools/eslint/node_modules/debug/package.json
+++ b/tools/eslint/node_modules/debug/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"debug@^2.1.1",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "debug@>=2.1.1 <3.0.0",
"_id": "debug@2.2.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/debug",
+ "_location": "/debug",
"_nodeVersion": "0.12.2",
"_npmUser": {
"email": "nathan@tootallnate.net",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
"_resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz",
"_shasum": "f87057e995b1a1f6ae6a4960664137bc56f039da",
"_shrinkwrap": null,
"_spec": "debug@^2.1.1",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "tj@vision-media.ca",
"name": "TJ Holowaychuk"
@@ -49,8 +49,8 @@
},
"contributors": [
{
- "email": "nathan@tootallnate.net",
"name": "Nathan Rajlich",
+ "email": "nathan@tootallnate.net",
"url": "http://n8.io"
}
],
@@ -65,25 +65,25 @@
"directories": {},
"dist": {
"shasum": "f87057e995b1a1f6ae6a4960664137bc56f039da",
- "tarball": "http://registry.npmjs.org/debug/-/debug-2.2.0.tgz"
+ "tarball": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz"
},
"gitHead": "b38458422b5aa8aa6d286b10dfe427e8a67e2b35",
"homepage": "https://github.com/visionmedia/debug",
"keywords": [
"debug",
- "log",
- "debugger"
+ "debugger",
+ "log"
],
"license": "MIT",
"main": "./node.js",
"maintainers": [
{
- "email": "tj@vision-media.ca",
- "name": "tjholowaychuk"
+ "name": "tjholowaychuk",
+ "email": "tj@vision-media.ca"
},
{
- "email": "nathan@tootallnate.net",
- "name": "tootallnate"
+ "name": "tootallnate",
+ "email": "nathan@tootallnate.net"
}
],
"name": "debug",
diff --git a/tools/eslint/node_modules/deep-is/.travis.yml b/tools/eslint/node_modules/deep-is/.travis.yml
deleted file mode 100644
index d523c5f5658a4e..00000000000000
--- a/tools/eslint/node_modules/deep-is/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
- - 0.4
- - 0.6
- - 0.8
- - 0.10
diff --git a/tools/eslint/node_modules/deep-is/example/cmp.js b/tools/eslint/node_modules/deep-is/example/cmp.js
deleted file mode 100644
index 67014b88dcbc9b..00000000000000
--- a/tools/eslint/node_modules/deep-is/example/cmp.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var equal = require('../');
-console.dir([
- equal(
- { a : [ 2, 3 ], b : [ 4 ] },
- { a : [ 2, 3 ], b : [ 4 ] }
- ),
- equal(
- { x : 5, y : [6] },
- { x : 5, y : 6 }
- )
-]);
diff --git a/tools/eslint/node_modules/deep-is/package.json b/tools/eslint/node_modules/deep-is/package.json
index 33f265b877516c..2f22a3fb5acbf1 100644
--- a/tools/eslint/node_modules/deep-is/package.json
+++ b/tools/eslint/node_modules/deep-is/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"deep-is@~0.1.3",
- "/Users/trott/test/node_modules/eslint/node_modules/optionator"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/optionator"
]
],
"_from": "deep-is@>=0.1.3 <0.2.0",
"_id": "deep-is@0.1.3",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/deep-is",
+ "_location": "/deep-is",
"_npmUser": {
"email": "thlorenz@gmx.de",
"name": "thlorenz"
@@ -25,13 +25,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/optionator"
+ "/optionator"
],
"_resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz",
"_shasum": "b369d6fb5dbc13eecf524f91b070feedc357cf34",
"_shrinkwrap": null,
"_spec": "deep-is@~0.1.3",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/optionator",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/optionator",
"author": {
"email": "thlorenz@gmx.de",
"name": "Thorsten Lorenz",
@@ -57,9 +57,9 @@
"gitHead": "f126057628423458636dec9df3d621843b9ac55e",
"homepage": "https://github.com/thlorenz/deep-is",
"keywords": [
- "equality",
+ "compare",
"equal",
- "compare"
+ "equality"
],
"license": {
"type": "MIT",
@@ -68,8 +68,8 @@
"main": "index.js",
"maintainers": [
{
- "email": "thlorenz@gmx.de",
- "name": "thlorenz"
+ "name": "thlorenz",
+ "email": "thlorenz@gmx.de"
}
],
"name": "deep-is",
@@ -89,9 +89,9 @@
22
],
"ff": [
- 3.5,
10,
- 15
+ 15,
+ 3.5
],
"ie": [
6,
diff --git a/tools/eslint/node_modules/deep-is/test/NaN.js b/tools/eslint/node_modules/deep-is/test/NaN.js
deleted file mode 100644
index ddaa5a77b412fc..00000000000000
--- a/tools/eslint/node_modules/deep-is/test/NaN.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var test = require('tape');
-var equal = require('../');
-
-test('NaN and 0 values', function (t) {
- t.ok(equal(NaN, NaN));
- t.notOk(equal(0, NaN));
- t.ok(equal(0, 0));
- t.notOk(equal(0, 1));
- t.end();
-});
-
-
-test('nested NaN values', function (t) {
- t.ok(equal([ NaN, 1, NaN ], [ NaN, 1, NaN ]));
- t.end();
-});
diff --git a/tools/eslint/node_modules/deep-is/test/cmp.js b/tools/eslint/node_modules/deep-is/test/cmp.js
deleted file mode 100644
index 307101341db090..00000000000000
--- a/tools/eslint/node_modules/deep-is/test/cmp.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var test = require('tape');
-var equal = require('../');
-
-test('equal', function (t) {
- t.ok(equal(
- { a : [ 2, 3 ], b : [ 4 ] },
- { a : [ 2, 3 ], b : [ 4 ] }
- ));
- t.end();
-});
-
-test('not equal', function (t) {
- t.notOk(equal(
- { x : 5, y : [6] },
- { x : 5, y : 6 }
- ));
- t.end();
-});
-
-test('nested nulls', function (t) {
- t.ok(equal([ null, null, null ], [ null, null, null ]));
- t.end();
-});
diff --git a/tools/eslint/node_modules/deep-is/test/neg-vs-pos-0.js b/tools/eslint/node_modules/deep-is/test/neg-vs-pos-0.js
deleted file mode 100644
index 73f1d71fb204f2..00000000000000
--- a/tools/eslint/node_modules/deep-is/test/neg-vs-pos-0.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var test = require('tape');
-var equal = require('../');
-
-test('0 values', function (t) {
- t.ok(equal( 0, 0), ' 0 === 0');
- t.ok(equal( 0, +0), ' 0 === +0');
- t.ok(equal(+0, +0), '+0 === +0');
- t.ok(equal(-0, -0), '-0 === -0');
-
- t.notOk(equal(-0, 0), '-0 !== 0');
- t.notOk(equal(-0, +0), '-0 !== +0');
-
- t.end();
-});
diff --git a/tools/eslint/node_modules/del/package.json b/tools/eslint/node_modules/del/package.json
index 296da4b986b3f4..8e37d5b8d9a885 100644
--- a/tools/eslint/node_modules/del/package.json
+++ b/tools/eslint/node_modules/del/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"del@^2.0.2",
- "/Users/trott/test/node_modules/eslint/node_modules/flat-cache"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/flat-cache"
]
],
"_from": "del@>=2.0.2 <3.0.0",
"_id": "del@2.2.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/del",
+ "_location": "/del",
"_nodeVersion": "4.2.1",
"_npmUser": {
"email": "sindresorhus@gmail.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/flat-cache"
+ "/flat-cache"
],
"_resolved": "https://registry.npmjs.org/del/-/del-2.2.0.tgz",
"_shasum": "9a50f04bf37325e283b4f44e985336c252456bd5",
"_shrinkwrap": null,
"_spec": "del@^2.0.2",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/flat-cache",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/flat-cache",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -60,7 +60,7 @@
"directories": {},
"dist": {
"shasum": "9a50f04bf37325e283b4f44e985336c252456bd5",
- "tarball": "http://registry.npmjs.org/del/-/del-2.2.0.tgz"
+ "tarball": "https://registry.npmjs.org/del/-/del-2.2.0.tgz"
},
"engines": {
"node": ">=0.10.0"
@@ -71,34 +71,34 @@
"gitHead": "f364db4622f69856d9b7d26c8830335e607924fe",
"homepage": "https://github.com/sindresorhus/del",
"keywords": [
- "delete",
- "del",
- "remove",
- "destroy",
- "trash",
- "unlink",
"clean",
"cleaning",
"cleanup",
- "rm",
- "rmrf",
- "rimraf",
- "rmdir",
- "glob",
- "gulpfriendly",
+ "del",
+ "delete",
+ "destroy",
+ "dir",
+ "directory",
"file",
"files",
+ "filesystem",
"folder",
- "dir",
- "directory",
"fs",
- "filesystem"
+ "glob",
+ "gulpfriendly",
+ "remove",
+ "rimraf",
+ "rm",
+ "rmdir",
+ "rmrf",
+ "trash",
+ "unlink"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "del",
@@ -114,8 +114,8 @@
"version": "2.2.0",
"xo": {
"envs": [
- "node",
- "mocha"
+ "mocha",
+ "node"
]
}
}
diff --git a/tools/eslint/node_modules/doctrine/README.md b/tools/eslint/node_modules/doctrine/README.md
index 14e3dfe68cf1e5..bc6dcf91907faf 100644
--- a/tools/eslint/node_modules/doctrine/README.md
+++ b/tools/eslint/node_modules/doctrine/README.md
@@ -34,7 +34,7 @@ The primary method is `parse()`, which accepts two arguments: the JSDoc comment
* `tags` - an array of tags to return. When specified, Doctrine returns only tags in this array. For example, if `tags` is `["param"]`, then only `@param` tags will be returned. Default: `null`.
* `recoverable` - set to `true` to keep parsing even when syntax errors occur. Default: `false`.
* `sloppy` - set to `true` to allow optional parameters to be specified in brackets (`@param {string} [foo]`). Default: `false`.
-* `lineNumberes` - set to `true` to add `lineNumber` to each node, specifying the line on which the node is found in the source. Default: `false`.
+* `lineNumbers` - set to `true` to add `lineNumber` to each node, specifying the line on which the node is found in the source. Default: `false`.
Here's a simple example:
diff --git a/tools/eslint/node_modules/doctrine/lib/doctrine.js b/tools/eslint/node_modules/doctrine/lib/doctrine.js
index 029a63fc963df5..f82331df092fbb 100644
--- a/tools/eslint/node_modules/doctrine/lib/doctrine.js
+++ b/tools/eslint/node_modules/doctrine/lib/doctrine.js
@@ -332,7 +332,9 @@
name += advance();
}
while (source.charCodeAt(index) === 0x2E /* '.' */ ||
+ source.charCodeAt(index) === 0x2F /* '/' */ ||
source.charCodeAt(index) === 0x23 /* '#' */ ||
+ source.charCodeAt(index) === 0x2D /* '-' */ ||
source.charCodeAt(index) === 0x7E /* '~' */) {
name += advance();
name += scanIdentifier(last);
@@ -340,25 +342,37 @@
}
if (useBrackets) {
-
-
+ skipWhiteSpace(last);
// do we have a default value for this?
if (source.charCodeAt(index) === 0x3D /* '=' */) {
// consume the '='' symbol
name += advance();
+ skipWhiteSpace(last);
+
+ var ch;
var bracketDepth = 1;
// scan in the default value
while (index < last) {
- if (source.charCodeAt(index) === 0x5B /* '[' */) {
+ ch = source.charCodeAt(index);
+
+ if (esutils.code.isWhiteSpace(ch)) {
+ skipWhiteSpace(last);
+ ch = source.charCodeAt(index);
+ }
+
+ if (ch === 0x5B /* '[' */) {
bracketDepth++;
- } else if (source.charCodeAt(index) === 0x5D /* ']' */ &&
+ } else if (ch === 0x5D /* ']' */ &&
--bracketDepth === 0) {
break;
}
+
name += advance();
}
}
+ skipWhiteSpace(last);
+
if (index >= last || source.charCodeAt(index) !== 0x5D /* ']' */) {
// we never found a closing ']'
return null;
diff --git a/tools/eslint/node_modules/doctrine/node_modules/esutils/package.json b/tools/eslint/node_modules/doctrine/node_modules/esutils/package.json
index eab92737967040..7be24707557b1d 100644
--- a/tools/eslint/node_modules/doctrine/node_modules/esutils/package.json
+++ b/tools/eslint/node_modules/doctrine/node_modules/esutils/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"esutils@^1.1.6",
- "/Users/trott/test/node_modules/eslint/node_modules/doctrine"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/doctrine"
]
],
"_from": "esutils@>=1.1.6 <2.0.0",
"_id": "esutils@1.1.6",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/doctrine/esutils",
+ "_location": "/doctrine/esutils",
"_npmUser": {
"email": "utatane.tea@gmail.com",
"name": "constellation"
@@ -25,13 +25,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/doctrine"
+ "/doctrine"
],
"_resolved": "https://registry.npmjs.org/esutils/-/esutils-1.1.6.tgz",
"_shasum": "c01ccaa9ae4b897c6d0c3e210ae52f3c7a844375",
"_shrinkwrap": null,
"_spec": "esutils@^1.1.6",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/doctrine",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/doctrine",
"bugs": {
"url": "https://github.com/Constellation/esutils/issues"
},
@@ -71,8 +71,8 @@
"main": "lib/utils.js",
"maintainers": [
{
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "name": "constellation",
+ "email": "utatane.tea@gmail.com"
}
],
"name": "esutils",
diff --git a/tools/eslint/node_modules/doctrine/package.json b/tools/eslint/node_modules/doctrine/package.json
index 833edf51083967..79835fa71b58e3 100644
--- a/tools/eslint/node_modules/doctrine/package.json
+++ b/tools/eslint/node_modules/doctrine/package.json
@@ -1,49 +1,55 @@
{
"_args": [
[
- "doctrine@^1.1.0",
- "/Users/trott/test/node_modules/eslint"
+ "doctrine@^1.2.1",
+ "/Users/silverwind/git/node/tools/package/package"
]
],
- "_from": "doctrine@>=1.1.0 <2.0.0",
- "_id": "doctrine@1.1.0",
+ "_from": "doctrine@>=1.2.1 <2.0.0",
+ "_id": "doctrine@1.2.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/doctrine",
+ "_location": "/doctrine",
+ "_nodeVersion": "0.12.9",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/doctrine-1.2.1.tgz_1459275509740_0.26917822007089853"
+ },
"_npmUser": {
"email": "nicholas@nczconsulting.com",
"name": "nzakas"
},
- "_npmVersion": "1.4.29",
+ "_npmVersion": "2.14.9",
"_phantomChildren": {},
"_requested": {
"name": "doctrine",
- "raw": "doctrine@^1.1.0",
- "rawSpec": "^1.1.0",
+ "raw": "doctrine@^1.2.1",
+ "rawSpec": "^1.2.1",
"scope": null,
- "spec": ">=1.1.0 <2.0.0",
+ "spec": ">=1.2.1 <2.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.1.0.tgz",
- "_shasum": "1c36612937cf7d1596b983e9c5d0c6233eeaa3cf",
+ "_resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.2.1.tgz",
+ "_shasum": "ac0c649d70b9501e16e97acb7ec4e27168f746a3",
"_shrinkwrap": null,
- "_spec": "doctrine@^1.1.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_spec": "doctrine@^1.2.1",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"bugs": {
"url": "https://github.com/eslint/doctrine/issues"
},
"dependencies": {
"esutils": "^1.1.6",
- "isarray": "0.0.1"
+ "isarray": "^1.0.0"
},
"description": "JSDoc parser",
"devDependencies": {
"coveralls": "^2.11.2",
"dateformat": "^1.0.11",
"eslint": "^1.10.3",
+ "eslint-release": "^0.3.0",
"istanbul": "^0.4.1",
"linefix": "^0.1.1",
"mocha": "^2.3.3",
@@ -57,20 +63,20 @@
"lib": "./lib"
},
"dist": {
- "shasum": "1c36612937cf7d1596b983e9c5d0c6233eeaa3cf",
- "tarball": "http://registry.npmjs.org/doctrine/-/doctrine-1.1.0.tgz"
+ "shasum": "ac0c649d70b9501e16e97acb7ec4e27168f746a3",
+ "tarball": "https://registry.npmjs.org/doctrine/-/doctrine-1.2.1.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
- "lib",
"LICENSE.BSD",
"LICENSE.closure-compiler",
"LICENSE.esprima",
- "README.md"
+ "README.md",
+ "lib"
],
- "gitHead": "165fc189b184b0daa72a2ee2f696e8cf7312d288",
+ "gitHead": "18dba10454f17acbc49ae3c0628119734cb34952",
"homepage": "https://github.com/eslint/doctrine",
"licenses": [
{
@@ -81,12 +87,12 @@
"main": "lib/doctrine.js",
"maintainers": [
{
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "name": "constellation",
+ "email": "utatane.tea@gmail.com"
},
{
- "email": "nicholas@nczconsulting.com",
- "name": "nzakas"
+ "name": "nzakas",
+ "email": "nicholas@nczconsulting.com"
}
],
"name": "doctrine",
@@ -97,8 +103,11 @@
"url": "git+ssh://git@github.com/eslint/doctrine.git"
},
"scripts": {
- "lint": "node Makefile.js lint",
- "test": "node Makefile.js test"
+ "alpharelease": "eslint-prerelease alpha",
+ "betarelease": "eslint-prerelease beta",
+ "lint": "eslint lib/",
+ "release": "eslint-release",
+ "test": "npm run lint && node Makefile.js test"
},
- "version": "1.1.0"
+ "version": "1.2.1"
}
diff --git a/tools/eslint/node_modules/es5-ext/.npmignore b/tools/eslint/node_modules/es5-ext/.npmignore
deleted file mode 100644
index eb09b500d63ec8..00000000000000
--- a/tools/eslint/node_modules/es5-ext/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-/node_modules
-/.lintcache
-/npm-debug.log
diff --git a/tools/eslint/node_modules/es5-ext/.travis.yml b/tools/eslint/node_modules/es5-ext/.travis.yml
deleted file mode 100644
index e8e18ee77d88ed..00000000000000
--- a/tools/eslint/node_modules/es5-ext/.travis.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-language: node_js
-node_js:
- - 0.12
- - 4
- - 5
-
-before_install:
- - mkdir node_modules; ln -s ../ node_modules/es5-ext
-
-notifications:
- email:
- - medikoo+es5-ext@medikoo.com
-
-script: "npm test && npm run lint"
diff --git a/tools/eslint/node_modules/es5-ext/CHANGES b/tools/eslint/node_modules/es5-ext/CHANGES
deleted file mode 100644
index 92ee5f6ef64ca9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/CHANGES
+++ /dev/null
@@ -1,628 +0,0 @@
-v0.10.11 -- 2015.12.18
-* Ensure that check for implementation of RegExp flags doesn't crash in V8 (thanks @mathiasbynens)
-
-v0.10.10 -- 2015.12.11
-* Add Object.isNumberValue util
-
-v0.10.9 -- 2015.12.01
-* Add Object.ensureNaturalNumber and Object.ensureNaturalNumberValue
-
-v0.10.8 -- 2015.10.02
-* Add Number.isNatural
-* Add Object.find and Object.findKey
-* Support arrays in Object.copyDeep
-* Fix iteration issue in forEachRight and someRight
-* Fix detection of native sinh
-* Depend on es6-symbol v3
-
-v0.10.7 -- 2015.04.22
-* New utlitities. They're convention differs from v0.10, as they were supposed to land in v1.
- Still they're non breaking and start the conventions to be used in v1
- * Object.validateArrayLike
- * Object.validateArrayLikeObject
- * Object.validateStringifiable
- * Object.validateStringifiableValue
- * Universal utilities for array-like/iterable objects
- * Iterable.is
- * Iterable.validate
- * Iterable.validateObject
- * Iterable.forEach
-* Fix camelToHyphen resolution, it must be absolutely reversable by hyphenToCamel
-* Fix calculations of large numbers in Math.tanh
-* Fix algorithm of Math.sinh
-* Fix indexes to not use real symbols
-* Fix length of String.fromCodePoint
-* Fix tests of Array#copyWithin
-* Update Travis CI configuration
-
-v0.10.6 -- 2015.02.02
-* Fix handling of infinite values in Math.trunc
-* Fix handling of getters in Object.normalizeOptions
-
-v0.10.5 -- 2015.01.20
-* Add Function#toStringTokens
-* Add Object.serialize and Object.unserialize
-* Add String.randomUniq
-* Fix Strin#camelToHyphen issue with tokens that end with digit
-* Optimise Number.isInteger logic
-* Improve documentation
-* Configure lint scripts
-* Fix spelling of LICENSE
-
-v0.10.4 -- 2014.04.30
-* Assure maximum spec compliance of Array.of and Array.from (thanks @mathiasbynens)
-* Improve documentations
-
-v0.10.3 -- 2014.04.29
-Provide accurate iterators handling:
-* Array.from improvements:
- * Assure right unicode symbols resolution when processing strings in Array.from
- * Rely on ES6 symbol shim and use native @@iterator Symbol if provided by environment
-* Add methods:
- * Array.prototype.entries
- * Array.prototype.keys
- * Array.prototype.values
- * Array.prototype[@@iterator]
- * String.prototype[@@iterator]
-
-Improve documentation
-
-v0.10.2 -- 2014.04.24
-- Simplify and deprecate `isCallable`. It seems in ES5 based engines there are
- no callable objects which are `typeof obj !== 'function'`
-- Update Array.from map callback signature (up to latest resolution of TC39)
-- Improve documentation
-
-v0.10.1 -- 2014.04.14
-Bump version for npm
-(Workaround for accidental premature publish & unpublish of v0.10.0 a while ago)
-
-v0.10.0 -- 2014.04.13
-Major update:
-- All methods and function specified for ECMAScript 6 are now introduced as
- shims accompanied with functions through which (optionally) they can be
- implementend on native objects
-- Filename convention was changed to shorter and strictly lower case names. e.g.
- `lib/String/prototype/starts-with` became `string/#/starts-with`
-- Generated functions are guaranteed to have expected length
-- Objects with null prototype (created via `Object.create(null)`) are widely
- supported (older version have crashed due to implied `obj.hasOwnProperty` and
- related invocations)
-- Support array subclasses
-- When handling lists do not limit its length to Uint32 range
-- Use newly introduced `Object.eq` for strict equality in place of `Object.is`
-- Iteration of Object have been improved so properties that were hidden or
- removed after iteration started are not iterated.
-
-Additions:
-- `Array.isPlainArray`
-- `Array.validArray`
-- `Array.prototype.concat` (as updated with ES6)
-- `Array.prototype.copyWithin` (as introduced with ES6)
-- `Array.prototype.fill` (as introduced with ES6)
-- `Array.prototype.filter` (as updated with ES6)
-- `Array.prototype.findIndex` (as introduced with ES6)
-- `Array.prototype.map` (as updated with ES6)
-- `Array.prototype.separate`
-- `Array.prototype.slice` (as updated with ES6)
-- `Array.prototype.splice` (as updated with ES6)
-- `Function.prototype.copy`
-- `Math.acosh` (as introduced with ES6)
-- `Math.atanh` (as introduced with ES6)
-- `Math.cbrt` (as introduced with ES6)
-- `Math.clz32` (as introduced with ES6)
-- `Math.cosh` (as introduced with ES6)
-- `Math.expm1` (as introduced with ES6)
-- `Math.fround` (as introduced with ES6)
-- `Math.hypot` (as introduced with ES6)
-- `Math.imul` (as introduced with ES6)
-- `Math.log2` (as introduced with ES6)
-- `Math.log10` (as introduced with ES6)
-- `Math.log1p` (as introduced with ES6)
-- `Math.sinh` (as introduced with ES6)
-- `Math.tanh` (as introduced with ES6)
-- `Math.trunc` (as introduced with ES6)
-- `Number.EPSILON` (as introduced with ES6)
-- `Number.MIN_SAFE_INTEGER` (as introduced with ES6)
-- `Number.MAX_SAFE_INTEGER` (as introduced with ES6)
-- `Number.isFinite` (as introduced with ES6)
-- `Number.isInteger` (as introduced with ES6)
-- `Number.isSafeInteger` (as introduced with ES6)
-- `Object.create` (with fix for V8 issue which disallows prototype turn of
- objects derived from null
-- `Object.eq` - Less restrictive version of `Object.is` based on SameValueZero
- algorithm
-- `Object.firstKey`
-- `Object.keys` (as updated with ES6)
-- `Object.mixinPrototypes`
-- `Object.primitiveSet`
-- `Object.setPrototypeOf` (as introduced with ES6)
-- `Object.validObject`
-- `RegExp.escape`
-- `RegExp.prototype.match` (as introduced with ES6)
-- `RegExp.prototype.replace` (as introduced with ES6)
-- `RegExp.prototype.search` (as introduced with ES6)
-- `RegExp.prototype.split` (as introduced with ES6)
-- `RegExp.prototype.sticky` (as introduced with ES6)
-- `RegExp.prototype.unicode` (as introduced with ES6)
-- `String.fromCodePoint` (as introduced with ES6)
-- `String.raw` (as introduced with ES6)
-- `String.prototype.at`
-- `String.prototype.codePointAt` (as introduced with ES6)
-- `String.prototype.normalize` (as introduced with ES6)
-- `String.prototype.plainReplaceAll`
-
-Removals:
-- `reserved` set
-- `Array.prototype.commonLeft`
-- `Function.insert`
-- `Function.remove`
-- `Function.prototype.silent`
-- `Function.prototype.wrap`
-- `Object.descriptor` Move to external `d` project.
- See: https://github.com/medikoo/d
-- `Object.diff`
-- `Object.extendDeep`
-- `Object.reduce`
-- `Object.values`
-- `String.prototype.trimCommonLeft`
-
-Renames:
-- `Function.i` into `Function.identity`
-- `Function.k` into `Function.constant`
-- `Number.toInt` into `Number.toInteger`
-- `Number.toUint` into `Number.toPosInteger`
-- `Object.extend` into `Object.assign` (as introduced in ES 6)
-- `Object.extendProperties` into `Object.mixin`, with improved internal
- handling, so it matches temporarily specified `Object.mixin` for ECMAScript 6
-- `Object.isList` into `Object.isArrayLike`
-- `Object.mapToArray` into `Object.toArray` (with fixed function length)
-- `Object.toPlainObject` into `Object.normalizeOptions` (as this is the real
- use case where we use this function)
-- `Function.prototype.chain` into `Function.prototype.compose`
-- `Function.prototype.match` into `Function.prototype.spread`
-- `String.prototype.format` into `String.formatMethod`
-
-Improvements & Fixes:
-- Remove workaround for primitive values handling in object iterators
-- `Array.from`: Update so it follows ES 6 spec
-- `Array.prototype.compact`: filters just null and undefined values
- (not all falsies)
-- `Array.prototype.eIndexOf` and `Array.prototype.eLastIndexOf`: fix position
- handling, improve internals
-- `Array.prototype.find`: return undefined not null, in case of not found
- (follow ES 6)
-- `Array.prototype.remove` fix function length
-- `Error.custom`: simplify, Custom class case is addressed by outer
- `error-create` project -> https://github.com/medikoo/error-create
-- `Error.isError` true only for Error instances (remove detection of host
- Exception objects)
-- `Number.prototype.pad`: Normalize negative pad
-- `Object.clear`: Handle errors same way as in `Object.assign`
-- `Object.compact`: filters just null and undefined values (not all falsies)
-- `Object.compare`: Take into account NaN values
-- `Object.copy`: Split into `Object.copy` and `Object.copyDeep`
-- `Object.isCopy`: Separate into `Object.isCopy` and `Object.isCopyDeep`, where
- `isCopyDeep` handles nested plain objects and plain arrays only
-- `String.prototype.endsWith`: Adjust up to ES6 specification
-- `String.prototype.repeat`: Adjust up to ES6 specification and improve algorithm
-- `String.prototype.simpleReplace`: Rename into `String.prototype.plainReplace`
-- `String.prototype.startsWith`: Adjust up to ES6 specification
-- Update lint rules, and adjust code to that
-- Update Travis CI configuration
-- Remove Makefile (it's cross-env utility)
-
-v0.9.2 -- 2013.03.11
-Added:
-* Array.prototype.isCopy
-* Array.prototype.isUniq
-* Error.CustomError
-* Function.validFunction
-* Object.extendDeep
-* Object.descriptor.binder
-* Object.safeTraverse
-* RegExp.validRegExp
-* String.prototype.capitalize
-* String.prototype.simpleReplace
-
-Fixed:
-* Fix Array.prototype.diff for sparse arrays
-* Accept primitive objects as input values in Object iteration methods and
- Object.clear, Object.count, Object.diff, Object.extend,
- Object.getPropertyNames, Object.values
-* Pass expected arguments to callbacks of Object.filter, Object.mapKeys,
- Object.mapToArray, Object.map
-* Improve callable callback support in Object.mapToArray
-
-v0.9.1 -- 2012.09.17
-* Object.reduce - reduce for hash-like collections
-* Accapt any callable object as callback in Object.filter, mapKeys and map
-* Convention cleanup
-
-v0.9.0 -- 2012.09.13
-We're getting to real solid API
-
-Removed:
-* Function#memoize - it's grown up to be external package, to be soon published
- as 'memoizee'
-* String.guid - it doesn't fit es5-ext (extensions) concept, will be provided as
- external package
-# Function.arguments - obsolete
-# Function.context - obsolete
-# Function#flip - not readable when used, so it was never used
-# Object.clone - obsolete and confusing
-
-Added:
-* String#camelToHyphen - String format convertion
-
-Renamed:
-* String#dashToCamelCase -> String#hyphenToCamel
-
-Fixes:
-* Object.isObject - Quote names in literals that match reserved keywords
- (older implementations crashed on that)
-* String#repeat - Do not accept negative values (coerce them to 1)
-
-Improvements:
-* Array#remove - Accepts many arguments, we can now remove many values at once
-* Object iterators (forEach, map, some) - Compare function invoked with scope
- object bound to this
-* Function#curry - Algorithm cleanup
-* Object.isCopy - Support for all types, not just plain objects
-* Object.isPlainObject - Support for cross-frame objects
-* Do not memoize any of the functions, it shouldn't be decided internally
-* Remove Object.freeze calls in reserved, it's not up to convention
-* Improved documentation
-* Better linting (hard-core approach using both JSLint mod and JSHint)
-* Optional arguments are now documented in funtions signature
-
-v0.8.2 -- 2012.06.22
-Fix errors in Array's intersection and exclusion methods, related to improper
-usage of contains method
-
-v0.8.1 -- 2012.06.13
-Reorganized internal logic of Function.prototype.memoize. So it's more safe now
-and clears cache properly. Additionally preventCache option was provided.
-
-v0.8.0 -- 2012.05.28
-Again, major overhaul. Probably last experimental stuff was trashed, all API
-looks more like standard extensions now.
-
-Changes:
-* Turn all Object.prototype extensions into functions and move them to Object
-namespace. We learned that extending Object.prototype is bad idea in any case.
-* Rename Function.prototype.curry into Function.prototype.partial. This function
- is really doing partial application while currying is slightly different
- concept.
-* Convert Function.prototype.ncurry to new implementation of
- Function.prototype.curry, it now serves real curry concept additionaly it
- covers use cases for aritize and hold, which were removed.
-* Rename Array's peek to last, and provide support for sparse arrays in it
-* Rename Date's monthDaysCount into daysInMonth
-* Simplify object iterators, now order of iteration can be configured with just
- compareFn argument (no extra byKeys option)
-* Rename Object.isDuplicate to Object.isCopy
-* Rename Object.isEqual to Object.is which is compatible with future 'is'
- keyword
-* Function.memoize is now Function.prototype.memoize. Additionally clear cache
- functionality is added, and access to original arguments object.
-* Rename validation functions: assertNotNull to validValue, assertCallable to
- validCallable. validValue was moved to Object namespace. On success they now
- return validated value instead of true, it supports better composition.
- Additionally created Date.validDate and Error.validError
-* All documentation is now held in README.md not in code files.
-* Move guid to String namespace. All guids now start with numbers.
-* Array.generate: fill argument is now optional
-* Object.toArray is now Array.from (as new ES6 specification draft suggests)
-* All methods that rely on indexOf or lastIndexOf, now rely on egal (Object.is)
- versions of them (eIndexOf, eLastIndexOf)
-* Turn all get* functions that returned methods into actuall methods (get*
- functionality can still be achieved with help of Function.prototype.partial).
- So: Date.getFormat is now Date.prototype.format,
- Number.getPad is now Number.prototype.pad,
- String.getFormat is now String.prototype.format,
- String.getIndent is now String.prototype.indent,
- String.getPad is now String.prototype.pad
-* Refactored Object.descriptor, it is now just two functions, main one and
- main.gs, main is for describing values, and gs for describing getters and
- setters. Configuration is passed with first argument as string e.g. 'ce' for
- configurable and enumerable. If no configuration string is provided then by
- default it returns configurable and writable but not enumerable for value or
- configurable but not enumerable for getter/setter
-* Function.prototype.silent now returns prepared function (it was
- expected to be fixed for 0.7)
-* Reserved keywords map (reserved) is now array not hash.
-* Object.merge is now Object.extend (while former Object.extend was completely
- removed) - 'extend' implies that we change object, not creating new one (as
- 'merge' may imply). Similarily Object.mergeProperties was renamed to
- Object.extendProperties
-* Position argument support in Array.prototype.contains and
- String.prototype.contains (so it follows ES6 specification draft)
-* endPosition argument support in String.prototype.endsWith and fromPosition
- argument support in String.prototype.startsWith (so it follows ES6
- specification draft)
-* Better and cleaner String.prototype.indent implementation. No default value
- for indent string argument, optional nest value (defaults to 1), remove
- nostart argument
-* Correct length values for most methods (so they reflect length of similar
- methods in standard)
-* Length argument is now optional in number and string pad methods.
-* Improve arguments validation in general, so it adheres to standard conventions
-* Fixed format of package.json
-
-Removed methods and functions:
-* Object.prototype.slice - Object is not ordered collection, so slice doesn't
- make sense.
-* Function's rcurry, rncurry, s - too cumbersome for JS, not many use cases for
- that
-* Function.prototype.aritize and Function.prototype.hold - same functionality
- can be achieved with new Function.prototype.curry
-* Function.prototype.log - provided more generic Function.prototype.wrap for
- same use case
-* getNextIdGenerator - no use case for that (String.guid should be used if
- needed)
-* Object.toObject - Can be now acheived with Object(validValue(x))
-* Array.prototype.someValue - no real use case (personally used once and
- case was already controversial)
-* Date.prototype.duration - moved to external package
-* Number.getAutoincrement - No real use case
-* Object.prototype.extend, Object.prototype.override,
- Object.prototype.plainCreate, Object.prototype.plainExtend - It was probably
- too complex, same should be achieved just with Object.create,
- Object.descriptor and by saving references to super methods in local scope.
-* Object.getCompareBy - Functions should be created individually for each use
- case
-* Object.get, Object.getSet, Object.set, Object.unset - Not many use cases and
- same can be easily achieved with simple inline function
-* String.getPrefixWith - Not real use case for something that can be easily
- achieved with '+' operator
-* Object.isPrimitive - It's just negation of Object.isObject
-* Number.prototype.isLess, Number.prototype.isLessOrEqual - they shouldn't be in
- Number namespace and should rather be addressed with simple inline functions.
-* Number.prototype.subtract - Should rather be addressed with simple inline
- function
-
-New methods and functions:
-* Array.prototype.lastIndex - Returns last declared index in array
-* String.prototype.last - last for strings
-* Function.prototype.wrap - Wrap function with other, it allows to specify
- before and after behavior transform return value or prevent original function
- from being called.
-* Math.sign - Returns sign of a number (already in ES6 specification draft)
-* Number.toInt - Converts value to integer (already in ES6 specification draft)
-* Number.isNaN - Returns true if value is NaN (already in ES6 specification
- draft)
-* Number.toUint - Converts value to unsigned integer
-* Number.toUint32 - Converts value to 32bit unsigned integer
-* Array.prototype.eIndexOf, eLastIndexOf - Egal version (that uses Object.is) of
- standard methods (all methods that were using native indexOf or lastIndexOf
- now uses eIndexOf and elastIndexOf respectively)
-* Array.of - as it's specified for ES6
-
-Fixes:
-* Fixed binarySearch so it always returns valid list index
-* Object.isList - it failed on lists that are callable (e.g. NodeList in Nitro
- engine)
-* Object.map now supports third argument for callback
-
-v0.7.1 -- 2012.01.05
-New methods:
-* Array.prototype.firstIndex - returns first valid index of array (for
- sparse arrays it may not be '0'
-
-Improvements:
-* Array.prototype.first - now returns value for index returned by firstIndex
-* Object.prototype.mapToArray - can be called without callback, then array of
- key-value pairs is returned
-
-Fixes
-* Array.prototype.forEachRight, object's length read through UInt32 conversion
-
-v0.7.0 -- 2011.12.27
-Major update.
-Stepped back from experimental ideas and introduced more standard approach
-taking example from how ES5 methods and functions are designed. One exceptions
-is that, we don’t refrain from declaring methods for Object.prototype - it’s up
-to developer whether how he decides to use it in his context (as function or as
-method).
-
-In general:
-* Removed any method 'functionalization' and functionalize method itself.
- es5-ext declares plain methods, which can be configured to work as functions
- with call.bind(method) - see documentation.
-* Removed separation of Object methods for ES5 (with descriptors) and
- ES3 (plain) - we're following ES5 idea on that, some methods are intended just
- for enumerable properties and some are for all properties, all are declared
- for Object.prototype
-* Removed separation of Array generic (collected in List folder) and not generic
- methods (collected in Array folder). Now all methods are generic and are in
- Array/prototype folder. This separation also meant, that methods in Array are
- usually destructive. We don’t do that separation now, there’s generally no use
- case for destructive iterators, we should be fine with one version of each
- method, (same as ES5 is fine with e.g. one, non destructive 'filter' method)
-* Folder structure resembles tree of native ES5 Objects
-* All methods are written with ES5 conventions in mind, it means that most
- methods are generic and can be run on any object. In more detail:
- ** Array.prototype and Object.prototype methods can be run on any object (any
- not null or undefined value),
- ** Date.prototype methods should be called only on Date instances.
- ** Function.prototype methods can be called on any callable objects (not
- necessarily functions)
- ** Number.prototype & String.prototype methods can be called on any value, in
- case of Number it it’ll be degraded to number, in case of string it’ll be
- degraded to string.
-* Travis CI support (only for Node v0.6 branch, as v0.4 has buggy V8 version)
-
-Improvements for existing functions and methods:
-* Function.memoize (was Function.cache) is now fully generic, can operate on any
- type of arguments and it’s NaN safe (all NaN objects are considered equal)
-* Method properties passed to Object.prototype.extend or
- Object.prototype.override can aside of _super optionally take prototype object
- via _proto argument
-* Object iterators: forEach, mapToArray and every can now iterate in specified
- order
-* pluck, invoke and other functions that return reusable functions or methods
- have now their results memoized.
-
-New methods:
-* Global: assertNotNull, getNextIdGenerator, guid, isEqual, isPrimitive,
- toObject
-* Array: generate
-* Array.prototype: binarySearch, clear, contains, diff, exclusion, find, first,
- forEachRight, group, indexesOf, intersection, remove, someRight, someValue
-* Boolean: isBoolean
-* Date: isDate
-* Function: arguments, context, insert, isArguments, remove
-* Function.prototype: not, silent
-* Number: getAutoincrement, isNumber
-* Number.prototype: isLessOrEqual, isLess, subtract
-* Object: assertCallable, descriptor (functions for clean descriptors),
- getCompareBy, isCallable, isObject
-* Object.prototype: clone (real clone), compact, count, diff, empty,
- getPropertyNames, get, keyOf, mapKeys, override, plainCreate, plainExtend,
- slice, some, unset
-* RegExp: isRegExp
-* String: getPrefixWith, isString
-* String.prototype: caseInsensitiveCompare, contains, isNumeric
-
-Renamed methods:
-* Date.clone -> Date.prototype.copy
-* Date.format -> Date.getFormat
-* Date/day/floor -> Date.prototype.floorDay
-* Date/month/floor -> Date.prototype.floorMonth
-* Date/month/year -> Date.prototype.floorYear
-* Function.cache -> Function.memoize
-* Function.getApplyArg -> Function.prototype.match
-* Function.sequence -> Function.prototype.chain
-* List.findSameStartLength -> Array.prototype.commonLeft
-* Number.pad -> Number.getPad
-* Object/plain/clone -> Object.prototype.copy
-* Object/plain/elevate -> Object.prototype.flatten
-* Object/plain/same -> Object.prototype.isDuplicate
-* Object/plain/setValue -> Object.getSet
-* String.format -> String.getFormat
-* String.indent -> String.getIndent
-* String.pad -> String.getPad
-* String.trimLeftStr -> String.prototype.trimCommonLeft
-* Object.merge -> Object.prototype.mergeProperties
-* Object/plain/pluck -> Object.prototype.get
-* Array.clone is now Array.prototype.copy and can be used also on any array-like
- objects
-* List.isList -> Object.isList
-* List.toArray -> Object.prototype.toArray
-* String/convert/dashToCamelCase -> String.prototype.dashToCamelCase
-
-Removed methods:
-* Array.compact - removed destructive version (that operated on same array), we
- have now non destructive version as Array.prototype.compact.
-* Function.applyBind -> use apply.bind directly
-* Function.bindBind -> use bind.bind directly
-* Function.callBind -> use call.bind directly
-* Fuction.clone -> no valid use case
-* Function.dscope -> controversial approach, shouldn’t be considered seriously
-* Function.functionalize -> It was experimental but standards are standards
-* List/sort/length -> It can be easy obtained by Object.getCompareBy(‘length’)
-* List.concat -> Concat’s for array-like’s makes no sense, just convert to array
- first
-* List.every -> Use Array.prototype.every directly
-* List.filter -> Use Array.prototype.filter directly
-* List.forEach -> User Array.prototype.forEach directly
-* List.isListObject -> No valid use case, do: isList(list) && (typeof list ===
- 'object’)
-* List.map -> Use Array.prototype.map directly
-* List.reduce -> Use Array.prototype.reduce directly
-* List.shiftSame -> Use Array.prototype.commonLeft and do slice
-* List.slice -> Use Array.prototype.slice directly
-* List.some -> Use Array.prototype.some directly
-* Object.bindMethods -> it was version that considered descriptors, we have now
- Object.prototype.bindMethods which operates only on enumerable properties
-* Object.every -> version that considered all properties, we have now
- Object.prototype.every which iterates only enumerables
-* Object.invoke -> no use case
-* Object.mergeDeep -> no use case
-* Object.pluck -> no use case
-* Object.same -> it considered descriptors, now there’s only Object.isDuplicate
- which compares only enumerable properties
-* Object.sameType -> no use case
-* Object.toDescriptor and Object.toDescriptors -> replaced by much nicer
- Object.descriptor functions
-* Object/plain/link -> no use case (it was used internally only by
- Object/plain/merge)
-* Object/plain/setTrue -> now easily configurable by more universal
- Object.getSet(true)
-* String.trimRightStr -> Eventually String.prototype.trimCommonRight will be
- added
-
-v0.6.3 -- 2011.12.12
-* Cleared npm warning for misnamed property in package.json
-
-v0.6.2 -- 2011.08.12
-* Calling String.indent without scope (global scope then) now treated as calling
- it with null scope, it allows more direct invocations when using default nest
- string: indent().call(str, nest)
-
-v0.6.1 -- 2011.08.08
-* Added TAD test suite to devDependencies, configured test commands.
- Tests can be run with 'make test' or 'npm test'
-
-v0.6.0 -- 2011.08.07
-New methods:
-* Array: clone, compact (in place)
-* Date: format, duration, clone, monthDaysCount, day.floor, month.floor,
- year.floor
-* Function: getApplyArg, , ncurry, rncurry, hold, cache, log
-* List: findSameStartLength, shiftSame, peek, isListObject
-* Number: pad
-* Object: sameType, toString, mapToArray, mergeDeep, toDescriptor,
- toDescriptors, invoke
-* String: startsWith, endsWith, indent, trimLeftStr, trimRightStr, pad, format
-
-Fixed:
-* Object.extend does now prototypal extend as exptected
-* Object.merge now tries to overwrite only configurable properties
-* Function.flip
-
-Improved:
-* Faster List.toArray
-* Better global retrieval
-* Functionalized all Function methods
-* Renamed bindApply and bindCall to applyBind and callBind
-* Removed Function.inherit (as it's unintuitive curry clone)
-* Straightforward logic in Function.k
-* Fixed naming of some tests files (letter case issue)
-* Renamed Function.saturate into Function.lock
-* String.dashToCamelCase digits support
-* Strings now considered as List objects
-* Improved List.compact
-* Concise logic for List.concat
-* Test wit TAD in clean ES5 context
-
-v0.5.1 -- 2011.07.11
-* Function's bindBind, bindCall and bindApply now more versatile
-
-v0.5.0 -- 2011.07.07
-* Removed Object.is and List.apply
-* Renamed Object.plain.is to Object.plain.isPlainObject (keep naming convention
- consistent)
-* Improved documentation
-
-v0.4.0 -- 2011.07.05
-* Take most functions on Object to Object.plain to keep them away from object
- descriptors
-* Object functions with ES5 standard in mind (object descriptors)
-
-v0.3.0 -- 2011.06.24
-* New functions
-* Consistent file naming (dash instead of camelCase)
-
-v0.2.1 -- 2011.05.28
-* Renamed Functions.K and Function.S to to lowercase versions (use consistent
- naming)
-
-v0.2.0 -- 2011.05.28
-* Renamed Array folder to List (as its generic functions for array-like objects)
-* Added Makefile
-* Added various functions
-
-v0.1.0 -- 2011.05.24
-* Initial version
diff --git a/tools/eslint/node_modules/es5-ext/package.json b/tools/eslint/node_modules/es5-ext/package.json
index 0b5063bd5b3dfc..6a36f4f0dfd7b9 100644
--- a/tools/eslint/node_modules/es5-ext/package.json
+++ b/tools/eslint/node_modules/es5-ext/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"es5-ext@~0.10.8",
- "/Users/trott/test/node_modules/eslint/node_modules/es6-map"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map"
]
],
"_from": "es5-ext@>=0.10.8 <0.11.0",
"_id": "es5-ext@0.10.11",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/es5-ext",
+ "_location": "/es5-ext",
"_nodeVersion": "4.2.3",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
@@ -26,19 +26,19 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/d",
- "/eslint/es6-iterator",
- "/eslint/es6-map",
- "/eslint/es6-set",
- "/eslint/es6-symbol",
- "/eslint/es6-weak-map",
- "/eslint/event-emitter"
+ "/d",
+ "/es6-iterator",
+ "/es6-map",
+ "/es6-set",
+ "/es6-symbol",
+ "/es6-weak-map",
+ "/event-emitter"
],
"_resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.11.tgz",
"_shasum": "8184c3e705a820948c2dbe043849379b1dbd0c45",
"_shrinkwrap": null,
"_spec": "es5-ext@~0.10.8",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/es6-map",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -65,28 +65,28 @@
"gitHead": "aba94140a6bf79ce1a448a2db8834e8c1842b527",
"homepage": "https://github.com/medikoo/es5-ext#readme",
"keywords": [
+ "addons",
"ecmascript",
"ecmascript5",
"ecmascript6",
"es5",
"es6",
- "extensions",
"ext",
- "addons",
+ "extensions",
"extras",
"harmony",
"javascript",
"polyfill",
"shim",
"util",
- "utils",
- "utilities"
+ "utilities",
+ "utils"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "es5-ext",
diff --git a/tools/eslint/node_modules/es5-ext/test/__tad.js b/tools/eslint/node_modules/es5-ext/test/__tad.js
deleted file mode 100644
index 884577887f5704..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/__tad.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-exports.context = null;
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/implement.js
deleted file mode 100644
index f0605399e0274e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/@@iterator/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/shim.js
deleted file mode 100644
index e590d8f28e7c0e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- var iterator = t.call(this);
- a.deep(iterator.next(), { value: '1', done: false });
- a.deep(iterator.next(), { value: '2', done: false });
- a.deep(iterator.next(), { value: '3', done: false });
- a.deep(iterator.next(), { value: undefined, done: true });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/_compare-by-length.js b/tools/eslint/node_modules/es5-ext/test/array/#/_compare-by-length.js
deleted file mode 100644
index e40c305b98fe68..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/_compare-by-length.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = [4, 5, 6], y = { length: 8 }, w = {}, z = { length: 1 };
-
- a.deep([x, y, w, z].sort(t), [w, z, x, y]);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/binary-search.js b/tools/eslint/node_modules/es5-ext/test/array/#/binary-search.js
deleted file mode 100644
index cf3317371b3491..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/binary-search.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var compare = function (value) { return this - value; };
-
-module.exports = function (t, a) {
- var arr;
- arr = [2, 5, 5, 8, 34, 67, 98, 345, 678];
-
- // highest, equal match
- a(t.call(arr, compare.bind(1)), 0, "All higher");
- a(t.call(arr, compare.bind(679)), arr.length - 1, "All lower");
- a(t.call(arr, compare.bind(4)), 0, "Mid");
- a(t.call(arr, compare.bind(5)), 2, "Match");
- a(t.call(arr, compare.bind(6)), 2, "Above");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/clear.js b/tools/eslint/node_modules/es5-ext/test/array/#/clear.js
deleted file mode 100644
index a5b1c977ad98cf..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/clear.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = [1, 2, {}, 4];
- a(t.call(x), x, "Returns same array");
- a.deep(x, [], "Empties array");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/compact.js b/tools/eslint/node_modules/es5-ext/test/array/#/compact.js
deleted file mode 100644
index 6390eb26dddf6b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/compact.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- a(t.call(this).length, 3);
- },
- "": function (t, a) {
- var o, x, y, z;
- o = {};
- x = [0, 1, "", null, o, false, undefined, true];
- y = x.slice(0);
-
- a.not(z = t.call(x), x, "Returns different object");
- a.deep(x, y, "Origin not changed");
- a.deep(z, [0, 1, "", o, false, true], "Result");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/implement.js
deleted file mode 100644
index 3bdbe86812aaaa..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/concat/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/shim.js
deleted file mode 100644
index c30eb7eab08178..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/shim.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-
-var SubArray = require('../../../../array/_sub-array-dummy-safe');
-
-module.exports = function (t, a) {
- var arr = [1, 3, 45], x = {}, subArr, subArr2, result;
-
- a.deep(t.call(arr, '2d', x, ['ere', 'fe', x], false, null),
- [1, 3, 45, '2d', x, 'ere', 'fe', x, false, null], "Plain array");
-
- subArr = new SubArray('lol', 'miszko');
- subArr2 = new SubArray('elo', 'fol');
-
- result = t.call(subArr, 'df', arr, 'fef', subArr2, null);
- a(result instanceof SubArray, true, "Instance of subclass");
- a.deep(result, ['lol', 'miszko', 'df', 1, 3, 45, 'fef', 'elo', 'fol', null],
- "Spreable by default");
-
- SubArray.prototype['@@isConcatSpreadable'] = false;
-
- result = t.call(subArr, 'df', arr, 'fef', subArr2, null);
- a.deep(result, ['lol', 'miszko', 'df', 1, 3, 45, 'fef', subArr2, null],
- "Non spreadable");
-
- delete SubArray.prototype['@@isConcatSpreadable'];
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/contains.js b/tools/eslint/node_modules/es5-ext/test/array/#/contains.js
deleted file mode 100644
index 21404a17a61358..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/contains.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- a(t.call(this, this[1]), true, "Contains");
- a(t.call(this, {}), false, "Does Not contain");
- },
- "": function (t, a) {
- var o, x = {}, y = {};
-
- o = [1, 'raz', x];
-
- a(t.call(o, 1), true, "First");
- a(t.call(o, '1'), false, "Type coercion");
- a(t.call(o, 'raz'), true, "Primitive");
- a(t.call(o, 'foo'), false, "Primitive not found");
- a(t.call(o, x), true, "Object found");
- a(t.call(o, y), false, "Object not found");
- a(t.call(o, 1, 1), false, "Position");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/implement.js
deleted file mode 100644
index 36070477d66802..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/copy-within/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/shim.js
deleted file mode 100644
index 93c85ea3114c24..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/shim.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var args, x;
-
- a.h1("2 args");
- x = [1, 2, 3, 4, 5];
- t.call(x, 0, 3);
- a.deep(x, [4, 5, 3, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], 1, 3), [1, 4, 5, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], 1, 2), [1, 3, 4, 5, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], 2, 2), [1, 2, 3, 4, 5]);
-
- a.h1("3 args");
- a.deep(t.call([1, 2, 3, 4, 5], 0, 3, 4), [4, 2, 3, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], 1, 3, 4), [1, 4, 3, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], 1, 2, 4), [1, 3, 4, 4, 5]);
-
- a.h1("Negative args");
- a.deep(t.call([1, 2, 3, 4, 5], 0, -2), [4, 5, 3, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], 0, -2, -1), [4, 2, 3, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -2), [1, 3, 3, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -1), [1, 3, 4, 4, 5]);
- a.deep(t.call([1, 2, 3, 4, 5], -4, -3), [1, 3, 4, 5, 5]);
-
- a.h1("Array-likes");
- args = { 0: 1, 1: 2, 2: 3, length: 3 };
- a.deep(t.call(args, -2, 0), { '0': 1, '1': 1, '2': 2, length: 3 });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/diff.js b/tools/eslint/node_modules/es5-ext/test/array/#/diff.js
deleted file mode 100644
index bcfa3a0bd12f84..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/diff.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- a.deep(t.call(this, this), []);
- },
- "": function (t, a) {
- var x = {}, y = {};
-
- a.deep(t.call([1, 'raz', x, 2, 'trzy', y], [x, 2, 'trzy']), [1, 'raz', y],
- "Scope longer");
- a.deep(t.call([1, 'raz', x], [x, 2, 'trzy', 1, y]), ['raz'],
- "Arg longer");
- a.deep(t.call([1, 'raz', x], []), [1, 'raz', x], "Empty arg");
- a.deep(t.call([], [1, y, 'sdfs']), [], "Empty scope");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/e-index-of.js b/tools/eslint/node_modules/es5-ext/test/array/#/e-index-of.js
deleted file mode 100644
index 4cf6c6359d44ee..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/e-index-of.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {};
- a(t.call([3, 'raz', {}, x, {}], x), 3, "Regular");
- a(t.call([3, 'raz', NaN, {}, NaN], NaN), 2, "NaN");
- a(t.call([3, 'raz', 0, {}, -0], -0), 2, "-0");
- a(t.call([3, 'raz', -0, {}, 0], +0), 2, "+0");
- a(t.call([3, 'raz', NaN, {}, NaN], NaN, 3), 4, "fromIndex");
- a(t.call([3, 'raz', NaN, {}, NaN], NaN, -1), 4, "fromIndex negative #1");
- a(t.call([3, 'raz', NaN, {}, NaN], NaN, -2), 4, "fromIndex negative #2");
- a(t.call([3, 'raz', NaN, {}, NaN], NaN, -3), 2, "fromIndex negative #3");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/e-last-index-of.js b/tools/eslint/node_modules/es5-ext/test/array/#/e-last-index-of.js
deleted file mode 100644
index ed4f700421a8f1..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/e-last-index-of.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {};
- a(t.call([3, 'raz', {}, x, {}, x], x), 5, "Regular");
- a(t.call([3, 'raz', NaN, {}, x], NaN), 2, "NaN");
- a(t.call([3, 'raz', 0, {}, -0], -0), 4, "-0");
- a(t.call([3, 'raz', -0, {}, 0], +0), 4, "+0");
- a(t.call([3, 'raz', NaN, {}, NaN], NaN, 3), 2, "fromIndex");
- a(t.call([3, 'raz', NaN, 2, NaN], NaN, -1), 4, "Negative fromIndex #1");
- a(t.call([3, 'raz', NaN, 2, NaN], NaN, -2), 2, "Negative fromIndex #2");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/implement.js
deleted file mode 100644
index 733209a1c80653..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/entries/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/shim.js
deleted file mode 100644
index bf40d31005df45..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- var iterator = t.call(this);
- a.deep(iterator.next(), { value: [0, '1'], done: false });
- a.deep(iterator.next(), { value: [1, '2'], done: false });
- a.deep(iterator.next(), { value: [2, '3'], done: false });
- a.deep(iterator.next(), { value: undefined, done: true });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/exclusion.js b/tools/eslint/node_modules/es5-ext/test/array/#/exclusion.js
deleted file mode 100644
index 07b32d8e8cbf9b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/exclusion.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- var x = {};
- a.deep(t.call(this, this, [this[0], this[2], x]), [x]);
- },
- "": function (t, a) {
- var x = {}, y = {};
-
- a.deep(t.call([x, y]), [x, y], "No arguments");
- a.deep(t.call([x, 1], [], []), [x, 1], "Empty arguments");
- a.deep(t.call([1, 'raz', x], [2, 'raz', y], [2, 'raz', x]), [1, y]);
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/implement.js
deleted file mode 100644
index 2a01d2850a18a9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/fill/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/shim.js
deleted file mode 100644
index d67300fcc23be8..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/shim.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// Taken from https://github.com/paulmillr/es6-shim/blob/master/test/array.js
-
-'use strict';
-
-module.exports = function (t, a) {
- var x;
-
- x = [1, 2, 3, 4, 5, 6];
- a(t.call(x, -1), x, "Returns self object");
- a.deep(x, [-1, -1, -1, -1, -1, -1], "Value");
-
- a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 3), [1, 2, 3, -1, -1, -1],
- "Positive start");
- a.deep(t.call([1, 2, 3, 4, 5, 6], -1, -3), [1, 2, 3, -1, -1, -1],
- "Negative start");
- a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 9), [1, 2, 3, 4, 5, 6],
- "Large start");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/implement.js
deleted file mode 100644
index 6d6b87cc30a651..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/filter/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/shim.js
deleted file mode 100644
index e8b5c39849097f..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/shim.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-var SubArray = require('../../../../array/_sub-array-dummy-safe');
-
-module.exports = function (t, a) {
- var arr, x = {}, subArr, result;
-
- arr = ['foo', undefined, 0, '2d', false, x, null];
-
- a.deep(t.call(arr, Boolean), ['foo', '2d', x], "Plain array");
-
- subArr = new SubArray('foo', undefined, 0, '2d', false, x, null);
-
- result = t.call(subArr, Boolean);
- a(result instanceof SubArray, true, "Instance of subclass");
- a.deep(result, ['foo', '2d', x], "Result of subclass");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/implement.js
deleted file mode 100644
index 8d85e618ccd6bc..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/find-index/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/shim.js
deleted file mode 100644
index b5fee463811d49..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/shim.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- var count = 0, o = {}, self = Object(this);
- a(t.call(self, function (value, i, scope) {
- a(value, this[i], "Value");
- a(i, count++, "Index");
- a(scope, this, "Scope");
- }, self), -1, "Falsy result");
- a(count, 3);
-
- count = -1;
- a(t.call(this, function () {
- return ++count ? o : null;
- }, this), 1, "Truthy result");
- a(count, 1);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/implement.js
deleted file mode 100644
index 29fac41e013353..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/find/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/shim.js
deleted file mode 100644
index ad2e645067db5d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/find/shim.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- var count = 0, o = {}, self = Object(this);
- a(t.call(self, function (value, i, scope) {
- a(value, this[i], "Value");
- a(i, count++, "Index");
- a(scope, this, "Scope");
- }, self), undefined, "Falsy result");
- a(count, 3);
-
- count = -1;
- a(t.call(this, function () {
- return ++count ? o : null;
- }, this), this[1], "Truthy result");
- a(count, 1);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/first-index.js b/tools/eslint/node_modules/es5-ext/test/array/#/first-index.js
deleted file mode 100644
index 4aebad64b44e51..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/first-index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a(t.call([]), null, "Empty");
- a(t.call([null]), 0, "One value");
- a(t.call([1, 2, 3]), 0, "Many values");
- a(t.call(new Array(1000)), null, "Sparse empty");
- x = [];
- x[883] = undefined;
- x[890] = null;
- a(t.call(x), 883, "Manual sparse, distant value");
- x = new Array(1000);
- x[657] = undefined;
- x[700] = null;
- a(t.call(x), 657, "Sparse, distant value");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/first.js b/tools/eslint/node_modules/es5-ext/test/array/#/first.js
deleted file mode 100644
index 87fde0357ef1b0..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/first.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- a(t.call(this), this[0]);
-};
-exports[''] = function (t, a) {
- var x;
- a(t.call([]), undefined, "Empty");
- a(t.call(new Array(234), undefined, "Sparse empty"));
- x = new Array(2342);
- x[434] = {};
- a(t.call(x), x[434], "Sparse");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/flatten.js b/tools/eslint/node_modules/es5-ext/test/array/#/flatten.js
deleted file mode 100644
index 65f1214b04da93..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/flatten.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var o = [1, 2, [3, 4, [5, 6], 7, 8], 9, 10];
-
-module.exports = {
- __generic: function (t, a) {
- a(t.call(this).length, 3);
- },
- "Nested Arrays": function (t, a) {
- a(t.call(o).length, 10);
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/for-each-right.js b/tools/eslint/node_modules/es5-ext/test/array/#/for-each-right.js
deleted file mode 100644
index 2d24569d94d86d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/for-each-right.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- var count = 0, first, last, x, icount = this.length;
- t.call(this, function (item, index, col) {
- ++count;
- if (!first) {
- first = item;
- }
- last = item;
- x = col;
- a(index, --icount, "Index");
- });
- a(count, this.length, "Iterated");
- a(first, this[this.length - 1], "First is last");
- a(last, this[0], "Last is first");
- a.deep(x, Object(this), "Collection as third argument"); //jslint: skip
- },
- "": function (t, a) {
- var x = {}, y, count;
- t.call([1], function () { y = this; }, x);
- a(y, x, "Scope");
- y = 0;
- t.call([3, 4, 4], function (a, i) { y += i; });
- a(y, 3, "Indexes");
-
- x = [1, 3];
- x[5] = 'x';
- y = 0;
- count = 0;
- t.call(x, function (a, i) { ++count; y += i; });
- a(y, 6, "Misssing Indexes");
- a(count, 3, "Misssing Indexes, count");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/group.js b/tools/eslint/node_modules/es5-ext/test/array/#/group.js
deleted file mode 100644
index 32dc8c2dbb68bf..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/group.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- var count = 0, self;
-
- self = Object(this);
- a.deep(t.call(self, function (v, i, scope) {
- a(v, this[i], "Value");
- a(i, count++, "Index");
- a(scope, this, "Scope");
- return i;
- }, self), { 0: [this[0]], 1: [this[1]], 2: [this[2]] });
- },
- "": function (t, a) {
- var r;
- r = t.call([2, 3, 3, 4, 5, 6, 7, 7, 23, 45, 34, 56],
- function (v) {
- return v % 2 ? 'odd' : 'even';
- });
- a.deep(r.odd, [3, 3, 5, 7, 7, 23, 45]);
- a.deep(r.even, [2, 4, 6, 34, 56]);
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/indexes-of.js b/tools/eslint/node_modules/es5-ext/test/array/#/indexes-of.js
deleted file mode 100644
index 3364170f1ec4a9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/indexes-of.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- a.deep(t.call(this, this[1]), [1]);
- },
- "": function (t, a) {
- var x = {};
- a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result");
- a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results");
- a.deep(t.call([], x), [], "Empty array");
- a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/intersection.js b/tools/eslint/node_modules/es5-ext/test/array/#/intersection.js
deleted file mode 100644
index b72b2fb074fc46..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/intersection.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-var toArray = require('../../../array/to-array');
-
-module.exports = {
- __generic: function (t, a) {
- a.deep(t.call(this, this, this), toArray(this));
- },
- "": function (t, a) {
- var x = {}, y = {}, p, r;
- a.deep(t.call([], [2, 3, 4]), [], "Empty #1");
- a.deep(t.call([2, 3, 4], []), [], "Empty #2");
- a.deep(t.call([2, 3, x], [y, 5, 7]), [], "Different");
- p = t.call([3, 5, 'raz', {}, 'dwa', x], [1, 3, 'raz', 'dwa', 'trzy', x, {}],
- [3, 'raz', x, 65]);
- r = [3, 'raz', x];
- p.sort();
- r.sort();
- a.deep(p, r, "Same parts");
- a.deep(t.call(r, r), r, "Same");
- a.deep(t.call([1, 2, x, 4, 5, y, 7], [7, y, 5, 4, x, 2, 1]),
- [1, 2, x, 4, 5, y, 7], "Long reverse same");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/is-copy.js b/tools/eslint/node_modules/es5-ext/test/array/#/is-copy.js
deleted file mode 100644
index e7f80e7a8d4ebc..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/is-copy.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {};
- a(t.call([], []), true, "Empty");
- a(t.call([], {}), true, "Empty lists");
- a(t.call([1, x, 'raz'], [1, x, 'raz']), true, "Same");
- a(t.call([1, x, 'raz'], { 0: 1, 1: x, 2: 'raz', length: 3 }), true,
- "Same lists");
- a(t.call([1, x, 'raz'], [x, 1, 'raz']), false, "Diff order");
- a(t.call([1, x], [1, x, 'raz']), false, "Diff length #1");
- a(t.call([1, x, 'raz'], [1, x]), false, "Diff length #2");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/is-uniq.js b/tools/eslint/node_modules/es5-ext/test/array/#/is-uniq.js
deleted file mode 100644
index 7349ba337135a7..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/is-uniq.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {};
- a(t.call([]), true, "Empty");
- a(t.call({}), true, "Empty lists");
- a(t.call([1, x, 'raz']), true, "Uniq");
- a(t.call([1, x, 1, 'raz']), false, "Not Uniq: primitive");
- a(t.call([1, x, '1', 'raz']), true, "Uniq: primitive");
- a(t.call([1, x, 1, {}, 'raz']), false, "Not Uniq: Obj");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/implement.js
deleted file mode 100644
index b0c1aa078f190e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/keys/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/shim.js
deleted file mode 100644
index a43c04cac103a6..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- var iterator = t.call(this);
- a.deep(iterator.next(), { value: 0, done: false });
- a.deep(iterator.next(), { value: 1, done: false });
- a.deep(iterator.next(), { value: 2, done: false });
- a.deep(iterator.next(), { value: undefined, done: true });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/last-index.js b/tools/eslint/node_modules/es5-ext/test/array/#/last-index.js
deleted file mode 100644
index a1cac1073f8862..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/last-index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a(t.call([]), null, "Empty");
- a(t.call([null]), 0, "One value");
- a(t.call([1, 2, 3]), 2, "Many values");
- a(t.call(new Array(1000)), null, "Sparse empty");
- x = [];
- x[883] = null;
- x[890] = undefined;
- a(t.call(x), 890, "Manual sparse, distant value");
- x = new Array(1000);
- x[657] = null;
- x[700] = undefined;
- a(t.call(x), 700, "Sparse, distant value");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/last.js b/tools/eslint/node_modules/es5-ext/test/array/#/last.js
deleted file mode 100644
index 8d051bc8d2f5df..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/last.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- a(t.call(this), this[this.length - 1]);
-};
-
-exports[''] = function (t, a) {
- var x;
- a(t.call([]), undefined, "Empty");
- a(t.call(new Array(234), undefined, "Sparse empty"));
- x = new Array(2342);
- x[434] = {};
- x[450] = {};
- a(t.call(x), x[450], "Sparse");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/implement.js
deleted file mode 100644
index cdcbc8df6206a5..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/map/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/map/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/map/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/map/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/shim.js
deleted file mode 100644
index bbfefe8e333dc8..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/map/shim.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var SubArray = require('../../../../array/_sub-array-dummy-safe');
-
-module.exports = function (t, a) {
- var arr, x = {}, subArr, result;
-
- arr = ['foo', undefined, 0, '2d', false, x, null];
-
- a.deep(t.call(arr, Boolean), [true, false, false, true, false, true, false],
- "Plain array");
-
- subArr = new SubArray('foo', undefined, 0, '2d', false, x, null);
-
- result = t.call(subArr, Boolean);
- a(result instanceof SubArray, true, "Instance of subclass");
- a.deep(result, [true, false, false, true, false, true, false],
- "Result of subclass");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/remove.js b/tools/eslint/node_modules/es5-ext/test/array/#/remove.js
deleted file mode 100644
index 3ebdca2d0183df..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/remove.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var y = {}, z = {}, x = [9, z, 5, y, 'foo'];
- t.call(x, y);
- a.deep(x, [9, z, 5, 'foo']);
- t.call(x, {});
- a.deep(x, [9, z, 5, 'foo'], "Not existing");
- t.call(x, 5);
- a.deep(x, [9, z, 'foo'], "Primitive");
- x = [9, z, 5, y, 'foo'];
- t.call(x, z, 5, 'foo');
- a.deep(x, [9, y], "More than one argument");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/separate.js b/tools/eslint/node_modules/es5-ext/test/array/#/separate.js
deleted file mode 100644
index 42918b59711e32..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/separate.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = [], y = {}, z = {};
- a.deep(t.call(x, y), [], "Empty");
- a.not(t.call(x), x, "Returns copy");
- a.deep(t.call([1], y), [1], "One");
- a.deep(t.call([1, 'raz'], y), [1, y, 'raz'], "One");
- a.deep(t.call([1, 'raz', x], y), [1, y, 'raz', y, x], "More");
- x = new Array(1000);
- x[23] = 2;
- x[3453] = 'raz';
- x[500] = z;
- a.deep(t.call(x, y), [2, y, z, y, 'raz'], "Sparse");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/implement.js
deleted file mode 100644
index 855ae2fa4df88e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/slice/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/shim.js
deleted file mode 100644
index f674f3470037f7..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/shim.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-var SubArray = require('../../../../array/_sub-array-dummy-safe');
-
-module.exports = function (t, a) {
- var arr, x = {}, subArr, result;
-
- arr = ['foo', undefined, 0, '2d', false, x, null];
-
- a.deep(t.call(arr, 2, 4), [0, '2d'], "Plain array: result");
-
- subArr = new SubArray('foo', undefined, 0, '2d', false, x, null);
-
- result = t.call(subArr, 2, 4);
- a(result instanceof SubArray, true, "Instance of subclass");
- a.deep(result, [0, '2d'], "Subclass: result");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/some-right.js b/tools/eslint/node_modules/es5-ext/test/array/#/some-right.js
deleted file mode 100644
index 900771a6f818a4..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/some-right.js
+++ /dev/null
@@ -1,43 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- var count = 0, first, last, x, icount = this.length;
- t.call(this, function (item, index, col) {
- ++count;
- if (!first) {
- first = item;
- }
- last = item;
- x = col;
- a(index, --icount, "Index");
- });
- a(count, this.length, "Iterated");
- a(first, this[this.length - 1], "First is last");
- a(last, this[0], "Last is first");
- a.deep(x, Object(this), "Collection as third argument"); //jslint: skip
- },
- "": function (t, a) {
- var x = {}, y, count;
- t.call([1], function () { y = this; }, x);
- a(y, x, "Scope");
- y = 0;
- t.call([3, 4, 4], function (a, i) { y += i; });
- a(y, 3, "Indexes");
-
- x = [1, 3];
- x[5] = 'x';
- y = 0;
- count = 0;
- a(t.call(x, function (a, i) { ++count; y += i; }), false, "Return");
- a(y, 6, "Misssing Indexes");
- a(count, 3, "Misssing Indexes, count");
-
- count = 0;
- a(t.call([-2, -3, -4, 2, -5], function (item) {
- ++count;
- return item > 0;
- }), true, "Return");
- a(count, 2, "Break after true is returned");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/implement.js
deleted file mode 100644
index 0d9f46188b528b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/splice/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/shim.js
deleted file mode 100644
index 2c751e672400e6..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/shim.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var SubArray = require('../../../../array/_sub-array-dummy-safe');
-
-module.exports = function (t, a) {
- var arr, x = {}, subArr, result;
-
- arr = ['foo', undefined, 0, '2d', false, x, null];
-
- a.deep(t.call(arr, 2, 2, 'bar'), [0, '2d'], "Plain array: result");
- a.deep(arr, ["foo", undefined, "bar", false, x, null], "Plain array: change");
-
- subArr = new SubArray('foo', undefined, 0, '2d', false, x, null);
-
- result = t.call(subArr, 2, 2, 'bar');
- a(result instanceof SubArray, true, "Instance of subclass");
- a.deep(result, [0, '2d'], "Subclass: result");
- a.deep(subArr, ["foo", undefined, "bar", false, x, null], "Subclass: change");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/uniq.js b/tools/eslint/node_modules/es5-ext/test/array/#/uniq.js
deleted file mode 100644
index 2f7e6c4ed1feb5..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/uniq.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = {
- __generic: function (t, a) {
- a(t.call(this).length, 3);
- },
- "": function (t, a) {
- var o, x = {}, y = {}, z = {}, w;
- o = [1, 2, x, 3, 1, 'raz', '1', y, x, 'trzy', z, 'raz'];
-
- a.not(w = t.call(o), o, "Returns different object");
- a.deep(w, [1, 2, x, 3, 'raz', '1', y, 'trzy', z], "Result");
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/implement.js
deleted file mode 100644
index 9f40138c254b30..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/values/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../array/#/values/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/values/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/values/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/shim.js
deleted file mode 100644
index e590d8f28e7c0e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/#/values/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-exports.__generic = function (t, a) {
- var iterator = t.call(this);
- a.deep(iterator.next(), { value: '1', done: false });
- a.deep(iterator.next(), { value: '2', done: false });
- a.deep(iterator.next(), { value: '3', done: false });
- a.deep(iterator.next(), { value: undefined, done: true });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/__scopes.js b/tools/eslint/node_modules/es5-ext/test/array/__scopes.js
deleted file mode 100644
index 6bfdcbc9494a87..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/__scopes.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-exports.Array = ['1', '2', '3'];
-
-exports.Arguments = (function () {
- return arguments;
-}('1', '2', '3'));
-
-exports.String = "123";
-
-exports.Object = { 0: '1', 1: '2', 2: '3', 3: '4', length: 3 };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/_is-extensible.js b/tools/eslint/node_modules/es5-ext/test/array/_is-extensible.js
deleted file mode 100644
index d387126fe111ed..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/_is-extensible.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(typeof t, 'boolean');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js b/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js
deleted file mode 100644
index 29d8699d461a85..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var isArray = Array.isArray;
-
-module.exports = function (t, a) {
- t((t === null) || isArray(t.prototype), true);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy.js b/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy.js
deleted file mode 100644
index 29d8699d461a85..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var isArray = Array.isArray;
-
-module.exports = function (t, a) {
- t((t === null) || isArray(t.prototype), true);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/implement.js b/tools/eslint/node_modules/es5-ext/test/array/from/implement.js
deleted file mode 100644
index e0db846f99a0d9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/from/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../array/from/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/index.js b/tools/eslint/node_modules/es5-ext/test/array/from/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/from/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/from/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/from/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/shim.js b/tools/eslint/node_modules/es5-ext/test/array/from/shim.js
deleted file mode 100644
index 310302ac486645..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/from/shim.js
+++ /dev/null
@@ -1,60 +0,0 @@
-// Some tests taken from: https://github.com/mathiasbynens/Array.from/blob/master/tests/tests.js
-
-'use strict';
-
-module.exports = function (t, a) {
- var o = [1, 2, 3], MyType;
- a.not(t(o), o, "Array");
- a.deep(t(o), o, "Array: same content");
- a.deep(t('12r3v'), ['1', '2', 'r', '3', 'v'], "String");
- a.deep(t((function () { return arguments; }(3, o, 'raz'))),
- [3, o, 'raz'], "Arguments");
- a.deep(t((function () { return arguments; }(3))), [3],
- "Arguments with one numeric value");
-
- a.deep(t({ 0: 'raz', 1: 'dwa', length: 2 }), ['raz', 'dwa'], "Other");
-
- a.deep(t(o, function (val) { return (val + 2) * 10; }, 10), [30, 40, 50],
- "Mapping");
-
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.deep(t(3), [], "Primitive");
-
- a(t.length, 1, "Length");
- a.deep(t({ length: 0 }), [], "No values Array-like");
- a.deep(t({ length: -1 }), [], "Invalid length Array-like");
- a.deep(t({ length: -Infinity }), [], "Invalid length Array-like #2");
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a.deep(t(false), [], "Boolean");
- a.deep(t(-Infinity), [], "Inifity");
- a.deep(t(-0), [], "-0");
- a.deep(t(+0), [], "+0");
- a.deep(t(1), [], "1");
- a.deep(t(+Infinity), [], "+Infinity");
- a.deep(t({}), [], "Plain object");
- a.deep(t({ length: 1 }), [undefined], "Sparse array-like");
- a.deep(t({ '0': 'a', '1': 'b', length: 2 }, function (x) { return x + x; }), ['aa', 'bb'],
- "Map");
- a.deep(t({ '0': 'a', '1': 'b', length: 2 }, function (x) { return String(this); }, undefined),
- ['undefined', 'undefined'], "Map context");
- a.deep(t({ '0': 'a', '1': 'b', length: 2 }, function (x) { return String(this); }, 'x'),
- ['x', 'x'], "Map primitive context");
- a.throws(function () { t({}, 'foo', 'x'); }, TypeError, "Non callable for map");
-
- a.deep(t.call(null, { length: 1, '0': 'a' }), ['a'], "Null context");
-
- a(t({ __proto__: { '0': 'abc', length: 1 } })[0], 'abc', "Values on prototype");
-
- a.throws(function () { t.call(function () { return Object.freeze({}); }, {}); },
- TypeError, "Contructor producing freezed objects");
-
- // Ensure no setters are called for the indexes
- // Ensure no setters are called for the indexes
- MyType = function () {};
- Object.defineProperty(MyType.prototype, '0', {
- set: function (x) { throw new Error('Setter called: ' + x); }
- });
- a.deep(t.call(MyType, { '0': 'abc', length: 1 }), { '0': 'abc', length: 1 },
- "Defined not set");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/generate.js b/tools/eslint/node_modules/es5-ext/test/array/generate.js
deleted file mode 100644
index d72e056887838b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/generate.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {}, y = {};
- a.deep(t(3), [undefined, undefined, undefined], "Just length");
- a.deep(t(0, 'x'), [], "No repeat");
- a.deep(t(1, x, y), [x], "Arguments length larger than repeat number");
- a.deep(t(3, x), [x, x, x], "Single argument");
- a.deep(t(5, x, y), [x, y, x, y, x], "Many arguments");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/is-plain-array.js b/tools/eslint/node_modules/es5-ext/test/array/is-plain-array.js
deleted file mode 100644
index 871a08aec21ff9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/is-plain-array.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var SubArray = require('../../array/_sub-array-dummy-safe');
-
-module.exports = function (t, a) {
- var arr = [1, 2, 3];
- a(t(arr), true, "Array");
- a(t(null), false, "Null");
- a(t(), false, "Undefined");
- a(t('234'), false, "String");
- a(t(23), false, "Number");
- a(t({}), false, "Plain object");
- a(t({ length: 1, 0: 'raz' }), false, "Array-like");
- a(t(Object.create(arr)), false, "Array extension");
- if (!SubArray) return;
- a(t(new SubArray(23)), false, "Subclass instance");
- a(t(Array.prototype), false, "Array.prototype");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/implement.js b/tools/eslint/node_modules/es5-ext/test/array/of/implement.js
deleted file mode 100644
index 30d53be2d7abbe..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/of/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../array/of/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/index.js b/tools/eslint/node_modules/es5-ext/test/array/of/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/of/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/of/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/of/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/shim.js b/tools/eslint/node_modules/es5-ext/test/array/of/shim.js
deleted file mode 100644
index e6974420c1c274..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/of/shim.js
+++ /dev/null
@@ -1,68 +0,0 @@
-// Most tests taken from https://github.com/mathiasbynens/Array.of/blob/master/tests/tests.js
-// Thanks @mathiasbynens
-
-'use strict';
-
-var defineProperty = Object.defineProperty;
-
-module.exports = function (t, a) {
- var x = {}, testObject, MyType;
-
- a.deep(t(), [], "No arguments");
- a.deep(t(3), [3], "One numeric argument");
- a.deep(t(3, 'raz', null, x, undefined), [3, 'raz', null, x, undefined],
- "Many arguments");
-
- a(t.length, 0, "Length");
-
- a.deep(t('abc'), ['abc'], "String");
- a.deep(t(undefined), [undefined], "Undefined");
- a.deep(t(null), [null], "Null");
- a.deep(t(false), [false], "Boolean");
- a.deep(t(-Infinity), [-Infinity], "Infinity");
- a.deep(t(-0), [-0], "-0");
- a.deep(t(+0), [+0], "+0");
- a.deep(t(1), [1], "1");
- a.deep(t(1, 2, 3), [1, 2, 3], "Numeric args");
- a.deep(t(+Infinity), [+Infinity], "+Infinity");
- a.deep(t({ '0': 'a', '1': 'b', '2': 'c', length: 3 }),
- [{ '0': 'a', '1': 'b', '2': 'c', length: 3 }], "Array like");
- a.deep(t(undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity),
- [undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity], "Falsy arguments");
-
- a.h1("Null context");
- a.deep(t.call(null, 'abc'), ['abc'], "String");
- a.deep(t.call(null, undefined), [undefined], "Undefined");
- a.deep(t.call(null, null), [null], "Null");
- a.deep(t.call(null, false), [false], "Boolean");
- a.deep(t.call(null, -Infinity), [-Infinity], "-Infinity");
- a.deep(t.call(null, -0), [-0], "-0");
- a.deep(t.call(null, +0), [+0], "+0");
- a.deep(t.call(null, 1), [1], "1");
- a.deep(t.call(null, 1, 2, 3), [1, 2, 3], "Numeric");
- a.deep(t.call(null, +Infinity), [+Infinity], "+Infinity");
- a.deep(t.call(null, { '0': 'a', '1': 'b', '2': 'c', length: 3 }),
- [{ '0': 'a', '1': 'b', '2': 'c', length: 3 }], "Array-like");
- a.deep(t.call(null, undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity),
- [undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity], "Falsy");
-
- a.h1("Other constructor context");
- a.deep(t.call(Object, 1, 2, 3), { '0': 1, '1': 2, '2': 3, length: 3 }, "Many arguments");
-
- testObject = Object(3);
- testObject[0] = 1;
- testObject[1] = 2;
- testObject[2] = 3;
- testObject.length = 3;
- a.deep(t.call(Object, 1, 2, 3), testObject, "Test object");
- a(t.call(Object).length, 0, "No arguments");
- a.throws(function () { t.call(function () { return Object.freeze({}); }); }, TypeError,
- "Frozen instance");
-
- // Ensure no setters are called for the indexes
- MyType = function () {};
- defineProperty(MyType.prototype, '0', {
- set: function (x) { throw new Error('Setter called: ' + x); }
- });
- a.deep(t.call(MyType, 'abc'), { '0': 'abc', length: 1 }, "Define, not set");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/to-array.js b/tools/eslint/node_modules/es5-ext/test/array/to-array.js
deleted file mode 100644
index 4985b5eaee9769..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/to-array.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = [1, 2, 3];
- a(t(o), o, "Array");
- a.deep(t('12r3v'), ['1', '2', 'r', '3', 'v'], "String");
- a.deep(t((function () { return arguments; }(3, o, 'raz'))),
- [3, o, 'raz'], "Arguments");
- a.deep(t((function () { return arguments; }(3))), [3],
- "Arguments with one numeric value");
-
- a.deep(t({ 0: 'raz', 1: 'dwa', length: 2 }), ['raz', 'dwa'], "Other");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/array/valid-array.js b/tools/eslint/node_modules/es5-ext/test/array/valid-array.js
deleted file mode 100644
index 3732192d1bbd1f..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/array/valid-array.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a.throws(function () { t(0); }, TypeError, "Number");
- a.throws(function () { t(true); }, TypeError, "Boolean");
- a.throws(function () { t('raz'); }, TypeError, "String");
- a.throws(function () { t(function () {}); }, TypeError, "Function");
- a.throws(function () { t({}); }, TypeError, "Object");
- a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
- a(t(x = []), x, "Array");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/boolean/is-boolean.js b/tools/eslint/node_modules/es5-ext/test/boolean/is-boolean.js
deleted file mode 100644
index 4e6b3cb73e4f3b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/boolean/is-boolean.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t('arar'), false, "String");
- a(t(12), false, "Number");
- a(t(false), true, "Boolean");
- a(t(new Boolean(false)), true, "Boolean object");
- a(t(new Date()), false, "Date");
- a(t(new String('raz')), false, "String object");
- a(t({}), false, "Plain object");
- a(t(/a/), false, "Regular expression");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/copy.js b/tools/eslint/node_modules/es5-ext/test/date/#/copy.js
deleted file mode 100644
index 767c5e16a4d053..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/#/copy.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = new Date(), o2;
-
- o2 = t.call(o);
- a.not(o, o2, "Different objects");
- a.ok(o2 instanceof Date, "Instance of Date");
- a(o.getTime(), o2.getTime(), "Same time");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/days-in-month.js b/tools/eslint/node_modules/es5-ext/test/date/#/days-in-month.js
deleted file mode 100644
index 9ddba55f74ac40..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/#/days-in-month.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(new Date(2001, 0, 1)), 31, "January");
- a(t.call(new Date(2001, 1, 1)), 28, "February");
- a(t.call(new Date(2000, 1, 1)), 29, "February (leap)");
- a(t.call(new Date(2001, 2, 1)), 31, "March");
- a(t.call(new Date(2001, 3, 1)), 30, "April");
- a(t.call(new Date(2001, 4, 1)), 31, "May");
- a(t.call(new Date(2001, 5, 1)), 30, "June");
- a(t.call(new Date(2001, 6, 1)), 31, "July");
- a(t.call(new Date(2001, 7, 1)), 31, "August");
- a(t.call(new Date(2001, 8, 1)), 30, "September");
- a(t.call(new Date(2001, 9, 1)), 31, "October");
- a(t.call(new Date(2001, 10, 1)), 30, "November");
- a(t.call(new Date(2001, 11, 1)), 31, "December");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/floor-day.js b/tools/eslint/node_modules/es5-ext/test/date/#/floor-day.js
deleted file mode 100644
index d4f4a9087c059e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/#/floor-day.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(new Date(2000, 0, 1, 13, 32, 34, 234)).valueOf(),
- new Date(2000, 0, 1).valueOf());
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/floor-month.js b/tools/eslint/node_modules/es5-ext/test/date/#/floor-month.js
deleted file mode 100644
index b4a81bef6d0850..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/#/floor-month.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(new Date(2000, 0, 15, 13, 32, 34, 234)).valueOf(),
- new Date(2000, 0, 1).valueOf());
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/floor-year.js b/tools/eslint/node_modules/es5-ext/test/date/#/floor-year.js
deleted file mode 100644
index aae117e769b52c..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/#/floor-year.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(new Date(2000, 5, 13, 13, 32, 34, 234)).valueOf(),
- new Date(2000, 0, 1).valueOf());
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/format.js b/tools/eslint/node_modules/es5-ext/test/date/#/format.js
deleted file mode 100644
index e68e4bf782ef30..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/#/format.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var dt = new Date(2011, 2, 3, 3, 5, 5, 32);
- a(t.call(dt, ' %Y.%y.%m.%d.%H.%M.%S.%L '), ' 2011.11.03.03.03.05.05.032 ');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/is-date.js b/tools/eslint/node_modules/es5-ext/test/date/is-date.js
deleted file mode 100644
index 109093dfbe32f8..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/is-date.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t('arar'), false, "String");
- a(t(12), false, "Number");
- a(t(true), false, "Boolean");
- a(t(new Date()), true, "Date");
- a(t(new String('raz')), false, "String object");
- a(t({}), false, "Plain object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/date/valid-date.js b/tools/eslint/node_modules/es5-ext/test/date/valid-date.js
deleted file mode 100644
index 98787e40781687..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/date/valid-date.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var d = new Date();
- a(t(d), d, "Date");
- a.throws(function () {
- t({});
- }, "Object");
- a.throws(function () {
- t({ valueOf: function () { return 20; } });
- }, "Number object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/error/#/throw.js b/tools/eslint/node_modules/es5-ext/test/error/#/throw.js
deleted file mode 100644
index 1213cfc3b12791..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/error/#/throw.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var e = new Error();
- try {
- t.call(e);
- } catch (e2) {
- a(e2, e);
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/error/custom.js b/tools/eslint/node_modules/es5-ext/test/error/custom.js
deleted file mode 100644
index d4ff500c9b30f2..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/error/custom.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var T = t, err = new T('My Error', 'MY_ERROR', { errno: 123 });
- a(err instanceof Error, true, "Instance of error");
- a(err.constructor, Error, "Constructor");
- a(err.name, 'Error', "Name");
- a(String(err), 'Error: My Error', "String representation");
- a(err.code, 'MY_ERROR', "Code");
- a(err.errno, 123, "Errno");
- a(typeof err.stack, 'string', "Stack trace");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/error/is-error.js b/tools/eslint/node_modules/es5-ext/test/error/is-error.js
deleted file mode 100644
index f8b5e2000eb769..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/error/is-error.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(), false, "Undefined");
- a(t(1), false, "Primitive");
- a(t({}), false, "Objectt");
- a(t({ toString: function () { return '[object Error]'; } }), false,
- "Fake error");
- a(t(new Error()), true, "Error");
- a(t(new EvalError()), true, "EvalError");
- a(t(new RangeError()), true, "RangeError");
- a(t(new ReferenceError()), true, "ReferenceError");
- a(t(new SyntaxError()), true, "SyntaxError");
- a(t(new TypeError()), true, "TypeError");
- a(t(new URIError()), true, "URIError");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/error/valid-error.js b/tools/eslint/node_modules/es5-ext/test/error/valid-error.js
deleted file mode 100644
index e04cdb33b7cdf4..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/error/valid-error.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var e = new Error();
- a(t(e), e, "Error");
- a.throws(function () {
- t({});
- }, "Other");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/compose.js b/tools/eslint/node_modules/es5-ext/test/function/#/compose.js
deleted file mode 100644
index 83de5e844ac87d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/compose.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var f = function (a, b) { return ['a', arguments.length, a, b]; }
- , g = function (a) { return ['b', arguments.length].concat(a); }
- , h = function (a) { return ['c', arguments.length].concat(a); };
-
-module.exports = function (t, a) {
- a.deep(t.call(h, g, f)(1, 2), ['c', 1, 'b', 1, 'a', 2, 1, 2]);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/copy.js b/tools/eslint/node_modules/es5-ext/test/function/#/copy.js
deleted file mode 100644
index 7a22e2f249276e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/copy.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var foo = 'raz', bar = 'dwa'
- , fn = function marko(a, b) { return this + a + b + foo + bar; }
- , result, o = {};
-
- fn.prototype = o;
-
- fn.foo = 'raz';
-
- result = t.call(fn);
-
- a(result.length, fn.length, "Length");
- a(result.name, fn.name, "Length");
- a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Body");
- a(result.prototype, fn.prototype, "Prototype");
- a(result.foo, fn.foo, "Custom property");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/curry.js b/tools/eslint/node_modules/es5-ext/test/function/#/curry.js
deleted file mode 100644
index 18fb0389e79b26..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/curry.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var toArray = require('../../../array/to-array')
-
- , f = function () { return toArray(arguments); };
-
-module.exports = function (t, a) {
- var x, y = {}, z;
- a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments");
- x = t.call(f, 5, {});
- a(x.length, 5, "Length #1");
- z = x(1, 2);
- a(z.length, 3, "Length #2");
- z = z(3, 4);
- a(z.length, 1, "Length #1");
- a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments");
- a.deep(x(8, 3)(y, 45)('raz', 6), [8, 3, y, 45, 'raz'], "Many arguments #2");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/lock.js b/tools/eslint/node_modules/es5-ext/test/function/#/lock.js
deleted file mode 100644
index 44a12d7b56c748..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/lock.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(function () {
- return arguments.length;
- })(1, 2, 3), 0);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/not.js b/tools/eslint/node_modules/es5-ext/test/function/#/not.js
deleted file mode 100644
index c0f5e9d4b989a5..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/not.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var identity = require('../../../function/identity')
- , noop = require('../../../function/noop');
-
-module.exports = function (t, a) {
- a(t.call(identity)(''), true, "Falsy");
- a(t.call(noop)(), true, "Undefined");
- a(t.call(identity)({}), false, "Any object");
- a(t.call(identity)(true), false, "True");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/partial.js b/tools/eslint/node_modules/es5-ext/test/function/#/partial.js
deleted file mode 100644
index bd00ce752f5202..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/partial.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var toArray = require('../../../array/to-array')
-
- , f = function () { return toArray(arguments); };
-
-module.exports = function (t, a) {
- a.deep(t.call(f, 1)(2, 3), [1, 2, 3]);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/spread.js b/tools/eslint/node_modules/es5-ext/test/function/#/spread.js
deleted file mode 100644
index b82dfecfe95045..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/spread.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-var f = function (a, b) { return this[a] + this[b]; }
- , o = { a: 3, b: 4 };
-
-module.exports = function (t, a) {
- a(t.call(f).call(o, ['a', 'b']), 7);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js b/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js
deleted file mode 100644
index 4c54d30354b405..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t.call(function (a, b) { return this[a] + this[b]; }),
- { args: 'a, b', body: ' return this[a] + this[b]; ' });
- a.deep(t.call(function () {}),
- { args: '', body: '' });
- a.deep(t.call(function (raz) {}),
- { args: 'raz', body: '' });
- a.deep(t.call(function () { Object(); }),
- { args: '', body: ' Object(); ' });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/_define-length.js b/tools/eslint/node_modules/es5-ext/test/function/_define-length.js
deleted file mode 100644
index 8f037e857eaa09..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/_define-length.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var foo = 'raz', bar = 'dwa'
- , fn = function (a, b) { return this + a + b + foo + bar; }
- , result;
-
- result = t(fn, 3);
- a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Content");
- a(result.length, 3, "Length");
- a(result.prototype, fn.prototype, "Prototype");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/constant.js b/tools/eslint/node_modules/es5-ext/test/function/constant.js
deleted file mode 100644
index fda52aa43710c1..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/constant.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var o = {};
-
-module.exports = function (t, a) {
- a(t(o)(), o);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/identity.js b/tools/eslint/node_modules/es5-ext/test/function/identity.js
deleted file mode 100644
index 8013e2e5af1288..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/identity.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var o = {};
-
-module.exports = function (t, a) {
- a(t(o), o);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/invoke.js b/tools/eslint/node_modules/es5-ext/test/function/invoke.js
deleted file mode 100644
index fcce4aaaaafb87..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/invoke.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var constant = require('../../function/constant')
-
- , o = { b: constant('c') };
-
-module.exports = function (t, a) {
- a(t('b')(o), 'c');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js b/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js
deleted file mode 100644
index f8de8812a5035d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var args, dummy;
- args = (function () { return arguments; }());
- dummy = { '0': 1, '1': 2 };
- Object.defineProperty(dummy, 'length', { value: 2 });
- a(t(args), true, "Arguments");
- a(t(dummy), false, "Dummy");
- a(t([]), false, "Array");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/is-function.js b/tools/eslint/node_modules/es5-ext/test/function/is-function.js
deleted file mode 100644
index 83acc42f9a6637..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/is-function.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-var o = { call: Function.prototype.call, apply: Function.prototype.apply };
-
-module.exports = function (t, a) {
- a(t(function () {}), true, "Function is function");
- a(t(o), false, "Plain object is not function");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/noop.js b/tools/eslint/node_modules/es5-ext/test/function/noop.js
deleted file mode 100644
index 4305c6fcfd51cd..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/noop.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(typeof t(1, 2, 3), 'undefined');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/pluck.js b/tools/eslint/node_modules/es5-ext/test/function/pluck.js
deleted file mode 100644
index 5bf9583ad52b3e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/pluck.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var o = { foo: 'bar' };
-
-module.exports = function (t, a) {
- a(t('foo')(o), o.foo);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/valid-function.js b/tools/eslint/node_modules/es5-ext/test/function/valid-function.js
deleted file mode 100644
index 59b16233b37978..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/valid-function.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var f = function () {};
- a(t(f), f, "Function");
- f = new Function();
- a(t(f), f, "Function");
- a.throws(function () {
- t({});
- }, "Object");
- a.throws(function () {
- t(/re/);
- }, "RegExp");
- a.throws(function () {
- t({ call: function () { return 20; } });
- }, "Plain object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/global.js b/tools/eslint/node_modules/es5-ext/test/global.js
deleted file mode 100644
index 1f452aefb09827..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/global.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.ok(t && typeof t === 'object');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/for-each.js b/tools/eslint/node_modules/es5-ext/test/iterable/for-each.js
deleted file mode 100644
index 0fed8ad898990e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/iterable/for-each.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-var ArrayIterator = require('es6-iterator/array')
-
- , slice = Array.prototype.slice;
-
-module.exports = function (t, a) {
- var i = 0, x = ['raz', 'dwa', 'trzy'], y = {};
- t(x, function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "Array " + i + "#");
- a(this, y, "Array: context: " + (i++) + "#");
- }, y);
- i = 0;
- t((function () { return arguments; }('raz', 'dwa', 'trzy')), function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "Arguments" + i + "#");
- a(this, y, "Arguments: context: " + (i++) + "#");
- }, y);
- i = 0;
- t({ 0: 'raz', 1: 'dwa', 2: 'trzy', length: 3 }, function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "Array-like" + i + "#");
- a(this, y, "Array-like: context: " + (i++) + "#");
- }, y);
- i = 0;
- t(x = 'foo', function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
- a(this, y, "Regular String: context: " + (i++) + "#");
- }, y);
- i = 0;
- x = ['r', '💩', 'z'];
- t('r💩z', function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
- a(this, y, "Unicode String: context: " + (i++) + "#");
- }, y);
- i = 0;
- t(new ArrayIterator(x), function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "Iterator " + i + "#");
- a(this, y, "Iterator: context: " + (i++) + "#");
- }, y);
-
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/is.js b/tools/eslint/node_modules/es5-ext/test/iterable/is.js
deleted file mode 100644
index c0d2a43ebfe17c..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/iterable/is.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator;
-
-module.exports = function (t, a) {
- var x;
- a(t([]), true, "Array");
- a(t(""), true, "String");
- a(t((function () { return arguments; }())), true, "Arguments");
- a(t({ length: 0 }), true, "List object");
- a(t(function () {}), false, "Function");
- a(t({}), false, "Plain object");
- a(t(/raz/), false, "Regexp");
- a(t(), false, "No argument");
- a(t(null), false, "Null");
- a(t(undefined), false, "Undefined");
- x = {};
- x[iteratorSymbol] = function () {};
- a(t(x), true, "Iterable");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/validate-object.js b/tools/eslint/node_modules/es5-ext/test/iterable/validate-object.js
deleted file mode 100644
index da12529bc0368c..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/iterable/validate-object.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator;
-
-module.exports = function (t, a) {
- var x;
- a.throws(function () { t(0); }, TypeError, "0");
- a.throws(function () { t(false); }, TypeError, "false");
- a.throws(function () { t(''); }, TypeError, "String");
- a.throws(function () { t({}); }, TypeError, "Plain Object");
- a.throws(function () { t(function () {}); }, TypeError, "Function");
- a(t(x = new String('raz')), x, "String object"); //jslint: ignore
-
- a(t(x = { length: 1 }), x, "Array like");
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "null");
- x = {};
- x[iteratorSymbol] = function () {};
- a(t(x), x, "Iterable");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/validate.js b/tools/eslint/node_modules/es5-ext/test/iterable/validate.js
deleted file mode 100644
index bcc2ad3d0aa1c9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/iterable/validate.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator;
-
-module.exports = function (t, a) {
- var x;
- a.throws(function () { t(0); }, TypeError, "0");
- a.throws(function () { t(false); }, TypeError, "false");
- a(t(''), '', "''");
- a.throws(function () { t({}); }, TypeError, "Plain Object");
- a.throws(function () { t(function () {}); }, TypeError, "Function");
- a(t(x = new String('raz')), x, "String object"); //jslint: ignore
-
- a(t(x = { length: 1 }), x, "Array like");
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "null");
- x = {};
- x[iteratorSymbol] = function () {};
- a(t(x), x, "Iterable");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/_pack-ieee754.js b/tools/eslint/node_modules/es5-ext/test/math/_pack-ieee754.js
deleted file mode 100644
index 9041431d7769c9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/_pack-ieee754.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t(1.337, 8, 23), [63, 171, 34, 209]);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/_unpack-ieee754.js b/tools/eslint/node_modules/es5-ext/test/math/_unpack-ieee754.js
deleted file mode 100644
index ca30b8208dbb95..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/_unpack-ieee754.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t([63, 171, 34, 209], 8, 23), 1.3370000123977661);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/implement.js
deleted file mode 100644
index 01fb6d08224e2a..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/acosh/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/acosh/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/index.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/acosh/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/acosh/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/shim.js
deleted file mode 100644
index 3d710c7930d454..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/acosh/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(-1), NaN, "Negative");
- a(t(0), NaN, "Zero");
- a(t(0.5), NaN, "Below 1");
- a(t(1), 0, "1");
- a(t(2), 1.3169578969248166, "Other");
- a(t(Infinity), Infinity, "Infinity");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/implement.js
deleted file mode 100644
index d1fceceee13449..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/asinh/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/asinh/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/index.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/asinh/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/asinh/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/shim.js
deleted file mode 100644
index d9fbe49edc2d99..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/asinh/shim.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 0, "Zero");
- a(t(Infinity), Infinity, "Infinity");
- a(t(-Infinity), -Infinity, "-Infinity");
- a(t(-2), -1.4436354751788103, "Negative");
- a(t(2), 1.4436354751788103, "Positive");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/implement.js
deleted file mode 100644
index cba8fad83e4082..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/atanh/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/atanh/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/index.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/atanh/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/atanh/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/shim.js
deleted file mode 100644
index a857b496686048..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/atanh/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(-2), NaN, "Less than -1");
- a(t(2), NaN, "Greater than 1");
- a(t(-1), -Infinity, "-1");
- a(t(1), Infinity, "1");
- a(t(0), 0, "Zero");
- a(t(0.5), 0.5493061443340549, "Ohter");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/implement.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/implement.js
deleted file mode 100644
index 374d4b383f5c5f..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/cbrt/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/index.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/shim.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/shim.js
deleted file mode 100644
index 43ab68b848f61a..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 0, "Zero");
- a(t(Infinity), Infinity, "Infinity");
- a(t(-Infinity), -Infinity, "-Infinity");
- a(t(-1), -1, "-1");
- a(t(1), 1, "1");
- a(t(2), 1.2599210498948732, "Ohter");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/implement.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/implement.js
deleted file mode 100644
index 44f8815526b7ec..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/clz32/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/clz32/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/index.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/clz32/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/clz32/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/shim.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/shim.js
deleted file mode 100644
index a769b39b85b644..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/clz32/shim.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(1), 31, "1");
- a(t(1000), 22, "1000");
- a(t(), 32, "No arguments");
- a(t(Infinity), 32, "Infinity");
- a(t(-Infinity), 32, "-Infinity");
- a(t("foo"), 32, "String");
- a(t(true), 31, "Boolean");
- a(t(3.5), 30, "Float");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/implement.js
deleted file mode 100644
index f3c712b1dfc977..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cosh/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/cosh/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/index.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cosh/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cosh/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/shim.js
deleted file mode 100644
index 419c12367dbcd2..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/cosh/shim.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 1, "Zero");
- a(t(Infinity), Infinity, "Infinity");
- a(t(-Infinity), Infinity, "-Infinity");
- a(t(1), 1.5430806348152437, "1");
- a(t(Number.MAX_VALUE), Infinity);
- a(t(-Number.MAX_VALUE), Infinity);
- a(t(Number.MIN_VALUE), 1);
- a(t(-Number.MIN_VALUE), 1);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/implement.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/implement.js
deleted file mode 100644
index c21296725dc07b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/expm1/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/expm1/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/index.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/expm1/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/expm1/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/shim.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/shim.js
deleted file mode 100644
index 15f0e796ce565b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/expm1/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 0, "Zero");
- a(t(Infinity), Infinity, "Infinity");
- a(t(-Infinity), -1, "-Infinity");
- a(t(1).toFixed(15), '1.718281828459045', "1");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/implement.js b/tools/eslint/node_modules/es5-ext/test/math/fround/implement.js
deleted file mode 100644
index c909af7c300b22..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/fround/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/fround/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/index.js b/tools/eslint/node_modules/es5-ext/test/math/fround/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/fround/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/fround/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/fround/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/shim.js b/tools/eslint/node_modules/es5-ext/test/math/fround/shim.js
deleted file mode 100644
index 4ef6d4ea9b199b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/fround/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 0, "Zero");
- a(t(Infinity), Infinity, "Infinity");
- a(t(-Infinity), -Infinity, "-Infinity");
- a(t(1.337), 1.3370000123977661, "1");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/implement.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/implement.js
deleted file mode 100644
index 99466464c122bc..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/hypot/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/hypot/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/index.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/hypot/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/hypot/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/shim.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/shim.js
deleted file mode 100644
index 91d950a5d32899..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/hypot/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(), 0, "No arguments");
- a(t(0, -0, 0), 0, "Zeros");
- a(t(4, NaN, Infinity), Infinity, "Infinity");
- a(t(4, NaN, -Infinity), Infinity, "Infinity");
- a(t(4, NaN, 34), NaN, "NaN");
- a(t(3, 4), 5, "#1");
- a(t(3, 4, 5), 7.0710678118654755, "#2");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/implement.js b/tools/eslint/node_modules/es5-ext/test/math/imul/implement.js
deleted file mode 100644
index 7b2a2a61653299..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/imul/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/imul/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/index.js b/tools/eslint/node_modules/es5-ext/test/math/imul/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/imul/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/imul/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/imul/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/shim.js b/tools/eslint/node_modules/es5-ext/test/math/imul/shim.js
deleted file mode 100644
index a2ca7fe78321ce..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/imul/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(), 0, "No arguments");
- a(t(0, 0), 0, "Zeros");
- a(t(2, 4), 8, "#1");
- a(t(-1, 8), -8, "#2");
- a(t(0xfffffffe, 5), -10, "#3");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/implement.js b/tools/eslint/node_modules/es5-ext/test/math/log10/implement.js
deleted file mode 100644
index 4b3b4a4569fb81..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log10/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/log10/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/index.js b/tools/eslint/node_modules/es5-ext/test/math/log10/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log10/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/log10/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log10/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/shim.js b/tools/eslint/node_modules/es5-ext/test/math/log10/shim.js
deleted file mode 100644
index 5fa0d5be3af861..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log10/shim.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(-0.5), NaN, "Less than 0");
- a(t(0), -Infinity, "0");
- a(t(1), 0, "1");
- a(t(Infinity), Infinity, "Infinity");
- a(t(2), 0.3010299956639812, "Other");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/implement.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/implement.js
deleted file mode 100644
index 5d269bd3eaf09b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log1p/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/log1p/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/index.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log1p/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log1p/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/shim.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/shim.js
deleted file mode 100644
index d495ce0496b76d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log1p/shim.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(-1.5), NaN, "Less than -1");
- a(t(-1), -Infinity, "-1");
- a(t(0), 0, "0");
- a(t(Infinity), Infinity, "Infinity");
- a(t(1), 0.6931471805599453, "Other");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/implement.js b/tools/eslint/node_modules/es5-ext/test/math/log2/implement.js
deleted file mode 100644
index 92b501ac72abed..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log2/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/log2/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/index.js b/tools/eslint/node_modules/es5-ext/test/math/log2/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log2/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/log2/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log2/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/shim.js b/tools/eslint/node_modules/es5-ext/test/math/log2/shim.js
deleted file mode 100644
index faa9c32a8537ab..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/log2/shim.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(-0.5), NaN, "Less than 0");
- a(t(0), -Infinity, "0");
- a(t(1), 0, "1");
- a(t(Infinity), Infinity, "Infinity");
- a(t(3).toFixed(15), '1.584962500721156', "Other");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/implement.js b/tools/eslint/node_modules/es5-ext/test/math/sign/implement.js
deleted file mode 100644
index 5875c42d608eb4..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sign/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/sign/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/index.js b/tools/eslint/node_modules/es5-ext/test/math/sign/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sign/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/sign/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sign/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/shim.js b/tools/eslint/node_modules/es5-ext/test/math/sign/shim.js
deleted file mode 100644
index b6b89c15889dc4..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sign/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var is = require('../../../object/is');
-
-module.exports = function (t, a) {
- a(is(t(0), +0), true, "+0");
- a(is(t(-0), -0), true, "-0");
- a(t({}), NaN, true, "NaN");
- a(t(-234234234), -1, "Negative");
- a(t(234234234), 1, "Positive");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/implement.js
deleted file mode 100644
index e52089e4507156..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sinh/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/sinh/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/index.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sinh/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sinh/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/shim.js
deleted file mode 100644
index 4f63b59e735bf0..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/sinh/shim.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 0, "Zero");
- a(t(Infinity), Infinity, "Infinity");
- a(t(-Infinity), -Infinity, "-Infinity");
- a(t(1), 1.1752011936438014, "1");
- a(t(Number.MAX_VALUE), Infinity);
- a(t(-Number.MAX_VALUE), -Infinity);
- a(t(Number.MIN_VALUE), 5e-324);
- a(t(-Number.MIN_VALUE), -5e-324);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/implement.js
deleted file mode 100644
index a96bf193366b30..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/tanh/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/tanh/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/index.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/tanh/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/tanh/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/shim.js
deleted file mode 100644
index 2c67aaf47049fd..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/tanh/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 0, "Zero");
- a(t(Infinity), 1, "Infinity");
- a(t(-Infinity), -1, "-Infinity");
- a(t(1), 0.7615941559557649, "1");
- a(t(Number.MAX_VALUE), 1);
- a(t(-Number.MAX_VALUE), -1);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/implement.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/implement.js
deleted file mode 100644
index 1830e61f69794d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/trunc/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../math/trunc/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/index.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/trunc/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/trunc/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/shim.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/shim.js
deleted file mode 100644
index 9e5eed7910e13c..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/math/trunc/shim.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var is = require('../../../object/is');
-
-module.exports = function (t, a) {
- a(t({}), NaN, "NaN");
- a(t(0), 0, "Zero");
- a(t(Infinity), Infinity, "Infinity");
- a(t(-Infinity), -Infinity, "-Infinity");
- a(is(t(0.234), 0), true, "0");
- a(is(t(-0.234), -0), true, "-0");
- a(t(13.7), 13, "Positive #1");
- a(t(12.3), 12, "Positive #2");
- a(t(-12.3), -12, "Negative #1");
- a(t(-14.7), -14, "Negative #2");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/#/pad.js b/tools/eslint/node_modules/es5-ext/test/number/#/pad.js
deleted file mode 100644
index e02082353348dc..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/#/pad.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(78, 4), '0078');
- a(t.call(65.12323, 4, 3), '0065.123', "Precision");
- a(t.call(65, 4, 3), '0065.000', "Precision integer");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/epsilon/implement.js b/tools/eslint/node_modules/es5-ext/test/number/epsilon/implement.js
deleted file mode 100644
index 574da75dcebb7f..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/epsilon/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../number/epsilon/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/epsilon/index.js b/tools/eslint/node_modules/es5-ext/test/number/epsilon/index.js
deleted file mode 100644
index c892fd47d41c16..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/epsilon/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(typeof t, 'number');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/epsilon/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/epsilon/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/epsilon/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/implement.js
deleted file mode 100644
index b35345fa6ee762..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../number/is-finite/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/shim.js
deleted file mode 100644
index 5205d1c2602520..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/shim.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(2), true, "Number");
- a(t('23'), false, "Not numeric");
- a(t(NaN), false, "NaN");
- a(t(Infinity), false, "Infinity");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/implement.js
deleted file mode 100644
index 127149ceeda9b5..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../number/is-integer/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/shim.js
deleted file mode 100644
index 3f3985c3a05522..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(2), true, "Number");
- a(t(2.34), false, "Float");
- a(t('23'), false, "Not numeric");
- a(t(NaN), false, "NaN");
- a(t(Infinity), false, "Infinity");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/implement.js
deleted file mode 100644
index 2f01d6d30ad9f6..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../number/is-nan/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/shim.js
deleted file mode 100644
index 425723e74b07b9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/shim.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(2), false, "Number");
- a(t({}), false, "Not numeric");
- a(t(NaN), true, "NaN");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-natural.js b/tools/eslint/node_modules/es5-ext/test/number/is-natural.js
deleted file mode 100644
index d56f12042b48f3..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-natural.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(2), true, "Number");
- a(t(-2), false, "Negative");
- a(t(2.34), false, "Float");
- a(t('23'), false, "Not numeric");
- a(t(NaN), false, "NaN");
- a(t(Infinity), false, "Infinity");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-number.js b/tools/eslint/node_modules/es5-ext/test/number/is-number.js
deleted file mode 100644
index 275133476a61ff..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-number.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(0), true, "Zero");
- a(t(NaN), true, "NaN");
- a(t(Infinity), true, "Infinity");
- a(t(12), true, "Number");
- a(t(false), false, "Boolean");
- a(t(new Date()), false, "Date");
- a(t(new Number(2)), true, "Number object");
- a(t('asdfaf'), false, "String");
- a(t(''), false, "Empty String");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/implement.js
deleted file mode 100644
index 33667e2e9afb60..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../number/is-safe-integer/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/shim.js
deleted file mode 100644
index 77e06674711795..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(2), true, "Number");
- a(t(2.34), false, "Float");
- a(t(Math.pow(2, 53)), false, "Too large");
- a(t(Math.pow(2, 53) - 1), true, "Maximum");
- a(t('23'), false, "Not numeric");
- a(t(NaN), false, "NaN");
- a(t(Infinity), false, "Infinity");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/implement.js
deleted file mode 100644
index bef00ca413d3cb..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../number/max-safe-integer/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/index.js
deleted file mode 100644
index c892fd47d41c16..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(typeof t, 'number');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/implement.js
deleted file mode 100644
index fa440248bf47a6..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../number/min-safe-integer/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/index.js
deleted file mode 100644
index c892fd47d41c16..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(typeof t, 'number');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/number/to-integer.js b/tools/eslint/node_modules/es5-ext/test/number/to-integer.js
deleted file mode 100644
index ff326ba7a95bbb..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/to-integer.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), 0, "NaN");
- a(t(20), 20, "Positive integer");
- a(t('-20'), -20, "String negative integer");
- a(t(Infinity), Infinity, "Infinity");
- a(t(15.343), 15, "Float");
- a(t(-15.343), -15, "Negative float");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/to-pos-integer.js b/tools/eslint/node_modules/es5-ext/test/number/to-pos-integer.js
deleted file mode 100644
index 2f3b4e674ecc4b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/to-pos-integer.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), 0, "NaN");
- a(t(20), 20, "Positive integer");
- a(t(-20), 0, "Negative integer");
- a(t(Infinity), Infinity, "Infinity");
- a(t(15.343), 15, "Float");
- a(t(-15.343), 0, "Negative float");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/number/to-uint32.js b/tools/eslint/node_modules/es5-ext/test/number/to-uint32.js
deleted file mode 100644
index 00d05bdfe346d7..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/number/to-uint32.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), 0, "Not numeric");
- a(t(-4), 4294967292, "Negative");
- a(t(133432), 133432, "Positive");
- a(t(8589934592), 0, "Greater than maximum");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/_iterate.js b/tools/eslint/node_modules/es5-ext/test/object/_iterate.js
deleted file mode 100644
index 179afed88ee845..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/_iterate.js
+++ /dev/null
@@ -1,30 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = { raz: 1, dwa: 2, trzy: 3 }
- , o2 = {}, o3 = {}, arr, i = -1;
-
- t = t('forEach');
- t(o, function (value, name, self, index) {
- o2[name] = value;
- a(index, ++i, "Index");
- a(self, o, "Self");
- a(this, o3, "Scope");
- }, o3);
- a.deep(o2, o);
-
- arr = [];
- o2 = {};
- i = -1;
- t(o, function (value, name, self, index) {
- arr.push(value);
- o2[name] = value;
- a(index, ++i, "Index");
- a(self, o, "Self");
- a(this, o3, "Scope");
- }, o3, function (a, b) {
- return o[b] - o[a];
- });
- a.deep(o2, o, "Sort by Values: Content");
- a.deep(arr, [3, 2, 1], "Sort by Values: Order");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/implement.js b/tools/eslint/node_modules/es5-ext/test/object/assign/implement.js
deleted file mode 100644
index 40065594187cb9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/assign/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../object/assign/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/index.js b/tools/eslint/node_modules/es5-ext/test/object/assign/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/assign/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/object/assign/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/assign/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/shim.js b/tools/eslint/node_modules/es5-ext/test/object/assign/shim.js
deleted file mode 100644
index 9afe5f658c45b7..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/assign/shim.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o1 = { a: 1, b: 2 }
- , o2 = { b: 3, c: 4 };
-
- a(t(o1, o2), o1, "Returns self");
- a.deep(o1, { a: 1, b: 3, c: 4 }, "Single: content");
-
- a.deep(t({}, o1, o2), { a: 1, b: 3, c: 4 }, "Multi argument");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/clear.js b/tools/eslint/node_modules/es5-ext/test/object/clear.js
deleted file mode 100644
index bfc08cc208420b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/clear.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var isEmpty = require('../../object/is-empty');
-
-module.exports = function (t, a) {
- var x = {};
- a(t(x), x, "Empty: Returns same object");
- a(isEmpty(x), true, "Empty: Not changed");
- x.foo = 'raz';
- x.bar = 'dwa';
- a(t(x), x, "Same object");
- a(isEmpty(x), true, "Emptied");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/compact.js b/tools/eslint/node_modules/es5-ext/test/object/compact.js
deleted file mode 100644
index 9c9064c7886445..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/compact.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {}, y = {}, z;
- z = t(x);
- a.not(z, x, "Returns different object");
- a.deep(z, {}, "Empty on empty");
-
- x = { foo: 'bar', a: 0, b: false, c: '', d: '0', e: null, bar: y,
- elo: undefined };
- z = t(x);
- a.deep(z, { foo: 'bar', a: 0, b: false, c: '', d: '0', bar: y },
- "Cleared null values");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/compare.js b/tools/eslint/node_modules/es5-ext/test/object/compare.js
deleted file mode 100644
index cb9424109c334b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/compare.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var d = new Date();
-
- a.ok(t(12, 3) > 0, "Numbers");
- a.ok(t(2, 13) < 0, "Numbers #2");
- a.ok(t("aaa", "aa") > 0, "Strings");
- a.ok(t("aa", "ab") < 0, "Strings #2");
- a(t("aa", "aa"), 0, "Strings same");
- a(t(d, new Date(d.getTime())), 0, "Same date");
- a.ok(t(d, new Date(d.getTime() + 1)) < 0, "Different date");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/copy-deep.js b/tools/eslint/node_modules/es5-ext/test/object/copy-deep.js
deleted file mode 100644
index 79e02be49e3c11..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/copy-deep.js
+++ /dev/null
@@ -1,28 +0,0 @@
-'use strict';
-
-var stringify = JSON.stringify;
-
-module.exports = function (t, a) {
- var o = { 1: 'raz', 2: 'dwa', 3: 'trzy' }
- , no = t(o);
-
- a.not(no, o, "Return different object");
- a(stringify(no), stringify(o), "Match properties and values");
-
- o = { foo: 'bar', raz: { dwa: 'dwa',
- trzy: { cztery: 'pięć', 'sześć': 'siedem' }, osiem: {},
- 'dziewięć': function () { } },
- 'dziesięć': 10, "jedenaście": ['raz', ['dwa', 'trzy', { elo: "true" }]] };
- o.raz.rec = o;
-
- no = t(o);
- a.not(o.raz, no.raz, "Deep");
- a.not(o.raz.trzy, no.raz.trzy, "Deep #2");
- a(stringify(o.raz.trzy), stringify(no.raz.trzy), "Deep content");
- a(no.raz.rec, no, "Recursive");
- a.not(o.raz.osiem, no.raz.osiem, "Empty object");
- a(o.raz['dziewięć'], no.raz['dziewięć'], "Function");
- a.not(o['jedenaście'], no['jedenaście']);
- a.not(o['jedenaście'][1], no['jedenaście'][1]);
- a.not(o['jedenaście'][1][2], no['jedenaście'][1][2]);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/copy.js b/tools/eslint/node_modules/es5-ext/test/object/copy.js
deleted file mode 100644
index 2f222ef809c6d7..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/copy.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var stringify = JSON.stringify;
-
-module.exports = function (t, a) {
- var o = { 1: 'raz', 2: 'dwa', 3: 'trzy' }
- , no = t(o);
-
- a.not(no, o, "Return different object");
- a(stringify(no), stringify(o), "Match properties and values");
-
- o = { foo: 'bar', raz: { dwa: 'dwa',
- trzy: { cztery: 'pięć', 'sześć': 'siedem' }, osiem: {},
- 'dziewięć': function () { } }, 'dziesięć': 10 };
- o.raz.rec = o;
-
- no = t(o);
- a(o.raz, no.raz, "Shallow");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/count.js b/tools/eslint/node_modules/es5-ext/test/object/count.js
deleted file mode 100644
index 494f4f163515eb..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/count.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), 0, "Empty");
- a(t({ raz: 1, dwa: null, trzy: undefined, cztery: 0 }), 4,
- "Some properties");
- a(t(Object.defineProperties({}, {
- raz: { value: 'raz' },
- dwa: { value: 'dwa', enumerable: true }
- })), 1, "Some properties hidden");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/create.js b/tools/eslint/node_modules/es5-ext/test/object/create.js
deleted file mode 100644
index 8b7be214136d2f..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/create.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var setPrototypeOf = require('../../object/set-prototype-of')
-
- , getPrototypeOf = Object.getPrototypeOf;
-
-module.exports = function (t, a) {
- var x = {}, obj;
-
- a(getPrototypeOf(t(x)), x, "Normal object");
- a(getPrototypeOf(t(null)),
- (setPrototypeOf && setPrototypeOf.nullPolyfill) || null, "Null");
-
- a.h1("Properties");
- a.h2("Normal object");
- a(getPrototypeOf(obj = t(x, { foo: { value: 'bar' } })), x, "Prototype");
- a(obj.foo, 'bar', "Property");
- a.h2("Null");
- a(getPrototypeOf(obj = t(null, { foo: { value: 'bar2' } })),
- (setPrototypeOf && setPrototypeOf.nullPolyfill) || null, "Prototype");
- a(obj.foo, 'bar2', "Property");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number-value.js b/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number-value.js
deleted file mode 100644
index dde23986babe18..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number-value.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a(t(2), 2, "Number");
- a.throws(function () { t(-2); }, TypeError, "Negative");
- a.throws(function () { t(2.34); }, TypeError, "Float");
- a(t('23'), 23, "Numeric string");
- a.throws(function () { t(NaN); }, TypeError, "NaN");
- a.throws(function () { t(Infinity); }, TypeError, "Infinity");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number.js b/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number.js
deleted file mode 100644
index 5ebed1e524fcef..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a(t(null), 0, "Null");
- a(t(2), 2, "Number");
- a.throws(function () { t(-2); }, TypeError, "Negative");
- a.throws(function () { t(2.34); }, TypeError, "Float");
- a(t('23'), 23, "Numeric string");
- a.throws(function () { t(NaN); }, TypeError, "NaN");
- a.throws(function () { t(Infinity); }, TypeError, "Infinity");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/eq.js b/tools/eslint/node_modules/es5-ext/test/object/eq.js
deleted file mode 100644
index 02b3f0027cbf82..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/eq.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = {};
- a(t(o, {}), false, "Different objects");
- a(t(o, o), true, "Same objects");
- a(t('1', '1'), true, "Same primitive");
- a(t('1', 1), false, "Different primitive types");
- a(t(NaN, NaN), true, "NaN");
- a(t(0, 0), true, "0,0");
- a(t(0, -0), true, "0,-0");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/every.js b/tools/eslint/node_modules/es5-ext/test/object/every.js
deleted file mode 100644
index 07d5bbbd61f7af..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/every.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-var o = { 1: 1, 2: 2, 3: 3 };
-
-module.exports = function (t, a) {
- var o2 = {};
- t(o, function (value, name) {
- o2[name] = value;
- return true;
- });
- a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
-
- a(t(o, function () {
- return true;
- }), true, "Succeeds");
-
- a(t(o, function () {
- return false;
- }), false, "Fails");
-
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/filter.js b/tools/eslint/node_modules/es5-ext/test/object/filter.js
deleted file mode 100644
index 7307da8640fcd1..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/filter.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t({ 1: 1, 2: 2, 3: 3, 4: 4 },
- function (value) { return Boolean(value % 2); }), { 1: 1, 3: 3 });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/find-key.js b/tools/eslint/node_modules/es5-ext/test/object/find-key.js
deleted file mode 100644
index cca834d9362a29..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/find-key.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var o = { 1: 1, 2: 2, 3: 3 };
-
-module.exports = function (t, a) {
- var o2 = {}, i = 0;
- t(o, function (value, name) {
- o2[name] = value;
- return false;
- });
- a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
-
- a(t(o, function () {
- ++i;
- return true;
- }), '1', "Finds");
- a(i, 1, "Stops iteration after condition is met");
-
- a(t(o, function () {
- return false;
- }), undefined, "Fails");
-
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/find.js b/tools/eslint/node_modules/es5-ext/test/object/find.js
deleted file mode 100644
index b6ad60a542b741..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/find.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var o = { 1: 1, 2: 2, 3: 3 };
-
-module.exports = function (t, a) {
- var o2 = {}, i = 0;
- t(o, function (value, name) {
- o2[name] = value;
- return false;
- });
- a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
-
- a(t(o, function () {
- ++i;
- return true;
- }), 1, "Finds");
- a(i, 1, "Stops iteration after condition is met");
-
- a(t(o, function () {
- return false;
- }), undefined, "Fails");
-
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/first-key.js b/tools/eslint/node_modules/es5-ext/test/object/first-key.js
deleted file mode 100644
index 8169cd235344d9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/first-key.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {}, y = Object.create(null);
- a(t(x), null, "Normal: Empty");
- a(t(y), null, "Null extension: Empty");
- x.foo = 'raz';
- x.bar = 343;
- a(['foo', 'bar'].indexOf(t(x)) !== -1, true, "Normal");
- y.elo = 'foo';
- y.mar = 'wew';
- a(['elo', 'mar'].indexOf(t(y)) !== -1, true, "Null extension");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/flatten.js b/tools/eslint/node_modules/es5-ext/test/object/flatten.js
deleted file mode 100644
index ca342eab9c8ae4..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/flatten.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t({ a: { aa: 1, ab: 2 }, b: { ba: 3, bb: 4 } }),
- { aa: 1, ab: 2, ba: 3, bb: 4 });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/for-each.js b/tools/eslint/node_modules/es5-ext/test/object/for-each.js
deleted file mode 100644
index 8690d1e82179aa..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/for-each.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = { raz: 1, dwa: 2, trzy: 3 }
- , o2 = {};
- a(t(o, function (value, name) {
- o2[name] = value;
- }), undefined, "Return");
- a.deep(o2, o);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/get-property-names.js b/tools/eslint/node_modules/es5-ext/test/object/get-property-names.js
deleted file mode 100644
index b91c3dd50e7bbf..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/get-property-names.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = { first: 1, second: 4 }, r1, r2;
- o = Object.create(o, {
- third: { value: null }
- });
- o.first = 2;
- o = Object.create(o);
- o.fourth = 3;
-
- r1 = t(o);
- r1.sort();
- r2 = ['first', 'second', 'third', 'fourth']
- .concat(Object.getOwnPropertyNames(Object.prototype));
- r2.sort();
- a.deep(r1, r2);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-array-like.js b/tools/eslint/node_modules/es5-ext/test/object/is-array-like.js
deleted file mode 100644
index 6295973ca81acd..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-array-like.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t([]), true, "Array");
- a(t(""), true, "String");
- a(t((function () { return arguments; }())), true, "Arguments");
- a(t({ length: 0 }), true, "List object");
- a(t(function () {}), false, "Function");
- a(t({}), false, "Plain object");
- a(t(/raz/), false, "Regexp");
- a(t(), false, "No argument");
- a(t(null), false, "Null");
- a(t(undefined), false, "Undefined");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-callable.js b/tools/eslint/node_modules/es5-ext/test/object/is-callable.js
deleted file mode 100644
index 625e221d2c3811..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-callable.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(function () {}), true, "Function");
- a(t({}), false, "Object");
- a(t(), false, "Undefined");
- a(t(null), false, "Null");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-copy-deep.js b/tools/eslint/node_modules/es5-ext/test/object/is-copy-deep.js
deleted file mode 100644
index 4f14cbbe8108b2..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-copy-deep.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x, y;
-
- a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same");
- a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false,
- "Different property value");
- a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false,
- "Property only in source");
- a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false,
- "Property only in target");
-
- a(t("raz", "dwa"), false, "String: diff");
- a(t("raz", "raz"), true, "String: same");
- a(t("32", 32), false, "String & Number");
-
- a(t([1, 'raz', true], [1, 'raz', true]), true, "Array: same");
- a(t([1, 'raz', undefined], [1, 'raz']), false, "Array: diff");
- a(t(['foo'], ['one']), false, "Array: One value comparision");
-
- x = { foo: { bar: { mar: {} } } };
- y = { foo: { bar: { mar: {} } } };
- a(t(x, y), true, "Deep");
-
- a(t({ foo: { bar: { mar: 'foo' } } }, { foo: { bar: { mar: {} } } }),
- false, "Deep: false");
-
- x = { foo: { bar: { mar: {} } } };
- x.rec = { foo: x };
-
- y = { foo: { bar: { mar: {} } } };
- y.rec = { foo: x };
-
- a(t(x, y), true, "Object: Infinite Recursion: Same #1");
-
- x.rec.foo = y;
- a(t(x, y), true, "Object: Infinite Recursion: Same #2");
-
- x.rec.foo = x;
- y.rec.foo = y;
- a(t(x, y), true, "Object: Infinite Recursion: Same #3");
-
- y.foo.bar.mar = 'raz';
- a(t(x, y), false, "Object: Infinite Recursion: Diff");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-copy.js b/tools/eslint/node_modules/es5-ext/test/object/is-copy.js
deleted file mode 100644
index 394e2ed94c09f0..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-copy.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same");
- a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false,
- "Different property value");
- a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false,
- "Property only in source");
- a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false,
- "Property only in target");
-
- a(t("raz", "dwa"), false, "String: diff");
- a(t("raz", "raz"), true, "String: same");
- a(t("32", 32), false, "String & Number");
-
- a(t([1, 'raz', true], [1, 'raz', true]), true, "Array: same");
- a(t([1, 'raz', undefined], [1, 'raz']), false, "Array: diff");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-empty.js b/tools/eslint/node_modules/es5-ext/test/object/is-empty.js
deleted file mode 100644
index b560c2c36b0d4b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-empty.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), true, "Empty");
- a(t({ 1: 1 }), false, "Not empty");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-number-value.js b/tools/eslint/node_modules/es5-ext/test/object/is-number-value.js
deleted file mode 100644
index 21b6b620323b63..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-number-value.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(undefined), false, "Undefined");
- a(t(null), false, "Null");
- a(t(0), true, "Zero");
- a(t(NaN), false, "NaN");
- a(t(Infinity), true, "Infinity");
- a(t(12), true, "Number");
- a(t(false), true, "Boolean");
- a(t(new Date()), true, "Date");
- a(t(new Number(2)), true, "Number object");
- a(t('asdfaf'), false, "String");
- a(t(''), true, "Empty String");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-object.js b/tools/eslint/node_modules/es5-ext/test/object/is-object.js
deleted file mode 100644
index 72c8aa6daf4a3a..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-object.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t('arar'), false, "String");
- a(t(12), false, "Number");
- a(t(true), false, "Boolean");
- a(t(null), false, "Null");
- a(t(new Date()), true, "Date");
- a(t(new String('raz')), true, "String object");
- a(t({}), true, "Plain object");
- a(t(/a/), true, "Regular expression");
- a(t(function () {}), true, "Function");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-plain-object.js b/tools/eslint/node_modules/es5-ext/test/object/is-plain-object.js
deleted file mode 100644
index e988829d558ad0..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is-plain-object.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t({}), true, "Empty {} is plain object");
- a(t({ a: true }), true, "{} with property is plain object");
- a(t({ prototype: 1, constructor: 2, __proto__: 3 }), true,
- "{} with any property keys is plain object");
- a(t(null), false, "Null is not plain object");
- a(t('string'), false, "Primitive is not plain object");
- a(t(function () {}), false, "Function is not plain object");
- a(t(Object.create({})), false,
- "Object whose prototype is not Object.prototype is not plain object");
- a(t(Object.create(Object.prototype)), true,
- "Object whose prototype is Object.prototype is plain object");
- a(t(Object.create(null)), true,
- "Object whose prototype is null is plain object");
- a(t(Object.prototype), false, "Object.prototype");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/is.js b/tools/eslint/node_modules/es5-ext/test/object/is.js
deleted file mode 100644
index 4f8948cbf344e1..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/is.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = {};
- a(t(o, {}), false, "Different objects");
- a(t(o, o), true, "Same objects");
- a(t('1', '1'), true, "Same primitive");
- a(t('1', 1), false, "Different primitive types");
- a(t(NaN, NaN), true, "NaN");
- a(t(0, 0), true, "0,0");
- a(t(0, -0), false, "0,-0");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/key-of.js b/tools/eslint/node_modules/es5-ext/test/object/key-of.js
deleted file mode 100644
index a9225a048c5c91..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/key-of.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = {}, y = {}
- , o = { foo: 'bar', raz: x, trzy: 'cztery', five: '6' };
-
- a(t(o, 'bar'), 'foo', "First property");
- a(t(o, 6), null, "Primitive that's not there");
- a(t(o, x), 'raz', "Object");
- a(t(o, y), null, "Object that's not there");
- a(t(o, '6'), 'five', "Last property");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/implement.js b/tools/eslint/node_modules/es5-ext/test/object/keys/implement.js
deleted file mode 100644
index 179e1e5612ea8f..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/keys/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../object/keys/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/index.js b/tools/eslint/node_modules/es5-ext/test/object/keys/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/keys/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/object/keys/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/keys/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/shim.js b/tools/eslint/node_modules/es5-ext/test/object/keys/shim.js
deleted file mode 100644
index ed29eebcd751f7..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/keys/shim.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t({ foo: 'bar' }), ['foo'], "Object");
- a.deep(t('raz'), ['0', '1', '2'], "Primitive");
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Undefined");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/map-keys.js b/tools/eslint/node_modules/es5-ext/test/object/map-keys.js
deleted file mode 100644
index be84825b1be711..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/map-keys.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t({ 1: 1, 2: 2, 3: 3 }, function (key, value) {
- return 'x' + (key + value);
- }), { x11: 1, x22: 2, x33: 3 });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/map.js b/tools/eslint/node_modules/es5-ext/test/object/map.js
deleted file mode 100644
index f9cc09c01b3933..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/map.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var obj = { 1: 1, 2: 2, 3: 3 };
- a.deep(t(obj, function (value, key, context) {
- a(context, obj, "Context argument");
- return (value + 1) + key;
- }), { 1: '21', 2: '32', 3: '43' });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/mixin-prototypes.js b/tools/eslint/node_modules/es5-ext/test/object/mixin-prototypes.js
deleted file mode 100644
index d1c727a95a7371..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/mixin-prototypes.js
+++ /dev/null
@@ -1,67 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o, o1, o2, x, y = {}, z = {};
- o = { inherited: true, visible: 23 };
- o1 = Object.create(o);
- o1.visible = z;
- o1.nonremovable = 'raz';
- Object.defineProperty(o1, 'hidden', { value: 'hidden' });
-
- o2 = Object.defineProperties({}, { nonremovable: { value: y } });
- o2.other = 'other';
-
- try { t(o2, o1); } catch (ignore) {}
-
- a(o2.visible, z, "Enumerable");
- a(o1.hidden, 'hidden', "Not Enumerable");
- a(o2.propertyIsEnumerable('visible'), true, "Enumerable is enumerable");
- a(o2.propertyIsEnumerable('hidden'), false,
- "Not enumerable is not enumerable");
-
- a(o2.inherited, true, "Extend deep");
-
- a(o2.nonremovable, y, "Do not overwrite non configurable");
- a(o2.other, 'other', "Own kept");
-
- x = {};
- t(x, o2);
- try { t(x, o1); } catch (ignore) {}
-
- a(x.visible, z, "Enumerable");
- a(x.hidden, 'hidden', "Not Enumerable");
- a(x.propertyIsEnumerable('visible'), true, "Enumerable is enumerable");
- a(x.propertyIsEnumerable('hidden'), false,
- "Not enumerable is not enumerable");
-
- a(x.inherited, true, "Extend deep");
-
- a(x.nonremovable, y, "Ignored non configurable");
- a(x.other, 'other', "Other");
-
- x.visible = 3;
- a(x.visible, 3, "Writable is writable");
-
- x = {};
- t(x, o1);
- a.throws(function () {
- x.hidden = 3;
- }, "Not writable is not writable");
-
- x = {};
- t(x, o1);
- delete x.visible;
- a.ok(!x.hasOwnProperty('visible'), "Configurable is configurable");
-
- x = {};
- t(x, o1);
- a.throws(function () {
- delete x.hidden;
- }, "Not configurable is not configurable");
-
- x = Object.defineProperty({}, 'foo',
- { configurable: false, writable: true, enumerable: false, value: 'bar' });
-
- try { t(x, { foo: 'lorem' }); } catch (ignore) {}
- a(x.foo, 'bar', "Writable, not enumerable");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/mixin.js b/tools/eslint/node_modules/es5-ext/test/object/mixin.js
deleted file mode 100644
index 866005b03df29b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/mixin.js
+++ /dev/null
@@ -1,69 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o, o1, o2, x, y = {}, z = {};
- o = { inherited: true };
- o1 = Object.create(o);
- o1.visible = z;
- o1.nonremovable = 'raz';
- Object.defineProperty(o1, 'hidden', { value: 'hidden' });
-
- o2 = Object.defineProperties({}, { nonremovable: { value: y } });
- o2.other = 'other';
-
- try { t(o2, o1); } catch (ignore) {}
-
- a(o2.visible, z, "Enumerable");
- a(o1.hidden, 'hidden', "Not Enumerable");
- a(o2.propertyIsEnumerable('visible'), true, "Enumerable is enumerable");
- a(o2.propertyIsEnumerable('hidden'), false,
- "Not enumerable is not enumerable");
-
- a(o2.hasOwnProperty('inherited'), false, "Extend only own");
- a(o2.inherited, undefined, "Extend ony own: value");
-
- a(o2.nonremovable, y, "Do not overwrite non configurable");
- a(o2.other, 'other', "Own kept");
-
- x = {};
- t(x, o2);
- try { t(x, o1); } catch (ignore) {}
-
- a(x.visible, z, "Enumerable");
- a(x.hidden, 'hidden', "Not Enumerable");
- a(x.propertyIsEnumerable('visible'), true, "Enumerable is enumerable");
- a(x.propertyIsEnumerable('hidden'), false,
- "Not enumerable is not enumerable");
-
- a(x.hasOwnProperty('inherited'), false, "Extend only own");
- a(x.inherited, undefined, "Extend ony own: value");
-
- a(x.nonremovable, y, "Ignored non configurable");
- a(x.other, 'other', "Other");
-
- x.visible = 3;
- a(x.visible, 3, "Writable is writable");
-
- x = {};
- t(x, o1);
- a.throws(function () {
- x.hidden = 3;
- }, "Not writable is not writable");
-
- x = {};
- t(x, o1);
- delete x.visible;
- a.ok(!x.hasOwnProperty('visible'), "Configurable is configurable");
-
- x = {};
- t(x, o1);
- a.throws(function () {
- delete x.hidden;
- }, "Not configurable is not configurable");
-
- x = Object.defineProperty({}, 'foo',
- { configurable: false, writable: true, enumerable: false, value: 'bar' });
-
- try { t(x, { foo: 'lorem' }); } catch (ignore) {}
- a(x.foo, 'bar', "Writable, not enumerable");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/normalize-options.js b/tools/eslint/node_modules/es5-ext/test/object/normalize-options.js
deleted file mode 100644
index 0d2d4da04a53b1..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/normalize-options.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-
-var create = Object.create, defineProperty = Object.defineProperty;
-
-module.exports = function (t, a) {
- var x = { foo: 'raz', bar: 'dwa' }, y;
- y = t(x);
- a.not(y, x, "Returns copy");
- a.deep(y, x, "Plain");
-
- x = { raz: 'one', dwa: 'two' };
- defineProperty(x, 'get', {
- configurable: true,
- enumerable: true,
- get: function () { return this.dwa; }
- });
- x = create(x);
- x.trzy = 'three';
- x.cztery = 'four';
- x = create(x);
- x.dwa = 'two!';
- x.trzy = 'three!';
- x.piec = 'five';
- x.szesc = 'six';
-
- a.deep(t(x), { raz: 'one', dwa: 'two!', trzy: 'three!', cztery: 'four',
- piec: 'five', szesc: 'six', get: 'two!' }, "Deep object");
-
- a.deep(t({ marko: 'raz', raz: 'foo' }, x, { szesc: 'elo', siedem: 'bibg' }),
- { marko: 'raz', raz: 'one', dwa: 'two!', trzy: 'three!', cztery: 'four',
- piec: 'five', szesc: 'elo', siedem: 'bibg', get: 'two!' }, "Multiple options");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/primitive-set.js b/tools/eslint/node_modules/es5-ext/test/object/primitive-set.js
deleted file mode 100644
index 839857eab3dd85..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/primitive-set.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-var getPropertyNames = require('../../object/get-property-names')
- , isPlainObject = require('../../object/is-plain-object');
-
-module.exports = function (t, a) {
- var x = t();
- a(isPlainObject(x), true, "Plain object");
- a.deep(getPropertyNames(x), [], "No properties");
- x.foo = 'bar';
- a.deep(getPropertyNames(x), ['foo'], "Extensible");
-
- a.deep(t('raz', 'dwa', 3), { raz: true, dwa: true, 3: true },
- "Arguments handling");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/safe-traverse.js b/tools/eslint/node_modules/es5-ext/test/object/safe-traverse.js
deleted file mode 100644
index d30cdefe68b8b6..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/safe-traverse.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var obj = { foo: { bar: { lorem: 12 } } };
- a(t(obj), obj, "No props");
- a(t(obj, 'foo'), obj.foo, "One");
- a(t(obj, 'raz'), undefined, "One: Fail");
- a(t(obj, 'foo', 'bar'), obj.foo.bar, "Two");
- a(t(obj, 'dsd', 'raz'), undefined, "Two: Fail #1");
- a(t(obj, 'foo', 'raz'), undefined, "Two: Fail #2");
- a(t(obj, 'foo', 'bar', 'lorem'), obj.foo.bar.lorem, "Three");
- a(t(obj, 'dsd', 'raz', 'fef'), undefined, "Three: Fail #1");
- a(t(obj, 'foo', 'raz', 'asdf'), undefined, "Three: Fail #2");
- a(t(obj, 'foo', 'bar', 'asd'), undefined, "Three: Fail #3");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/serialize.js b/tools/eslint/node_modules/es5-ext/test/object/serialize.js
deleted file mode 100644
index 43eed6a8616f9a..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/serialize.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var fn = function (raz, dwa) { return raz + dwa; };
- a(t(), 'undefined', "Undefined");
- a(t(null), 'null', "Null");
- a(t(null), 'null', "Null");
- a(t('raz'), '"raz"', "String");
- a(t('raz"ddwa\ntrzy'), '"raz\\"ddwa\\ntrzy"', "String with escape");
- a(t(false), 'false', "Booelean");
- a(t(fn), String(fn), "Function");
-
- a(t(/raz-dwa/g), '/raz-dwa/g', "RegExp");
- a(t(new Date(1234567)), 'new Date(1234567)', "Date");
- a(t([]), '[]', "Empty array");
- a(t([undefined, false, null, 'raz"ddwa\ntrzy', fn, /raz/g, new Date(1234567), ['foo']]),
- '[undefined,false,null,"raz\\"ddwa\\ntrzy",' + String(fn) +
- ',/raz/g,new Date(1234567),["foo"]]', "Rich Array");
- a(t({}), '{}', "Empty object");
- a(t({ raz: undefined, dwa: false, trzy: null, cztery: 'raz"ddwa\ntrzy', piec: fn, szesc: /raz/g,
- siedem: new Date(1234567), osiem: ['foo', 32], dziewiec: { foo: 'bar', dwa: 343 } }),
- '{"raz":undefined,"dwa":false,"trzy":null,"cztery":"raz\\"ddwa\\ntrzy","piec":' + String(fn) +
- ',"szesc":/raz/g,"siedem":new Date(1234567),"osiem":["foo",32],' +
- '"dziewiec":{"foo":"bar","dwa":343}}', "Rich object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/implement.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/implement.js
deleted file mode 100644
index 30b2ac4b96ba2e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/implement.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-var create = require('../../../object/create')
- , isImplemented = require('../../../object/set-prototype-of/is-implemented');
-
-module.exports = function (a) { a(isImplemented(create), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/index.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/index.js
deleted file mode 100644
index aec2605cc2661a..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var create = require('../../../object/create')
-
- , getPrototypeOf = Object.getPrototypeOf;
-
-module.exports = function (t, a) {
- var x = {}, y = {};
-
- if (t === null) return;
- a(t(x, y), x, "Return self object");
- a(getPrototypeOf(x), y, "Object");
- a.throws(function () { t(x); }, TypeError, "Undefined");
- a.throws(function () { t('foo'); }, TypeError, "Primitive");
- a(getPrototypeOf(t(x, null)), t.nullPolyfill || null, "Null");
- x = create(null);
- a.h1("Change null prototype");
- a(t(x, y), x, "Result");
- a(getPrototypeOf(x), y, "Prototype");
- a.h1("Set null prototype");
- a(t(y, null), y, "Result");
- a(getPrototypeOf(y), t.nullPolyfill || null, "Prototype");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/shim.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/shim.js
deleted file mode 100644
index aec2605cc2661a..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/shim.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var create = require('../../../object/create')
-
- , getPrototypeOf = Object.getPrototypeOf;
-
-module.exports = function (t, a) {
- var x = {}, y = {};
-
- if (t === null) return;
- a(t(x, y), x, "Return self object");
- a(getPrototypeOf(x), y, "Object");
- a.throws(function () { t(x); }, TypeError, "Undefined");
- a.throws(function () { t('foo'); }, TypeError, "Primitive");
- a(getPrototypeOf(t(x, null)), t.nullPolyfill || null, "Null");
- x = create(null);
- a.h1("Change null prototype");
- a(t(x, y), x, "Result");
- a(getPrototypeOf(x), y, "Prototype");
- a.h1("Set null prototype");
- a(t(y, null), y, "Result");
- a(getPrototypeOf(y), t.nullPolyfill || null, "Prototype");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/some.js b/tools/eslint/node_modules/es5-ext/test/object/some.js
deleted file mode 100644
index 490431e7acd543..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/some.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var o = { 1: 1, 2: 2, 3: 3 };
-
-module.exports = function (t, a) {
- var o2 = {}, i = 0;
- t(o, function (value, name) {
- o2[name] = value;
- return false;
- });
- a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
-
- a(t(o, function () {
- ++i;
- return true;
- }), true, "Succeeds");
- a(i, 1, "Stops iteration after condition is met");
-
- a(t(o, function () {
- return false;
- }), false, "Fails");
-
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/to-array.js b/tools/eslint/node_modules/es5-ext/test/object/to-array.js
deleted file mode 100644
index 1f4beef7eae835..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/to-array.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var o = { 1: 1, 2: 2, 3: 3 }, o1 = {}
- , o2 = t(o, function (value, name, self) {
- a(self, o, "Self");
- a(this, o1, "Scope");
- return value + Number(name);
- }, o1);
- a.deep(o2, [2, 4, 6]);
-
- t(o).sort().forEach(function (item) {
- a.deep(item, [item[0], o[item[0]]], "Default");
- });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/unserialize.js b/tools/eslint/node_modules/es5-ext/test/object/unserialize.js
deleted file mode 100644
index 405eef112ff76e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/unserialize.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var fn = function (raz, dwa) { return raz + dwa; };
- a(t('undefined'), undefined, "Undefined");
- a(t('null'), null, "Null");
- a(t('"raz"'), 'raz', "String");
- a(t('"raz\\"ddwa\\ntrzy"'), 'raz"ddwa\ntrzy', "String with escape");
- a(t('false'), false, "Booelean");
- a(String(t(String(fn))), String(fn), "Function");
-
- a.deep(t('/raz-dwa/g'), /raz-dwa/g, "RegExp");
- a.deep(t('new Date(1234567)'), new Date(1234567), "Date");
- a.deep(t('[]'), [], "Empty array");
- a.deep(t('[undefined,false,null,"raz\\"ddwa\\ntrzy",/raz/g,new Date(1234567),["foo"]]'),
- [undefined, false, null, 'raz"ddwa\ntrzy', /raz/g, new Date(1234567), ['foo']], "Rich Array");
- a.deep(t('{}'), {}, "Empty object");
- a.deep(t('{"raz":undefined,"dwa":false,"trzy":null,"cztery":"raz\\"ddwa\\ntrzy",' +
- '"szesc":/raz/g,"siedem":new Date(1234567),"osiem":["foo",32],' +
- '"dziewiec":{"foo":"bar","dwa":343}}'),
- { raz: undefined, dwa: false, trzy: null, cztery: 'raz"ddwa\ntrzy', szesc: /raz/g,
- siedem: new Date(1234567), osiem: ['foo', 32], dziewiec: { foo: 'bar', dwa: 343 } },
- "Rich object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/valid-callable.js b/tools/eslint/node_modules/es5-ext/test/object/valid-callable.js
deleted file mode 100644
index b40540b6ba61b0..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/valid-callable.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var f = function () {};
- a(t(f), f, "Function");
- a.throws(function () {
- t({});
- }, "Not Function");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/valid-object.js b/tools/eslint/node_modules/es5-ext/test/object/valid-object.js
deleted file mode 100644
index eaa8e7bcb364b5..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/valid-object.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a.throws(function () { t(0); }, TypeError, "0");
- a.throws(function () { t(false); }, TypeError, "false");
- a.throws(function () { t(''); }, TypeError, "''");
- a(t(x = {}), x, "Object");
- a(t(x = function () {}), x, "Function");
- a(t(x = new String('raz')), x, "String object"); //jslint: ignore
- a(t(x = new Date()), x, "Date");
-
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "null");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/valid-value.js b/tools/eslint/node_modules/es5-ext/test/object/valid-value.js
deleted file mode 100644
index f1eeafa9778863..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/valid-value.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var numIsNaN = require('../../number/is-nan');
-
-module.exports = function (t, a) {
- var x;
- a(t(0), 0, "0");
- a(t(false), false, "false");
- a(t(''), '', "''");
- a(numIsNaN(t(NaN)), true, "NaN");
- a(t(x = {}), x, "{}");
-
- a.throws(function () {
- t();
- }, "Undefined");
- a.throws(function () {
- t(null);
- }, "null");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like-object.js b/tools/eslint/node_modules/es5-ext/test/object/validate-array-like-object.js
deleted file mode 100644
index 2f3e31b442ebcb..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like-object.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a.throws(function () { t(0); }, TypeError, "0");
- a.throws(function () { t(false); }, TypeError, "false");
- a.throws(function () { t(''); }, TypeError, "String");
- a.throws(function () { t({}); }, TypeError, "Plain Object");
- a.throws(function () { t(function () {}); }, TypeError, "Function");
- a(t(x = new String('raz')), x, "String object"); //jslint: ignore
-
- a(t(x = { length: 1 }), x, "Array like");
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "null");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like.js b/tools/eslint/node_modules/es5-ext/test/object/validate-array-like.js
deleted file mode 100644
index 53bd11249e3d04..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a.throws(function () { t(0); }, TypeError, "0");
- a.throws(function () { t(false); }, TypeError, "false");
- a(t(''), '', "''");
- a.throws(function () { t({}); }, TypeError, "Plain Object");
- a.throws(function () { t(function () {}); }, TypeError, "Function");
- a(t(x = new String('raz')), x, "String object"); //jslint: ignore
-
- a(t(x = { length: 1 }), x, "Array like");
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "null");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable-value.js b/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable-value.js
deleted file mode 100644
index ae9bd17a59a028..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable-value.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a(t(0), "0");
- a(t(false), "false");
- a(t(''), "");
- a(t({}), String({}), "Object");
- a(t(x = function () {}), String(x), "Function");
- a(t(x = new String('raz')), String(x), "String object"); //jslint: ignore
- a(t(x = new Date()), String(x), "Date");
-
- a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable.js b/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable.js
deleted file mode 100644
index 4a46bb521900db..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x;
- a(t(), 'undefined', "Undefined");
- a(t(null), 'null', "Null");
- a(t(0), "0");
- a(t(false), "false");
- a(t(''), "");
- a(t({}), String({}), "Object");
- a(t(x = function () {}), String(x), "Function");
- a(t(x = new String('raz')), String(x), "String object"); //jslint: ignore
- a(t(x = new Date()), String(x), "Date");
-
- a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/index.js
deleted file mode 100644
index ca2bd650615889..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var indexTest = require('tad/lib/utils/index-test')
-
- , path = require('path').resolve(__dirname, '../../../reg-exp/#');
-
-module.exports = function (t, a, d) {
- indexTest(indexTest.readDir(path).aside(function (data) {
- delete data.sticky;
- delete data.unicode;
- }))(t, a, d);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-sticky.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-sticky.js
deleted file mode 100644
index e154ac2916557f..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-sticky.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var re;
- a(t.call(/raz/), false, "Normal");
- a(t.call(/raz/g), false, "Global");
- try { re = new RegExp('raz', 'y'); } catch (ignore) {}
- if (!re) return;
- a(t.call(re), true, "Sticky");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-unicode.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-unicode.js
deleted file mode 100644
index 2ffb9e869bd6a3..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-unicode.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var re;
- a(t.call(/raz/), false, "Normal");
- a(t.call(/raz/g), false, "Global");
- try { re = new RegExp('raz', 'u'); } catch (ignore) {}
- if (!re) return;
- a(t.call(re), true, "Unicode");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/implement.js
deleted file mode 100644
index 89825a45f6148d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../reg-exp/#/match/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/shim.js
deleted file mode 100644
index 5249139fff2277..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/shim.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var result = ['foo'];
- result.index = 0;
- result.input = 'foobar';
- a.deep(t.call(/foo/, 'foobar'), result);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/implement.js
deleted file mode 100644
index c32b23a6d03e79..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../reg-exp/#/replace/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/shim.js
deleted file mode 100644
index 2b378fd594e2ef..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/shim.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(/foo/, 'foobar', 'mar'), 'marbar');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/implement.js
deleted file mode 100644
index ff1b8087f2c697..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../reg-exp/#/search/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/shim.js
deleted file mode 100644
index 596bcdb92ed203..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/shim.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(/foo/, 'barfoo'), 3);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/implement.js
deleted file mode 100644
index 1cee441806c065..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../reg-exp/#/split/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/shim.js
deleted file mode 100644
index 6a95cd03d6ce68..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/shim.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t.call(/\|/, 'bar|foo'), ['bar', 'foo']);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js
deleted file mode 100644
index d94e7b98d8fe46..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../reg-exp/#/sticky/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js
deleted file mode 100644
index 9b1aa0f2ab992d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../reg-exp/#/unicode/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/escape.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/escape.js
deleted file mode 100644
index 5b00f67f28ce45..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/escape.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var str = "(?:^te|er)s{2}t\\[raz]+$";
- a(RegExp('^' + t(str) + '$').test(str), true);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/is-reg-exp.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/is-reg-exp.js
deleted file mode 100644
index 785ca28c2ecb2c..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/is-reg-exp.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t('arar'), false, "String");
- a(t(12), false, "Number");
- a(t(true), false, "Boolean");
- a(t(new Date()), false, "Date");
- a(t(new String('raz')), false, "String object");
- a(t({}), false, "Plain object");
- a(t(/a/), true, "Regular expression");
- a(t(new RegExp('a')), true, "Regular expression via constructor");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js
deleted file mode 100644
index cd12cf126a609a..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var r = /raz/;
- a(t(r), r, "Direct");
- r = new RegExp('foo');
- a(t(r), r, "Constructor");
- a.throws(function () {
- t({});
- }, "Object");
- a.throws(function () {
- t(function () {});
- }, "Function");
- a.throws(function () {
- t({ exec: function () { return 20; } });
- }, "Plain object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/implement.js
deleted file mode 100644
index 09bf3361acd6a2..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../string/#/@@iterator/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/shim.js
deleted file mode 100644
index 3b0e0b7547ece9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/shim.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var it = t.call('r💩z');
- a.deep(it.next(), { done: false, value: 'r' }, "#1");
- a.deep(it.next(), { done: false, value: '💩' }, "#2");
- a.deep(it.next(), { done: false, value: 'z' }, "#3");
- a.deep(it.next(), { done: true, value: undefined }, "End");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/at.js b/tools/eslint/node_modules/es5-ext/test/string/#/at.js
deleted file mode 100644
index 2447a9f64d5d83..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/at.js
+++ /dev/null
@@ -1,97 +0,0 @@
-// See tests at https://github.com/mathiasbynens/String.prototype.at
-
-'use strict';
-
-module.exports = function (t, a) {
- a(t.length, 1, "Length");
-
- a.h1("BMP");
- a(t.call('abc\uD834\uDF06def', -Infinity), '', "-Infinity");
- a(t.call('abc\uD834\uDF06def', -1), '', "-1");
- a(t.call('abc\uD834\uDF06def', -0), 'a', "-0");
- a(t.call('abc\uD834\uDF06def', +0), 'a', "+0");
- a(t.call('abc\uD834\uDF06def', 1), 'b', "1");
- a(t.call('abc\uD834\uDF06def', 3), '\uD834\uDF06', "3");
- a(t.call('abc\uD834\uDF06def', 4), '\uDF06', "4");
- a(t.call('abc\uD834\uDF06def', 5), 'd', "5");
- a(t.call('abc\uD834\uDF06def', 42), '', "42");
- a(t.call('abc\uD834\uDF06def', +Infinity), '', "+Infinity");
- a(t.call('abc\uD834\uDF06def', null), 'a', "null");
- a(t.call('abc\uD834\uDF06def', undefined), 'a', "undefined");
- a(t.call('abc\uD834\uDF06def'), 'a', "No argument");
- a(t.call('abc\uD834\uDF06def', false), 'a', "false");
- a(t.call('abc\uD834\uDF06def', NaN), 'a', "NaN");
- a(t.call('abc\uD834\uDF06def', ''), 'a', "Empty string");
- a(t.call('abc\uD834\uDF06def', '_'), 'a', "_");
- a(t.call('abc\uD834\uDF06def', '1'), 'b', "'1'");
- a(t.call('abc\uD834\uDF06def', []), 'a', "[]");
- a(t.call('abc\uD834\uDF06def', {}), 'a', "{}");
- a(t.call('abc\uD834\uDF06def', -0.9), 'a', "-0.9");
- a(t.call('abc\uD834\uDF06def', 1.9), 'b', "1.9");
- a(t.call('abc\uD834\uDF06def', 7.9), 'f', "7.9");
- a(t.call('abc\uD834\uDF06def', Math.pow(2, 32)), '', "Big number");
-
- a.h1("Astral symbol");
- a(t.call('\uD834\uDF06def', -Infinity), '', "-Infinity");
- a(t.call('\uD834\uDF06def', -1), '', "-1");
- a(t.call('\uD834\uDF06def', -0), '\uD834\uDF06', "-0");
- a(t.call('\uD834\uDF06def', +0), '\uD834\uDF06', "+0");
- a(t.call('\uD834\uDF06def', 1), '\uDF06', "1");
- a(t.call('\uD834\uDF06def', 2), 'd', "2");
- a(t.call('\uD834\uDF06def', 3), 'e', "3");
- a(t.call('\uD834\uDF06def', 4), 'f', "4");
- a(t.call('\uD834\uDF06def', 42), '', "42");
- a(t.call('\uD834\uDF06def', +Infinity), '', "+Infinity");
- a(t.call('\uD834\uDF06def', null), '\uD834\uDF06', "null");
- a(t.call('\uD834\uDF06def', undefined), '\uD834\uDF06', "undefined");
- a(t.call('\uD834\uDF06def'), '\uD834\uDF06', "No arguments");
- a(t.call('\uD834\uDF06def', false), '\uD834\uDF06', "false");
- a(t.call('\uD834\uDF06def', NaN), '\uD834\uDF06', "NaN");
- a(t.call('\uD834\uDF06def', ''), '\uD834\uDF06', "Empty string");
- a(t.call('\uD834\uDF06def', '_'), '\uD834\uDF06', "_");
- a(t.call('\uD834\uDF06def', '1'), '\uDF06', "'1'");
-
- a.h1("Lone high surrogates");
- a(t.call('\uD834abc', -Infinity), '', "-Infinity");
- a(t.call('\uD834abc', -1), '', "-1");
- a(t.call('\uD834abc', -0), '\uD834', "-0");
- a(t.call('\uD834abc', +0), '\uD834', "+0");
- a(t.call('\uD834abc', 1), 'a', "1");
- a(t.call('\uD834abc', 42), '', "42");
- a(t.call('\uD834abc', +Infinity), '', "Infinity");
- a(t.call('\uD834abc', null), '\uD834', "null");
- a(t.call('\uD834abc', undefined), '\uD834', "undefined");
- a(t.call('\uD834abc'), '\uD834', "No arguments");
- a(t.call('\uD834abc', false), '\uD834', "false");
- a(t.call('\uD834abc', NaN), '\uD834', "NaN");
- a(t.call('\uD834abc', ''), '\uD834', "Empty string");
- a(t.call('\uD834abc', '_'), '\uD834', "_");
- a(t.call('\uD834abc', '1'), 'a', "'a'");
-
- a.h1("Lone low surrogates");
- a(t.call('\uDF06abc', -Infinity), '', "-Infinity");
- a(t.call('\uDF06abc', -1), '', "-1");
- a(t.call('\uDF06abc', -0), '\uDF06', "-0");
- a(t.call('\uDF06abc', +0), '\uDF06', "+0");
- a(t.call('\uDF06abc', 1), 'a', "1");
- a(t.call('\uDF06abc', 42), '', "42");
- a(t.call('\uDF06abc', +Infinity), '', "+Infinity");
- a(t.call('\uDF06abc', null), '\uDF06', "null");
- a(t.call('\uDF06abc', undefined), '\uDF06', "undefined");
- a(t.call('\uDF06abc'), '\uDF06', "No arguments");
- a(t.call('\uDF06abc', false), '\uDF06', "false");
- a(t.call('\uDF06abc', NaN), '\uDF06', "NaN");
- a(t.call('\uDF06abc', ''), '\uDF06', "Empty string");
- a(t.call('\uDF06abc', '_'), '\uDF06', "_");
- a(t.call('\uDF06abc', '1'), 'a', "'1'");
-
- a.h1("Context");
- a.throws(function () { t.call(undefined); }, TypeError, "Undefined");
- a.throws(function () { t.call(undefined, 4); }, TypeError,
- "Undefined + argument");
- a.throws(function () { t.call(null); }, TypeError, "Null");
- a.throws(function () { t.call(null, 4); }, TypeError, "Null + argument");
- a(t.call(42, 0), '4', "Number #1");
- a(t.call(42, 1), '2', "Number #2");
- a(t.call({ toString: function () { return 'abc'; } }, 2), 'c', "Object");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/camel-to-hyphen.js b/tools/eslint/node_modules/es5-ext/test/string/#/camel-to-hyphen.js
deleted file mode 100644
index 8b47a8158a29d3..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/camel-to-hyphen.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('razDwaTRzy4yFoo45My'), 'raz-dwa-t-rzy4y-foo45-my');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/capitalize.js b/tools/eslint/node_modules/es5-ext/test/string/#/capitalize.js
deleted file mode 100644
index fa11ff8eeff856..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/capitalize.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('raz'), 'Raz', "Word");
- a(t.call('BLA'), 'BLA', "Uppercase");
- a(t.call(''), '', "Empty");
- a(t.call('a'), 'A', "One letter");
- a(t.call('this is a test'), 'This is a test', "Sentence");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/case-insensitive-compare.js b/tools/eslint/node_modules/es5-ext/test/string/#/case-insensitive-compare.js
deleted file mode 100644
index 01a90c39ce8307..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/case-insensitive-compare.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call("AA", "aa"), 0, "Same");
- a.ok(t.call("Amber", "zebra") < 0, "Less");
- a.ok(t.call("Zebra", "amber") > 0, "Greater");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/implement.js
deleted file mode 100644
index 5e33cd715ff47b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/implement.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-var isImplemented =
- require('../../../../string/#/code-point-at/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/shim.js
deleted file mode 100644
index 0df4751c564421..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/shim.js
+++ /dev/null
@@ -1,81 +0,0 @@
-// Taken from: https://github.com/mathiasbynens/String.prototype.codePointAt
-// /blob/master/tests/tests.js
-
-'use strict';
-
-module.exports = function (t, a) {
- a(t.length, 1, "Length");
-
- // String that starts with a BMP symbol
- a(t.call('abc\uD834\uDF06def', ''), 0x61);
- a(t.call('abc\uD834\uDF06def', '_'), 0x61);
- a(t.call('abc\uD834\uDF06def'), 0x61);
- a(t.call('abc\uD834\uDF06def', -Infinity), undefined);
- a(t.call('abc\uD834\uDF06def', -1), undefined);
- a(t.call('abc\uD834\uDF06def', -0), 0x61);
- a(t.call('abc\uD834\uDF06def', 0), 0x61);
- a(t.call('abc\uD834\uDF06def', 3), 0x1D306);
- a(t.call('abc\uD834\uDF06def', 4), 0xDF06);
- a(t.call('abc\uD834\uDF06def', 5), 0x64);
- a(t.call('abc\uD834\uDF06def', 42), undefined);
- a(t.call('abc\uD834\uDF06def', Infinity), undefined);
- a(t.call('abc\uD834\uDF06def', Infinity), undefined);
- a(t.call('abc\uD834\uDF06def', NaN), 0x61);
- a(t.call('abc\uD834\uDF06def', false), 0x61);
- a(t.call('abc\uD834\uDF06def', null), 0x61);
- a(t.call('abc\uD834\uDF06def', undefined), 0x61);
-
- // String that starts with an astral symbol
- a(t.call('\uD834\uDF06def', ''), 0x1D306);
- a(t.call('\uD834\uDF06def', '1'), 0xDF06);
- a(t.call('\uD834\uDF06def', '_'), 0x1D306);
- a(t.call('\uD834\uDF06def'), 0x1D306);
- a(t.call('\uD834\uDF06def', -1), undefined);
- a(t.call('\uD834\uDF06def', -0), 0x1D306);
- a(t.call('\uD834\uDF06def', 0), 0x1D306);
- a(t.call('\uD834\uDF06def', 1), 0xDF06);
- a(t.call('\uD834\uDF06def', 42), undefined);
- a(t.call('\uD834\uDF06def', false), 0x1D306);
- a(t.call('\uD834\uDF06def', null), 0x1D306);
- a(t.call('\uD834\uDF06def', undefined), 0x1D306);
-
- // Lone high surrogates
- a(t.call('\uD834abc', ''), 0xD834);
- a(t.call('\uD834abc', '_'), 0xD834);
- a(t.call('\uD834abc'), 0xD834);
- a(t.call('\uD834abc', -1), undefined);
- a(t.call('\uD834abc', -0), 0xD834);
- a(t.call('\uD834abc', 0), 0xD834);
- a(t.call('\uD834abc', false), 0xD834);
- a(t.call('\uD834abc', NaN), 0xD834);
- a(t.call('\uD834abc', null), 0xD834);
- a(t.call('\uD834abc', undefined), 0xD834);
-
- // Lone low surrogates
- a(t.call('\uDF06abc', ''), 0xDF06);
- a(t.call('\uDF06abc', '_'), 0xDF06);
- a(t.call('\uDF06abc'), 0xDF06);
- a(t.call('\uDF06abc', -1), undefined);
- a(t.call('\uDF06abc', -0), 0xDF06);
- a(t.call('\uDF06abc', 0), 0xDF06);
- a(t.call('\uDF06abc', false), 0xDF06);
- a(t.call('\uDF06abc', NaN), 0xDF06);
- a(t.call('\uDF06abc', null), 0xDF06);
- a(t.call('\uDF06abc', undefined), 0xDF06);
-
- a.throws(function () { t.call(undefined); }, TypeError);
- a.throws(function () { t.call(undefined, 4); }, TypeError);
- a.throws(function () { t.call(null); }, TypeError);
- a.throws(function () { t.call(null, 4); }, TypeError);
- a(t.call(42, 0), 0x34);
- a(t.call(42, 1), 0x32);
- a(t.call({ toString: function () { return 'abc'; } }, 2), 0x63);
-
- a.throws(function () { t.apply(undefined); }, TypeError);
- a.throws(function () { t.apply(undefined, [4]); }, TypeError);
- a.throws(function () { t.apply(null); }, TypeError);
- a.throws(function () { t.apply(null, [4]); }, TypeError);
- a(t.apply(42, [0]), 0x34);
- a(t.apply(42, [1]), 0x32);
- a(t.apply({ toString: function () { return 'abc'; } }, [2]), 0x63);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/implement.js
deleted file mode 100644
index 220f50d4672f13..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../string/#/contains/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/shim.js
deleted file mode 100644
index a0ea4db20812e5..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/shim.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('raz', ''), true, "Empty");
- a(t.call('', ''), true, "Both Empty");
- a(t.call('raz', 'raz'), true, "Same");
- a(t.call('razdwa', 'raz'), true, "Starts with");
- a(t.call('razdwa', 'dwa'), true, "Ends with");
- a(t.call('razdwa', 'zdw'), true, "In middle");
- a(t.call('', 'raz'), false, "Something in empty");
- a(t.call('az', 'raz'), false, "Longer");
- a(t.call('azasdfasdf', 'azff'), false, "Not found");
- a(t.call('razdwa', 'raz', 1), false, "Position");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/implement.js
deleted file mode 100644
index 93bd2ddcd6dc20..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../string/#/ends-with/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/shim.js
deleted file mode 100644
index e4b93c407bc2b5..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/shim.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// In some parts copied from:
-// http://closure-library.googlecode.com/svn/trunk/closure/goog/
-// string/string_test.html
-
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('abc', ''), true, "Empty needle");
- a(t.call('abcd', 'cd'), true, "Ends with needle");
- a(t.call('abcd', 'abcd'), true, "Needle equals haystack");
- a(t.call('abcd', 'ab'), false, "Doesn't end with needle");
- a(t.call('abc', 'defg'), false, "Length trick");
- a(t.call('razdwa', 'zd', 3), false, "Position: false");
- a(t.call('razdwa', 'zd', 4), true, "Position: true");
- a(t.call('razdwa', 'zd', 5), false, "Position: false #2");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/hyphen-to-camel.js b/tools/eslint/node_modules/es5-ext/test/string/#/hyphen-to-camel.js
deleted file mode 100644
index bd7ded4befbc7d..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/hyphen-to-camel.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('raz-dwa-t-rzy-4y-rtr4-tiu-45-pa'), 'razDwaTRzy4yRtr4Tiu45Pa');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/indent.js b/tools/eslint/node_modules/es5-ext/test/string/#/indent.js
deleted file mode 100644
index eb92b36f5438d6..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/indent.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('ra\nzz', ''), 'ra\nzz', "Empty");
- a(t.call('ra\nzz', '\t', 3), '\t\t\tra\n\t\t\tzz', "String repeat");
- a(t.call('ra\nzz\nsss\nfff\n', '\t'), '\tra\n\tzz\n\tsss\n\tfff\n',
- "Multi-line");
- a(t.call('ra\n\nzz\n', '\t'), '\tra\n\n\tzz\n', "Don't touch empty lines");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/last.js b/tools/eslint/node_modules/es5-ext/test/string/#/last.js
deleted file mode 100644
index ad36a213c6053e..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/last.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(''), null, "Null");
- a(t.call('abcdef'), 'f', "String");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/_data.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/_data.js
deleted file mode 100644
index c741addb0055a9..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/_data.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t[0], 'object'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/implement.js
deleted file mode 100644
index 4886c9b834285b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../string/#/normalize/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/shim.js
deleted file mode 100644
index 28e27f595247be..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/shim.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// Taken from: https://github.com/walling/unorm/blob/master/test/es6-shim.js
-
-'use strict';
-
-var str = 'äiti';
-
-module.exports = function (t, a) {
- a(t.call(str), "\u00e4iti");
- a(t.call(str, "NFC"), "\u00e4iti");
- a(t.call(str, "NFD"), "a\u0308iti");
- a(t.call(str, "NFKC"), "\u00e4iti");
- a(t.call(str, "NFKD"), "a\u0308iti");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/pad.js b/tools/eslint/node_modules/es5-ext/test/string/#/pad.js
deleted file mode 100644
index 28c3fcaa10c4da..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/pad.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-
-var partial = require('../../../function/#/partial');
-
-module.exports = {
- Left: function (t, a) {
- t = partial.call(t, 'x', 5);
-
- a(t.call('yy'), 'xxxyy');
- a(t.call(''), 'xxxxx', "Empty string");
-
- a(t.call('yyyyy'), 'yyyyy', 'Equal length');
- a(t.call('yyyyyyy'), 'yyyyyyy', 'Longer');
- },
- Right: function (t, a) {
- t = partial.call(t, 'x', -5);
-
- a(t.call('yy'), 'yyxxx');
- a(t.call(''), 'xxxxx', "Empty string");
-
- a(t.call('yyyyy'), 'yyyyy', 'Equal length');
- a(t.call('yyyyyyy'), 'yyyyyyy', 'Longer');
- }
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace-all.js b/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace-all.js
deleted file mode 100644
index a425c87a40553b..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace-all.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('razdwatrzy', 'dwa', 'olera'), 'razoleratrzy', "Basic");
- a(t.call('razdwatrzy', 'dwa', 'ole$&a'), 'razole$&atrzy', "Inserts");
- a(t.call('razdwa', 'ola', 'sdfs'), 'razdwa', "No replace");
-
- a(t.call('$raz$$dwa$trzy$', '$', '&&'), '&&raz&&&&dwa&&trzy&&', "Multi");
- a(t.call('$raz$$dwa$$$$trzy$', '$$', '&'), '$raz&dwa&&trzy$',
- "Multi many chars");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace.js b/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace.js
deleted file mode 100644
index 54522ed749fe37..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('razdwatrzy', 'dwa', 'olera'), 'razoleratrzy', "Basic");
- a(t.call('razdwatrzy', 'dwa', 'ole$&a'), 'razole$&atrzy', "Inserts");
- a(t.call('razdwa', 'ola', 'sdfs'), 'razdwa', "No replace");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/implement.js
deleted file mode 100644
index 7ff65a811068b4..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../string/#/repeat/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/shim.js
deleted file mode 100644
index 7e0d077ec4bdb6..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/shim.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('a', 0), '', "Empty");
- a(t.call('a', 1), 'a', "1");
- a(t.call('\t', 5), '\t\t\t\t\t', "Whitespace");
- a(t.call('raz', 3), 'razrazraz', "Many chars");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/implement.js
deleted file mode 100644
index fc8490fc916ac3..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../../string/#/starts-with/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/shim.js
deleted file mode 100644
index e0e123b324e115..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/shim.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// Inspired and in some parts copied from:
-// http://closure-library.googlecode.com/svn/trunk/closure/goog
-// /string/string_test.html
-
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('abc', ''), true, "Empty needle");
- a(t.call('abcd', 'ab'), true, "Starts with needle");
- a(t.call('abcd', 'abcd'), true, "Needle equals haystack");
- a(t.call('abcd', 'bcde', 1), false, "Needle larger than haystack");
- a(!t.call('abcd', 'cd'), true, "Doesn't start with needle");
- a(t.call('abcd', 'bc', 1), true, "Position");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/uncapitalize.js b/tools/eslint/node_modules/es5-ext/test/string/#/uncapitalize.js
deleted file mode 100644
index 50f35f1fe40a91..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/#/uncapitalize.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call('raz'), 'raz', "Word");
- a(t.call('BLA'), 'bLA', "Uppercase");
- a(t.call(''), '', "Empty");
- a(t.call('a'), 'a', "One letter");
- a(t.call('this is a test'), 'this is a test', "Sentence");
- a(t.call('This is a test'), 'this is a test', "Capitalized sentence");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/format-method.js b/tools/eslint/node_modules/es5-ext/test/string/format-method.js
deleted file mode 100644
index bb5561ee45bb59..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/format-method.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- t = t({ a: 'A', aa: 'B', ab: 'C', b: 'D',
- c: function () { return ++this.a; } });
- a(t.call({ a: 0 }, ' %a%aab%abb%b\\%aa%ab%c%c '), ' ABbCbD%aaC12 ');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/implement.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/implement.js
deleted file mode 100644
index 0aceb97efdcf36..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../string/from-code-point/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/index.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/shim.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/shim.js
deleted file mode 100644
index 88cda3d6364719..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/shim.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// Taken from: https://github.com/mathiasbynens/String.fromCodePoint/blob/master
-// /tests/tests.js
-
-'use strict';
-
-var pow = Math.pow;
-
-module.exports = function (t, a) {
- var counter, result;
-
- a(t.length, 1, "Length");
- a(String.propertyIsEnumerable('fromCodePoint'), false, "Not enumerable");
-
- a(t(''), '\0', "Empty string");
- a(t(), '', "No arguments");
- a(t(-0), '\0', "-0");
- a(t(0), '\0', "0");
- a(t(0x1D306), '\uD834\uDF06', "Unicode");
- a(t(0x1D306, 0x61, 0x1D307), '\uD834\uDF06a\uD834\uDF07', "Complex unicode");
- a(t(0x61, 0x62, 0x1D307), 'ab\uD834\uDF07', "Complex");
- a(t(false), '\0', "false");
- a(t(null), '\0', "null");
-
- a.throws(function () { t('_'); }, RangeError, "_");
- a.throws(function () { t(Infinity); }, RangeError, "Infinity");
- a.throws(function () { t(-Infinity); }, RangeError, "-Infinity");
- a.throws(function () { t(-1); }, RangeError, "-1");
- a.throws(function () { t(0x10FFFF + 1); }, RangeError, "Range error #1");
- a.throws(function () { t(3.14); }, RangeError, "Range error #2");
- a.throws(function () { t(3e-2); }, RangeError, "Range error #3");
- a.throws(function () { t(-Infinity); }, RangeError, "Range error #4");
- a.throws(function () { t(+Infinity); }, RangeError, "Range error #5");
- a.throws(function () { t(NaN); }, RangeError, "Range error #6");
- a.throws(function () { t(undefined); }, RangeError, "Range error #7");
- a.throws(function () { t({}); }, RangeError, "Range error #8");
- a.throws(function () { t(/re/); }, RangeError, "Range error #9");
-
- counter = pow(2, 15) * 3 / 2;
- result = [];
- while (--counter >= 0) result.push(0); // one code unit per symbol
- t.apply(null, result); // must not throw
-
- counter = pow(2, 15) * 3 / 2;
- result = [];
- while (--counter >= 0) result.push(0xFFFF + 1); // two code units per symbol
- t.apply(null, result); // must not throw
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/is-string.js b/tools/eslint/node_modules/es5-ext/test/string/is-string.js
deleted file mode 100644
index 32f595829168ee..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/is-string.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t(null), false, "Null");
- a(t(''), true, "Empty string");
- a(t(12), false, "Number");
- a(t(false), false, "Boolean");
- a(t(new Date()), false, "Date");
- a(t(new String('raz')), true, "String object");
- a(t('asdfaf'), true, "String");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/random-uniq.js b/tools/eslint/node_modules/es5-ext/test/string/random-uniq.js
deleted file mode 100644
index 6791ac266e7530..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/random-uniq.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var isValidFormat = RegExp.prototype.test.bind(/^[a-z0-9]+$/);
-
-module.exports = function (t, a) {
- a(typeof t(), 'string');
- a.ok(t().length > 7);
- a.not(t(), t());
- a.ok(isValidFormat(t()));
- a.ok(isValidFormat(t()));
- a.ok(isValidFormat(t()));
- a.ok(isValidFormat(t()));
- a.ok(isValidFormat(t()));
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/implement.js b/tools/eslint/node_modules/es5-ext/test/string/raw/implement.js
deleted file mode 100644
index 59416de3af53ad..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/raw/implement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-var isImplemented = require('../../../string/raw/is-implemented');
-
-module.exports = function (a) { a(isImplemented(), true); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/index.js b/tools/eslint/node_modules/es5-ext/test/string/raw/index.js
deleted file mode 100644
index 2e0bfa3249d806..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/raw/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./shim');
diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/raw/is-implemented.js
deleted file mode 100644
index 1a8832889bf493..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/raw/is-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t(), 'boolean'); };
diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/shim.js b/tools/eslint/node_modules/es5-ext/test/string/raw/shim.js
deleted file mode 100644
index 025ed780455667..00000000000000
--- a/tools/eslint/node_modules/es5-ext/test/string/raw/shim.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// Partially taken from:
-// https://github.com/paulmillr/es6-shim/blob/master/test/string.js
-
-'use strict';
-
-module.exports = function (t, a) {
- var callSite = [];
-
- callSite.raw = ["The total is ", " ($", " with tax)"];
- a(t(callSite, '{total}', '{total * 1.01}'),
- 'The total is {total} (${total * 1.01} with tax)');
-
- callSite.raw = [];
- a(t(callSite, '{total}', '{total * 1.01}'), '');
-};
diff --git a/tools/eslint/node_modules/es6-iterator/.npmignore b/tools/eslint/node_modules/es6-iterator/.npmignore
deleted file mode 100644
index 155e41f69142ef..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-/node_modules
-/npm-debug.log
-/.lintcache
diff --git a/tools/eslint/node_modules/es6-iterator/.travis.yml b/tools/eslint/node_modules/es6-iterator/.travis.yml
deleted file mode 100644
index fc254110608e62..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-language: node_js
-node_js:
- - 0.12
- - 4
-
-notifications:
- email:
- - medikoo+es6-iterator@medikoo.com
-
-script: "npm test && npm run lint"
diff --git a/tools/eslint/node_modules/es6-iterator/CHANGES b/tools/eslint/node_modules/es6-iterator/CHANGES
deleted file mode 100644
index ce33180939c05f..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/CHANGES
+++ /dev/null
@@ -1,35 +0,0 @@
-v2.0.0 -- 2015.10.02
-* Use es6-symbol at v3
-
-v1.0.0 -- 2015.06.23
-* Implement support for arguments object
-* Drop support for v0.8 node ('^' in package.json dependencies)
-
-v0.1.3 -- 2015.02.02
-* Update dependencies
-* Fix spelling of LICENSE
-
-v0.1.2 -- 2014.11.19
-* Optimise internal `_next` to not verify internal's list length at all times
- (#2 thanks @RReverser)
-* Fix documentation examples
-* Configure lint scripts
-
-v0.1.1 -- 2014.04.29
-* Fix es6-symbol dependency version
-
-v0.1.0 -- 2014.04.29
-* Assure strictly npm hosted dependencies
-* Remove sparse arrays dedicated handling (as per spec)
-* Add: isIterable, validIterable and chain (method)
-* Remove toArray, it's addressed by Array.from (polyfil can be found in es5-ext/array/from)
-* Add break possiblity to 'forOf' via 'doBreak' function argument
-* Provide dedicated iterator for array-likes (ArrayIterator) and for strings (StringIterator)
-* Provide @@toStringTag symbol
-* When available rely on @@iterator symbol
-* Remove 32bit integer maximum list length restriction
-* Improve Iterator internals
-* Update to use latest version of dependencies
-
-v0.0.0 -- 2013.10.12
-Initial (dev version)
\ No newline at end of file
diff --git a/tools/eslint/node_modules/es6-iterator/package.json b/tools/eslint/node_modules/es6-iterator/package.json
index 8c0029c98869d8..71fee1b0ffd4e3 100644
--- a/tools/eslint/node_modules/es6-iterator/package.json
+++ b/tools/eslint/node_modules/es6-iterator/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"es6-iterator@2",
- "/Users/trott/test/node_modules/eslint/node_modules/es6-map"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map"
]
],
"_from": "es6-iterator@>=2.0.0 <3.0.0",
"_id": "es6-iterator@2.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/es6-iterator",
+ "_location": "/es6-iterator",
"_nodeVersion": "0.12.7",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
@@ -26,16 +26,16 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/es5-ext",
- "/eslint/es6-map",
- "/eslint/es6-set",
- "/eslint/es6-weak-map"
+ "/es5-ext",
+ "/es6-map",
+ "/es6-set",
+ "/es6-weak-map"
],
"_resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.0.tgz",
"_shasum": "bd968567d61635e33c0b80727613c9cb4b096bac",
"_shrinkwrap": null,
"_spec": "es6-iterator@2",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/es6-map",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -64,18 +64,18 @@
"gitHead": "4d9445834e87780ab373b14d6791e860899e2d31",
"homepage": "https://github.com/medikoo/es6-iterator#readme",
"keywords": [
- "iterator",
"array",
+ "generator",
+ "iterator",
"list",
- "set",
"map",
- "generator"
+ "set"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "es6-iterator",
diff --git a/tools/eslint/node_modules/es6-iterator/test/#/chain.js b/tools/eslint/node_modules/es6-iterator/test/#/chain.js
deleted file mode 100644
index a414c66d78f44f..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/#/chain.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var Iterator = require('../../');
-
-module.exports = function (t, a) {
- var i1 = new Iterator(['raz', 'dwa', 'trzy'])
- , i2 = new Iterator(['cztery', 'pięć', 'sześć'])
- , i3 = new Iterator(['siedem', 'osiem', 'dziewięć'])
-
- , iterator = t.call(i1, i2, i3);
-
- a.deep(iterator.next(), { done: false, value: 'raz' }, "#1");
- a.deep(iterator.next(), { done: false, value: 'dwa' }, "#2");
- a.deep(iterator.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(iterator.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(iterator.next(), { done: false, value: 'pięć' }, "#5");
- a.deep(iterator.next(), { done: false, value: 'sześć' }, "#6");
- a.deep(iterator.next(), { done: false, value: 'siedem' }, "#7");
- a.deep(iterator.next(), { done: false, value: 'osiem' }, "#8");
- a.deep(iterator.next(), { done: false, value: 'dziewięć' }, "#9");
- a.deep(iterator.next(), { done: true, value: undefined }, "Done #1");
- a.deep(iterator.next(), { done: true, value: undefined }, "Done #2");
-};
diff --git a/tools/eslint/node_modules/es6-iterator/test/array.js b/tools/eslint/node_modules/es6-iterator/test/array.js
deleted file mode 100644
index ae7c2199e84a72..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/array.js
+++ /dev/null
@@ -1,67 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator;
-
-module.exports = function (T) {
- return {
- Values: function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;
-
- it = new T(x);
- a(it[iteratorSymbol](), it, "@@iterator");
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.splice(1, 0, 'elo');
- a.deep(it.next(), { done: false, value: 'dwa' }, "Insert");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- x.pop();
- a.deep(it.next(), { done: false, value: 'pięć' }, "#5");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Keys & Values": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;
-
- it = new T(x, 'key+value');
- a(it[iteratorSymbol](), it, "@@iterator");
- a.deep(it.next(), { done: false, value: [0, 'raz'] }, "#1");
- a.deep(it.next(), { done: false, value: [1, 'dwa'] }, "#2");
- x.splice(1, 0, 'elo');
- a.deep(it.next(), { done: false, value: [2, 'dwa'] }, "Insert");
- a.deep(it.next(), { done: false, value: [3, 'trzy'] }, "#3");
- a.deep(it.next(), { done: false, value: [4, 'cztery'] }, "#4");
- x.pop();
- a.deep(it.next(), { done: false, value: [5, 'pięć'] }, "#5");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- Keys: function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;
-
- it = new T(x, 'key');
- a(it[iteratorSymbol](), it, "@@iterator");
- a.deep(it.next(), { done: false, value: 0 }, "#1");
- a.deep(it.next(), { done: false, value: 1 }, "#2");
- x.splice(1, 0, 'elo');
- a.deep(it.next(), { done: false, value: 2 }, "Insert");
- a.deep(it.next(), { done: false, value: 3 }, "#3");
- a.deep(it.next(), { done: false, value: 4 }, "#4");
- x.pop();
- a.deep(it.next(), { done: false, value: 5 }, "#5");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- Sparse: function (a) {
- var x = new Array(6), it;
-
- x[2] = 'raz';
- x[4] = 'dwa';
- it = new T(x);
- a.deep(it.next(), { done: false, value: undefined }, "#1");
- a.deep(it.next(), { done: false, value: undefined }, "#2");
- a.deep(it.next(), { done: false, value: 'raz' }, "#3");
- a.deep(it.next(), { done: false, value: undefined }, "#4");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#5");
- a.deep(it.next(), { done: false, value: undefined }, "#6");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- }
- };
-};
diff --git a/tools/eslint/node_modules/es6-iterator/test/for-of.js b/tools/eslint/node_modules/es6-iterator/test/for-of.js
deleted file mode 100644
index 108df7d97a3c39..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/for-of.js
+++ /dev/null
@@ -1,40 +0,0 @@
-'use strict';
-
-var ArrayIterator = require('../array')
-
- , slice = Array.prototype.slice;
-
-module.exports = function (t, a) {
- var i = 0, x = ['raz', 'dwa', 'trzy'], y = {}, called = 0;
- t(x, function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "Array " + i + "#");
- a(this, y, "Array: context: " + (i++) + "#");
- }, y);
- i = 0;
- t((function () { return arguments; }('raz', 'dwa', 'trzy')), function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "Arguments" + i + "#");
- a(this, y, "Arguments: context: " + (i++) + "#");
- }, y);
- i = 0;
- t(x = 'foo', function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
- a(this, y, "Regular String: context: " + (i++) + "#");
- }, y);
- i = 0;
- x = ['r', '💩', 'z'];
- t('r💩z', function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
- a(this, y, "Unicode String: context: " + (i++) + "#");
- }, y);
- i = 0;
- t(new ArrayIterator(x), function () {
- a.deep(slice.call(arguments, 0, 1), [x[i]], "Iterator " + i + "#");
- a(this, y, "Iterator: context: " + (i++) + "#");
- }, y);
-
- t(x = ['raz', 'dwa', 'trzy'], function (value, doBreak) {
- ++called;
- return doBreak();
- });
- a(called, 1, "Break");
-};
diff --git a/tools/eslint/node_modules/es6-iterator/test/get.js b/tools/eslint/node_modules/es6-iterator/test/get.js
deleted file mode 100644
index 81ce6e6ae48b79..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/get.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator
- , Iterator = require('../');
-
-module.exports = function (t, a) {
- var iterator;
- a.throws(function () { t(); }, TypeError, "Null");
- a.throws(function () { t({}); }, TypeError, "Plain object");
- a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
- iterator = {};
- iterator[iteratorSymbol] = function () { return new Iterator([]); };
- a(t(iterator) instanceof Iterator, true, "Iterator");
- a(String(t([])), '[object Array Iterator]', " Array");
- a(String(t((function () { return arguments; }()))), '[object Array Iterator]', " Arguments");
- a(String(t('foo')), '[object String Iterator]', "String");
-};
diff --git a/tools/eslint/node_modules/es6-iterator/test/index.js b/tools/eslint/node_modules/es6-iterator/test/index.js
deleted file mode 100644
index ea3621adfebeb5..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/index.js
+++ /dev/null
@@ -1,99 +0,0 @@
-'use strict';
-
-var ee = require('event-emitter')
- , iteratorSymbol = require('es6-symbol').iterator;
-
-module.exports = function (T) {
- return {
- "": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], it, y, z;
-
- it = new T(x);
- a(it[iteratorSymbol](), it, "@@iterator");
- y = it.next();
- a.deep(y, { done: false, value: 'raz' }, "#1");
- z = it.next();
- a.not(y, z, "Recreate result");
- a.deep(z, { done: false, value: 'dwa' }, "#2");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(it.next(), { done: false, value: 'pięć' }, "#5");
- a.deep(y = it.next(), { done: true, value: undefined }, "End");
- a.not(y, it.next(), "Recreate result on dead");
- },
- Emited: function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- y.emit('_add', x.push('sześć') - 1);
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- x.splice(5, 1);
- y.emit('_delete', 5);
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(it.next(), { done: false, value: 'sześć' }, "#5");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited #2": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- x.splice(1, 0, '1.25');
- y.emit('_add', 1);
- x.splice(0, 1);
- y.emit('_delete', 0);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- a.deep(it.next(), { done: false, value: '1.25' }, "Insert #2");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- x.splice(5, 1);
- y.emit('_delete', 5);
- a.deep(it.next(), { done: false, value: 'sześć' }, "#5");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #1": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.length = 0;
- y.emit('_clear');
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #2": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.length = 0;
- y.emit('_clear');
- x.push('foo');
- x.push('bar');
- a.deep(it.next(), { done: false, value: 'foo' }, "#3");
- a.deep(it.next(), { done: false, value: 'bar' }, "#4");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- x.splice(1, 0, '1.25');
- y.emit('_add', 1);
- x.splice(0, 1);
- y.emit('_delete', 0);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- a.deep(it.next(), { done: false, value: '1.25' }, "Insert #2");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- }
- };
-};
diff --git a/tools/eslint/node_modules/es6-iterator/test/is-iterable.js b/tools/eslint/node_modules/es6-iterator/test/is-iterable.js
deleted file mode 100644
index 438ad349ca3d48..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/is-iterable.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator
- , Iterator = require('../');
-
-module.exports = function (t, a) {
- var iterator;
- a(t(), false, "Undefined");
- a(t(123), false, "Number");
- a(t({}), false, "Plain object");
- a(t({ length: 0 }), false, "Array-like");
- iterator = {};
- iterator[iteratorSymbol] = function () { return new Iterator([]); };
- a(t(iterator), true, "Iterator");
- a(t([]), true, "Array");
- a(t('foo'), true, "String");
- a(t(''), true, "Empty string");
- a(t((function () { return arguments; }())), true, "Arguments");
-};
diff --git a/tools/eslint/node_modules/es6-iterator/test/string.js b/tools/eslint/node_modules/es6-iterator/test/string.js
deleted file mode 100644
index d11855f2511609..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/string.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator;
-
-module.exports = function (T, a) {
- var it = new T('foobar');
-
- a(it[iteratorSymbol](), it, "@@iterator");
- a.deep(it.next(), { done: false, value: 'f' }, "#1");
- a.deep(it.next(), { done: false, value: 'o' }, "#2");
- a.deep(it.next(), { done: false, value: 'o' }, "#3");
- a.deep(it.next(), { done: false, value: 'b' }, "#4");
- a.deep(it.next(), { done: false, value: 'a' }, "#5");
- a.deep(it.next(), { done: false, value: 'r' }, "#6");
- a.deep(it.next(), { done: true, value: undefined }, "End");
-
- a.h1("Outside of BMP");
- it = new T('r💩z');
- a.deep(it.next(), { done: false, value: 'r' }, "#1");
- a.deep(it.next(), { done: false, value: '💩' }, "#2");
- a.deep(it.next(), { done: false, value: 'z' }, "#3");
- a.deep(it.next(), { done: true, value: undefined }, "End");
-};
diff --git a/tools/eslint/node_modules/es6-iterator/test/valid-iterable.js b/tools/eslint/node_modules/es6-iterator/test/valid-iterable.js
deleted file mode 100644
index a407f1a0c46923..00000000000000
--- a/tools/eslint/node_modules/es6-iterator/test/valid-iterable.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator
- , Iterator = require('../');
-
-module.exports = function (t, a) {
- var obj;
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t({}); }, TypeError, "Plain object");
- a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
- obj = {};
- obj[iteratorSymbol] = function () { return new Iterator([]); };
- a(t(obj), obj, "Iterator");
- obj = [];
- a(t(obj), obj, 'Array');
- obj = (function () { return arguments; }());
- a(t(obj), obj, "Arguments");
-};
diff --git a/tools/eslint/node_modules/es6-map/.npmignore b/tools/eslint/node_modules/es6-map/.npmignore
deleted file mode 100644
index 155e41f69142ef..00000000000000
--- a/tools/eslint/node_modules/es6-map/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-/node_modules
-/npm-debug.log
-/.lintcache
diff --git a/tools/eslint/node_modules/es6-map/.travis.yml b/tools/eslint/node_modules/es6-map/.travis.yml
deleted file mode 100644
index 83625d8c3e44a9..00000000000000
--- a/tools/eslint/node_modules/es6-map/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-language: node_js
-node_js:
- - 0.12
- - 4
- - 5
-
-notifications:
- email:
- - medikoo+es6-map@medikoo.com
-
-script: "npm test && npm run lint"
diff --git a/tools/eslint/node_modules/es6-map/CHANGES b/tools/eslint/node_modules/es6-map/CHANGES
deleted file mode 100644
index 97f484a5c03f0b..00000000000000
--- a/tools/eslint/node_modules/es6-map/CHANGES
+++ /dev/null
@@ -1,26 +0,0 @@
-v0.1.3 -- 2015.11.18
-* Relax validation of native implementation (do not require proper stringification of Map.prototype)
-
-v0.1.2 -- 2015.10.15
-* Improve native detection
-* Ensure proper inheritance
-* Update up to specification
-* Fix spelling of LICENSE
-* Update dependencies
-
-v0.1.1 -- 2014.10.07
-* Fix isImplemented so native Maps are detected properly
-* Configure lint scripts
-
-v0.1.0 -- 2014.04.29
-* Assure strictly npm hosted dependencies
-* Update to use latest versions of dependencies
-
-v0.0.1 -- 2014.04.25
-* Provide @@toStringTag symbol, and use other ES 6 symbols
-* Fix iterators handling
-* Fix isImplemented so it doesn't crash
-* Update up to changes in dependencies
-
-v0.0.0 -- 2013.11.10
-- Initial (dev) version
diff --git a/tools/eslint/node_modules/es6-map/package.json b/tools/eslint/node_modules/es6-map/package.json
index 1f1ff679fe9ee6..c9a149d28d085b 100644
--- a/tools/eslint/node_modules/es6-map/package.json
+++ b/tools/eslint/node_modules/es6-map/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"es6-map@^0.1.3",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "es6-map@>=0.1.3 <0.2.0",
"_id": "es6-map@0.1.3",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/es6-map",
+ "_location": "/es6-map",
"_nodeVersion": "4.2.2",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
@@ -26,14 +26,14 @@
"type": "range"
},
"_requiredBy": [
- "/eslint",
- "/eslint/escope"
+ "/",
+ "/escope"
],
"_resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.3.tgz",
"_shasum": "fe58c6654c6acd54e4397cdb72379d59b6ad5894",
"_shrinkwrap": null,
"_spec": "es6-map@^0.1.3",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -65,21 +65,21 @@
"homepage": "https://github.com/medikoo/es6-map#readme",
"keywords": [
"collection",
+ "ecmascript",
"es6",
- "shim",
"harmony",
- "list",
"hash",
+ "list",
"map",
"polyfill",
"ponyfill",
- "ecmascript"
+ "shim"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "es6-map",
diff --git a/tools/eslint/node_modules/es6-map/test/implement.js b/tools/eslint/node_modules/es6-map/test/implement.js
deleted file mode 100644
index 3569df61d221ff..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/implement.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof Map, 'function'); };
diff --git a/tools/eslint/node_modules/es6-map/test/index.js b/tools/eslint/node_modules/es6-map/test/index.js
deleted file mode 100644
index 907b8c5a7bb2e7..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (T, a) {
- a((new T([['raz', 1], ['dwa', 2]])).size, 2);
-};
diff --git a/tools/eslint/node_modules/es6-map/test/is-implemented.js b/tools/eslint/node_modules/es6-map/test/is-implemented.js
deleted file mode 100644
index 06df91cc529c02..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/is-implemented.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var global = require('es5-ext/global')
- , polyfill = require('../polyfill');
-
-module.exports = function (t, a) {
- var cache;
- a(typeof t(), 'boolean');
- cache = global.Map;
- global.Map = polyfill;
- a(t(), true);
- if (cache === undefined) delete global.Map;
- else global.Map = cache;
-};
diff --git a/tools/eslint/node_modules/es6-map/test/is-map.js b/tools/eslint/node_modules/es6-map/test/is-map.js
deleted file mode 100644
index f600b2298b8e7a..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/is-map.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var MapPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- a(t(undefined), false, "Undefined");
- a(t(null), false, "Null");
- a(t(true), false, "Primitive");
- a(t('raz'), false, "String");
- a(t({}), false, "Object");
- a(t([]), false, "Array");
- if (typeof Map !== 'undefined') {
- a(t(new Map()), true, "Native");
- }
- a(t(new MapPoly()), true, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/es6-map/test/is-native-implemented.js b/tools/eslint/node_modules/es6-map/test/is-native-implemented.js
deleted file mode 100644
index df8ba0323f0cad..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/is-native-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t, 'boolean'); };
diff --git a/tools/eslint/node_modules/es6-map/test/lib/iterator-kinds.js b/tools/eslint/node_modules/es6-map/test/lib/iterator-kinds.js
deleted file mode 100644
index 41ea10c57deffc..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/lib/iterator-kinds.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t, { key: true, value: true, 'key+value': true });
-};
diff --git a/tools/eslint/node_modules/es6-map/test/lib/iterator.js b/tools/eslint/node_modules/es6-map/test/lib/iterator.js
deleted file mode 100644
index 2688ed26cb7a73..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/lib/iterator.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var Map = require('../../polyfill')
- , toArray = require('es5-ext/array/to-array');
-
-module.exports = function (T, a) {
- var arr = [['raz', 'one'], ['dwa', 'two']], map = new Map(arr);
-
- a.deep(toArray(new T(map)), arr, "Default");
- a.deep(toArray(new T(map, 'key+value')), arr, "Key & Value");
- a.deep(toArray(new T(map, 'value')), ['one', 'two'], "Value");
- a.deep(toArray(new T(map, 'key')), ['raz', 'dwa'], "Value");
-};
diff --git a/tools/eslint/node_modules/es6-map/test/lib/primitive-iterator.js b/tools/eslint/node_modules/es6-map/test/lib/primitive-iterator.js
deleted file mode 100644
index ed2790de9b5cc6..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/lib/primitive-iterator.js
+++ /dev/null
@@ -1,130 +0,0 @@
-'use strict';
-
-var iteratorSymbol = require('es6-symbol').iterator
- , toArray = require('es5-ext/array/to-array')
- , Map = require('../../primitive')
-
- , compare, mapToResults;
-
-compare = function (a, b) {
- if (!a.value) return -1;
- if (!b.value) return 1;
- return a.value[0].localeCompare(b.value[0]);
-};
-
-mapToResults = function (arr) {
- return arr.sort().map(function (value) {
- return { done: false, value: value };
- });
-};
-
-module.exports = function (T) {
- return {
- "": function (a) {
- var arr, it, y, z, map, result = [];
-
- arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
- ['cztery', 'four'], ['pięć', 'five']];
- map = new Map(arr);
-
- it = new T(map);
- a(it[iteratorSymbol](), it, "@@iterator");
- y = it.next();
- result.push(y);
- z = it.next();
- a.not(y, z, "Recreate result");
- result.push(z);
- result.push(it.next());
- result.push(it.next());
- result.push(it.next());
- a.deep(result.sort(compare), mapToResults(arr));
- a.deep(y = it.next(), { done: true, value: undefined }, "End");
- a.not(y, it.next(), "Recreate result on dead");
- },
- Emited: function (a) {
- var arr, it, map, result = [];
-
- arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
- ['cztery', 'four'], ['pięć', 'five']];
- map = new Map(arr);
-
- it = new T(map);
- result.push(it.next());
- result.push(it.next());
- map.set('sześć', 'six');
- arr.push(['sześć', 'six']);
- result.push(it.next());
- map.delete('pięć');
- arr.splice(4, 1);
- result.push(it.next());
- result.push(it.next());
- a.deep(result.sort(compare), mapToResults(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited #2": function (a) {
- var arr, it, map, result = [];
-
- arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
- ['cztery', 'four'], ['pięć', 'five'], ['sześć', 'six']];
- map = new Map(arr);
-
- it = new T(map);
- result.push(it.next());
- result.push(it.next());
- map.set('siedem', 'seven');
- map.delete('siedem');
- result.push(it.next());
- result.push(it.next());
- map.delete('pięć');
- arr.splice(4, 1);
- result.push(it.next());
- a.deep(result.sort(compare), mapToResults(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #1": function (a) {
- var arr, it, map, result = [];
-
- arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
- ['cztery', 'four'], ['pięć', 'five'], ['sześć', 'six']];
- map = new Map(arr);
-
- it = new T(map);
- result.push(it.next());
- result.push(it.next());
- arr = [['raz', 'one'], ['dwa', 'two']];
- map.clear();
- a.deep(result.sort(compare), mapToResults(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #2": function (a) {
- var arr, it, map, result = [];
-
- arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
- ['cztery', 'four'], ['pięć', 'five'], ['sześć', 'six']];
- map = new Map(arr);
-
- it = new T(map);
- result.push(it.next());
- result.push(it.next());
- map.clear();
- map.set('foo', 'bru');
- map.set('bar', 'far');
- arr = [['raz', 'one'], ['dwa', 'two'], ['foo', 'bru'], ['bar', 'far']];
- result.push(it.next());
- result.push(it.next());
- a.deep(result.sort(compare), mapToResults(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- Kinds: function (a) {
- var arr = [['raz', 'one'], ['dwa', 'two']], map = new Map(arr);
-
- a.deep(toArray(new T(map)).sort(), arr.sort(), "Default");
- a.deep(toArray(new T(map, 'key+value')).sort(), arr.sort(),
- "Key + Value");
- a.deep(toArray(new T(map, 'value')).sort(), ['one', 'two'].sort(),
- "Value");
- a.deep(toArray(new T(map, 'key')).sort(), ['raz', 'dwa'].sort(),
- "Key");
- }
- };
-};
diff --git a/tools/eslint/node_modules/es6-map/test/polyfill.js b/tools/eslint/node_modules/es6-map/test/polyfill.js
deleted file mode 100644
index 6816cb049b4b39..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/polyfill.js
+++ /dev/null
@@ -1,60 +0,0 @@
-'use strict';
-
-var aFrom = require('es5-ext/array/from')
- , toArray = require('es5-ext/array/to-array');
-
-module.exports = function (T, a) {
- var arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three']]
- , map = new T(arr), x = {}, y = {}, i = 0;
-
- a(map instanceof T, true, "Map");
- a(map.size, 3, "Size");
- a(map.get('raz'), 'one', "Get: contained");
- a(map.get(x), undefined, "Get: not contained");
- a(map.has('raz'), true, "Has: contained");
- a(map.has(x), false, "Has: not contained");
- a(map.set(x, y), map, "Set: return");
- a(map.has(x), true, "Set: has");
- a(map.get(x), y, "Set: get");
- a(map.size, 4, "Set: Size");
- map.set('dwa', x);
- a(map.get('dwa'), x, "Overwrite: get");
- a(map.size, 4, "Overwrite: size");
-
- a(map.delete({}), false, "Delete: false");
-
- arr.push([x, y]);
- arr[1][1] = x;
- map.forEach(function () {
- a.deep(aFrom(arguments), [arr[i][1], arr[i][0], map],
- "ForEach: Arguments: #" + i);
- a(this, y, "ForEach: Context: #" + i);
- if (i === 0) {
- a(map.delete('raz'), true, "Delete: true");
- a(map.has('raz'), false, "Delete");
- a(map.size, 3, "Delete: size");
- map.set('cztery', 'four');
- arr.push(['cztery', 'four']);
- }
- i++;
- }, y);
- arr.splice(0, 1);
-
- a.deep(toArray(map.entries()), [['dwa', x], ['trzy', 'three'], [x, y],
- ['cztery', 'four']], "Entries");
- a.deep(toArray(map.keys()), ['dwa', 'trzy', x, 'cztery'], "Keys");
- a.deep(toArray(map.values()), [x, 'three', y, 'four'], "Values");
- a.deep(toArray(map), [['dwa', x], ['trzy', 'three'], [x, y],
- ['cztery', 'four']], "Iterator");
-
- map.clear();
- a(map.size, 0, "Clear: size");
- a(map.has('trzy'), false, "Clear: has");
- a.deep(toArray(map), [], "Clear: Values");
-
- a.h1("Empty initialization");
- map = new T();
- map.set('foo', 'bar');
- a(map.size, 1);
- a(map.get('foo'), 'bar');
-};
diff --git a/tools/eslint/node_modules/es6-map/test/primitive/index.js b/tools/eslint/node_modules/es6-map/test/primitive/index.js
deleted file mode 100644
index a99c68522d57c7..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/primitive/index.js
+++ /dev/null
@@ -1,59 +0,0 @@
-'use strict';
-
-var aFrom = require('es5-ext/array/from')
- , getIterator = require('es6-iterator/get')
- , toArray = require('es5-ext/array/to-array');
-
-module.exports = function (T, a) {
- var arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three']]
- , map = new T(arr), x = 'other', y = 'other2'
- , i = 0, result = [];
-
- a(map instanceof T, true, "Map");
- a(map.size, 3, "Size");
- a(map.get('raz'), 'one', "Get: contained");
- a(map.get(x), undefined, "Get: not contained");
- a(map.has('raz'), true, "Has: true");
- a(map.has(x), false, "Has: false");
- a(map.set(x, y), map, "Add: return");
- a(map.has(x), true, "Add");
- a(map.size, 4, "Add: Size");
- map.set('dwa', x);
- a(map.get('dwa'), x, "Overwrite: get");
- a(map.size, 4, "Overwrite: size");
-
- a(map.delete('else'), false, "Delete: false");
-
- arr.push([x, y]);
- arr[1][1] = x;
- map.forEach(function () {
- result.push(aFrom(arguments));
- a(this, y, "ForEach: Context: #" + i);
- }, y);
-
- a.deep(result.sort(function (a, b) {
- return String([a[1], a[0]]).localeCompare([b[1], b[0]]);
- }), arr.sort().map(function (val) { return [val[1], val[0], map]; }),
- "ForEach: Arguments");
-
- a.deep(toArray(map.entries()).sort(), [['dwa', x], ['trzy', 'three'],
- [x, y], ['raz', 'one']].sort(), "Entries");
- a.deep(toArray(map.keys()).sort(), ['dwa', 'trzy', x, 'raz'].sort(),
- "Keys");
- a.deep(toArray(map.values()).sort(), [x, 'three', y, 'one'].sort(),
- "Values");
- a.deep(toArray(getIterator(map)).sort(), [['dwa', x], ['trzy', 'three'],
- [x, y], ['raz', 'one']].sort(),
- "Iterator");
-
- map.clear();
- a(map.size, 0, "Clear: size");
- a(map.has('trzy'), false, "Clear: has");
- a.deep(toArray(map.values()), [], "Clear: Values");
-
- a.h1("Empty initialization");
- map = new T();
- map.set('foo', 'bar');
- a(map.size, 1);
- a(map.get('foo'), 'bar');
-};
diff --git a/tools/eslint/node_modules/es6-map/test/valid-map.js b/tools/eslint/node_modules/es6-map/test/valid-map.js
deleted file mode 100644
index ac0314949a3009..00000000000000
--- a/tools/eslint/node_modules/es6-map/test/valid-map.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var MapPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- var map;
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a.throws(function () { t(true); }, TypeError, "Primitive");
- a.throws(function () { t('raz'); }, TypeError, "String");
- a.throws(function () { t({}); }, TypeError, "Object");
- a.throws(function () { t([]); }, TypeError, "Array");
- if (typeof Map !== 'undefined') {
- map = new Map();
- a(t(map), map, "Native");
- }
- map = new MapPoly();
- a(t(map), map, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/es6-set/.npmignore b/tools/eslint/node_modules/es6-set/.npmignore
deleted file mode 100644
index 155e41f69142ef..00000000000000
--- a/tools/eslint/node_modules/es6-set/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-/node_modules
-/npm-debug.log
-/.lintcache
diff --git a/tools/eslint/node_modules/es6-set/.travis.yml b/tools/eslint/node_modules/es6-set/.travis.yml
deleted file mode 100644
index a51e21e3bca728..00000000000000
--- a/tools/eslint/node_modules/es6-set/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-language: node_js
-node_js:
- - 0.12
- - 4
- - 5
-
-notifications:
- email:
- - medikoo+es6-set@medikoo.com
-
-script: "npm test && npm run lint"
diff --git a/tools/eslint/node_modules/es6-set/CHANGES b/tools/eslint/node_modules/es6-set/CHANGES
deleted file mode 100644
index 613bbb20d34d28..00000000000000
--- a/tools/eslint/node_modules/es6-set/CHANGES
+++ /dev/null
@@ -1,30 +0,0 @@
-v0.1.4 -- 2016.01.19
-* Ensure Set polyfill function name is `Set` (#2)
-
-v0.1.3 -- 2015.11.18
-* Relax validation of native implementation (do not require proper stringification of Set.prototype)
-
-v0.1.2 -- 2015.10.02
-* Improve native Set detection
-* Fix spelling of LICENSE
-* Set.prototype.filter extension
-* Update dependencies
-
-v0.1.1 -- 2014.10.07
-* Fix isImplemented so it validates native Set properly
-* Add getFirst and getLast extensions
-* Configure linter scripts
-
-v0.1.0 -- 2014.04.29
-* Assure strictly npm hosted dependencies
-* Introduce faster 'primitive' alternative (doesn't guarantee order of iteration)
-* Add isNativeImplemented, and some, every and copy method extensions
-* If native Set is provided polyfill extends it
-* Optimize forEach iteration
-* Remove comparator support (as it was removed from spec)
-* Provide @@toStringTag symbol, ad @@iterator symbols on iterators
-* Update to use latest dependencies versions
-* Improve interals
-
-v0.0.0 -- 2013.10.12
-Initial (dev) version
diff --git a/tools/eslint/node_modules/es6-set/package.json b/tools/eslint/node_modules/es6-set/package.json
index c273e3c1c1fd28..4dd0a16b31ab5c 100644
--- a/tools/eslint/node_modules/es6-set/package.json
+++ b/tools/eslint/node_modules/es6-set/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"es6-set@~0.1.3",
- "/Users/trott/test/node_modules/eslint/node_modules/es6-map"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map"
]
],
"_from": "es6-set@>=0.1.3 <0.2.0",
"_id": "es6-set@0.1.4",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/es6-set",
+ "_location": "/es6-set",
"_nodeVersion": "4.2.4",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/es6-map"
+ "/es6-map"
],
"_resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.4.tgz",
"_shasum": "9516b6761c2964b92ff479456233a247dc707ce8",
"_shrinkwrap": null,
"_spec": "es6-set@~0.1.3",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/es6-map",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -62,18 +62,18 @@
"gitHead": "89717f1b294382ca28e9070e644f768ff240dc71",
"homepage": "https://github.com/medikoo/es6-set#readme",
"keywords": [
- "set",
"collection",
"es6",
"harmony",
+ "hash",
"list",
- "hash"
+ "set"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "es6-set",
diff --git a/tools/eslint/node_modules/es6-set/test/ext/copy.js b/tools/eslint/node_modules/es6-set/test/ext/copy.js
deleted file mode 100644
index 84fe912a36f735..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/ext/copy.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var toArray = require('es5-ext/array/to-array')
- , Set = require('../../');
-
-module.exports = function (t, a) {
- var content = ['raz', 2, true], set = new Set(content), copy;
-
- copy = t.call(set);
- a.not(copy, set, "Copy");
- a.deep(toArray(copy), content, "Content");
-};
diff --git a/tools/eslint/node_modules/es6-set/test/ext/every.js b/tools/eslint/node_modules/es6-set/test/ext/every.js
deleted file mode 100644
index f56ca385fa5a73..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/ext/every.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var Set = require('../../');
-
-module.exports = function (t, a) {
- a(t.call(new Set(), Boolean), true, "Empty set");
- a(t.call(new Set([2, 3, 4]), Boolean), true, "Truthy");
- a(t.call(new Set([2, 0, 4]), Boolean), false, "Falsy");
-};
diff --git a/tools/eslint/node_modules/es6-set/test/ext/filter.js b/tools/eslint/node_modules/es6-set/test/ext/filter.js
deleted file mode 100644
index 46981859b6bdc0..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/ext/filter.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var aFrom = require('es5-ext/array/from')
-
- , Set = require('../../');
-
-module.exports = function (t, a) {
- a.deep(aFrom(t.call(new Set(), Boolean)), [], "Empty set");
- a.deep(aFrom(t.call(new Set([2, 3, 4]), Boolean)), [2, 3, 4], "All true");
- a.deep(aFrom(t.call(new Set([0, false, 4]), Boolean)), [4], "Some false");
- a.deep(aFrom(t.call(new Set([0, false, null]), Boolean)), [], "All false");
-};
diff --git a/tools/eslint/node_modules/es6-set/test/ext/get-first.js b/tools/eslint/node_modules/es6-set/test/ext/get-first.js
deleted file mode 100644
index f99829e5afe0bc..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/ext/get-first.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var Set = require('../../');
-
-module.exports = function (t, a) {
- var content = ['raz', 2, true], set = new Set(content);
-
- a(t.call(set), 'raz');
-
- set = new Set();
- a(t.call(set), undefined);
-};
diff --git a/tools/eslint/node_modules/es6-set/test/ext/get-last.js b/tools/eslint/node_modules/es6-set/test/ext/get-last.js
deleted file mode 100644
index 1dcc993ed0ec73..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/ext/get-last.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var Set = require('../../');
-
-module.exports = function (t, a) {
- var content = ['raz', 2, true], set = new Set(content);
-
- a(t.call(set), true);
-
- set = new Set();
- a(t.call(set), undefined);
-};
diff --git a/tools/eslint/node_modules/es6-set/test/ext/some.js b/tools/eslint/node_modules/es6-set/test/ext/some.js
deleted file mode 100644
index 84ce11916a8bb9..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/ext/some.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-var Set = require('../../');
-
-module.exports = function (t, a) {
- a(t.call(new Set(), Boolean), false, "Empty set");
- a(t.call(new Set([2, 3, 4]), Boolean), true, "All true");
- a(t.call(new Set([0, false, 4]), Boolean), true, "Some false");
- a(t.call(new Set([0, false, null]), Boolean), false, "All false");
-};
diff --git a/tools/eslint/node_modules/es6-set/test/implement.js b/tools/eslint/node_modules/es6-set/test/implement.js
deleted file mode 100644
index 4882d3786a62d9..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/implement.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof Set, 'function'); };
diff --git a/tools/eslint/node_modules/es6-set/test/index.js b/tools/eslint/node_modules/es6-set/test/index.js
deleted file mode 100644
index 19c64865097d31..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (T, a) { a((new T(['raz', 'dwa'])).size, 2); };
diff --git a/tools/eslint/node_modules/es6-set/test/is-implemented.js b/tools/eslint/node_modules/es6-set/test/is-implemented.js
deleted file mode 100644
index 124793e7373f1c..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/is-implemented.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var global = require('es5-ext/global')
- , polyfill = require('../polyfill');
-
-module.exports = function (t, a) {
- var cache;
- a(typeof t(), 'boolean');
- cache = global.Set;
- global.Set = polyfill;
- a(t(), true);
- if (cache === undefined) delete global.Set;
- else global.Set = cache;
-};
diff --git a/tools/eslint/node_modules/es6-set/test/is-native-implemented.js b/tools/eslint/node_modules/es6-set/test/is-native-implemented.js
deleted file mode 100644
index df8ba0323f0cad..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/is-native-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t, 'boolean'); };
diff --git a/tools/eslint/node_modules/es6-set/test/is-set.js b/tools/eslint/node_modules/es6-set/test/is-set.js
deleted file mode 100644
index c969cce232f0d6..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/is-set.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var SetPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- a(t(undefined), false, "Undefined");
- a(t(null), false, "Null");
- a(t(true), false, "Primitive");
- a(t('raz'), false, "String");
- a(t({}), false, "Object");
- a(t([]), false, "Array");
- if (typeof Set !== 'undefined') {
- a(t(new Set()), true, "Native");
- }
- a(t(new SetPoly()), true, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/es6-set/test/lib/iterator.js b/tools/eslint/node_modules/es6-set/test/lib/iterator.js
deleted file mode 100644
index 9e5cfb91b9217f..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/lib/iterator.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var Set = require('../../polyfill')
- , toArray = require('es5-ext/array/to-array');
-
-module.exports = function (T, a) {
- var set = new Set(['raz', 'dwa']);
-
- a.deep(toArray(new T(set)), ['raz', 'dwa'], "Default");
- a.deep(toArray(new T(set, 'key+value')), [['raz', 'raz'], ['dwa', 'dwa']],
- "Key & Value");
- a.deep(toArray(new T(set, 'value')), ['raz', 'dwa'], "Other");
-};
diff --git a/tools/eslint/node_modules/es6-set/test/lib/primitive-iterator.js b/tools/eslint/node_modules/es6-set/test/lib/primitive-iterator.js
deleted file mode 100644
index 2a4956b80b3877..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/lib/primitive-iterator.js
+++ /dev/null
@@ -1,113 +0,0 @@
-'use strict';
-
-var Set = require('../../primitive')
- , toArray = require('es5-ext/array/to-array')
- , iteratorSymbol = require('es6-symbol').iterator
-
- , compare, map;
-
-compare = function (a, b) {
- if (!a.value) return -1;
- if (!b.value) return 1;
- return a.value.localeCompare(b.value);
-};
-
-map = function (arr) {
- return arr.sort().map(function (value) {
- return { done: false, value: value };
- });
-};
-
-module.exports = function (T) {
- return {
- "": function (a) {
- var arr = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], it, y, z
- , set = new Set(arr), result = [];
-
- it = new T(set);
- a(it[iteratorSymbol](), it, "@@iterator");
- y = it.next();
- result.push(y);
- z = it.next();
- a.not(y, z, "Recreate result");
- result.push(z);
- result.push(it.next());
- result.push(it.next());
- result.push(it.next());
- a.deep(result.sort(compare), map(arr));
- a.deep(y = it.next(), { done: true, value: undefined }, "End");
- a.not(y, it.next(), "Recreate result on dead");
- },
- Emited: function (a) {
- var arr = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], it
- , set = new Set(arr), result = [];
-
- it = new T(set);
- result.push(it.next());
- result.push(it.next());
- set.add('sześć');
- arr.push('sześć');
- result.push(it.next());
- set.delete('pięć');
- arr.splice(4, 1);
- result.push(it.next());
- result.push(it.next());
- a.deep(result.sort(compare), map(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited #2": function (a) {
- var arr = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it
- , set = new Set(arr), result = [];
-
- it = new T(set);
- result.push(it.next());
- result.push(it.next());
- set.add('siedem');
- set.delete('siedem');
- result.push(it.next());
- result.push(it.next());
- set.delete('pięć');
- arr.splice(4, 1);
- result.push(it.next());
- a.deep(result.sort(compare), map(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #1": function (a) {
- var arr = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it
- , set = new Set(arr), result = [];
-
- it = new T(set);
- result.push(it.next());
- result.push(it.next());
- arr = ['raz', 'dwa'];
- set.clear();
- a.deep(result.sort(compare), map(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #2": function (a) {
- var arr = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it
- , set = new Set(arr), result = [];
-
- it = new T(set);
- result.push(it.next());
- result.push(it.next());
- set.clear();
- set.add('foo');
- set.add('bar');
- arr = ['raz', 'dwa', 'foo', 'bar'];
- result.push(it.next());
- result.push(it.next());
- a.deep(result.sort(compare), map(arr));
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- Kinds: function (a) {
- var set = new Set(['raz', 'dwa']);
-
- a.deep(toArray(new T(set)).sort(), ['raz', 'dwa'].sort(), "Default");
- a.deep(toArray(new T(set, 'key+value')).sort(),
- [['raz', 'raz'], ['dwa', 'dwa']].sort(), "Key & Value");
- a.deep(toArray(new T(set, 'value')).sort(), ['raz', 'dwa'].sort(),
- "Other");
- }
- };
-};
diff --git a/tools/eslint/node_modules/es6-set/test/polyfill.js b/tools/eslint/node_modules/es6-set/test/polyfill.js
deleted file mode 100644
index 94ae3e6e6384a7..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/polyfill.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict';
-
-var aFrom = require('es5-ext/array/from')
- , toArray = require('es5-ext/array/to-array');
-
-module.exports = function (T, a) {
- var arr = ['raz', 'dwa', 'trzy'], set = new T(arr), x = {}, y = {}, i = 0;
-
- a(set instanceof T, true, "Set");
- a(set.size, 3, "Size");
- a(set.has('raz'), true, "Has: true");
- a(set.has(x), false, "Has: false");
- a(set.add(x), set, "Add: return");
- a(set.has(x), true, "Add");
- a(set.size, 4, "Add: Size");
- a(set.delete({}), false, "Delete: false");
-
- arr.push(x);
- set.forEach(function () {
- a.deep(aFrom(arguments), [arr[i], arr[i], set],
- "ForEach: Arguments: #" + i);
- a(this, y, "ForEach: Context: #" + i);
- if (i === 0) {
- a(set.delete('raz'), true, "Delete: true");
- a(set.has('raz'), false, "Delete");
- a(set.size, 3, "Delete: size");
- set.add('cztery');
- arr.push('cztery');
- }
- i++;
- }, y);
- arr.splice(0, 1);
-
- a.deep(toArray(set.entries()), [['dwa', 'dwa'], ['trzy', 'trzy'], [x, x],
- ['cztery', 'cztery']], "Entries");
- a.deep(toArray(set.keys()), ['dwa', 'trzy', x, 'cztery'], "Keys");
- a.deep(toArray(set.values()), ['dwa', 'trzy', x, 'cztery'], "Values");
- a.deep(toArray(set), ['dwa', 'trzy', x, 'cztery'], "Iterator");
-
- set.clear();
- a(set.size, 0, "Clear: size");
- a(set.has('trzy'), false, "Clear: has");
- a.deep(toArray(set), [], "Clear: Values");
-
- a.h1("Empty initialization");
- set = new T();
- set.add('foo');
- a(set.size, 1);
- a(set.has('foo'), true);
-};
diff --git a/tools/eslint/node_modules/es6-set/test/primitive/index.js b/tools/eslint/node_modules/es6-set/test/primitive/index.js
deleted file mode 100644
index 88f9502fd9c72e..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/primitive/index.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict';
-
-var aFrom = require('es5-ext/array/from')
- , getIterator = require('es6-iterator/get')
- , toArray = require('es5-ext/array/to-array');
-
-module.exports = function (T, a) {
- var arr = ['raz', 'dwa', 'trzy'], set = new T(arr), x = 'other', y = 'other2'
- , i = 0, result = [];
-
- a(set instanceof T, true, "Set");
- a(set.size, 3, "Size");
- a(set.has('raz'), true, "Has: true");
- a(set.has(x), false, "Has: false");
- a(set.add(x), set, "Add: return");
- a(set.has(x), true, "Add");
- a(set.size, 4, "Add: Size");
- a(set.delete('else'), false, "Delete: false");
- a(set.get('raz'), 'raz', "Get");
-
- arr.push(x);
- set.forEach(function () {
- result.push(aFrom(arguments));
- a(this, y, "ForEach: Context: #" + i);
- }, y);
-
- a.deep(result.sort(function (a, b) {
- return a[0].localeCompare(b[0]);
- }), arr.sort().map(function (val) { return [val, val, set]; }));
-
- a.deep(toArray(set.entries()).sort(), [['dwa', 'dwa'], ['trzy', 'trzy'],
- [x, x], ['raz', 'raz']].sort(), "Entries");
- a.deep(toArray(set.keys()).sort(), ['dwa', 'trzy', x, 'raz'].sort(),
- "Keys");
- a.deep(toArray(set.values()).sort(), ['dwa', 'trzy', x, 'raz'].sort(),
- "Values");
- a.deep(toArray(getIterator(set)).sort(), ['dwa', 'trzy', x, 'raz'].sort(),
- "Iterator");
-
- set.clear();
- a(set.size, 0, "Clear: size");
- a(set.has('trzy'), false, "Clear: has");
- a.deep(toArray(set.values()), [], "Clear: Values");
-
- a.h1("Empty initialization");
- set = new T();
- set.add('foo');
- a(set.size, 1);
- a(set.has('foo'), true);
-};
diff --git a/tools/eslint/node_modules/es6-set/test/valid-set.js b/tools/eslint/node_modules/es6-set/test/valid-set.js
deleted file mode 100644
index 8c71f5f8c709e4..00000000000000
--- a/tools/eslint/node_modules/es6-set/test/valid-set.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var SetPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- var set;
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a.throws(function () { t(true); }, TypeError, "Primitive");
- a.throws(function () { t('raz'); }, TypeError, "String");
- a.throws(function () { t({}); }, TypeError, "Object");
- a.throws(function () { t([]); }, TypeError, "Array");
- if (typeof Set !== 'undefined') {
- set = new Set();
- a(t(set), set, "Native");
- }
- set = new SetPoly();
- a(t(set), set, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/es6-symbol/.npmignore b/tools/eslint/node_modules/es6-symbol/.npmignore
deleted file mode 100644
index 155e41f69142ef..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-/node_modules
-/npm-debug.log
-/.lintcache
diff --git a/tools/eslint/node_modules/es6-symbol/.travis.yml b/tools/eslint/node_modules/es6-symbol/.travis.yml
deleted file mode 100644
index 6830765b567773..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/.travis.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-language: node_js
-node_js:
- - 0.12
- - v4
- - v5
-
-notifications:
- email:
- - medikoo+es6-symbol@medikoo.com
diff --git a/tools/eslint/node_modules/es6-symbol/CHANGES b/tools/eslint/node_modules/es6-symbol/CHANGES
deleted file mode 100644
index cbedd4244bc8b6..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/CHANGES
+++ /dev/null
@@ -1,46 +0,0 @@
-v3.0.2 -- 2015.12.12
-* Fix definition flow, so uneven state of Symbol implementation doesn't crash initialization of
- polyfill. See #13
-
-v3.0.1 -- 2015.10.22
-* Workaround for IE11 bug (reported in #12)
-
-v3.0.0 -- 2015.10.02
-* Reuse native symbols (e.g. iterator, toStringTag etc.) in a polyfill if they're available
- Otherwise polyfill symbols may not be recognized by other functions
-* Improve documentation
-
-v2.0.1 -- 2015.01.28
-* Fix Symbol.prototype[Symbol.isPrimitive] implementation
-* Improve validation within Symbol.prototype.toString and
- Symbol.prototype.valueOf
-
-v2.0.0 -- 2015.01.28
-* Update up to changes in specification:
- * Implement `for` and `keyFor`
- * Remove `Symbol.create` and `Symbol.isRegExp`
- * Add `Symbol.match`, `Symbol.replace`, `Symbol.search`, `Symbol.species` and
- `Symbol.split`
-* Rename `validSymbol` to `validateSymbol`
-* Improve documentation
-* Remove dead test modules
-
-v1.0.0 -- 2015.01.26
-* Fix enumerability for symbol properties set normally (e.g. obj[symbol] = value)
-* Introduce initialization via hidden constructor
-* Fix isSymbol handling of polyfill values when native Symbol is present
-* Fix spelling of LICENSE
-* Configure lint scripts
-
-v0.1.1 -- 2014.10.07
-* Fix isImplemented, so it returns true in case of polyfill
-* Improve documentations
-
-v0.1.0 -- 2014.04.28
-* Assure strictly npm dependencies
-* Update to use latest versions of dependencies
-* Fix implementation detection so it doesn't crash on `String(symbol)`
-* throw on `new Symbol()` (as decided by TC39)
-
-v0.0.0 -- 2013.11.15
-* Initial (dev) version
\ No newline at end of file
diff --git a/tools/eslint/node_modules/es6-symbol/package.json b/tools/eslint/node_modules/es6-symbol/package.json
index 6a2f26db1f2abd..b3723ba6d7a515 100644
--- a/tools/eslint/node_modules/es6-symbol/package.json
+++ b/tools/eslint/node_modules/es6-symbol/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"es6-symbol@~3.0.1",
- "/Users/trott/test/node_modules/eslint/node_modules/es6-map"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map"
]
],
"_from": "es6-symbol@>=3.0.1 <3.1.0",
"_id": "es6-symbol@3.0.2",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/es6-symbol",
+ "_location": "/es6-symbol",
"_nodeVersion": "5.2.0",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
@@ -26,17 +26,17 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/es5-ext",
- "/eslint/es6-iterator",
- "/eslint/es6-map",
- "/eslint/es6-set",
- "/eslint/es6-weak-map"
+ "/es5-ext",
+ "/es6-iterator",
+ "/es6-map",
+ "/es6-set",
+ "/es6-weak-map"
],
"_resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.0.2.tgz",
"_shasum": "1e928878c6f5e63541625b4bb4df4af07d154219",
"_shrinkwrap": null,
"_spec": "es6-symbol@~3.0.1",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/es6-map",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -63,20 +63,20 @@
"gitHead": "b7da6b926c44e3745de69b17c98c00a5c84b4ebe",
"homepage": "https://github.com/medikoo/es6-symbol#readme",
"keywords": [
- "symbol",
- "private",
- "property",
- "es6",
"ecmascript",
+ "es6",
"harmony",
+ "polyfill",
"ponyfill",
- "polyfill"
+ "private",
+ "property",
+ "symbol"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "es6-symbol",
diff --git a/tools/eslint/node_modules/es6-symbol/test/implement.js b/tools/eslint/node_modules/es6-symbol/test/implement.js
deleted file mode 100644
index eb35c3018835c7..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/test/implement.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof Symbol, 'function'); };
diff --git a/tools/eslint/node_modules/es6-symbol/test/index.js b/tools/eslint/node_modules/es6-symbol/test/index.js
deleted file mode 100644
index 62b3296df6fc5e..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/test/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var d = require('d')
-
- , defineProperty = Object.defineProperty;
-
-module.exports = function (T, a) {
- var symbol = T('test'), x = {};
- defineProperty(x, symbol, d('foo'));
- a(x.test, undefined, "Name");
- a(x[symbol], 'foo', "Get");
-};
diff --git a/tools/eslint/node_modules/es6-symbol/test/is-implemented.js b/tools/eslint/node_modules/es6-symbol/test/is-implemented.js
deleted file mode 100644
index bb0d64536ebbae..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/test/is-implemented.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var global = require('es5-ext/global')
- , polyfill = require('../polyfill');
-
-module.exports = function (t, a) {
- var cache;
- a(typeof t(), 'boolean');
- cache = global.Symbol;
- global.Symbol = polyfill;
- a(t(), true);
- if (cache === undefined) delete global.Symbol;
- else global.Symbol = cache;
-};
diff --git a/tools/eslint/node_modules/es6-symbol/test/is-native-implemented.js b/tools/eslint/node_modules/es6-symbol/test/is-native-implemented.js
deleted file mode 100644
index df8ba0323f0cad..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/test/is-native-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t, 'boolean'); };
diff --git a/tools/eslint/node_modules/es6-symbol/test/is-symbol.js b/tools/eslint/node_modules/es6-symbol/test/is-symbol.js
deleted file mode 100644
index ac24b9abbff4e6..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/test/is-symbol.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var SymbolPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- a(t(undefined), false, "Undefined");
- a(t(null), false, "Null");
- a(t(true), false, "Primitive");
- a(t('raz'), false, "String");
- a(t({}), false, "Object");
- a(t([]), false, "Array");
- if (typeof Symbol !== 'undefined') {
- a(t(Symbol()), true, "Native");
- }
- a(t(SymbolPoly()), true, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/es6-symbol/test/polyfill.js b/tools/eslint/node_modules/es6-symbol/test/polyfill.js
deleted file mode 100644
index 83fb5e9253677b..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/test/polyfill.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-
-var d = require('d')
- , isSymbol = require('../is-symbol')
-
- , defineProperty = Object.defineProperty;
-
-module.exports = function (T, a) {
- var symbol = T('test'), x = {};
- defineProperty(x, symbol, d('foo'));
- a(x.test, undefined, "Name");
- a(x[symbol], 'foo', "Get");
- a(x instanceof T, false);
-
- a(isSymbol(symbol), true, "Symbol");
- a(isSymbol(T.iterator), true, "iterator");
- a(isSymbol(T.toStringTag), true, "toStringTag");
-
- x = {};
- x[symbol] = 'foo';
- a.deep(Object.getOwnPropertyDescriptor(x, symbol), { configurable: true, enumerable: false,
- value: 'foo', writable: true });
- symbol = T.for('marko');
- a(isSymbol(symbol), true);
- a(T.for('marko'), symbol);
- a(T.keyFor(symbol), 'marko');
-};
diff --git a/tools/eslint/node_modules/es6-symbol/test/validate-symbol.js b/tools/eslint/node_modules/es6-symbol/test/validate-symbol.js
deleted file mode 100644
index 2c8f84c8239b6e..00000000000000
--- a/tools/eslint/node_modules/es6-symbol/test/validate-symbol.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var SymbolPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- var symbol;
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a.throws(function () { t(true); }, TypeError, "Primitive");
- a.throws(function () { t('raz'); }, TypeError, "String");
- a.throws(function () { t({}); }, TypeError, "Object");
- a.throws(function () { t([]); }, TypeError, "Array");
- if (typeof Symbol !== 'undefined') {
- symbol = Symbol();
- a(t(symbol), symbol, "Native");
- }
- symbol = SymbolPoly();
- a(t(symbol), symbol, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/es6-weak-map/.npmignore b/tools/eslint/node_modules/es6-weak-map/.npmignore
deleted file mode 100644
index 155e41f69142ef..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.DS_Store
-/node_modules
-/npm-debug.log
-/.lintcache
diff --git a/tools/eslint/node_modules/es6-weak-map/.travis.yml b/tools/eslint/node_modules/es6-weak-map/.travis.yml
deleted file mode 100644
index cdd424cc2ecc17..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-sudo: false # use faster docker infrastructure
-language: node_js
-node_js:
- - 0.12
- - 4
-
-notifications:
- email:
- - medikoo+es6-weak-map@medikoo.com
-
-script: "npm test && npm run lint"
diff --git a/tools/eslint/node_modules/es6-weak-map/CHANGES b/tools/eslint/node_modules/es6-weak-map/CHANGES
deleted file mode 100644
index 74fced55714a5f..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/CHANGES
+++ /dev/null
@@ -1,42 +0,0 @@
-v2.0.1 -- 2015.10.02
-* Update to use es6-symbol at v3
-
-v2.0.0 -- 2015.09.04
-* Relax native implementation detection, stringification of instance should returm
- expected result (not necesarily prototype)
-
-v1.0.2 -- 2015.05.07
-* Add "ponyfill" keyword to meta description. Fixes #7
-
-v1.0.1 -- 2015.04.14
-* Fix isNativeImplemented, so it's not affected by #3619 V8 bug
-* Fix internal prototype resolution, in case where isNativeImplemented was true, and
- native implementation was shadowed it got into stack overflow
-
-v1.0.0 -- 2015.04.13
-* It's v0.1.3 republished as v1.0.0
-
-v0.1.4 -- 2015.04.13
-* Republish v0.1.2 as v0.1.4 due to breaking changes
- (v0.1.3 should have been published as next major)
-
-v0.1.3 -- 2015.04.12
-* Update up to changes in specification (require new, remove clear method)
-* Improve native implementation validation
-* Configure lint scripts
-* Rename LICENCE to LICENSE
-
-v0.1.2 -- 2014.09.01
-* Use internal random and unique id generator instead of external (time-uuid based).
- Global uniqueness is not needed in scope of this module. Fixes #1
-
-v0.1.1 -- 2014.05.15
-* Improve valid WeakMap detection
-
-v0.1.0 -- 2014.04.29
-* Assure to depend only npm hosted dependencies
-* Update to use latest versions of dependencies
-* Use ES6 symbols internally
-
-v0.0.0 -- 2013.10.24
-Initial (dev version)
diff --git a/tools/eslint/node_modules/es6-weak-map/package.json b/tools/eslint/node_modules/es6-weak-map/package.json
index 7a708a00bd03cf..a686d4bda697c1 100644
--- a/tools/eslint/node_modules/es6-weak-map/package.json
+++ b/tools/eslint/node_modules/es6-weak-map/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"es6-weak-map@^2.0.1",
- "/Users/trott/test/node_modules/eslint/node_modules/escope"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/escope"
]
],
"_from": "es6-weak-map@>=2.0.1 <3.0.0",
"_id": "es6-weak-map@2.0.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/es6-weak-map",
+ "_location": "/es6-weak-map",
"_nodeVersion": "0.12.7",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/escope"
+ "/escope"
],
"_resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.1.tgz",
"_shasum": "0d2bbd8827eb5fb4ba8f97fbfea50d43db21ea81",
"_shrinkwrap": null,
"_spec": "es6-weak-map@^2.0.1",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/escope",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/escope",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -61,21 +61,21 @@
"gitHead": "b8b62d44e3b9f8134095c8fb6a5697e371b36867",
"homepage": "https://github.com/medikoo/es6-weak-map#readme",
"keywords": [
- "map",
- "weakmap",
"collection",
"es6",
+ "gc",
"harmony",
- "list",
"hash",
- "gc",
- "ponyfill"
+ "list",
+ "map",
+ "ponyfill",
+ "weakmap"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "es6-weak-map",
diff --git a/tools/eslint/node_modules/es6-weak-map/test/implement.js b/tools/eslint/node_modules/es6-weak-map/test/implement.js
deleted file mode 100644
index 860027ed290974..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/test/implement.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof WeakMap, 'function'); };
diff --git a/tools/eslint/node_modules/es6-weak-map/test/index.js b/tools/eslint/node_modules/es6-weak-map/test/index.js
deleted file mode 100644
index 9b26e4fa7e4a01..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/test/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-
-module.exports = function (T, a) {
- var x = {};
- a((new T([[x, 'foo']])).get(x), 'foo');
-};
diff --git a/tools/eslint/node_modules/es6-weak-map/test/is-implemented.js b/tools/eslint/node_modules/es6-weak-map/test/is-implemented.js
deleted file mode 100644
index 0186871e2e3f4f..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/test/is-implemented.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var global = require('es5-ext/global')
- , polyfill = require('../polyfill');
-
-module.exports = function (t, a) {
- var cache;
- a(typeof t(), 'boolean');
- cache = global.WeakMap;
- global.WeakMap = polyfill;
- a(t(), true);
- if (cache === undefined) delete global.WeakMap;
- else global.WeakMap = cache;
-};
diff --git a/tools/eslint/node_modules/es6-weak-map/test/is-native-implemented.js b/tools/eslint/node_modules/es6-weak-map/test/is-native-implemented.js
deleted file mode 100644
index df8ba0323f0cad..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/test/is-native-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t, 'boolean'); };
diff --git a/tools/eslint/node_modules/es6-weak-map/test/is-weak-map.js b/tools/eslint/node_modules/es6-weak-map/test/is-weak-map.js
deleted file mode 100644
index ba8c04519ca204..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/test/is-weak-map.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var WeakMapPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- a(t(undefined), false, "Undefined");
- a(t(null), false, "Null");
- a(t(true), false, "Primitive");
- a(t('raz'), false, "String");
- a(t({}), false, "Object");
- a(t([]), false, "Array");
- if (typeof WeakMap !== 'undefined') {
- a(t(new WeakMap()), true, "Native");
- }
- a(t(new WeakMapPoly()), true, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/es6-weak-map/test/polyfill.js b/tools/eslint/node_modules/es6-weak-map/test/polyfill.js
deleted file mode 100644
index aaffe4a1c27283..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/test/polyfill.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-module.exports = function (T, a) {
- var x = {}, y = {}, z = {}, arr = [[x, 'raz'], [y, 'dwa']], map = new T(arr);
-
- a(map instanceof T, true, "WeakMap");
- a(map.has(x), true, "Has: true");
- a(map.get(x), 'raz', "Get: contains");
- a(map.has(z), false, "Has: false");
- a(map.get(z), undefined, "Get: doesn't contain");
- a(map.set(z, 'trzy'), map, "Set: return");
- a(map.has(z), true, "Add");
- a(map.delete({}), false, "Delete: false");
-
- a(map.delete(x), true, "Delete: true");
- a(map.get(x), undefined, "Get: after delete");
- a(map.has(x), false, "Has: after delete");
-
- a.h1("Empty initialization");
- map = new T();
- map.set(x, 'bar');
- a(map.get(x), 'bar');
-};
diff --git a/tools/eslint/node_modules/es6-weak-map/test/valid-weak-map.js b/tools/eslint/node_modules/es6-weak-map/test/valid-weak-map.js
deleted file mode 100644
index a7823421a7c503..00000000000000
--- a/tools/eslint/node_modules/es6-weak-map/test/valid-weak-map.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var WeakMapPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- var map;
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a.throws(function () { t(true); }, TypeError, "Primitive");
- a.throws(function () { t('raz'); }, TypeError, "String");
- a.throws(function () { t({}); }, TypeError, "Object");
- a.throws(function () { t([]); }, TypeError, "Array");
- if (typeof WeakMap !== 'undefined') {
- map = new WeakMap();
- a(t(map), map, "Native");
- }
- map = new WeakMapPoly();
- a(t(map), map, "Polyfill");
-};
diff --git a/tools/eslint/node_modules/escape-string-regexp/package.json b/tools/eslint/node_modules/escape-string-regexp/package.json
index a6fa52d711a24d..64096da9934715 100644
--- a/tools/eslint/node_modules/escape-string-regexp/package.json
+++ b/tools/eslint/node_modules/escape-string-regexp/package.json
@@ -2,20 +2,24 @@
"_args": [
[
"escape-string-regexp@^1.0.2",
- "/Users/trott/test/node_modules/eslint/node_modules/chalk"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/chalk"
]
],
"_from": "escape-string-regexp@>=1.0.2 <2.0.0",
- "_id": "escape-string-regexp@1.0.4",
+ "_id": "escape-string-regexp@1.0.5",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/escape-string-regexp",
- "_nodeVersion": "4.2.1",
+ "_location": "/escape-string-regexp",
+ "_nodeVersion": "4.2.6",
+ "_npmOperationalInternal": {
+ "host": "packages-9-west.internal.npmjs.com",
+ "tmp": "tmp/escape-string-regexp-1.0.5.tgz_1456059312074_0.7245344955008477"
+ },
"_npmUser": {
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "email": "jappelman@xebia.com",
+ "name": "jbnicolai"
},
- "_npmVersion": "2.14.7",
+ "_npmVersion": "2.14.12",
"_phantomChildren": {},
"_requested": {
"name": "escape-string-regexp",
@@ -26,13 +30,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/chalk"
+ "/chalk"
],
- "_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.4.tgz",
- "_shasum": "b85e679b46f72d03fbbe8a3bf7259d535c21b62f",
+ "_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "_shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
"_shrinkwrap": null,
"_spec": "escape-string-regexp@^1.0.2",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/chalk",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/chalk",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -49,8 +53,8 @@
},
"directories": {},
"dist": {
- "shasum": "b85e679b46f72d03fbbe8a3bf7259d535c21b62f",
- "tarball": "http://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.4.tgz"
+ "shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
+ "tarball": "http://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz"
},
"engines": {
"node": ">=0.8.0"
@@ -58,29 +62,29 @@
"files": [
"index.js"
],
- "gitHead": "e9ca6832a9506ca26402cb0e6dc95efcf35b0b97",
+ "gitHead": "db124a3e1aae9d692c4899e42a5c6c3e329eaa20",
"homepage": "https://github.com/sindresorhus/escape-string-regexp",
"keywords": [
+ "characters",
"escape",
+ "expression",
+ "re",
"regex",
"regexp",
- "re",
"regular",
- "expression",
- "string",
- "str",
"special",
- "characters"
+ "str",
+ "string"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
},
{
- "email": "jappelman@xebia.com",
- "name": "jbnicolai"
+ "name": "jbnicolai",
+ "email": "jappelman@xebia.com"
}
],
"name": "escape-string-regexp",
@@ -93,5 +97,5 @@
"scripts": {
"test": "xo && ava"
},
- "version": "1.0.4"
+ "version": "1.0.5"
}
diff --git a/tools/eslint/node_modules/escope/.jshintrc b/tools/eslint/node_modules/escope/.jshintrc
deleted file mode 100644
index defbf02636c7aa..00000000000000
--- a/tools/eslint/node_modules/escope/.jshintrc
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "curly": true,
- "eqeqeq": true,
- "immed": true,
- "indent": 4,
- "eqnull": true,
- "latedef": true,
- "noarg": true,
- "noempty": true,
- "quotmark": "single",
- "undef": true,
- "unused": true,
- "strict": true,
- "trailing": true,
- "validthis": true,
-
- "onevar": true,
-
- "node": true
-}
diff --git a/tools/eslint/node_modules/escope/CONTRIBUTING.md b/tools/eslint/node_modules/escope/CONTRIBUTING.md
deleted file mode 100644
index f1ddca9cbdcc30..00000000000000
--- a/tools/eslint/node_modules/escope/CONTRIBUTING.md
+++ /dev/null
@@ -1,5 +0,0 @@
-## Project license: \
-
-- You will only Submit Contributions where You have authored 100% of the content.
-- You will only Submit Contributions to which You have the necessary rights. This means that if You are employed You have received the necessary permissions from Your employer to make the Contributions.
-- Whatever content You Contribute will be provided under the Project License.
diff --git a/tools/eslint/node_modules/escope/bower.json b/tools/eslint/node_modules/escope/bower.json
deleted file mode 100644
index 70ad5e5ff3948c..00000000000000
--- a/tools/eslint/node_modules/escope/bower.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "escope",
- "version": "2.0.2-dev",
- "main": "escope.js",
- "dependencies": {
- "estraverse": ">= 0.0.2"
- },
- "ignore": [
- "**/.*",
- "node_modules",
- "components"
- ]
-}
diff --git a/tools/eslint/node_modules/escope/gulpfile.js b/tools/eslint/node_modules/escope/gulpfile.js
deleted file mode 100644
index 64cc31d459956e..00000000000000
--- a/tools/eslint/node_modules/escope/gulpfile.js
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- Copyright (C) 2014 Yusuke Suzuki
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-'use strict';
-
-var gulp = require('gulp'),
- mocha = require('gulp-mocha'),
- babel = require('gulp-babel'),
- git = require('gulp-git'),
- bump = require('gulp-bump'),
- filter = require('gulp-filter'),
- tagVersion = require('gulp-tag-version'),
- sourcemaps = require('gulp-sourcemaps'),
- plumber = require('gulp-plumber'),
- source = require('vinyl-source-stream'),
- browserify = require('browserify'),
- lazypipe = require('lazypipe'),
- eslint = require('gulp-eslint'),
- fs = require('fs');
-
-require('babel-register')({
- only: /escope\/(src|test)\//
-});
-
-var TEST = [ 'test/*.js' ];
-var SOURCE = [ 'src/**/*.js' ];
-
-var ESLINT_OPTION = {
- rules: {
- 'quotes': 0,
- 'eqeqeq': 0,
- 'no-use-before-define': 0,
- 'no-shadow': 0,
- 'no-new': 0,
- 'no-underscore-dangle': 0,
- 'no-multi-spaces': 0,
- 'no-native-reassign': 0,
- 'no-loop-func': 0,
- 'no-lone-blocks': 0
- },
- ecmaFeatures: {
- jsx: false,
- modules: true
- },
- env: {
- node: true,
- es6: true
- }
-};
-
-var BABEL_OPTIONS = JSON.parse(fs.readFileSync('.babelrc', { encoding: 'utf8' }));
-
-var build = lazypipe()
- .pipe(sourcemaps.init)
- .pipe(babel, BABEL_OPTIONS)
- .pipe(sourcemaps.write)
- .pipe(gulp.dest, 'lib');
-
-gulp.task('build-for-watch', function () {
- return gulp.src(SOURCE).pipe(plumber()).pipe(build());
-});
-
-gulp.task('build', function () {
- return gulp.src(SOURCE).pipe(build());
-});
-
-gulp.task('browserify', [ 'build' ], function () {
- return browserify({
- entries: [ './lib/index.js' ]
- })
- .bundle()
- .pipe(source('bundle.js'))
- .pipe(gulp.dest('build'))
-});
-
-gulp.task('test', [ 'build' ], function () {
- return gulp.src(TEST)
- .pipe(mocha({
- reporter: 'spec',
- timeout: 100000 // 100s
- }));
-});
-
-gulp.task('watch', [ 'build-for-watch' ], function () {
- gulp.watch(SOURCE, [ 'build-for-watch' ]);
-});
-
-// Currently, not works for ES6.
-gulp.task('lint', function () {
- return gulp.src(SOURCE)
- .pipe(eslint(ESLINT_OPTION))
- .pipe(eslint.formatEach('stylish', process.stderr))
- .pipe(eslint.failOnError());
-});
-
-/**
- * Bumping version number and tagging the repository with it.
- * Please read http://semver.org/
- *
- * You can use the commands
- *
- * gulp patch # makes v0.1.0 -> v0.1.1
- * gulp feature # makes v0.1.1 -> v0.2.0
- * gulp release # makes v0.2.1 -> v1.0.0
- *
- * To bump the version numbers accordingly after you did a patch,
- * introduced a feature or made a backwards-incompatible release.
- */
-
-function inc(importance) {
- // get all the files to bump version in
- return gulp.src(['./package.json'])
- // bump the version number in those files
- .pipe(bump({type: importance}))
- // save it back to filesystem
- .pipe(gulp.dest('./'))
- // commit the changed version number
- .pipe(git.commit('Bumps package version'))
- // read only one file to get the version number
- .pipe(filter('package.json'))
- // **tag it in the repository**
- .pipe(tagVersion({
- prefix: ''
- }));
-}
-
-gulp.task('patch', [ 'build' ], function () { return inc('patch'); })
-gulp.task('minor', [ 'build' ], function () { return inc('minor'); })
-gulp.task('major', [ 'build' ], function () { return inc('major'); })
-
-gulp.task('travis', [ 'test' ]);
-gulp.task('default', [ 'travis' ]);
diff --git a/tools/eslint/node_modules/escope/lib/definition.js b/tools/eslint/node_modules/escope/lib/definition.js
index cef445de5b3915..7becdde829e899 100644
--- a/tools/eslint/node_modules/escope/lib/definition.js
+++ b/tools/eslint/node_modules/escope/lib/definition.js
@@ -76,6 +76,7 @@ var Definition = function Definition(type, name, node, parent, index, kind) {
* @class ParameterDefinition
*/
+
exports.default = Definition;
var ParameterDefinition = function (_Definition) {
@@ -102,4 +103,4 @@ exports.ParameterDefinition = ParameterDefinition;
exports.Definition = Definition;
/* vim: set sw=4 ts=4 et tw=80 : */
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRlZmluaXRpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBNkJxQixhQUNqQixTQURpQixVQUNqQixDQUFZLElBQVosRUFBa0IsSUFBbEIsRUFBd0IsSUFBeEIsRUFBOEIsTUFBOUIsRUFBc0MsS0FBdEMsRUFBNkMsSUFBN0MsRUFBbUQ7d0JBRGxDLFlBQ2tDOzs7OztBQUkvQyxPQUFLLElBQUwsR0FBWSxJQUFaOzs7O0FBSitDLE1BUS9DLENBQUssSUFBTCxHQUFZLElBQVo7Ozs7QUFSK0MsTUFZL0MsQ0FBSyxJQUFMLEdBQVksSUFBWjs7OztBQVorQyxNQWdCL0MsQ0FBSyxNQUFMLEdBQWMsTUFBZDs7OztBQWhCK0MsTUFvQi9DLENBQUssS0FBTCxHQUFhLEtBQWI7Ozs7QUFwQitDLE1Bd0IvQyxDQUFLLElBQUwsR0FBWSxJQUFaLENBeEIrQztDQUFuRDs7Ozs7O2tCQURpQjs7SUFnQ2Y7OztBQUNGLFdBREUsbUJBQ0YsQ0FBWSxJQUFaLEVBQWtCLElBQWxCLEVBQXdCLEtBQXhCLEVBQStCLElBQS9CLEVBQXFDOzBCQURuQyxxQkFDbUM7Ozs7Ozs7dUVBRG5DLGdDQUVRLG1CQUFTLFNBQVQsRUFBb0IsTUFBTSxNQUFNLE1BQU0sT0FBTyxPQURsQjs7QUFNakMsVUFBSyxJQUFMLEdBQVksSUFBWixDQU5pQzs7R0FBckM7O1NBREU7RUFBNEI7O1FBWTlCO1FBQ0EiLCJmaWxlIjoiZGVmaW5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HlwZSBvZiB0aGUgb2NjdXJyZW5jZSAoZS5nLiBcIlBhcmFtZXRlclwiLCBcIlZhcmlhYmxlXCIsIC4uLikuXG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnR5cGUgPSB0eXBlO1xuICAgICAgICAvKipcbiAgICAgICAgICogQG1lbWJlciB7ZXNwcmltYS5JZGVudGlmaWVyfSBEZWZpbml0aW9uI25hbWUgLSB0aGUgaWRlbnRpZmllciBBU1Qgbm9kZSBvZiB0aGUgb2NjdXJyZW5jZS5cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMubmFtZSA9IG5hbWU7XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAbWVtYmVyIHtlc3ByaW1hLk5vZGV9IERlZmluaXRpb24jbm9kZSAtIHRoZSBlbmNsb3Npbmcgbm9kZSBvZiB0aGUgaWRlbnRpZmllci5cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMubm9kZSA9IG5vZGU7XG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAbWVtYmVyIHtlc3ByaW1hLk5vZGU/fSBEZWZpbml0aW9uI3BhcmVudCAtIHRoZSBlbmNsb3Npbmcgc3RhdGVtZW50IG5vZGUgb2YgdGhlIGlkZW50aWZpZXIuXG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnBhcmVudCA9IHBhcmVudDtcbiAgICAgICAgLyoqXG4gICAgICAgICAqIEBtZW1iZXIge051bWJlcj99IERlZmluaXRpb24jaW5kZXggLSB0aGUgaW5kZXggaW4gdGhlIGRlY2xhcmF0aW9uIHN0YXRlbWVudC5cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMuaW5kZXggPSBpbmRleDtcbiAgICAgICAgLyoqXG4gICAgICAgICAqIEBtZW1iZXIge1N0cmluZz99IERlZmluaXRpb24ja2luZCAtIHRoZSBraW5kIG9mIHRoZSBkZWNsYXJhdGlvbiBzdGF0ZW1lbnQuXG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLmtpbmQgPSBraW5kO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cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMucmVzdCA9IHJlc3Q7XG4gICAgfVxufVxuXG5leHBvcnQge1xuICAgIFBhcmFtZXRlckRlZmluaXRpb24sXG4gICAgRGVmaW5pdGlvblxufVxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/tools/eslint/node_modules/escope/lib/index.js b/tools/eslint/node_modules/escope/lib/index.js
index 6861459edae75a..59cfcb172375cd 100644
--- a/tools/eslint/node_modules/escope/lib/index.js
+++ b/tools/eslint/node_modules/escope/lib/index.js
@@ -1,5 +1,10 @@
'use strict';
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.ScopeManager = exports.Scope = exports.Variable = exports.Reference = exports.version = undefined;
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; /*
Copyright (C) 2012-2014 Yusuke Suzuki
Copyright (C) 2013 Alex Seville
@@ -50,10 +55,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
/*jslint bitwise:true */
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.ScopeManager = exports.Scope = exports.Variable = exports.Reference = exports.version = undefined;
exports.analyze = analyze;
var _assert = require('assert');
@@ -91,7 +92,9 @@ function defaultOptions() {
nodejsScope: false,
impliedStrict: false,
sourceType: 'script', // one of ['script', 'module']
- ecmaVersion: 5
+ ecmaVersion: 5,
+ childVisitorKeys: null,
+ fallback: 'iteration'
};
}
@@ -99,7 +102,7 @@ function updateDeeply(target, override) {
var key, val;
function isHashObject(target) {
- return (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && target instanceof Object && !(target instanceof RegExp);
+ return (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && target instanceof Object && !(target instanceof Array) && !(target instanceof RegExp);
}
for (key in override) {
@@ -135,6 +138,8 @@ function updateDeeply(target, override) {
* (if ecmaVersion >= 5).
* @param {string} [providedOptions.sourceType='script']- the source type of the script. one of 'script' and 'module'
* @param {number} [providedOptions.ecmaVersion=5]- which ECMAScript version is considered
+ * @param {Object} [providedOptions.childVisitorKeys=null] - Additional known visitor keys. See [esrecurse](https://github.com/estools/esrecurse)'s the `childVisitorKeys` option.
+ * @param {string} [providedOptions.fallback='iteration'] - A kind of the fallback in order to encounter with unknown node. See [esrecurse](https://github.com/estools/esrecurse)'s the `fallback` option.
* @return {ScopeManager}
*/
function analyze(tree, providedOptions) {
@@ -144,7 +149,7 @@ function analyze(tree, providedOptions) {
scopeManager = new _scopeManager2.default(options);
- referencer = new _referencer2.default(scopeManager);
+ referencer = new _referencer2.default(options, scopeManager);
referencer.visit(tree);
(0, _assert2.default)(scopeManager.__currentScope === null, 'currentScope should be null.');
@@ -169,4 +174,4 @@ exports.
ScopeManager = _scopeManager2.default;
/* vim: set sw=4 ts=4 et tw=80 : */
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O1FBZ0hnQjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBckRoQixTQUFTLGNBQVQsR0FBMEI7QUFDdEIsV0FBTztBQUNILG9CQUFZLEtBQVo7QUFDQSxtQkFBVyxLQUFYO0FBQ0EscUJBQWEsS0FBYjtBQUNBLHVCQUFlLEtBQWY7QUFDQSxvQkFBWSxRQUFaO0FBQ0EscUJBQWEsQ0FBYjtLQU5KLENBRHNCO0NBQTFCOztBQVdBLFNBQVMsWUFB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3J0IHtcbiAgICAvKiogQG5hbWUgbW9kdWxlOmVzY29wZS52ZXJzaW9uICovXG4gICAgdmVyc2lvbixcbiAgICAvKiogQG5hbWUgbW9kdWxlOmVzY29wZS5SZWZlcmVuY2UgKi9cbiAgICBSZWZlcmVuY2UsXG4gICAgLyoqIEBuYW1lIG1vZHVsZTplc2NvcGUuVmFyaWFibGUgKi9cbiAgICBWYXJpYWJsZSxcbiAgICAvKiogQG5hbWUgbW9kdWxlOmVzY29wZS5TY29wZSAqL1xuICAgIFNjb3BlLFxuICAgIC8qKiBAbmFtZSBtb2R1bGU6ZXNjb3BlLlNjb3BlTWFuYWdlciAqL1xuICAgIFNjb3BlTWFuYWdlclxufTtcblxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/tools/eslint/node_modules/escope/lib/pattern-visitor.js b/tools/eslint/node_modules/escope/lib/pattern-visitor.js
index 39687239bb5f62..909344aeb069ec 100644
--- a/tools/eslint/node_modules/escope/lib/pattern-visitor.js
+++ b/tools/eslint/node_modules/escope/lib/pattern-visitor.js
@@ -1,11 +1,11 @@
'use strict';
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
Object.defineProperty(exports, "__esModule", {
value: true
});
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
var _estraverse = require('estraverse');
var _esrecurse = require('esrecurse');
@@ -57,10 +57,10 @@ var PatternVisitor = function (_esrecurse$Visitor) {
}
}]);
- function PatternVisitor(rootPattern, callback) {
+ function PatternVisitor(options, rootPattern, callback) {
_classCallCheck(this, PatternVisitor);
- var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(PatternVisitor).call(this));
+ var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(PatternVisitor).call(this, null, options));
_this.rootPattern = rootPattern;
_this.callback = callback;
@@ -171,5 +171,6 @@ var PatternVisitor = function (_esrecurse$Visitor) {
/* vim: set sw=4 ts=4 et tw=80 : */
+
exports.default = PatternVisitor;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhdHRlcm4tdmlzaXRvci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQTJCQSxTQUFTLE9BQVQsQ0FBaUIsRUFBakIsRUFBcUI7QUFDakIsV0FBTyxHQUFHLEdBQUcsTUFBSCxHQUFZLENBQVosQ0FBSCxJQUFxQixJQUFyQixDQURVO0NBQXJCOztJQUlxQjs7Ozs7a0NBQ0EsTUFBTTtBQUNuQixnQkFBSSxXQUFXLEtBQUssSUFBTCxDQURJO0FBRW5CLG1CQUNJLGFBQWEsbUJBQU8sVUFBUCxJQUNiLGFBQWEsbUJBQU8sYUFBUCxJQUNiLGFBQWEsbUJBQU8sWUFBUCxJQUNiLGFBQWEsbUJBQU8sYUFBUCxJQUNiLGFBQWEsbUJBQU8sV0FBUCxJQUNiLGFBQWEsbUJBQU8saUJBQVAsQ0FSRTs7OztBQVl2QixhQWJpQixjQWFqQixDQUFZLFdBQVosRUFBeUIsUUFBekIsRUFBbUM7OEJBYmxCL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gQ2FsbEV4cHJlc3Npb24obm9kZSkge1xuICAgICAgICAvLyBhcmd1bWVudHMgYXJlIHJpZ2h0IGhhbmQgbm9kZXMuXG4gICAgICAgIG5vZGUuYXJndW1lbnRzLmZvckVhY2goYSA9PiB7IHRoaXMucmlnaHRIYW5kTm9kZXMucHVzaChhKTsgfSk7XG4gICAgICAgIHRoaXMudmlzaXQobm9kZS5jYWxsZWUpO1xuICAgIH1cbn1cblxuLyogdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDogKi9cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
diff --git a/tools/eslint/node_modules/escope/lib/reference.js b/tools/eslint/node_modules/escope/lib/reference.js
index 6b1d60a2cd789a..590d356ce644f2 100644
--- a/tools/eslint/node_modules/escope/lib/reference.js
+++ b/tools/eslint/node_modules/escope/lib/reference.js
@@ -1,11 +1,11 @@
"use strict";
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
Object.defineProperty(exports, "__esModule", {
value: true
});
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/*
@@ -99,6 +99,7 @@ var Reference = function () {
* @return {boolean}
*/
+
_createClass(Reference, [{
key: "isStatic",
value: function isStatic() {
@@ -174,6 +175,7 @@ var Reference = function () {
* @private
*/
+
exports.default = Reference;
Reference.READ = READ;
/**
@@ -188,4 +190,4 @@ Reference.WRITE = WRITE;
Reference.RW = RW;
/* vim: set sw=4 ts=4 et tw=80 : */
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlZmVyZW5jZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBd0JBLElBQU0sT0FBTyxHQUFQO0FBQ04sSUFBTSxRQUFRLEdBQVI7QUFDTixJQUFNLEtBQUssT0FBTyxLQUFQOzs7Ozs7O0lBTVU7QUFDakIsV0FEaUIsU0FDakIsQ0FBWSxLQUFaLEVBQW1CLEtBQW5CLEVBQTBCLElBQTFCLEVBQWlDLFNBQWpDLEVBQTRDLG1CQUE1QyxFQUFpRSxPQUFqRSxFQUEwRSxJQUExRSxFQUFnRjswQkFEL0QsV0FDK0Q7Ozs7OztBQUs1RSxTQUFLLFVBQUwsR0FBa0IsS0FBbEI7Ozs7O0FBTDRFLFFBVTVFLENBQUssSUFBTCxHQUFZLEtBQVo7Ozs7OztBQVY0RSxRQWdCNUUsQ0FBSyxPQUFMLEdBQWUsS0FBZjs7Ozs7QUFoQjRFLFFBcUI1RSxDQUFLLFFBQUwsR0FBZ0IsSUFBaEI7Ozs7Ozs7QUFyQjRFLFFBNEI1RSxDQUFLLElBQUwsR0FBWSxJQUFaLENBNUI0RTtBQTZCNUUsUUFBSSxLQUFLLE9BQUwsRUFBSixFQUFvQjs7Ozs7QUFLaEIsV0FBSyxTQUFMLEdBQWlCLFNBQWpCOzs7OztBQUxnQixVQVVoQixDQUFLLE9BQUwsR0FBZSxPQUFmOzs7OztBQVZnQixVQWVoQixDQUFLLElBQUwsR0FBWSxJQUFaLENBZmdCO0tBQXBCO0FBaU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ICAgICovXG4gICAgICAgIHRoaXMudGFpbnRlZCA9IGZhbHNlO1xuICAgICAgICAvKipcbiAgICAgICAgICogVGhlIHZhcmlhYmxlIHRoaXMgcmVmZXJlbmNlIGlzIHJlc29sdmVkIHdpdGguXG4gICAgICAgICAqIEBtZW1iZXIge1ZhcmlhYmxlfSBSZWZlcmVuY2UjcmVzb2x2ZWRcbiAgICAgICAgICovXG4gICAgICAgIHRoaXMucmVzb2x2ZWQgPSBudWxsO1xuICAgICAgICAvKipcbiAgICAgICAgICogVGhlIHJlYWQtd3JpdGUgbW9kZSBvZiB0aGUgcmVmZXJlbmNlLiAoVmFsdWUgaXMgb25lIG9mIHtAbGlua1xuICAgICAgICAgKiBSZWZlcmVuY2UuUkVBRH0sIHtAbGluayBSZWZlcmVuY2UuUld9LCB7QGxpbmsgUmVmZXJlbmNlLldSSVRFfSkuXG4gICAgICAgICAqIEBtZW1iZXIge251bWJlcn0gUmVmZXJlbmNlI2ZsYWdcbiAgICAgICAgICogQHByaXZhdGVcbiAgICAgICAgICovXG4gICAgICAgIHRoaXMuZmxhZyA9IGZsYWc7XG4gICAgICAgIGlmICh0aGlzLmlzV3JpdGUoKSkge1xuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiBJZiByZWZlcmVuY2UgaXMgd3JpdGVhYmxlLCB0aGlzIGlzIHRoZSB0cmVlIGJlaW5nIHdyaXR0ZW4gdG8gaXQuXG4gICAgICAgICAgICAgKiBAbWVtYmVyIHtlc3ByaW1hI05vZGV9IFJlZmVyZW5jZSN3cml0ZUV4cHJcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgdGhpcy53cml0ZUV4cHIgPSB3cml0ZUV4cHI7XG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIFdoZXRoZXIgdGhlIFJlZmVyZW5jZSBtaWdodCByZWZlciB0byBhIHBhcnRpYWwgdmFsdWUgb2Ygd3JpdGVFeHByLlxuICAgICAgICAgICAgICogQG1lbWJlciB7Ym9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BAcHJpdmF0ZVxuICovXG5SZWZlcmVuY2UuV1JJVEUgPSBXUklURTtcbi8qKlxuICogQGNvbnN0YW50IFJlZmVyZW5jZS5SV1xuICogQHByaXZhdGVcbiAqL1xuUmVmZXJlbmNlLlJXID0gUlc7XG5cbi8qIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6ICovXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/tools/eslint/node_modules/escope/lib/referencer.js b/tools/eslint/node_modules/escope/lib/referencer.js
index 4620007006f096..ca04eaa451c9a4 100644
--- a/tools/eslint/node_modules/escope/lib/referencer.js
+++ b/tools/eslint/node_modules/escope/lib/referencer.js
@@ -1,11 +1,11 @@
'use strict';
-var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
-
Object.defineProperty(exports, "__esModule", {
value: true
});
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
var _estraverse = require('estraverse');
var _esrecurse = require('esrecurse');
@@ -60,9 +60,10 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-function traverseIdentifierInPattern(rootPattern, referencer, callback) {
+
+function traverseIdentifierInPattern(options, rootPattern, referencer, callback) {
// Call the callback at left hand identifier nodes, and Collect right hand nodes.
- var visitor = new _patternVisitor2.default(rootPattern, callback);
+ var visitor = new _patternVisitor2.default(options, rootPattern, callback);
visitor.visit(rootPattern);
// Process the right hand nodes recursively.
@@ -83,7 +84,7 @@ var Importer = function (_esrecurse$Visitor) {
function Importer(declaration, referencer) {
_classCallCheck(this, Importer);
- var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Importer).call(this));
+ var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Importer).call(this, null, referencer.options));
_this.declaration = declaration;
_this.referencer = referencer;
@@ -130,14 +131,16 @@ var Importer = function (_esrecurse$Visitor) {
// Referencing variables and creating bindings.
+
var Referencer = function (_esrecurse$Visitor2) {
_inherits(Referencer, _esrecurse$Visitor2);
- function Referencer(scopeManager) {
+ function Referencer(options, scopeManager) {
_classCallCheck(this, Referencer);
- var _this3 = _possibleConstructorReturn(this, Object.getPrototypeOf(Referencer).call(this));
+ var _this3 = _possibleConstructorReturn(this, Object.getPrototypeOf(Referencer).call(this, null, options));
+ _this3.options = options;
_this3.scopeManager = scopeManager;
_this3.parent = null;
_this3.isInnerMethodDefinition = false;
@@ -205,7 +208,7 @@ var Referencer = function (_esrecurse$Visitor2) {
callback = options;
options = { processRightHandNodes: false };
}
- traverseIdentifierInPattern(node, options.processRightHandNodes ? this : null, callback);
+ traverseIdentifierInPattern(this.options, node, options.processRightHandNodes ? this : null, callback);
}
}, {
key: 'visitFunction',
@@ -619,6 +622,11 @@ var Referencer = function (_esrecurse$Visitor2) {
var local = node.id || node.local;
this.visit(local);
}
+ }, {
+ key: 'MetaProperty',
+ value: function MetaProperty() {
+ // do nothing.
+ }
}]);
return Referencer;
@@ -626,5 +634,6 @@ var Referencer = function (_esrecurse$Visitor2) {
/* vim: set sw=4 ts=4 et tw=80 : */
+
exports.default = Referencer;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlZmVyZW5jZXIuanMiXSwibmF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mlzaXRvciB7XG4gICAgY29uc3RydWN0b3IoZGVjbGFyYXRpb24sIHJlZmVyZW5jZXIpIHtcbiAgICAgICAgc3VwZXIoKTtcbiAgICAgICAgdGhpcy5kZWNsYXJhdGlvbiA9IGRlY2xhcmF0aW9uO1xuICAgICAgICB0aGlzLnJlZmVyZW5jZXIgPSByZWZlcmVuY2VyO1xuICAgIH1cblxuICAgIHZpc2l0SW1wb3J0KGlkLCBzcGVjaWZpZXIpIHtcbiAgICAgICAgdGhpcy5yZWZlcmVuY2VyLnZpc2l0UGF0dGVybihpZCwgKHBhdHRlcm4pID0+IHtcbiAgICAgICAgICAgIHRoaXMucmVmZXJlbmNlci5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShwYXR0ZXJuLFxuICAgICAgICAgICAgICAgIG5ldyBEZWZpbml0aW9uKFxuICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5JbXBvcnRCaW5kaW5nLFxuICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICBzcGVjaWZpZXIsXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZGVjbGFyYXRpb24sXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGxcbiAgICAgICAgICAgICAgICAgICAgKSk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIEltcG9ydE5hbWVzcGFjZVNwZWNpZmllcihub2RlKSB7XG4gICAgICAgIGxldCBsb2NhbCA9IChub2RlLmxvY2FsIHx8IG5vZGUuaWQpO1xuICAgICAgICBpZiAobG9jYWwpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRJbXBvcnQobG9jYWwsIG5vZGUpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgSW1wb3J0RGVmYXVsdFNwZWNpZmllcihub2RlKSB7XG4gICAgICAgIGxldCBsb2NhbCA9IChub2RlLmxvY2FsIHx8IG5vZGUuaWQpO1xuICAgICAgICB0aGlzL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ICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5GdW5jdGlvbk5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEZ1bmN0aW9uRXhwcmVzc2lvbiB3aXRoIG5hbWUgY3JlYXRlcyBpdHMgc3BlY2lhbCBzY29wZTtcbiAgICAgICAgLy8gRnVuY3Rpb25FeHByZXNzaW9uTmFtZVNjb3BlLlxuICAgICAgICBpZiAobm9kZS50eXBlID09PSBTeW50YXguRnVuY3Rpb25FeHByZXNzaW9uICYmIG5vZGUuaWQpIHtcbiAgICAgICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdEZ1bmN0aW9uRXhwcmVzc2lvbk5hbWVTY29wZShub2RlKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIENvbnNpZGVyIHRoaXMgZnVuY3Rpb24gaXMgaW4gdGhlIE1ldGhvZERlZmluaXRpb24uXG4gICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdEZ1bmN0aW9uU2NvcGUobm9kZSwgdGhpcy5pc0lubmVyTWV0aG9kRGVmaW5pdGlvbik7XG5cbiAgICAgICAgLy8gUHJvY2VzcyBwYXJhbWV0ZXIgZGVjbGFyYXRpb25zLlxuICAgICAgICBmb3IgKGkgPSAwLCBpeiA9IG5vZGUucGFyYW1zLmxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUucGFyYW1zW2ldLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiB0cnVlfSwgKHBhdHRlcm4sIGluZm8pID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmN1cnJlbnRTY29wZSgpLl9fZGVmaW5lKHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBQYXJhbWV0ZXJEZWZpbml0aW9uKFxuICAgICAgICAgICAgICAgICAgICAgICAgcGF0dGVybixcbiAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICBpLFxuICAgICAgICAgICAgICAgICAgICAgICAgaW5mby5yZXN0XG4gICAgICAgICAgICAgICAgICAgICkpO1xuXG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gaWYgdGhlcmUncyBhIHJlc3QgYXJndW1lbnQsIGFkZCB0aGF0XG4gICAgICAgIGlmIChub2RlLnJlc3QpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnUmVzdEVsZW1lbnQnLFxuICAgICAgICAgICAgICAgIGFyZ3VtZW50OiBub2RlLnJlc3RcbiAgICAgICAgICAgIH0sIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICBuZXcgUGFyYW1ldGVyRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZS5wYXJhbXMubGVuZ3RoLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHJ1ZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU2tpcCBCbG9ja1N0YXRlbWVudCB0byBwcmV2ZW50IGNyZWF0aW5nIEJsb2NrU3RhdGVtZW50IHNjb3BlLlxuICAgICAgICBpZiAobm9kZS5ib2R5LnR5cGUgPT09IFN5bnRheC5CbG9ja1N0YXRlbWVudCkge1xuICAgICAgICAgICAgdGhpcy52aXNpdENoaWxkcmVuKG5vZGUuYm9keSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNsb3NlKG5vZGUpO1xuICAgIH1cblxuICAgIHZpc2l0Q2xhc3Mobm9kZSkge1xuICAgICAgICBpZiAobm9kZS50eXBlID09PSBTeW50YXguQ2xhc3NEZWNsYXJhdGlvbikge1xuICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIFZhcmlhYmxlLkNsYXNzTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUuaWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsXG4gICAgICAgICAgICAgICAgICAgICkpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gRklYTUU6IE1heWJlIGNvbnNpZGVyIFREWi5cbiAgICAgICAgdGhpcy52aXNpdChub2RlLnN1cGVyQ2xhc3MpO1xuXG4gICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdENsYXNzU2NvcGUobm9kZSk7XG5cbiAgICAgICAgaWYgKG5vZGUuaWQpIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5DbGFzc05hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG5cbiAgICAgICAgdGhpcy5jbG9zZShub2RlKTtcbiAgICB9XG5cbiAgICB2aXNpdFByb3BlcnR5KG5vZGUpIHtcbiAgICAgICAgdmFyIHByZXZpb3VzLCBpc01ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChub2RlLmNvbXB1dGVkKSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUua2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlzTWV0aG9kRGVmaW5pdGlvbiA9IG5vZGUudHlwZSA9PT0gU3ludGF4Lk1ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHByZXZpb3VzID0gdGhpcy5wdXNoSW5uZXJNZXRob2REZWZpbml0aW9uKHRydWUpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmlzaXQobm9kZS52YWx1ZSk7XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHRoaXMucG9wSW5uZXJNZXRob2REZWZpbml0aW9uKHByZXZpb3VzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHZpc2l0Rm9ySW4obm9kZSkge1xuICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uICYmIG5vZGUubGVmdC5raW5kICE9PSAndmFyJykge1xuICAgICAgICAgICAgdGhpcy5tYXRlcmlhbGl6ZVREWlNjb3BlKG5vZGUucmlnaHQsIG5vZGUpO1xuICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLnJpZ2h0KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZS5yaWdodCk7XG5cbiAgICAgICAgICAgIHRoaXMubWF0ZXJpYWxpemVJdGVyYXRpb25TY29wZShub2RlKTtcbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5ib2R5KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLmxlZnQpO1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdC5kZWNsYXJhdGlvbnNbMF0uaWQsIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG51bGwsIHRydWUsIHRydWUpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihub2RlLmxlZnQsIHtwcm9jZXNzUmlnaHRIYW5kTm9kZXM6IHRydWV9LCAocGF0dGVybiwgaW5mbykgPT4ge1xuICAgICAgICAgICAgICAgICAgICB2YXIgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5jdXJyZW50U2NvcGUoKS5pc1N0cmljdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuOiBwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGVcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBtYXliZUltcGxpY2l0R2xvYmFsLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG1heWJlSW1wbGljaXRHbG9iYWwsIHRydWUsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5yaWdodCk7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB2aXNpdFZhcmlhYmxlRGVjbGFyYXRpb24odmFyaWFibGVUYXJnZXRTY29wZSwgdHlwZSwgbm9kZSwgaW5kZXgsIGZyb21URFopIHtcbiAgICAgICAgLy8gSWYgdGhpcyB3YXMgY2FsbGVkIHRvIGluaXRpYWxpemUgYSBURFogc2NvcGUsIHRoaXMgbmVlZHMgdG8gbWFrZSBkZWZpbml0aW9ucywgYnV0IGRvZXNuJ3QgbWFrZSByZWZlcmVuY2VzLlxuICAgICAgICB2YXIgZGVjbCwgaW5pdDtcblxuICAgICAgICBkZWNsID0gbm9kZS5kZWNsYXJhdGlvbnNbaW5kZXhdO1xuICAgICAgICBpbml0ID0gZGVjbC5pbml0O1xuICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihkZWNsLmlkLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiAhZnJvbVREWn0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICB2YXJpYWJsZVRhcmdldFNjb3BlLl9fZGVmaW5lKHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIGRlY2wsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGluZGV4LFxuICAgICAgICAgICAgICAgICAgICBub2RlLmtpbmRcbiAgICAgICAgICAgICAgICApKTtcblxuICAgICAgICAgICAgaWYgKCFmcm9tVERaKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChpbml0KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKHBhdHRlcm4sIFJlZmVyZW5jZS5XUklURSwgaW5pdCwgbnVsbCwgIWluZm8udG9wTGV2ZWwsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBBc3NpZ25tZW50RXhwcmVzc2lvbihub2RlKSB7XG4gICAgICAgIGlmIChQYXR0ZXJuVmlzaXRvci5pc1BhdHRlcm4obm9kZS5sZWZ0KSkge1xuICAgICAgICAgICAgaWYgKG5vZGUub3BlcmF0b3IgPT09ICc9Jykge1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdCwge3Byb2Nlc3NSaWdodEhhbmROb2RlczogdHJ1ZX0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBtYXliZUltcGxpY2l0R2xvYmFsID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLmN1cnJlbnRTY29wZSgpLmlzU3RyaWN0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXliZUltcGxpY2l0R2xvYmFsID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm46IHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlZmVyZW5jaW5nRGVmYXVsdFZhbHVlKHBhdHRlcm4sIGluZm8uYXNzaWdubWVudHMsIG1heWJlSW1wbGljaXRHbG9iYWwsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKHBhdHRlcm4sIFJlZmVyZW5jZS5XUklURSwgbm9kZS5yaWdodCwgbWF5YmVJbXBsaWNpdEdsb2JhbCwgIWluZm8udG9wTGV2ZWwsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKG5vZGUubGVmdCwgUmVmZXJlbmNlLlJXLCBub2RlLnJpZ2h0KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5sZWZ0KTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZpc2l0KG5vZGUucmlnaHQpO1xuICAgIH1cblxuICAgIENhdGNoQ2xhdXNlKG5vZGUpIHtcbiAgICAgICAgdGhpcy5zY29wZU1hbmFnZXIuX19uZXN0Q2F0Y2hTY29wZShub2RlKTtcblxuICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihub2RlLnBhcmFtLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiB0cnVlfSwgKHBhdHRlcm4sIGluZm8pID0+IHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUocGF0dGVybixcbiAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuQ2F0Y2hDbGF1c2UsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUucGFyYW0sXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGxcbiAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgICAgIHRoaXMucmVmZXJlbmNpbmdEZWZhdWx0VmFsdWUocGF0dGVybiwgaW5mby5hc3NpZ25tZW50cywgbnVsbCwgdHJ1ZSk7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG5cbiAgICAgICAgdGhpcy5jbG9zZShub2RlKTtcbiAgICB9XG5cbiAgICBQcm9ncmFtKG5vZGUpIHtcbiAgICAgICAgdGhpcy5zY29wZU1hbmFnZXIuX19uZXN0R2xvYmFsU2NvcGUobm9kZSk7XG5cbiAgICAgICAgaWYgKHRoaXMuc2NvcGVNYW5hZ2VyLl9faXNOb2RlanNTY29wZSgpKSB7XG4gICAgICAgICAgICAvLyBGb3JjZSBzdHJpY3RuZXNzIG9mIEdsb2JhbFNjb3BlIHRvIGZhbHNlIHdoZW4gdXNpbmcgbm9kZS5qcyBzY29wZS5cbiA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HN1cGVyKG51bGwsIG9wdGlvbnMpO1xuICAgICAgICB0aGlzLm9wdGlvbnMgPSBvcHRpb25zO1xuICAgICAgICB0aGlzLnNjb3BlTWFuYWdlciA9IHNjb3BlTWFuYWdlcjtcbiAgICAgICAgdGhpcy5wYXJlbnQgPSBudWxsO1xuICAgICAgICB0aGlzLmlzSW5uZXJNZXRob2REZWZpbml0aW9uID0gZmFsc2U7XG4gICAgfVxuXG4gICAgY3VycmVudFNjb3BlKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5zY29wZU1hbmFnZXIuX19jdXJyZW50U2NvcGU7XG4gICAgfVxuXG4gICAgY2xvc2Uobm9kZSkge1xuICAgICAgICB3aGlsZSAodGhpcy5jdXJyZW50U2NvcGUoKSAmJiBub2RlID09PSB0aGlzLmN1cnJlbnRTY29wZSgpLmJsb2NrKSB7XG4gICAgICAgICAgICB0aGlzLnNjb3BlTWFuYWdlci5fX2N1cnJlbnRTY29wZSA9IHRoaXMuY3VycmVudFNjb3BlKCkuX19jbG9zZSh0aGlzLnNjb3BlTWFuYWdlcik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwdXNoSW5uZXJNZXRob2REZWZpbml0aW9uKGlzSW5uZXJNZXRob2REZWZpbml0aW9uKSB7XG4gICAgICAgIHZhciBwcmV2aW91cyA9IHRoaXMuaXNJbm5lck1ldGhvZERlZmluaXRpb247XG4gICAgICAgIHRoaXMuaXNJbm5lck1ldGhvZERlZmluaXRpb24gPSBpc0lubmVyTWV0aG9kRGVmaW5pdGlvbjtcbiAgICAgICAgcmV0dXJuIHByZXZpb3VzO1xuICAgIH1cblxuICAgIHBvcElubmVyTWV0aG9kRGVmaW5pdGlvbihpc0lubmVyTWV0aG9kRGVmaW5pdGlvbikge1xuICAgICAgICB0aGlzLmlzSW5uZXJNZXRob2REZWZpbml0aW9uID0gaXNJbm5lck1ldGhvZERlZmluaXRpb247XG4gICAgfVxuXG4gICAgbWF0ZXJpYWxpemVURFpTY29wZShub2RlLC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Njb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG51bGwsIHRydWUsIHRydWUpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICByZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBhc3NpZ25tZW50cywgbWF5YmVJbXBsaWNpdEdsb2JhbCwgaW5pdCkge1xuICAgICAgICBjb25zdCBzY29wZSA9IHRoaXMuY3VycmVudFNjb3BlKCk7XG4gICAgICAgIGFzc2lnbm1lbnRzLmZvckVhY2goYXNzaWdubWVudCA9PiB7XG4gICAgICAgICAgICBzY29wZS5fX3JlZmVyZW5jaW5nKFxuICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgUmVmZXJlbmNlLldSSVRFLFxuICAgICAgICAgICAgICAgIGFzc2lnbm1lbnQucmlnaHQsXG4gICAgICAgICAgICAgICAgbWF5YmVJbXBsaWNpdEdsb2JhbCxcbiAgICAgICAgICAgICAgICBwYXR0ZXJuICE9PSBhc3NpZ25tZW50LmxlZnQsXG4gICAgICAgICAgICAgICAgaW5pdCk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHZpc2l0UGF0dGVybihub2RlLCBvcHRpb25zLCBjYWxsYmFjaykge1xuICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICAgIGNhbGxiYWNrID0gb3B0aW9ucztcbiAgICAgICAgICAgIG9wdGlvbnMgPSB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiBmYWxzZX1cbiAgICAgICAgfVxuICAgICAgICB0cmF2ZXJzZUlkZW50aWZpZXJJblBhdHRlcm4oXG4gICAgICAgICAgICB0aGlzLm9wdGlvbnMsXG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgb3B0aW9ucy5wcm9jZXNzUmlnaHRIYW5kTm9kZXMgPyB0aGlzIDogbnVsbCxcbiAgICAgICAgICAgIGNhbGxiYWNrKTtcbiAgICB9XG5cbiAgICB2aXNpdEZ1bmN0aW9uKG5vZGUpIHtcbiAgICAgICAgdmFyIGksIGl6O1xuICAgICAgICAvLyBGdW5jdGlvbkRlY2xhcmF0aW9uIG5hbWUgaXMgZGVmaW5lZCBpbiB1cHBlciBzY29wZVxuICAgICAgICAvLyBOT1RFOiBOb3QgcmVmZXJyaW5nIHZhcmlhYmxlU2NvcGUuIEl0IGlzIGludGVuZGVkLlxuICAgICAgICAvLyBTaW5jZVxuICAgICAgICAvLyAgaW4gRVM1LCBGdW5jdGlvbkRlY2xhcmF0aW9uIHNob3VsZCBiZSBpbiBGdW5jdGlvbkJvZHkuXG4gICAgICAgIC8vICBpbiBFUzYsIEZ1bmN0aW9uRGVjbGFyYXRpb24gc2hvdWxkIGJlIGJsb2NrIHNjb3BlZC5cbiAgICAgICAgaWYgKG5vZGUudHlwZSA9PT0gU3ludGF4LkZ1bmN0aW9uRGVjbGFyYXRpb24pIHtcbiAgICAgICAgICAgIC8vIGlkIGlzIGRlZmluZWQgaW4gdXBwZXIgc2NvcGVcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5GdW5jdGlvbk5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEZ1bmN0aW9uRXhwcmVzc2lvbiB3aXRoIG5hbWUgY3JlYXRlcyBpd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ZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gaWYgdGhlcmUncyBhIHJlc3QgYXJndW1lbnQsIGFkZCB0aGF0XG4gICAgICAgIGlmIChub2RlLnJlc3QpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnUmVzdEVsZW1lbnQnLFxuICAgICAgICAgICAgICAgIGFyZ3VtZW50OiBub2RlLnJlc3RcbiAgICAgICAgICAgIH0sIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICBuZXcgUGFyYW1ldGVyRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZS5wYXJhbXMubGVuZ3RoLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHJ1ZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU2tpcCBCbG9ja1N0YXRlbWVudCB0byBwcmV2ZW50IGNyZWF0aW5nIEJsb2NrU3RhdGVtZW50IHNjb3BlLlxuICAgICAgICBpZiAobm9kZS5ib2R5LnR5cGUgPT09IFN5bnRheC5CbG9ja1N0YXRlbWVudCkge1xuICAgICAgICAgICAgdGhpcy52aXNpdENoaWxkcmVuKG5vZGUuYm9keSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNsb3NlKG5vZGUpO1xuICAgIH1cblxuICAgIHZpc2l0Q2xhc3Mobm9kZSkge1xuICAgICAgICBpZiAobm9kZS50eXBlID09PSBTeW50YXguQ2xhc3NEZWNsYXJhdGlvbikge1xuICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIFZhcmlhYmxlLkNsYXNzTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUuaWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsXG4gICAgICAgICAgICAgICAgICAgICkpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gRklYTUU6IE1heWJlIGNvbnNpZGVyIFREWi5cbiAgICAgICAgdGhpcy52aXNpdChub2RlLnN1cGVyQ2xhc3MpO1xuXG4gICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdENsYXNzU2NvcGUobm9kZSk7XG5cbiAgICAgICAgaWYgKG5vZGUuaWQpIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5DbGFzc05hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG5cbiAgICAgICAgdGhpcy5jbG9zZShub2RlKTtcbiAgICB9XG5cbiAgICB2aXNpdFByb3BlcnR5KG5vZGUpIHtcbiAgICAgICAgdmFyIHByZXZpb3VzLCBpc01ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChub2RlLmNvbXB1dGVkKSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUua2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlzTWV0aG9kRGVmaW5pdGlvbiA9IG5vZGUudHlwZSA9PT0gU3ludGF4Lk1ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHByZXZpb3VzID0gdGhpcy5wdXNoSW5uZXJNZXRob2REZWZpbml0aW9uKHRydWUpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmlzaXQobm9kZS52YWx1ZSk7XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHRoaXMucG9wSW5uZXJNZXRob2REZWZpbml0aW9uKHByZXZpb3VzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHZpc2l0Rm9ySW4obm9kZSkge1xuICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uICYmIG5vZGUubGVmdC5raW5kICE9PSAndmFyJykge1xuICAgICAgICAgICAgdGhpcy5tYXRlcmlhbGl6ZVREWlNjb3BlKG5vZGUucmlnaHQsIG5vZGUpO1xuICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLnJpZ2h0KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZS5yaWdodCk7XG5cbiAgICAgICAgICAgIHRoaXMubWF0ZXJpYWxpemVJdGVyYXRpb25TY29wZShub2RlKTtcbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5ib2R5KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLmxlZnQpO1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdC5kZWNsYXJhdGlvbnNbMF0uaWQsIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG51bGwsIHRydWUsIHRydWUpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihub2RlLmxlZnQsIHtwcm9jZXNzUmlnaHRIYW5kTm9kZXM6IHRydWV9LCAocGF0dGVybiwgaW5mbykgPT4ge1xuICAgICAgICAgICAgICAgICAgICB2YXIgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5jdXJyZW50U2NvcGUoKS5pc1N0cmljdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuOiBwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGVcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBtYXliZUltcGxpY2l0R2xvYmFsLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG1heWJlSW1wbGljaXRHbG9iYWwsIHRydWUsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5yaWdodCk7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB2aXNpdFZhcmlhYmxlRGVjbGFyYXRpb24odmFyaWFibGVUYXJnZXRTY29wZSwgdHlwZSwgbm9kZSwgaW5kZXgsIGZyb21URFopIHtcbiAgICAgICAgLy8gSWYgdGhpcyB3YXMgY2FsbGVkIHRvIGluaXRpYWxpemUgYSBURFogc2NvcGUsIHRoaXMgbmVlZHMgdG8gbWFrZSBkZWZpbml0aW9ucywgYnV0IGRvZXNuJ3QgbWFrZSByZWZlcmVuY2VzLlxuICAgICAgICB2YXIgZGVjbCwgaW5pdDtcblxuICAgICAgICBkZWNsID0gbm9kZS5kZWNsYXJhdGlvbnNbaW5kZXhdO1xuICAgICAgICBpbml0ID0gZGVjbC5pbml0O1xuICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihkZWNsLmlkLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiAhZnJvbVREWn0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICB2YXJpYWJsZVRhcmdldFNjb3BlLl9fZGVmaW5lKHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIGRlY2wsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGluZGV4LFxuICAgICAgICAgICAgICAgICAgICBub2RlLmtpbmRcbiAgICAgICAgICAgICAgICApKTtcblxuICAgICAgICAgICAgaWYgKCFmcm9tVERaKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChpbml0KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKHBhdHRlcm4sIFJlZmVyZW5jZS5XUklURSwgaW5pdCwgbnVsbCwgIWluZm8udG9wTGV2ZWwsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBBc3NpZ25tZW50RXhwcmVzc2lvbihub2RlKSB7XG4gICAgICAgIGlmIChQYXR0ZXJuVmlzaXRvci5pc1BhdHRlcm4obm9kZS5sZWZ0KSkge1xuICAgICAgICAgICAgaWYgKG5vZGUub3BlcmF0b3IgPT09ICc9Jykge1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdCwge3Byb2Nlc3NSaWdodEhhbmROb2RlczogdHJ1ZX0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBtYXliZUltcGxpY2l0R2xvYmFsID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLmN1cnJlbnRTY29wZSgpLmlzU3RyaWN0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXliZUltcGxpY2l0R2xvYmFsID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm46IHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgIC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G4gICAgfVxuXG4gICAgdmlzaXRFeHBvcnREZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgIGlmIChub2RlLnNvdXJjZSkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuZGVjbGFyYXRpb24pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy52aXNpdENoaWxkcmVuKG5vZGUpO1xuICAgIH1cblxuICAgIEV4cG9ydERlY2xhcmF0aW9uKG5vZGUpIHtcbiAgICAgICAgdGhpcy52aXNpdEV4cG9ydERlY2xhcmF0aW9uKG5vZGUpO1xuICAgIH1cblxuICAgIEV4cG9ydE5hbWVkRGVjbGFyYXRpb24obm9kZSkge1xuICAgICAgICB0aGlzLnZpc2l0RXhwb3J0RGVjbGFyYXRpb24obm9kZSk7XG4gICAgfVxuXG4gICAgRXhwb3J0U3BlY2lmaWVyKG5vZGUpIHtcbiAgICAgICAgbGV0IGxvY2FsID0gKG5vZGUuaWQgfHwgbm9kZS5sb2NhbCk7XG4gICAgICAgIHRoaXMudmlzaXQobG9jYWwpO1xuICAgIH1cblxuICAgIE1ldGFQcm9wZXJ0eSgpIHtcbiAgICAgICAgLy8gZG8gbm90aGluZy5cbiAgICB9XG59XG5cbi8qIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6ICovXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/tools/eslint/node_modules/escope/lib/scope-manager.js b/tools/eslint/node_modules/escope/lib/scope-manager.js
index 6e85372a540d47..22a4c113ff19b2 100644
--- a/tools/eslint/node_modules/escope/lib/scope-manager.js
+++ b/tools/eslint/node_modules/escope/lib/scope-manager.js
@@ -1,5 +1,9 @@
'use strict';
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*
Copyright (C) 2015 Yusuke Suzuki
@@ -24,10 +28,6 @@ var _createClass = function () { function defineProperties(target, props) { for
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
var _es6WeakMap = require('es6-weak-map');
var _es6WeakMap2 = _interopRequireDefault(_es6WeakMap);
@@ -292,5 +292,6 @@ var ScopeManager = function () {
/* vim: set sw=4 ts=4 et tw=80 : */
+
exports.default = ScopeManager;
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjb3BlLW1hbmFnZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUE2Q3FCO0FBQ2pCLGFBRGlCLFlBQ2pCLENBQVksT0FBWixFQUFxQjs4QkFESixjQUNJOztBQUNqQixhQUFLLE1BQUwsR0FBYyxFQUFkLENBRGlCO0FBRWpCLGFBQUssV0FBTCxHQUFtQixJQUFuQixDQUZpQjtBQUdqQixhQUFLLGFBQUwsR0FBcUIsMEJBQXJCLENBSGlCO0FBSWpCLGFBQUssY0FBTCxHQUFzQixJQUF0QixDQUppQjtBQUtqQixhQUFLLFNBQUwsR0FBaUIsT0FBakIsQ0FMaUI7QUFNakIsYUFBSyxtQkFBTCxHQUEyQiwwQkFBM0IsQ0FOaUI7S0FBckI7O2lCQURpQjs7eUNBVUE7QUFDYixtQkFBTyx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SBub2RlLlxuICAgICAqL1xuICAgIGdldERlY2xhcmVkVmFyaWFibGVzKG5vZGUpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX19kZWNsYXJlZFZhcmlhYmxlcy5nZXQobm9kZSkgfHwgW107XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogYWNxdWlyZSBzY29wZSBmcm9tIG5vZGUuXG4gICAgICogQG1ldGhvZCBTY29wZU1hbmFnZXIjYWNxdWlyZVxuICAgICAqIEBwYXJhbSB7RXNwcmltYS5Ob2RlfSBub2RlIC0gbm9kZSBmb3IgdGhlIGFjcXVpcmVkIHNjb3BlLlxuICAgICAqIEBwYXJhbSB7Ym9vbGVhbj19IGlubmVyIC0gbG9vayB1cCB0aGUgbW9zdCBpbm5lciBzY29wZSwgZGVmYXVsdCB2YWx1ZSBpcyBmYWxzZS5cbiAgICAgKiBAcmV0dXJuIHtTY29wZT99XG4gICAgICovXG4gICAgYWNxdWlyZShub2RlLCBpbm5lcikge1xuICAgICAgICB2YXIgc2NvcGVzLCBzY29wZSwgaSwgaXo7XG5cbiAgICAgICAgZnVuY3Rpb24gcHJlZGljYXRlKHNjb3BlKSB7XG4gICAgICAgICAgICBpZiAoc2NvcGUudHlwZSA9PT0gJ2Z1bmN0aW9uJyAmJiBzY29wZS5mdW5jdGlvbkV4cHJlc3Npb25TY29wZSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChzY29wZS50eXBlID09PSAnVERaJykge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgc2NvcGVzID0gdGhpcy5fX2dldChub2RlKTtcbiAgICAgICAgaWYgKCFzY29wZXMgfHwgc2NvcGVzLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBIZXVyaXN0aWMgc2VsZWN0aW9uIGZyb20gYWxsIHNjb3Blcy5cbiAgICAgICAgLy8gSWYgeW91IHdvdWxkIGxpa2UgdG8gZ2V0IGFsbCBzY29wZXMsIHBsZWFzZSB1c2UgU2NvcGVNYW5hZ2VyI2FjcXVpcmVBbGwuXG4gICAgICAgIGlmIChzY29wZXMubGVuZ3RoID09PSAxKSB7XG4gICAgICAgICAgICByZXR1cm4gc2NvcGVzWzBdO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGlubmVyKSB7XG4gICAgICAgICAgICBmb3IgKGkgPSBzY29wZXMubGVuZ3RoIC0gMTsgaSA+PSAwOyAtLWkpIHtcbiAgICAgICAgICAgICAgICBzY29wZSA9IHNjb3Blc1tpXTtcbiAgICAgICAgICAgICAgICBpZiAocHJlZGljYXRlKHNjb3BlKSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NvcGU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgZm9yIChpID0gMCwgaXogPSBzY29wZXMubGVuZ3RoOyBpIDwgaXo7ICsraSkge1xuICAgICAgICAgICAgICAgIHNjb3BlID0gc2NvcGVzW2ldO1xuICAgICAgICAgICAgICAgIGlmIChwcmVkaWNhdGUoc2NvcGUpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBzY29wZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBhY3F1aXJlIGFsbCBzY29wZXMgZnJvbSBub2RlLlxuICAgICAqIEBtZXRob2QgU2NvcGVNYW5hZ2VyI2FjcXVpcmVBbGxcbiAgICAgKiBAcGFyYW0ge0VzcHJpbWEuTm9kZX0gbm9kZSAtIG5vZGUgZm9yIHRoZSBhY3F1aXJl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RlZmF1bHQgdmFsdWUgaXMgZmFsc2UuXG4gICAgICogQHJldHVybiB7U2NvcGU/fVxuICAgICAqL1xuICAgIGFjcXVpcmUobm9kZSwgaW5uZXIpIHtcbiAgICAgICAgdmFyIHNjb3Blcywgc2NvcGUsIGksIGl6O1xuXG4gICAgICAgIGZ1bmN0aW9uIHByZWRpY2F0ZShzY29wZSkge1xuICAgICAgICAgICAgaWYgKHNjb3BlLnR5cGUgPT09ICdmdW5jdGlvbicgJiYgc2NvcGUuZnVuY3Rpb25FeHByZXNzaW9uU2NvcGUpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoc2NvcGUudHlwZSA9PT0gJ1REWicpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHNjb3BlcyA9IHRoaXMuX19nZXQobm9kZSk7XG4gICAgICAgIGlmICghc2NvcGVzIHx8IHNjb3Blcy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gSGV1cmlzdGljIHNlbGVjdGlvbiBmcm9tIGFsbCBzY29wZXMuXG4gICAgICAgIC8vIElmIHlvdSB3b3VsZCBsaWtlIHRvIGdldCBhbGwgc2NvcGVzLCBwbGVhc2UgdXNlIFNjb3BlTWFuYWdlciNhY3F1aXJlQWxsLlxuICAgICAgICBpZiAoc2NvcGVzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgICAgICAgcmV0dXJuIHNjb3Blc1swXTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChpbm5lcikge1xuICAgICAgICAgICAgZm9yIChpID0gc2NvcGVzLmxlbmd0aCAtIDE7IGkgPj0gMDsgLS1pKSB7XG4gICAgICAgICAgICAgICAgc2NvcGUgPSBzY29wZXNbaV07XG4gICAgICAgICAgICAgICAgaWYgKHByZWRpY2F0ZShzY29wZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHNjb3BlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGZvciAoaSA9IDAsIGl6ID0gc2NvcGVzLmxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgICAgICBzY29wZSA9IHNjb3Blc1tpXTtcbiAgICAgICAgICAgICAgICBpZiAocHJlZGljYXRlKHNjb3BlKSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NvcGU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogYWNxdWlyZSBhbGwgc2NvcGVzIGZyb20gbm9kZS5cbiAgICAgKiBAbWV0aG9kIFNjb3BlTWFuYWdlciNhY3F1aXJlQWxsXG4gICAgICogQHBhcmFtIHtFc3ByaW1hLk5vZGV9IG5vZGUgLSBub2RlIGZvciB0aGUgYWNxdWlyZWQgc2NvcGUuXG4gICAgICogQHJldHVybiB7U2NvcGVbXT99XG4gICAgICovXG4gICAgYWNxdWlyZUFsbChub2RlKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fZ2V0KG5vZGUpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIHJlbGVhc2UgdGhlIG5vZGUuXG4gICAgICogQG1ldGhvZCBTY29wZU1hbmFnZXIjcmVsZWFzZVxuICAgICAqIEBwYXJhbSB7RXNwcmltYS5Ob2RlfSBub2RlIC0gcmVsZWFzaW5nIG5vZGUuXG4gICAgICogQHBhcmFtIHtib29sZWFuPX0gaW5uZXIgLSBsb29rIHVwIHRoZSBtb3N0IGlubmVyIHNjb3BlLCBkZWZhdWx0IHZhbHVlIGlzIGZhbHNlLlxuICAgICAqIEByZXR1cm4ge1Njb3BlP30gdXBwZXIgc2NvcGUgZm9yIHRoZSBub2RlLlxuICAgICAqL1xuICAgIHJlbGVhc2Uobm9kZSwgaW5uZXIpIHtcbiAgICAgICAgdmFyIHNjb3Blcywgc2NvcGU7XG4gICAgICAgIHNjb3BlcyA9IHRoaXMuX19nZXQobm9kZSk7XG4gICAgICAgIGlmIChzY29wZXMgJiYgc2NvcGVzLmxlbmd0aCkge1xuICAgICAgICAgICAgc2NvcGUgPSBzY29wZXNbMF0udXBwZXI7XG4gICAgICAgICAgICBpZiAoIXNjb3BlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5hY3F1aXJlKHNjb3BlLmJsb2NrLCBpbm5lcik7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgfVxuXG4gICAgYXR0YWNoKCkgeyB9XG5cbiAgICBkZXRhY2goKSB7IH1cblxuICAgIF9fbmVzdFNjb3BlKHNjb3BlKSB7XG4gICAgICAgIGlmIChzY29wZSBpbnN0YW5jZW9mIEdsb2JhbFNjb3BlKSB7XG4gICAgICAgICAgICBhc3NlcnQodGhpcy5fX2N1cnJlbnRTY29wZSA9PT0gbnVsbCk7XG4gICAgICAgICAgICB0aGlzLmdsb2JhbFNjb3BlID0gc2NvcGU7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5fX2N1cnJlbnRTY29wZSA9IHNjb3BlO1xuICAgICAgICByZXR1cm4gc2NvcGU7XG4gICAgfVxuXG4gICAgX19uZXN0R2xvYmFsU2NvcGUobm9kZSkge1xuICAgICAgICByZXR1cm4gdGhpcy5fX25lc3RTY29wZShuZXcgR2xvYmFsU2NvcGUodGhpcywgbm9kZSkpO1xuICAgIH1cblxuICAgIF9fbmVzdEJsb2NrU2NvcGUobm9kZSwgaXNNZXRob2REZWZpbml0aW9uKSB7XG4gICAgICAgIHJ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W50U2NvcGUsIG5vZGUpKTtcbiAgICB9XG5cbiAgICBfX25lc3RNb2R1bGVTY29wZShub2RlKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fbmVzdFNjb3BlKG5ldyBNb2R1bGVTY29wZSh0aGlzLCB0aGlzLl9fY3VycmVudFNjb3BlLCBub2RlKSk7XG4gICAgfVxuXG4gICAgX19uZXN0VERaU2NvcGUobm9kZSkge1xuICAgICAgICByZXR1cm4gdGhpcy5fX25lc3RTY29wZShuZXcgVERaU2NvcGUodGhpcywgdGhpcy5fX2N1cnJlbnRTY29wZSwgbm9kZSkpO1xuICAgIH1cblxuICAgIF9fbmVzdEZ1bmN0aW9uRXhwcmVzc2lvbk5hbWVTY29wZShub2RlKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fbmVzdFNjb3BlKG5ldyBGdW5jdGlvbkV4cHJlc3Npb25OYW1lU2NvcGUodGhpcywgdGhpcy5fX2N1cnJlbnRTY29wZSwgbm9kZSkpO1xuICAgIH1cblxuICAgIF9faXNFUzYoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fb3B0aW9ucy5lY21hVmVyc2lvbiA+PSA2O1xuICAgIH1cbn1cblxuLyogdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDogKi9cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
diff --git a/tools/eslint/node_modules/escope/lib/scope.js b/tools/eslint/node_modules/escope/lib/scope.js
index a9b3b897d87db1..eb150cb494b24c 100644
--- a/tools/eslint/node_modules/escope/lib/scope.js
+++ b/tools/eslint/node_modules/escope/lib/scope.js
@@ -1,5 +1,10 @@
'use strict';
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.ClassScope = exports.ForScope = exports.FunctionScope = exports.SwitchScope = exports.BlockScope = exports.TDZScope = exports.WithScope = exports.CatchScope = exports.FunctionExpressionNameScope = exports.ModuleScope = exports.GlobalScope = undefined;
+
var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /*
@@ -26,11 +31,6 @@ var _createClass = function () { function defineProperties(target, props) { for
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.ClassScope = exports.ForScope = exports.FunctionScope = exports.SwitchScope = exports.BlockScope = exports.TDZScope = exports.WithScope = exports.CatchScope = exports.FunctionExpressionNameScope = exports.ModuleScope = exports.GlobalScope = undefined;
-
var _estraverse = require('estraverse');
var _es6Map = require('es6-map');
@@ -550,8 +550,8 @@ var GlobalScope = exports.GlobalScope = function (_Scope) {
}
// create an implicit global variable from assignment expression
- for (var i = 0, iz = implicit.length; i < iz; ++i) {
- var info = implicit[i];
+ for (var _i = 0, _iz = implicit.length; _i < _iz; ++_i) {
+ var info = implicit[_i];
this.__defineImplicit(info.pattern, new _definition2.default(_variable2.default.ImplicitGlobalVariable, info.pattern, info.node, null, null, null));
}
@@ -761,4 +761,4 @@ var ClassScope = exports.ClassScope = function (_Scope11) {
}(Scope);
/* vim: set sw=4 ts=4 et tw=80 : */
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjb3BlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs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B0cnVlO1xuICAgIH1cblxuICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgaWYgKHNjb3BlLnR5cGUgPT09ICdjbGFzcycgfHwgc2NvcGUudHlwZSA9PT0gJ21vZHVsZScpIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgaWYgKHNjb3BlLnR5cGUgPT09ICdibG9jaycgfHwgc2NvcGUudHlwZSA9PT0gJ3N3aXRjaCcpIHtcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGlmIChzY29wZS50eXBlID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICAgIGlmIChibG9jay50eXBlID09PSBTeW50YXguUHJvZ3JhbSkge1xuICAgICAgICAgICAgYm9keSA9IGJsb2NrO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgYm9keSA9IGJsb2NrLmJvZHk7XG4gICAgICAgIH1cbiAgICB9IGVsc2UgaWYgKHNjb3BlLnR5cGUgPT09ICdnbG9iYWwnKSB7XG4gICAgICAgIGJvZHkgPSBibG9jaztcbiAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgLy8gU2VhcmNoICd1c2Ugc3RyaWN0JyBkaXJlY3RpdmUuXG4gICAgaWYgKHVzZURpcmVjdGl2ZSkge1xuICAgICAgICBmb3IgKGkgPSAwLCBpeiA9IGJvZHkuYm9keS5sZW5ndGg7IGkgPCBpejsgKytpKSB7XG4gICAgICAgICAgICBzdG10ID0gYm9keS5ib2R5W2ldO1xuICAgICAgICAgICAgaWYgKHN0bXQudHlwZSAhPT0gU3ludGF4LkRpcmVjdGl2ZVN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHN0bXQucmF3ID09PSAnXCJ1c2Ugc3RyaWN0XCInIHx8IHN0bXQucmF3ID09PSAnXFwndXNlIHN0cmljdFxcJycpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICAgIGZvciAoaSA9IDAsIGl6ID0gYm9keS5ib2R5Lmxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgIHN0bXQgPSBib2R5LmJvZHlbaV07XG4gICAgICAgICAgICBpZiAoc3RtdC50eXBlICE9PSBTeW50YXguRXhwcmVzc2lvblN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZXhwciA9IHN0bXQuZXhwcmVzc2lvbjtcbiAgICAgICAgICAgIGlmIChleHByLnR5cGUgIT09IFN5bnRheC5MaXRlcmFsIHx8IHR5cGVvZiBleHByLnZhbHVlICE9PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGV4cHIucmF3ICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBpZiAoZXhwci5yYXcgPT09ICdcInVzZSBzdHJpY3RcIicgfHwgZXhwci5yYXcgPT09ICdcXCd1c2Ugc3RyaWN0XFwnJykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChleHByLnZhbHVlID09PSAndXNlIHN0cmljdCcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIHJldHVybiBmYWxzZTtcbn1cblxuZnVuY3Rpb24gcmVnaXN0ZXJTY29wZShzY29wZU1hbmFnZXIsIHNjb3BlKSB7XG4g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BuYW1lID0gcmVmLmlkZW50aWZpZXIubmFtZTtcbiAgICAgICAgaWYgKHRoaXMuc2V0LmhhcyhuYW1lKSkge1xuICAgICAgICAgICAgdmFyaWFibGUgPSB0aGlzLnNldC5nZXQobmFtZSk7XG4gICAgICAgICAgICB2YXJpYWJsZS5yZWZlcmVuY2VzLnB1c2gocmVmKTtcbiAgICAgICAgICAgIHZhcmlhYmxlLnN0YWNrID0gdmFyaWFibGUuc3RhY2sgJiYgcmVmLmZyb20udmFyaWFibGVTY29wZSA9PT0gdGhpcy52YXJpYWJsZVNjb3BlO1xuICAgICAgICAgICAgaWYgKHJlZi50YWludGVkKSB7XG4gICAgICAgICAgICAgICAgdmFyaWFibGUudGFpbnRlZCA9IHRydWU7XG4gICAgICAgICAgICAgICAgdGhpcy50YWludHMuc2V0KHZhcmlhYmxlLm5hbWUsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmVmLnJlc29sdmVkID0gdmFyaWFibGU7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgX19kZWxlZ2F0ZVRvVXBwZXJTY29wZShyZWYpIHtcbiAgICAgICAgaWYgKHRoaXMudXBwZXIpIHtcbiAgICAgICAgICAgIHRoaXMudXBwZXIuX19sZWZ0LnB1c2gocmVmKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnRocm91Z2gucHVzaChyZWYpO1xuICAgIH1cblxuICAgIF9fYWRkRGVjbGFyZWRWYXJpYWJsZXNPZk5vZGUodmFyaWFibGUsIG5vZGUpIHtcbiAgICAgICAgaWYgKG5vZGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdmFyIHZhcmlhYmxlcyA9IHRoaXMuX19kZWNsYXJlZFZhcmlhYmxlcy5nZXQobm9kZSk7XG4gICAgICAgIGlmICh2YXJpYWJsZXMgPT0gbnVsbCkge1xuICAgICAgICAgICAgdmFyaWFibGVzID0gW107XG4gICAgICAgICAgICB0aGlzLl9fZGVjbGFyZWRWYXJpYWJsZXMuc2V0KG5vZGUsIHZhcmlhYmxlcyk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHZhcmlhYmxlcy5pbmRleE9mKHZhcmlhYmxlKSA9PT0gLTEpIHtcbiAgICAgICAgICAgIHZhcmlhYmxlcy5wdXNoKHZhcmlhYmxlKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIF9fZGVmaW5lR2VuZXJpYyhuYW1lLCBzZXQsIHZhcmlhYmxlcywgbm9kZSwgZGVmKSB7XG4gICAgICAgIHZhciB2YXJpYWJsZTtcblxuICAgICAgICB2YXJpYWJsZSA9IHNldC5nZXQobmFtZSk7XG4gICAgICAgIGlmICghdmFyaWFibGUpIHtcbiAgICAgICAgICAgIHZhcmlhYmxlID0gbmV3IFZhcmlhYmxlKG5hbWUsIHRoaXMpO1xuICAgICAgICAgICAgc2V0LnNldChuYW1lLCB2YXJpYWJsZSk7XG4gICAgICAgICAgICB2YXJpYWJsZXMucHVzaCh2YXJpYWJsZSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZGVmKSB7XG4gICAgICAgICAgICB2YXJpYWJsZS5kZWZzLnB1c2goZGVmKTtcbiAgICAgICAgICAgIGlmIChkZWYudHlwZSAhPT0gVmFyaWFibGUuVERaKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fX2FkZERlY2xhcmVkVmFyaWFibGVzT2ZOb2RlKHZhcmlhYmxlLCBkZWYubm9kZSk7XG4gICAgICAgICAgICAgICAgdGhpcy5fX2FkZERlY2xhcmVkVmFyaWFibGVzT2ZOb2RlKHZhcmlhYmxlLCBkZWYucGFyZW50KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAobm9kZSkge1xuICAgICAgICAgICAgdmFyaWFibGUuaWRlbnRpZmllcnMucHVzaChub2RlKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIF9fZGVmaW5lKG5vZGUsIGRlZikge1xuICAgICAgICBpZiAobm9kZSAmJiBub2RlLnR5cGUgPT09IFN5bnRheC5JZGVudGlmaWVyKSB7XG4gICAgICAgICAgICB0aGlzLl9fZGVmaW5lR2VuZXJpYyhcbiAgICAgICAgICAgICAgICAgICAgbm9kZS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldCxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YXJpYWJsZXMsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGRlZik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfX3JlZmVyZW5jaW5nKG5vZGUsIGFzc2lnbiwgd3JpdGVFeHByLCBtYXliZUltcGxpY2l0R2xvYmFsLCBwYXJ0aWFsLCBpbml0KSB7XG4gICAgICAgIC8vIGJlY2F1c2UgQXJyYXkgZWxlbWVudCBtYXkgYmUgbnVsbFxuICAgICAgICBpZiAoIW5vZGUgfHwgbm9kZS50eXBlICE9PSBTeW50YXguSWRlbnRpZmllcikge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU3BlY2lhbGx5IGhhbmRsZSBsaWtlIGB0aGlzYC5cbiAgICAgICAgaWYgKG5vZGUubmFtZSA9PT0gJ3N1cGVyJykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlZiA9IG5ldyBSZWZlcmVuY2Uobm9kZSwgdGhpcywgYXNzaWduIHx8IFJlZmVyZW5jZS5SRUFELCB3cml0ZUV4cHIsIG1heWJlSW1wbGljaXRHbG9iYWwsICEhcGFydGlhbCwgISFpbml0KTtcbiAgICAgICAgdGhpcy5yZWZlcmVuY2VzLnB1c2gocmVmKTtcbiAgICAgICAgdGhpcy5fX2xlZnQucHVzaChyZWYpO1xuICAgIH1cblxuICAgIF9fZGV0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pXTtcbiAgICAgICAgICAgIGlmIChyZWYuaWRlbnRpZmllciA9PT0gaWRlbnQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVmO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIHJldHVybnMgdGhpcyBzY29wZSBpcyBzdGF0aWNcbiAgICAgKiBAbWV0aG9kIFNjb3BlI2lzU3RhdGljXG4gICAgICogQHJldHVybiB7Ym9vbGVhbn1cbiAgICAgKi9cbiAgICBpc1N0YXRpYygpIHtcbiAgICAgICAgcmV0dXJuICF0aGlzLmR5bmFtaWM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogcmV0dXJucyB0aGlzIHNjb3BlIGhhcyBtYXRlcmlhbGl6ZWQgYXJndW1lbnRzXG4gICAgICogQG1ldGhvZCBTY29wZSNpc0FyZ3VtZW50c01hdGVyaWFsaXplZFxuICAgICAqIEByZXR1cm4ge2Jvb2xlYW59XG4gICAgICovXG4gICAgaXNBcmd1bWVudHNNYXRlcmlhbGl6ZWQoKSB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIHJldHVybnMgdGhpcyBzY29wZSBoYXMgbWF0ZXJpYWxpemVkIGB0aGlzYCByZWZlcmVuY2VcbiAgICAgKiBAbWV0aG9kIFNjb3BlI2lzVGhpc01hdGVyaWFsaXplZFxuICAgICAqIEByZXR1cm4ge2Jvb2xlYW59XG4gICAgICovXG4gICAgaXNUaGlzTWF0ZXJpYWxpemVkKCkge1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG5cbiAgICBpc1VzZWROYW1lKG5hbWUpIHtcbiAgICAgICAgaWYgKHRoaXMuc2V0LmhhcyhuYW1lKSkge1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgIH1cbiAgICAgICAgZm9yICh2YXIgaSA9IDAsIGl6ID0gdGhp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pcy5fX2xlZnRbaV07XG4gICAgICAgICAgICBpZiAocmVmLl9fbWF5YmVJbXBsaWNpdEdsb2JhbCAmJiAhdGhpcy5zZXQuaGFzKHJlZi5pZGVudGlmaWVyLm5hbWUpKSB7XG4gICAgICAgICAgICAgICAgaW1wbGljaXQucHVzaChyZWYuX19tYXliZUltcGxpY2l0R2xvYmFsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGNyZWF0ZSBhbiBpbXBsaWNpdCBnbG9iYWwgdmFyaWFibGUgZnJvbSBhc3NpZ25tZW50IGV4cHJlc3Npb25cbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGl6ID0gaW1wbGljaXQubGVuZ3RoOyBpIDwgaXo7ICsraSkge1xuICAgICAgICAgICAgbGV0IGluZm8gPSBpbXBsaWNpdFtpXTtcbiAgICAgICAgICAgIHRoaXMuX19kZWZpbmVJbXBsaWNpdChpbmZvLnBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBEZWZpbml0aW9uKFxuICAgICAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuSW1wbGljaXRHbG9iYWxWYXJpYWJsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ucGF0dGVybixcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ubm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcblxuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5pbXBsaWNpdC5sZWZ0ID0gdGhpcy5fX2xlZnQ7XG5cbiAgICAgICAgcmV0dXJuIHN1cGVyLl9fY2xvc2Uoc2NvcGVNYW5hZ2VyKTtcbiAgICB9XG5cbiAgICBfX2RlZmluZUltcGxpY2l0KG5vZGUsIGRlZikge1xuICAgICAgICBpZiAobm9kZSAmJiBub2RlLnR5cGUgPT09IFN5bnRheC5JZGVudGlmaWVyKSB7XG4gICAgICAgICAgICB0aGlzLl9fZGVmaW5lR2VuZXJpYyhcbiAgICAgICAgICAgICAgICAgICAgbm9kZS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmltcGxpY2l0LnNldCxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5pbXBsaWNpdC52YXJpYWJsZXMsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGRlZik7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBNb2R1bGVTY29wZSBleHRlbmRzIFNjb3BlIHtcbiAgICBjb25zdHJ1Y3RvcihzY29wZU1hbmFnZXIsIHVwcGVyU2NvcGUsIGJsb2NrKSB7XG4gICAgICAgIHN1cGVyKHNjb3BlTWFuYWdlciwgJ21vZHVsZScsIHVwcGVyU2NvcGUsIGJsb2NrLCBmYWxzZSk7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgRnVuY3Rpb25FeHByZXNzaW9uTmFtZVNjb3BlIGV4dGVuZHMgU2NvcGUge1xuICAgIGNvbnN0cnVjdG9yKHNjb3BlTWFuYWdlciwgdXBwZXJTY29wZSwgYmxvY2spIHtcbiAgICAgICAgc3VwZXIoc2NvcGVNYW5hZ2VyLCAnZnVuY3Rpb24tZXhwcmVzc2lvbi1uYW1lJywgdXBwZXJTY29wZSwgYmxvY2ssIGZhbHNlKTtcbiAgICAgICAgdGhpcy5fX2RlZmluZShibG9jay5pZCxcbiAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuRnVuY3Rpb25OYW1lLFxuICAgICAgICAgICAgICAgICAgICBibG9jay5pZCxcbiAgICAgICAgICAgICAgICAgICAgYmxvY2ssXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGw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gICBpc1RoaXNNYXRlcmlhbGl6ZWQoKSB7XG4gICAgICAgIGlmICghdGhpcy5pc1N0YXRpYygpKSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdGhpcy50aGlzRm91bmQ7XG4gICAgfVxuXG4gICAgX19kZWZpbmVBcmd1bWVudHMoKSB7XG4gICAgICAgIHRoaXMuX19kZWZpbmVHZW5lcmljKFxuICAgICAgICAgICAgICAgICdhcmd1bWVudHMnLFxuICAgICAgICAgICAgICAgIHRoaXMuc2V0LFxuICAgICAgICAgICAgICAgIHRoaXMudmFyaWFibGVzLFxuICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgbnVsbCk7XG4gICAgICAgIHRoaXMudGFpbnRzLnNldCgnYXJndW1lbnRzJywgdHJ1ZSk7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgRm9yU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdmb3InLCB1cHBlclNjb3BlLCBibG9jaywgZmFsc2UpO1xuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIENsYXNzU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdjbGFzcycsIHVwcGVyU2NvcGUsIGJsb2NrLCBmYWxzZSk7XG4gICAgfVxufVxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjb3BlLmpzIl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Y2sudHlwZSA9PT0gU3ludGF4LkFycm93RnVuY3Rpb25FeHByZXNzaW9uKSB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cblxuICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgaWYgKHNjb3BlLnR5cGUgPT09ICdjbGFzcycgfHwgc2NvcGUudHlwZSA9PT0gJ21vZHVsZScpIHtcbiAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuXG4gICAgaWYgKHNjb3BlLnR5cGUgPT09ICdibG9jaycgfHwgc2NvcGUudHlwZSA9PT0gJ3N3aXRjaCcpIHtcbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGlmIChzY29wZS50eXBlID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICAgIGlmIChibG9jay50eXBlID09PSBTeW50YXguUHJvZ3JhbSkge1xuICAgICAgICAgICAgYm9keSA9IGJsb2NrO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgYm9keSA9IGJsb2NrLmJvZHk7XG4gICAgICAgIH1cbiAgICB9IGVsc2UgaWYgKHNjb3BlLnR5cGUgPT09ICdnbG9iYWwnKSB7XG4gICAgICAgIGJvZHkgPSBibG9jaztcbiAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgLy8gU2VhcmNoICd1c2Ugc3RyaWN0JyBkaXJlY3RpdmUuXG4gICAgaWYgKHVzZURpcmVjdGl2ZSkge1xuICAgICAgICBmb3IgKGkgPSAwLCBpeiA9IGJvZHkuYm9keS5sZW5ndGg7IGkgPCBpejsgKytpKSB7XG4gICAgICAgICAgICBzdG10ID0gYm9keS5ib2R5W2ldO1xuICAgICAgICAgICAgaWYgKHN0bXQudHlwZSAhPT0gU3ludGF4LkRpcmVjdGl2ZVN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHN0bXQucmF3ID09PSAnXCJ1c2Ugc3RyaWN0XCInIHx8IHN0bXQucmF3ID09PSAnXFwndXNlIHN0cmljdFxcJycpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICAgIGZvciAoaSA9IDAsIGl6ID0gYm9keS5ib2R5Lmxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgIHN0bXQgPSBib2R5LmJvZHlbaV07XG4gICAgICAgICAgICBpZiAoc3RtdC50eXBlICE9PSBTeW50YXguRXhwcmVzc2lvblN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZXhwciA9IHN0bXQuZXhwcmVzc2lvbjtcbiAgICAgICAgICAgIGlmIChleHByLnR5cGUgIT09IFN5bnRheC5MaXRlcmFsIHx8IHR5cGVvZiBleHByLnZhbHVlICE9PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGV4cHIucmF3ICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBpZiAoZXhwci5yYXcgPT09ICdcInVzZSBzdHJpY3RcIicgfHwgZXhwci5yYXcgPT09ICdcXCd1c2Ugc3RyaWN0XFwnJykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChleHByLnZhbHVlID09PSAndXNlIHN0cmljdCcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIHJldHVybiBmYWxz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uICAgIF9fcmVzb2x2ZShyZWYpIHtcbiAgICAgICAgdmFyIHZhcmlhYmxlLCBuYW1lO1xuICAgICAgICBuYW1lID0gcmVmLmlkZW50aWZpZXIubmFtZTtcbiAgICAgICAgaWYgKHRoaXMuc2V0LmhhcyhuYW1lKSkge1xuICAgICAgICAgICAgdmFyaWFibGUgPSB0aGlzLnNldC5nZXQobmFtZSk7XG4gICAgICAgICAgICB2YXJpYWJsZS5yZWZlcmVuY2VzLnB1c2gocmVmKTtcbiAgICAgICAgICAgIHZhcmlhYmxlLnN0YWNrID0gdmFyaWFibGUuc3RhY2sgJiYgcmVmLmZyb20udmFyaWFibGVTY29wZSA9PT0gdGhpcy52YXJpYWJsZVNjb3BlO1xuICAgICAgICAgICAgaWYgKHJlZi50YWludGVkKSB7XG4gICAgICAgICAgICAgICAgdmFyaWFibGUudGFpbnRlZCA9IHRydWU7XG4gICAgICAgICAgICAgICAgdGhpcy50YWludHMuc2V0KHZhcmlhYmxlLm5hbWUsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmVmLnJlc29sdmVkID0gdmFyaWFibGU7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgX19kZWxlZ2F0ZVRvVXBwZXJTY29wZShyZWYpIHtcbiAgICAgICAgaWYgKHRoaXMudXBwZXIpIHtcbiAgICAgICAgICAgIHRoaXMudXBwZXIuX19sZWZ0LnB1c2gocmVmKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnRocm91Z2gucHVzaChyZWYpO1xuICAgIH1cblxuICAgIF9fYWRkRGVjbGFyZWRWYXJpYWJsZXNPZk5vZGUodmFyaWFibGUsIG5vZGUpIHtcbiAgICAgICAgaWYgKG5vZGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdmFyIHZhcmlhYmxlcyA9I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AgICBpZiAobm9kZSkge1xuICAgICAgICAgICAgdmFyaWFibGUuaWRlbnRpZmllcnMucHVzaChub2RlKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIF9fZGVmaW5lKG5vZGUsIGRlZikge1xuICAgICAgICBpZiAobm9kZSAmJiBub2RlLnR5cGUgPT09IFN5bnRheC5JZGVudGlmaWVyKSB7XG4gICAgICAgICAgICB0aGlzLl9fZGVmaW5lR2VuZXJpYyhcbiAgICAgICAgICAgICAgICAgICAgbm9kZS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldCxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YXJpYWJsZXMsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGRlZik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfX3JlZmVyZW5jaW5nKG5vZGUsIGFzc2lnbiwgd3JpdGVFeHByLCBtYXliZUltcGxpY2l0R2xvYmFsLCBwYXJ0aWFsLCBpbml0KSB7XG4gICAgICAgIC8vIGJlY2F1c2UgQXJyYXkgZWxlbWVudCBtYXkgYmUgbnVsbFxuICAgICAgICBpZiAoIW5vZGUgfHwgbm9kZS50eXBlICE9PSBTeW50YXguSWRlbnRpZmllcikge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU3BlY2lhbGx5IGhhbmRsZSBsaWtlIGB0aGlzYC5cbiAgICAgICAgaWYgKG5vZGUubmFtZSA9PT0gJ3N1cGVyJykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlZiA9IG5ldyBSZWZlcmVuY2Uobm9kZSwgdGhpcywgYXNzaWduIHx8IFJlZmVyZW5jZS5SRUFELCB3cml0ZUV4cHIsIG1heWJlSW1wbGljaXRHbG9iYWwsICEhcGFydGlhbCwgISFpbml0KTtcbiAgICAgICAgdGhpcy5yZWZlcmVuY2VzLnB1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mxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgIHJlZiA9IHRoaXMucmVmZXJlbmNlc1tpXTtcbiAgICAgICAgICAgIGlmIChyZWYuaWRlbnRpZmllciA9PT0gaWRlbnQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVmO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIHJldHVybnMgdGhpcyBzY29wZSBpcyBzdGF0aWNcbiAgICAgKiBAbWV0aG9kIFNjb3BlI2lzU3RhdGljXG4gICAgICogQHJldHVybiB7Ym9vbGVhbn1cbiAgICAgKi9cbiAgICBpc1N0YXRpYygpIHtcbiAgICAgICAgcmV0dXJuICF0aGlzLmR5bmFtaWM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogcmV0dXJucyB0aGlzIHNjb3BlIGhhcyBtYXRlcmlhbGl6ZWQgYXJndW1lbnRzXG4gICAgICogQG1ldGhvZCBTY29wZSNpc0FyZ3VtZW50c01hdGVyaWFsaXplZFxuICAgICAqIEByZXR1cm4ge2Jvb2xlYW59XG4gICAgICovXG4gICAgaXNBcmd1bWVudHNNYXRlcmlhbGl6ZWQoKSB7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIHJldHVybnMgdGhpcyBzY29wZSBoYXMgbWF0ZXJpYWxpemVkIGB0aGlzYCByZWZlcmVuY2VcbiAgICAgKiBAbWV0aG9kIFNjb3BlI2lzVGhpc01hdGVyaWFsaXplZFxuICAgICAqIEByZXR1cm4ge2Jvb2xlYW59XG4gICAgICovXG4gICAgaXNUaGlzTWF0ZXJpYWxpemVkKCkge1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG5cbiAgICBpc1VzZWROYW1lKG5hbWUpIHtcbiAgICAgICAgaWYgKHRoaXMuc2V0LmhhcyhuYW1lKSkge1xuICAgICAgICAg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0aGlzLl9fbGVmdC5sZW5ndGg7IGkgPCBpejsgKytpKSB7XG4gICAgICAgICAgICBsZXQgcmVmID0gdGhpcy5fX2xlZnRbaV07XG4gICAgICAgICAgICBpZiAocmVmLl9fbWF5YmVJbXBsaWNpdEdsb2JhbCAmJiAhdGhpcy5zZXQuaGFzKHJlZi5pZGVudGlmaWVyLm5hbWUpKSB7XG4gICAgICAgICAgICAgICAgaW1wbGljaXQucHVzaChyZWYuX19tYXliZUltcGxpY2l0R2xvYmFsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGNyZWF0ZSBhbiBpbXBsaWNpdCBnbG9iYWwgdmFyaWFibGUgZnJvbSBhc3NpZ25tZW50IGV4cHJlc3Npb25cbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGl6ID0gaW1wbGljaXQubGVuZ3RoOyBpIDwgaXo7ICsraSkge1xuICAgICAgICAgICAgbGV0IGluZm8gPSBpbXBsaWNpdFtpXTtcbiAgICAgICAgICAgIHRoaXMuX19kZWZpbmVJbXBsaWNpdChpbmZvLnBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBEZWZpbml0aW9uKFxuICAgICAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuSW1wbGljaXRHbG9iYWxWYXJpYWJsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ucGF0dGVybixcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ubm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcblxuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5pbXBsaWNpdC5sZWZ0ID0gdGhpcy5fX2xlZnQ7XG5cbiAgICAgICAgcmV0dXJuIHN1cGVyLl9fY2xvc2Uoc2NvcGVNYW5hZ2VyKTtcbiAgICB9XG5cbiAgICBfX2RlZmluZUltcGxpY2l0KG5vZGUsIGRlZikge1xuICAgICAgICBpZiAobm9kZSAmJiBub2RlLnR5cGUgPT09IFN5bnRheC5JZGVudGlmaWVyKSB7XG4gICAgICAgICAgICB0aGlzLl9fZGVmaW5lR2VuZXJpYyhcbiAgICAgICAgICAgICAgICAgICAgbm9kZS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmltcGxpY2l0LnNldCxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5pbXBsaWNpdC52YXJpYWJsZXMsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGRlZik7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBNb2R1bGVTY29wZSBleHRlbmRzIFNjb3BlIHtcbiAgICBjb25zdHJ1Y3RvcihzY29wZU1hbmFnZXIsIHVwcGVyU2NvcGUsIGJsb2NrKSB7XG4gICAgICAgIHN1cGVyKHNjb3BlTWFuYWdlciwgJ21vZHVsZScsIHVwcGVyU2NvcGUsIGJsb2NrLCBmYWxzZSk7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgRnVuY3Rpb25FeHByZXNzaW9uTmFtZVNjb3BlIGV4dGVuZHMgU2NvcGUge1xuICAgIGNvbnN0cnVjdG9yKHNjb3BlTWFuYWdlciwgdXBwZXJTY29wZSwgYmxvY2spIHtcbiAgICAgICAgc3VwZXIoc2NvcGVNYW5hZ2VyLCAnZnVuY3Rpb24tZXhwcmVzc2lvbi1uYW1lJywgdXBwZXJTY29wZSwgYmxvY2ssIGZhbHNlKTtcbiAgICAgICAgdGhpcy5fX2RlZmluZShibG9jay5pZCxcbiAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuRnVuY3Rpb25OYW1lLFxuICAgICAgICAgICAgICAgICAgICBibG9jay5pZCxcbiAgICAgICAgICAgIC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S50YWludGVkIHx8IHZhcmlhYmxlLnJlZmVyZW5jZXMubGVuZ3RoICAhPT0gMDtcbiAgICB9XG5cbiAgICBpc1RoaXNNYXRlcmlhbGl6ZWQoKSB7XG4gICAgICAgIGlmICghdGhpcy5pc1N0YXRpYygpKSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdGhpcy50aGlzRm91bmQ7XG4gICAgfVxuXG4gICAgX19kZWZpbmVBcmd1bWVudHMoKSB7XG4gICAgICAgIHRoaXMuX19kZWZpbmVHZW5lcmljKFxuICAgICAgICAgICAgICAgICdhcmd1bWVudHMnLFxuICAgICAgICAgICAgICAgIHRoaXMuc2V0LFxuICAgICAgICAgICAgICAgIHRoaXMudmFyaWFibGVzLFxuICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgbnVsbCk7XG4gICAgICAgIHRoaXMudGFpbnRzLnNldCgnYXJndW1lbnRzJywgdHJ1ZSk7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgRm9yU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdmb3InLCB1cHBlclNjb3BlLCBibG9jaywgZmFsc2UpO1xuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIENsYXNzU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdjbGFzcycsIHVwcGVyU2NvcGUsIGJsb2NrLCBmYWxzZSk7XG4gICAgfVxufVxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/tools/eslint/node_modules/escope/lib/variable.js b/tools/eslint/node_modules/escope/lib/variable.js
index cafd5ce2f6a12e..2f972c2318000b 100644
--- a/tools/eslint/node_modules/escope/lib/variable.js
+++ b/tools/eslint/node_modules/escope/lib/variable.js
@@ -80,6 +80,7 @@ var Variable = function Variable(name, scope) {
exports.default = Variable;
+
Variable.CatchClause = 'CatchClause';
Variable.Parameter = 'Parameter';
Variable.FunctionName = 'FunctionName';
@@ -90,4 +91,4 @@ Variable.TDZ = 'TDZ';
Variable.ImplicitGlobalVariable = 'ImplicitGlobalVariable';
/* vim: set sw=4 ts=4 et tw=80 : */
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZhcmlhYmxlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBNkJxQixXQUNqQixTQURpQixRQUNqQixDQUFZLElBQVosRUFBa0IsS0FBbEIsRUFBeUI7d0JBRFIsVUFDUTs7Ozs7O0FBS3JCLE9BQUssSUFBTCxHQUFZLElBQVo7Ozs7OztBQUxxQixNQVdyQixDQUFLLFdBQUwsR0FBbUIsRUFBbkI7Ozs7Ozs7QUFYcUIsTUFrQnJCLENBQUssVUFBTCxHQUFrQixFQUFsQjs7Ozs7OztBQWxCcUIsTUF5QnJCLENBQUssSUFBTCxHQUFZLEVBQVosQ0F6QnFCOztBQTJCckIsT0FBSyxPQUFMLEdBQWUsS0FBZjs7Ozs7QUEzQnFCLE1BZ0NyQixDQUFLLEtBQUwsR0FBYSxJQUFiOzs7OztBQWhDcUIsTUFxQ3JCLENBQUssS0FBTCxHQUFhLEtBQWIsQ0FyQ3FCO0NBQXpCOztrQkFEaUI7O0FBMENyQixTQUFTLFdBQVQsR0FBdUIsYUFBdkI7QUFDQSxTQUFTLFNBQVQsR0FBcUIsV0FBckI7QUFDQSx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GUgPSAnSW1wbGljaXRHbG9iYWxWYXJpYWJsZSc7XG5cbi8qIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6ICovXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/tools/eslint/node_modules/escope/package.json b/tools/eslint/node_modules/escope/package.json
index 7fa28a7f6a782a..4270054c000c5a 100644
--- a/tools/eslint/node_modules/escope/package.json
+++ b/tools/eslint/node_modules/escope/package.json
@@ -1,45 +1,49 @@
{
"_args": [
[
- "escope@^3.4.0",
- "/Users/trott/test/node_modules/eslint"
+ "escope@^3.6.0",
+ "/Users/silverwind/git/node/tools/package/package"
]
],
- "_from": "escope@>=3.4.0 <4.0.0",
- "_id": "escope@3.4.0",
+ "_from": "escope@>=3.6.0 <4.0.0",
+ "_id": "escope@3.6.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/escope",
- "_nodeVersion": "4.2.2",
+ "_location": "/escope",
+ "_nodeVersion": "0.12.9",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/escope-3.6.0.tgz_1457720018969_0.025237560039386153"
+ },
"_npmUser": {
- "email": "npm@michael.ficarra.me",
- "name": "michaelficarra"
+ "email": "nicholas@nczconsulting.com",
+ "name": "nzakas"
},
- "_npmVersion": "2.14.7",
+ "_npmVersion": "2.14.9",
"_phantomChildren": {},
"_requested": {
"name": "escope",
- "raw": "escope@^3.4.0",
- "rawSpec": "^3.4.0",
+ "raw": "escope@^3.6.0",
+ "rawSpec": "^3.6.0",
"scope": null,
- "spec": ">=3.4.0 <4.0.0",
+ "spec": ">=3.6.0 <4.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/escope/-/escope-3.4.0.tgz",
- "_shasum": "488c646b682c313f0eb1a7350d39e8e4af5e6a69",
+ "_resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz",
+ "_shasum": "e01975e812781a163a6dadfdd80398dc64c889c3",
"_shrinkwrap": null,
- "_spec": "escope@^3.4.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_spec": "escope@^3.6.0",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"bugs": {
"url": "https://github.com/estools/escope/issues"
},
"dependencies": {
"es6-map": "^0.1.3",
"es6-weak-map": "^2.0.1",
- "esrecurse": "^3.1.1",
+ "esrecurse": "^4.1.0",
"estraverse": "^4.1.1"
},
"description": "ECMAScript scope analyzer",
@@ -49,7 +53,7 @@
"babel-register": "^6.3.13",
"browserify": "^13.0.0",
"chai": "^3.4.1",
- "espree": "^2.2.5",
+ "espree": "^3.1.1",
"esprima": "^2.7.1",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.1",
@@ -68,28 +72,28 @@
},
"directories": {},
"dist": {
- "shasum": "488c646b682c313f0eb1a7350d39e8e4af5e6a69",
- "tarball": "http://registry.npmjs.org/escope/-/escope-3.4.0.tgz"
+ "shasum": "e01975e812781a163a6dadfdd80398dc64c889c3",
+ "tarball": "http://registry.npmjs.org/escope/-/escope-3.6.0.tgz"
},
"engines": {
"node": ">=0.4.0"
},
- "gitHead": "69145ebb4b7ebda6ca87d6235491c26447d5c82a",
+ "gitHead": "aa35861faa76a09f01203dee3497a939d70b463c",
"homepage": "http://github.com/estools/escope",
"license": "BSD-2-Clause",
"main": "lib/index.js",
"maintainers": [
{
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "name": "constellation",
+ "email": "utatane.tea@gmail.com"
},
{
- "email": "npm@michael.ficarra.me",
- "name": "michaelficarra"
+ "name": "michaelficarra",
+ "email": "npm@michael.ficarra.me"
},
{
- "email": "nicholas@nczconsulting.com",
- "name": "nzakas"
+ "name": "nzakas",
+ "email": "nicholas@nczconsulting.com"
}
],
"name": "escope",
@@ -105,5 +109,5 @@
"test": "gulp travis",
"unit-test": "gulp test"
},
- "version": "3.4.0"
+ "version": "3.6.0"
}
diff --git a/tools/eslint/node_modules/escope/powered-test/arguments.js b/tools/eslint/node_modules/escope/powered-test/arguments.js
new file mode 100644
index 00000000000000..5b841062a74e70
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/arguments.js
@@ -0,0 +1,34 @@
+(function() {
+ var escope, esprima, expect, harmony;
+
+ expect = require('chai').expect;
+
+ esprima = require('esprima');
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('arguments', function() {
+ return it('arguments are correctly materialized', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = esprima.parse("(function () {\n arguments;\n}());");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.isArgumentsMaterialized()).to.be["true"];
+ expect(scope.references).to.have.length(1);
+ return expect(scope.references[0].resolved).to.be.equal(scope.variables[0]);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFyZ3VtZW50cy5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSxnQ0FBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxFQUNBLE9BQUEsR0FBVSxPQUFBLENBQVMsU0FBVCxDQURWLENBQUE7O0FBQUEsRUFFQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRlYsQ0FBQTs7QUFBQSxFQUdBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUhULENBQUE7O0FBQUEs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bmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3RcbiAgICAgICAgZXhwZWN0KHNjb3BlTWFuYWdlci5zY29wZXMpLnRvLmhhdmUubGVuZ3RoIDJcbiAgICAgICAgZ2xvYmFsU2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzBdXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS50eXBlKS50by5iZS5lcXVhbCAnZ2xvYmFsJ1xuICAgICAgICBleHBlY3QoZ2xvYmFsU2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCAwXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG5cbiAgICAgICAgc2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzFdXG4gICAgICAgIGV4cGVjdChzY29wZS50eXBlKS50by5iZS5lcXVhbCAnZnVuY3Rpb24nXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuaXNBcmd1bWVudHNNYXRlcmlhbGl6ZWQoKSkudG8uYmUudHJ1ZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5yZXNvbHZlZCkudG8uYmUuZXF1YWwgc2NvcGUudmFyaWFibGVzWzBdXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/catch-scope.js b/tools/eslint/node_modules/escope/powered-test/catch-scope.js
new file mode 100644
index 00000000000000..34fa16526d4212
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/catch-scope.js
@@ -0,0 +1,39 @@
+(function() {
+ var escope, esprima, expect, harmony;
+
+ expect = require('chai').expect;
+
+ esprima = require('esprima');
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('catch', function() {
+ return it('creates scope', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = esprima.parse("(function () {\n try {\n } catch (e) {\n }\n}());");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(3);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.isArgumentsMaterialized()).to.be["false"];
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('catch');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('e');
+ expect(scope.isArgumentsMaterialized()).to.be["true"];
+ return expect(scope.references).to.have.length(0);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhdGNoLXNjb3BlLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLGdDQUFBOztBQUFBLEVBQUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUF6QixDQUFBOztBQUFBLEVBQ0EsT0FBQSxHQUFVLE9BQUEsQ0FBUyxTQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FGVixDQUFBOztBQUFBLEVBR0EsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBSFQ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ICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdmdW5jdGlvbidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdhcmd1bWVudHMnXG4gICAgICAgIGV4cGVjdChzY29wZS5pc0FyZ3VtZW50c01hdGVyaWFsaXplZCgpKS50by5iZS5mYWxzZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1syXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2NhdGNoJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCAxXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwgJ2UnXG4gICAgICAgIGV4cGVjdChzY29wZS5pc0FyZ3VtZW50c01hdGVyaWFsaXplZCgpKS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-arrow-function-expression.js b/tools/eslint/node_modules/escope/powered-test/es6-arrow-function-expression.js
new file mode 100644
index 00000000000000..cf616c19f3b082
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-arrow-function-expression.js
@@ -0,0 +1,57 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 arrow function expression', function() {
+ it('materialize scope for arrow function expression', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("var arrow = () => {\n let i = 0;\n var j = 20;\n console.log(i);\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(1);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('ArrowFunctionExpression');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('i');
+ return expect(scope.variables[1].name).to.be.equal('j');
+ });
+ return it('generate bindings for parameters', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("var arrow = (a, b, c, d) => {\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(1);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('ArrowFunctionExpression');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(4);
+ expect(scope.variables[0].name).to.be.equal('a');
+ expect(scope.variables[1].name).to.be.equal('b');
+ expect(scope.variables[2].name).to.be.equal('c');
+ return expect(scope.variables[3].name).to.be.equal('d');
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1hcnJvdy1mdW5jdGlvbi1leHByZXNzaW9uLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1Qk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wgJ1Byb2dyYW0nXG4gICAgICAgIGV4cGVjdChzY29wZS5pc1N0cmljdCkudG8uYmUuZmFsc2VcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMVxuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1sxXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2Z1bmN0aW9uJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuYmxvY2sudHlwZSkudG8uYmUuZXF1YWwgJ0Fycm93RnVuY3Rpb25FeHByZXNzaW9uJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuaXNTdHJpY3QpLnRvLmJlLnRydWVcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggNFxuICAgICAgICAjIFRoZXJlJ3Mgbm8gXCJhcmd1bWVudHNcIlxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdhJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzFdLm5hbWUpLnRvLmJlLmVxdWFsICdiJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzJdLm5hbWUpLnRvLmJlLmVxdWFsICdjJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzNdLm5hbWUpLnRvLmJlLmVxdWFsICdkJ1xuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-block-scope.js b/tools/eslint/node_modules/escope/powered-test/es6-block-scope.js
new file mode 100644
index 00000000000000..89c68775846f61
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-block-scope.js
@@ -0,0 +1,136 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 block scope', function() {
+ it('let is materialized in ES6 block scope#1', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("{\n let i = 20;\n i;\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.references).to.have.length(2);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ return expect(scope.references[1].identifier.name).to.be.equal('i');
+ });
+ it('let is materialized in ES6 block scope#2', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("{\n let i = 20;\n var i = 20;\n i;\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.references).to.have.length(3);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[1].identifier.name).to.be.equal('i');
+ return expect(scope.references[2].identifier.name).to.be.equal('i');
+ });
+ it('function delaration is materialized in ES6 block scope', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("{\n function test() {\n }\n test();\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('test');
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('test');
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('let is not hoistable#1', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("var i = 42; (1)\n{\n i; // (2) ReferenceError at runtime.\n let i = 20; // (2)\n i; // (2)\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(1);
+ expect(globalScope.variables[0].name).to.be.equal('i');
+ expect(globalScope.references).to.have.length(1);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.references).to.have.length(3);
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[0]);
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[0]);
+ return expect(scope.references[2].resolved).to.be.equal(scope.variables[0]);
+ });
+ return it('let is not hoistable#2', function() {
+ var ast, globalScope, scope, scopeManager, v1, v2, v3;
+ ast = harmony.parse("(function () {\n var i = 42; // (1)\n i; // (1)\n {\n i; // (3)\n {\n i; // (2)\n let i = 20; // (2)\n i; // (2)\n }\n let i = 30; // (3)\n i; // (3)\n }\n i; // (1)\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(4);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('i');
+ v1 = scope.variables[1];
+ expect(scope.references).to.have.length(3);
+ expect(scope.references[0].resolved).to.be.equal(v1);
+ expect(scope.references[1].resolved).to.be.equal(v1);
+ expect(scope.references[2].resolved).to.be.equal(v1);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ v3 = scope.variables[0];
+ expect(scope.references).to.have.length(3);
+ expect(scope.references[0].resolved).to.be.equal(v3);
+ expect(scope.references[1].resolved).to.be.equal(v3);
+ expect(scope.references[2].resolved).to.be.equal(v3);
+ scope = scopeManager.scopes[3];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ v2 = scope.variables[0];
+ expect(scope.references).to.have.length(3);
+ expect(scope.references[0].resolved).to.be.equal(v2);
+ expect(scope.references[1].resolved).to.be.equal(v2);
+ return expect(scope.references[2].resolved).to.be.equal(v2);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1ibG9jay1zY29wZS5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxFQUNBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FEVixDQUFBOztBQUFBLEVBRUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBRlQsQ0FBQTs7QUFBQSxFQUlBLFFBQUEsQ0FBVSxpQk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3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDNcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMF0ucmVzb2x2ZWQpLnRvLmJlLmVxdWFsIHNjb3BlLnZhcmlhYmxlc1swXVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1sxXS5yZXNvbHZlZCkudG8uYmUuZXF1YWwgc2NvcGUudmFyaWFibGVzWzBdXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzJdLnJlc29sdmVkKS50by5iZS5lcXVhbCBzY29wZS52YXJpYWJsZXNbMF1cblxuICAgIGl0ICdsZXQgaXMgbm90IGhvaXN0YWJsZSMyJywgLT5cbiAgICAgICAgYXN0ID0gaGFybW9ueS5wYXJzZSBcIlwiXCJcbiAgICAgICAgKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHZhciBpID0gNDI7IC8vICgxKVxuICAgICAgICAgICAgaTsgIC8vICgxKVxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGk7ICAvLyAoMylcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGk7ICAvLyAoMilcbiAgICAgICAgICAgICAgICAgICAgbGV0IGkgPSAyMDsgIC8vICgyKVxuICAgICAgICAgICAgICAgICAgICBpOyAgLy8gKDIpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGxldCBpID0gMzA7ICAvLyAoMylcbiAgICAgICAgICAgICAgICBpOyAgLy8gKDMpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpOyAgLy8gKDEpXG4gICAgICAgIH0oKSk7XG4gICAgICAgIFwiXCJcIlxuXG4gICAgICAgIHNjb3BlTWFuYWdlciA9IGVzY29wZS5hb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lLnJlZmVyZW5jZXNbMV0ucmVzb2x2ZWQpLnRvLmJlLmVxdWFsIHYyXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzJdLnJlc29sdmVkKS50by5iZS5lcXVhbCB2MlxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-catch.js b/tools/eslint/node_modules/escope/powered-test/es6-catch.js
new file mode 100644
index 00000000000000..986c5eb51e7faa
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-catch.js
@@ -0,0 +1,39 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 catch', function() {
+ return it('takes binding pattern', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("try {\n} catch ({ a, b, c, d }) {\n let e = 20;\n a;\n b;\n let c = 30;\n c;\n d;\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(4);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.block.type).to.be.equal('BlockStatement');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('catch');
+ expect(scope.block.type).to.be.equal('CatchClause');
+ return expect(scope.isStrict).to.be["false"];
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1jYXRjaC5jb2ZmZWUiXSwibmF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NcbiAgICAgICAgIyBodHRwczovL2dpdGh1Yi5jb20vZXN0b29scy9lc2NvcGUvaXNzdWVzLzMzI2lzc3VlY29tbWVudC02NDEzNTgzMlxuICAgICAgICAjXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggNFxuICAgICAgICAjIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwgJ2EnXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1sxXS5uYW1lKS50by5iZS5lcXVhbCAnYidcbiAgICAgICAgIyBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzJdLm5hbWUpLnRvLmJlLmVxdWFsICdjJ1xuICAgICAgICAjIGV4cGVjdChzY29wZS52YXJpYWJsZXNbM10ubmFtZSkudG8uYmUuZXF1YWwgJ2QnXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-class.js b/tools/eslint/node_modules/escope/powered-test/es6-class.js
new file mode 100644
index 00000000000000..9fcbe8ebdda953
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-class.js
@@ -0,0 +1,155 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 class', function() {
+ it('declaration name creates class scope', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("class Derived extends Base {\n constructor() {\n }\n}\nnew Derived();");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('Derived');
+ expect(scope.references).to.have.length(2);
+ expect(scope.references[0].identifier.name).to.be.equal('Base');
+ expect(scope.references[1].identifier.name).to.be.equal('Derived');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('class');
+ expect(scope.block.type).to.be.equal('ClassDeclaration');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('Derived');
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('FunctionExpression');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('declaration name creates class scope', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("class Base {\n constructor() {\n }\n}\nlet foo = new Base();");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('Base');
+ expect(scope.variables[1].name).to.be.equal('foo');
+ expect(scope.through).to.have.length(0);
+ expect(scope.references).to.have.length(2);
+ expect(scope.references[0].identifier.name).to.be.equal('foo');
+ expect(scope.references[1].identifier.name).to.be.equal('Base');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('class');
+ expect(scope.block.type).to.be.equal('ClassDeclaration');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ console.dir(scope.variables);
+ expect(scope.variables[0].name).to.be.equal('Base');
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('FunctionExpression');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('expression name creates class scope#1', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("(class Derived extends Base {\n constructor() {\n }\n});");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('Base');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('class');
+ expect(scope.block.type).to.be.equal('ClassExpression');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('Derived');
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ return expect(scope.block.type).to.be.equal('FunctionExpression');
+ });
+ it('expression name creates class scope#2', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("(class extends Base {\n constructor() {\n }\n});");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('Base');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('class');
+ expect(scope.block.type).to.be.equal('ClassExpression');
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ return expect(scope.block.type).to.be.equal('FunctionExpression');
+ });
+ return it('computed property key may refer variables', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("(function () {\n var yuyushiki = 42;\n (class {\n [yuyushiki]() {\n }\n\n [yuyushiki + 40]() {\n }\n });\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(5);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('FunctionExpression');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('yuyushiki');
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('yuyushiki');
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('class');
+ expect(scope.block.type).to.be.equal('ClassExpression');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(2);
+ expect(scope.references[0].identifier.name).to.be.equal('yuyushiki');
+ return expect(scope.references[1].identifier.name).to.be.equal('yuyushiki');
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1jbGFzcy5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxFQUNBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FEVixDQUFBOztBQUFBLEVBRUEsTUFBQSxHQUFTLE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hbHNlXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDJcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzFdLm5hbWUpLnRvLmJlLmVxdWFsICd5dXl1c2hpa2knXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAxXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzBdLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ3l1eXVzaGlraSdcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMl1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdjbGFzcydcbiAgICAgICAgZXhwZWN0KHNjb3BlLmJsb2NrLnR5cGUpLnRvLmJlLmVxdWFsICdDbGFzc0V4cHJlc3Npb24nXG4gICAgICAgIGV4cGVjdChzY29wZS5pc1N0cmljdCkudG8uYmUudHJ1ZVxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCAwXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAyXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzBdLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ3l1eXVzaGlraSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAneXV5dXNoaWtpJ1xuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-destructuring-assignments.js b/tools/eslint/node_modules/escope/powered-test/es6-destructuring-assignments.js
new file mode 100644
index 00000000000000..5f23b274f7edb3
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-destructuring-assignments.js
@@ -0,0 +1,504 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 destructuring assignments', function() {
+ it('Pattern in var in ForInStatement', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n for (var [a, b, c] in array);\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('array');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(4);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('a');
+ expect(scope.variables[2].name).to.be.equal('b');
+ expect(scope.variables[3].name).to.be.equal('c');
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('a');
+ expect(scope.references[0].isWrite()).to.be["true"];
+ expect(scope.references[0].partial).to.be["true"];
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[1]);
+ expect(scope.references[1].identifier.name).to.be.equal('b');
+ expect(scope.references[1].isWrite()).to.be["true"];
+ expect(scope.references[1].partial).to.be["true"];
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[2]);
+ expect(scope.references[2].identifier.name).to.be.equal('c');
+ expect(scope.references[2].isWrite()).to.be["true"];
+ expect(scope.references[2].partial).to.be["true"];
+ expect(scope.references[2].resolved).to.be.equal(scope.variables[3]);
+ expect(scope.references[3].identifier.name).to.be.equal('array');
+ return expect(scope.references[3].isWrite()).to.be["false"];
+ });
+ it('ArrayPattern in var', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n var [a, b, c] = array;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('array');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(4);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('a');
+ expect(scope.variables[2].name).to.be.equal('b');
+ expect(scope.variables[3].name).to.be.equal('c');
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('a');
+ expect(scope.references[0].isWrite()).to.be["true"];
+ expect(scope.references[0].partial).to.be["true"];
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[1]);
+ expect(scope.references[1].identifier.name).to.be.equal('b');
+ expect(scope.references[1].isWrite()).to.be["true"];
+ expect(scope.references[1].partial).to.be["true"];
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[2]);
+ expect(scope.references[2].identifier.name).to.be.equal('c');
+ expect(scope.references[2].isWrite()).to.be["true"];
+ expect(scope.references[2].partial).to.be["true"];
+ expect(scope.references[2].resolved).to.be.equal(scope.variables[3]);
+ expect(scope.references[3].identifier.name).to.be.equal('array');
+ return expect(scope.references[3].isWrite()).to.be["false"];
+ });
+ it('SpreadElement in var', function() {
+ var ast, globalScope, index, name, scope, scopeManager, _i, _j, _len, _len1, _ref, _ref1;
+ ast = harmony.parse("(function () {\n var [a, b, ...rest] = array;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('array');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(4);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('a');
+ expect(scope.variables[2].name).to.be.equal('b');
+ expect(scope.variables[3].name).to.be.equal('rest');
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('a');
+ expect(scope.references[0].isWrite()).to.be["true"];
+ expect(scope.references[0].partial).to.be["true"];
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[1]);
+ expect(scope.references[1].identifier.name).to.be.equal('b');
+ expect(scope.references[1].isWrite()).to.be["true"];
+ expect(scope.references[1].partial).to.be["true"];
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[2]);
+ expect(scope.references[2].identifier.name).to.be.equal('rest');
+ expect(scope.references[2].isWrite()).to.be["true"];
+ expect(scope.references[2].partial).to.be["true"];
+ expect(scope.references[2].resolved).to.be.equal(scope.variables[3]);
+ expect(scope.references[3].identifier.name).to.be.equal('array');
+ expect(scope.references[3].isWrite()).to.be["false"];
+ ast = harmony.parse("(function () {\n var [a, b, ...[c, d, ...rest]] = array;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('array');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(6);
+ _ref = ['arguments', 'a', 'b', 'c', 'd', 'rest'];
+ for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) {
+ name = _ref[index];
+ expect(scope.variables[index].name).to.be.equal(name);
+ }
+ expect(scope.references).to.have.length(6);
+ _ref1 = ['a', 'b', 'c', 'd', 'rest'];
+ for (index = _j = 0, _len1 = _ref1.length; _j < _len1; index = ++_j) {
+ name = _ref1[index];
+ expect(scope.references[index].identifier.name).to.be.equal(name);
+ expect(scope.references[index].isWrite()).to.be["true"];
+ expect(scope.references[index].partial).to.be["true"];
+ }
+ expect(scope.references[5].identifier.name).to.be.equal('array');
+ return expect(scope.references[5].isWrite()).to.be["false"];
+ });
+ it('ObjectPattern in var', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n var {\n shorthand,\n key: value,\n hello: {\n world\n }\n } = object;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('object');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(4);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('shorthand');
+ expect(scope.variables[2].name).to.be.equal('value');
+ expect(scope.variables[3].name).to.be.equal('world');
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('shorthand');
+ expect(scope.references[0].isWrite()).to.be["true"];
+ expect(scope.references[0].partial).to.be["true"];
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[1]);
+ expect(scope.references[1].identifier.name).to.be.equal('value');
+ expect(scope.references[1].isWrite()).to.be["true"];
+ expect(scope.references[1].partial).to.be["true"];
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[2]);
+ expect(scope.references[2].identifier.name).to.be.equal('world');
+ expect(scope.references[2].isWrite()).to.be["true"];
+ expect(scope.references[2].partial).to.be["true"];
+ expect(scope.references[2].resolved).to.be.equal(scope.variables[3]);
+ expect(scope.references[3].identifier.name).to.be.equal('object');
+ return expect(scope.references[3].isWrite()).to.be["false"];
+ });
+ it('complex pattern in var', function() {
+ var ast, globalScope, index, name, scope, scopeManager, _i, _j, _len, _len1, _ref, _ref1;
+ ast = harmony.parse("(function () {\n var {\n shorthand,\n key: [ a, b, c, d, e ],\n hello: {\n world\n }\n } = object;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('object');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(8);
+ _ref = ['arguments', 'shorthand', 'a', 'b', 'c', 'd', 'e', 'world'];
+ for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) {
+ name = _ref[index];
+ expect(scope.variables[index].name).to.be.equal(name);
+ }
+ expect(scope.references).to.have.length(8);
+ _ref1 = ['shorthand', 'a', 'b', 'c', 'd', 'e', 'world'];
+ for (index = _j = 0, _len1 = _ref1.length; _j < _len1; index = ++_j) {
+ name = _ref1[index];
+ expect(scope.references[index].identifier.name).to.be.equal(name);
+ expect(scope.references[index].isWrite()).to.be["true"];
+ expect(scope.references[index].partial).to.be["true"];
+ }
+ expect(scope.references[7].identifier.name).to.be.equal('object');
+ return expect(scope.references[7].isWrite()).to.be["false"];
+ });
+ it('ArrayPattern in AssignmentExpression', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n [a, b, c] = array;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(4);
+ expect(scope.implicit.left.map((function(_this) {
+ return function(ref) {
+ return ref.identifier.name;
+ };
+ })(this))).to.deep.equal(['a', 'b', 'c', 'array']);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('a');
+ expect(scope.references[0].isWrite()).to.be["true"];
+ expect(scope.references[0].partial).to.be["true"];
+ expect(scope.references[0].resolved).to.be["null"];
+ expect(scope.references[1].identifier.name).to.be.equal('b');
+ expect(scope.references[1].isWrite()).to.be["true"];
+ expect(scope.references[1].partial).to.be["true"];
+ expect(scope.references[1].resolved).to.be["null"];
+ expect(scope.references[2].identifier.name).to.be.equal('c');
+ expect(scope.references[2].isWrite()).to.be["true"];
+ expect(scope.references[2].partial).to.be["true"];
+ expect(scope.references[2].resolved).to.be["null"];
+ expect(scope.references[3].identifier.name).to.be.equal('array');
+ return expect(scope.references[3].isWrite()).to.be["false"];
+ });
+ it('SpreadElement in AssignmentExpression', function() {
+ var ast, globalScope, index, name, scope, scopeManager, _i, _len, _ref;
+ ast = harmony.parse("(function () {\n [a, b, ...rest] = array;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(4);
+ expect(scope.implicit.left.map((function(_this) {
+ return function(ref) {
+ return ref.identifier.name;
+ };
+ })(this))).to.deep.equal(['a', 'b', 'rest', 'array']);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('a');
+ expect(scope.references[0].isWrite()).to.be["true"];
+ expect(scope.references[0].partial).to.be["true"];
+ expect(scope.references[0].resolved).to.be["null"];
+ expect(scope.references[1].identifier.name).to.be.equal('b');
+ expect(scope.references[1].isWrite()).to.be["true"];
+ expect(scope.references[1].partial).to.be["true"];
+ expect(scope.references[1].resolved).to.be["null"];
+ expect(scope.references[2].identifier.name).to.be.equal('rest');
+ expect(scope.references[2].isWrite()).to.be["true"];
+ expect(scope.references[2].partial).to.be["true"];
+ expect(scope.references[2].resolved).to.be["null"];
+ expect(scope.references[3].identifier.name).to.be.equal('array');
+ expect(scope.references[3].isWrite()).to.be["false"];
+ ast = harmony.parse("(function () {\n [a, b, ...[c, d, ...rest]] = array;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(6);
+ expect(scope.implicit.left.map((function(_this) {
+ return function(ref) {
+ return ref.identifier.name;
+ };
+ })(this))).to.deep.equal(['a', 'b', 'c', 'd', 'rest', 'array']);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.references).to.have.length(6);
+ _ref = ['a', 'b', 'c', 'd', 'rest'];
+ for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) {
+ name = _ref[index];
+ expect(scope.references[index].identifier.name).to.be.equal(name);
+ expect(scope.references[index].isWrite()).to.be["true"];
+ expect(scope.references[index].partial).to.be["true"];
+ expect(scope.references[index].resolved).to.be["null"];
+ }
+ expect(scope.references[5].identifier.name).to.be.equal('array');
+ return expect(scope.references[5].isWrite()).to.be["false"];
+ });
+ it('ObjectPattern in AssignmentExpression', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n ({\n shorthand,\n key: value,\n hello: {\n world\n }\n }) = object;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(4);
+ expect(scope.implicit.left.map((function(_this) {
+ return function(ref) {
+ return ref.identifier.name;
+ };
+ })(this))).to.deep.equal(['shorthand', 'value', 'world', 'object']);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('shorthand');
+ expect(scope.references[0].isWrite()).to.be["true"];
+ expect(scope.references[0].partial).to.be["true"];
+ expect(scope.references[0].resolved).to["null"];
+ expect(scope.references[1].identifier.name).to.be.equal('value');
+ expect(scope.references[1].isWrite()).to.be["true"];
+ expect(scope.references[1].partial).to.be["true"];
+ expect(scope.references[1].resolved).to["null"];
+ expect(scope.references[2].identifier.name).to.be.equal('world');
+ expect(scope.references[2].isWrite()).to.be["true"];
+ expect(scope.references[2].partial).to.be["true"];
+ expect(scope.references[2].resolved).to["null"];
+ expect(scope.references[3].identifier.name).to.be.equal('object');
+ return expect(scope.references[3].isWrite()).to.be["false"];
+ });
+ it('complex pattern in AssignmentExpression', function() {
+ var ast, globalScope, index, name, scope, scopeManager, _i, _len, _ref;
+ ast = harmony.parse("(function () {\n ({\n shorthand,\n key: [ a, b, c, d, e ],\n hello: {\n world\n }\n }) = object;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ expect(scope.implicit.left).to.have.length(8);
+ expect(scope.implicit.left.map((function(_this) {
+ return function(ref) {
+ return ref.identifier.name;
+ };
+ })(this))).to.deep.equal(['shorthand', 'a', 'b', 'c', 'd', 'e', 'world', 'object']);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.references).to.have.length(8);
+ _ref = ['shorthand', 'a', 'b', 'c', 'd', 'e', 'world'];
+ for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) {
+ name = _ref[index];
+ expect(scope.references[index].identifier.name).to.be.equal(name);
+ expect(scope.references[index].isWrite()).to.be["true"];
+ expect(scope.references[index].partial).to.be["true"];
+ }
+ expect(scope.references[7].identifier.name).to.be.equal('object');
+ return expect(scope.references[7].isWrite()).to.be["false"];
+ });
+ it('ArrayPattern in parameters', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function ([a, b, c]) {\n}(array));");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('array');
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('array');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(4);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('a');
+ expect(scope.variables[2].name).to.be.equal('b');
+ expect(scope.variables[3].name).to.be.equal('c');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('SpreadElement in parameters', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function ([a, b, ...rest], ...rest2) {\n}(array));");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('array');
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('array');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(5);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('a');
+ expect(scope.variables[2].name).to.be.equal('b');
+ expect(scope.variables[3].name).to.be.equal('rest');
+ expect(scope.variables[3].defs[0].rest).to.be["false"];
+ expect(scope.variables[4].name).to.be.equal('rest2');
+ expect(scope.variables[4].defs[0].rest).to.be["true"];
+ return expect(scope.references).to.have.length(0);
+ });
+ it('ObjectPattern in parameters', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("(function ({\n shorthand,\n key: value,\n hello: {\n world\n }\n }) {\n}(object));");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('object');
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('object');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(4);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('shorthand');
+ expect(scope.variables[2].name).to.be.equal('value');
+ expect(scope.variables[3].name).to.be.equal('world');
+ return expect(scope.references).to.have.length(0);
+ });
+ return it('complex pattern in parameters', function() {
+ var ast, globalScope, index, name, scope, scopeManager, _i, _len, _ref;
+ ast = harmony.parse("(function ({\n shorthand,\n key: [ a, b, c, d, e ],\n hello: {\n world\n }\n }) {\n}(object));");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ globalScope = scope;
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('object');
+ expect(scope.implicit.left).to.have.length(1);
+ expect(scope.implicit.left[0].identifier.name).to.be.equal('object');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(8);
+ _ref = ['arguments', 'shorthand', 'a', 'b', 'c', 'd', 'e', 'world'];
+ for (index = _i = 0, _len = _ref.length; _i < _len; index = ++_i) {
+ name = _ref[index];
+ expect(scope.variables[index].name).to.be.equal(name);
+ }
+ return expect(scope.references).to.have.length(0);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1kZXN0cnVjdHVyaW5nLWFzc2lnbm1lbnRzLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLHVCQUFBOztBQUFBLEVBQUEsTUFB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hhdmUubGVuZ3RoIDZcbiAgICAgICAgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgICAgICAgICAnYXJndW1lbnRzJ1xuICAgICAgICAgICAgICAgICdhJ1xuICAgICAgICAgICAgICAgICdiJ1xuICAgICAgICAgICAgICAgICdjJ1xuICAgICAgICAgICAgICAgICdkJ1xuICAgICAgICAgICAgICAgICdyZXN0J1xuICAgICAgICAgICAgXVxuICAgICAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1tpbmRleF0ubmFtZSkudG8uYmUuZXF1YWwgbmFtZVxuXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCA2XG4gICAgICAgIGZvciBuYW1lLCBpbmRleCBpbiBbXG4gICAgICAgICAgICAgICAgJ2EnXG4gICAgICAgICAgICAgICAgJ2InXG4gICAgICAgICAgICAgICAgJ2MnXG4gICAgICAgICAgICAgICAgJ2QnXG4gICAgICAgICAgICAgICAgJ3Jlc3QnXG4gICAgICAgICAgICBdXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCBuYW1lXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaXNXcml0ZSgpKS50by5iZS50cnVlXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0ucGFydGlhbCkudG8uYmUudHJ1ZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1s1XS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICdhcnJheSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNV0uaXNXcml0ZSgpKS50by5iZS5mYWxzZVxuXG4gICAgaXQgJ09iamVjdFBhdHRlcm4gaW4gdmFyJywgLT5cbiAgICAgICAgYXN0ID0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ZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDhcbiAgICAgICAgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgICAgICAgICAnc2hvcnRoYW5kJ1xuICAgICAgICAgICAgICAgICdhJ1xuICAgICAgICAgICAgICAgICdiJ1xuICAgICAgICAgICAgICAgICdjJ1xuICAgICAgICAgICAgICAgICdkJ1xuICAgICAgICAgICAgICAgICdlJ1xuICAgICAgICAgICAgICAgICd3b3JsZCdcbiAgICAgICAgICAgIF1cbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsIG5hbWVcbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5pc1dyaXRlKCkpLnRvLmJlLnRydWVcbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5wYXJ0aWFsKS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzddLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ29iamVjdCdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbN10uaXNXcml0ZSgpKS50by5iZS5mYWxzZVxuXG4gICAgaXQgJ0FycmF5UGF0dGVybiBpbiBBc3NpZ25tZW50RXhwcmVzc2lvbicsIC0+XG4gICAgICAgIGFzdCA9IGhhcm1vbnkucGFyc2UgXCJcIlwiXG4gICAgICAgIChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICBbYSwgYiwgY10gPSBhcnJheTtcbiAgICAgICAgfSgpKTtcbiAgICAgICAgXCJcIlwiXG5cbiAgICAgICAgc2NvcGVNYW5hZ2VyID0gZXNjb3BlLmFuYWx5emUgYXN0LCBlY21hVmVyc2lvbjogNlxuICAgICAgICBleHBlY3Qoc2NvcGVNYW5hZ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0UGF0dGVybiBpbiBBc3NpZ25tZW50RXhwcmVzc2lvbicsIC0+XG4gICAgICAgIGFzdCA9IGhhcm1vbnkucGFyc2UgXCJcIlwiXG4gICAgICAgIChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAoe1xuICAgICAgICAgICAgICAgIHNob3J0aGFuZCxcbiAgICAgICAgICAgICAgICBrZXk6IHZhbHVlLFxuICAgICAgICAgICAgICAgIGhlbGxvOiB7XG4gICAgICAgICAgICAgICAgICAgIHdvcmxkXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSkgPSBvYmplY3Q7XG4gICAgICAgIH0oKSk7XG4gICAgICAgIFwiXCJcIlxuXG4gICAgICAgIHNjb3BlTWFuYWdlciA9IGVzY29wZS5hbmFseXplIGFzdCwgZWNtYVZlcnNpb246IDZcbiAgICAgICAgZXhwZWN0KHNjb3BlTWFuYWdlci5zY29wZXMpLnRvLmhhdmUubGVuZ3RoIDJcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMF1cbiAgICAgICAgZ2xvYmFsU2NvcGUgPSBzY29wZVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2dsb2JhbCdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMFxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuICAgICAgICBleHBlY3Qoc2NvcGUuaW1wbGljaXQubGVmdCkudG8uaGF2ZS5sZW5ndGggNFxuICAgICAgICBleHBlY3Qoc2NvcGUuaW1wbGljaXQubGVmdC5tYXAoKHJlZikgPT4gcmVmLmlkZW50aWZpZXIubmFtZSkpLnRvLmRlZXAuZXF1YWwgW1xuICAgICAgICAgICAgJ3Nob3J0aGFuZCdcbiAgICAgICAgICAgICd2YWx1ZSdcbiAgICAgICAgICAgICd3b3JsZCdcbiAgICA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zKS50by5oYXZlLmxlbmd0aCAwXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLmltcGxpY2l0LmxlZnQpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgIyBleHBlY3Qoc2NvcGUuaW1wbGljaXQubGVmdFswXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICdhcnJheSdcblxuICAgICAgICAjIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1sxXVxuICAgICAgICAjIGV4cGVjdChzY29wZS50eXBlKS50by5iZS5lcXVhbCAnZnVuY3Rpb24nXG5cbiAgICAgICAgIyBleHBlY3Qoc2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCA2XG4gICAgICAgICMgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgIyAgICAgICAgICdhcmd1bWVudHMnXG4gICAgICAgICMgICAgICAgICAnYSdcbiAgICAgICAgIyAgICAgICAgICdiJ1xuICAgICAgICAjICAgICAgICAgJ2MnXG4gICAgICAgICMgICAgICAgICAnZCdcbiAgICAgICAgIyAgICAgICAgICdyZXN0J1xuICAgICAgICAjICAgICBdXG4gICAgICAgICMgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbaW5kZXhdLm5hbWUpLnRvLmJlLmVxdWFsIG5hbWVcblxuICAgICAgICAjIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCA2XG4gICAgICAgICMgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgIyAgICAgICAgICdhJ1xuICAgICAgICAjICAgICAgICAgJ2InXG4gICAgICAgICMgICAgICAgICAnYydcbiAgICAgICAgIyAgICAgICAgICdkJ1xuICAgICAgICAjICAgICAgICAgJ3Jlc3QnXG4gICAgICAgICMgICAgIF1cbiAgICAgICAgIyAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbaW5kZXhdLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgbmFtZVxuICAgICAgICAjICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaXNXcml0ZSgpKS50by5iZS50cnVlXG4gICAgICAgICMgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5wYXJ0aWFsKS50by5iZS50cnVlXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnYXJyYXknXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNV0uaXNXcml0ZSgpKS50by5iZS5mYWxzZVxuXG4gICAgaXQgJ09iamVjdFBhdHRlcm4gaW4gcGFyYW1ldGVycycsIC0+XG4gICAgICAgIGFzdCA9IGhhcm1vbnkucGFyc2UgXCJcIlwiXG4gICAgICAgIChmdW5jdGlvbiAoe1xuICAgICAgICAgICAgICAgIHNob3J0aGFuZCxcbiAgICAgICAgICAgICAgICBrZXk6IHZhbHVlLFxuICAgICAgICAgICAgICAgIGhlbGxvOiB7XG4gICAgICAgICAgICAgICAgICAgIHdvcmxkXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSkge1xuICAgICAgICB9KG9iamVjdCkpO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZU1hbmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3QsIGVjbWFWZXJzaW9uOiA2XG4gICAgICAgIGV4cGVjdChzY29wZU1hbmFnZXIuc2NvcGVzKS50by5oYXZlLmxlbmd0aCAyXG5cbiAgICAgICAgc2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzBdXG4gICAgICAgIGdsb2JhbFNjb3BlID0gc2NvcGVcbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdnbG9iYWwnXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoI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JsZXMpLnRvLmhhdmUubGVuZ3RoIDhcbiAgICAgICAgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgICAgICAgICAnYXJndW1lbnRzJ1xuICAgICAgICAgICAgICAgICdzaG9ydGhhbmQnXG4gICAgICAgICAgICAgICAgJ2EnXG4gICAgICAgICAgICAgICAgJ2InXG4gICAgICAgICAgICAgICAgJ2MnXG4gICAgICAgICAgICAgICAgJ2QnXG4gICAgICAgICAgICAgICAgJ2UnXG4gICAgICAgICAgICAgICAgJ3dvcmxkJ1xuICAgICAgICAgICAgXVxuICAgICAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1tpbmRleF0ubmFtZSkudG8uYmUuZXF1YWwgbmFtZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-export.js b/tools/eslint/node_modules/escope/powered-test/es6-export.js
new file mode 100644
index 00000000000000..194fb0693565ae
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-export.js
@@ -0,0 +1,202 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('export declaration', function() {
+ it('should create vairable bindings', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export var v;", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('v');
+ expect(scope.variables[0].defs[0].type).to.be.equal('Variable');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('should create function declaration bindings', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export default function f(){};", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('f');
+ expect(scope.variables[0].defs[0].type).to.be.equal('FunctionName');
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('should export function expression', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export default function(){};", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(0);
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('should export literal', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export default 42;", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(0);
+ return expect(scope.references).to.have.length(0);
+ });
+ it('should refer exported references#1', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export {x};", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ return expect(scope.references[0].identifier.name).to.be.equal('x');
+ });
+ it('should refer exported references#2', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export {v as x};", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ return expect(scope.references[0].identifier.name).to.be.equal('v');
+ });
+ it('should not refer exported references from other source#1', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export {x} from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(0);
+ return expect(scope.references).to.have.length(0);
+ });
+ it('should not refer exported references from other source#2', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export {v as x} from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(0);
+ return expect(scope.references).to.have.length(0);
+ });
+ return it('should not refer exported references from other source#3', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("export * from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(0);
+ return expect(scope.references).to.have.length(0);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1leHBvcnQuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJ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BvcnQgKiBmcm9tIFwibW9kXCI7XG4gICAgICAgIFwiXCJcIiwgc291cmNlVHlwZTogJ21vZHVsZSdcblxuICAgICAgICBzY29wZU1hbmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3QsIGVjbWFWZXJzaW9uOiA2LCBzb3VyY2VUeXBlOiAnbW9kdWxlJ1xuICAgICAgICBleHBlY3Qoc2NvcGVNYW5hZ2VyLnNjb3BlcykudG8uaGF2ZS5sZW5ndGggMlxuICAgICAgICBnbG9iYWxTY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMF1cbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdnbG9iYWwnXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDBcbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMV1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdtb2R1bGUnXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDBcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-import.js b/tools/eslint/node_modules/escope/powered-test/es6-import.js
new file mode 100644
index 00000000000000..4d6e7f575e15d6
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-import.js
@@ -0,0 +1,103 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('import declaration', function() {
+ it('should import names from source', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("import v from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('v');
+ expect(scope.variables[0].defs[0].type).to.be.equal('ImportBinding');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('should import namespaces', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("import * as ns from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('ns');
+ expect(scope.variables[0].defs[0].type).to.be.equal('ImportBinding');
+ return expect(scope.references).to.have.length(0);
+ });
+ it('should import insided names#1', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("import {x} from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('x');
+ expect(scope.variables[0].defs[0].type).to.be.equal('ImportBinding');
+ return expect(scope.references).to.have.length(0);
+ });
+ return it('should import insided names#2', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = harmony.parse("import {x as v} from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('v');
+ expect(scope.variables[0].defs[0].type).to.be.equal('ImportBinding');
+ return expect(scope.references).to.have.length(0);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1pbXBvcnQuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUZULENBQUE7O0FBQUEsRUFJQSxRQUFBLENBQVUsb0JBQVYsRUFBK0IsU0FBQSxHQUFBO0FBRTNCLElBQUEsRUFB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oZ2xvYmFsU2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2dsb2JhbCdcbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMFxuICAgICAgICBleHBlY3QoZ2xvYmFsU2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1sxXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ21vZHVsZSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLmlzU3RyaWN0KS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAndidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5kZWZzWzBdLnR5cGUpLnRvLmJlLmVxdWFsICdJbXBvcnRCaW5kaW5nJ1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4gICAgIyBUT0RPOiBTaG91bGQgcGFyc2UgaXQuXG4gICAgIyBpbXBvcnQgZnJvbSBcIm1vZFwiO1xuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-iteration-scope.js b/tools/eslint/node_modules/escope/powered-test/es6-iteration-scope.js
new file mode 100644
index 00000000000000..79dbf8de292463
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-iteration-scope.js
@@ -0,0 +1,167 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 iteration scope', function() {
+ it('let materialize iteration scope for ForInStatement#1', function() {
+ var ast, iterScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n let i = 20;\n for (let i in i) {\n console.log(i);\n }\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(5);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('i');
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[1]);
+ iterScope = scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('TDZ');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.variables[0].defs[0].type).to.be.equal('TDZ');
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[0]);
+ iterScope = scope = scopeManager.scopes[3];
+ expect(scope.type).to.be.equal('for');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[0]);
+ scope = scopeManager.scopes[4];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(2);
+ expect(scope.references[0].identifier.name).to.be.equal('console');
+ expect(scope.references[0].resolved).to.be.equal(null);
+ expect(scope.references[1].identifier.name).to.be.equal('i');
+ return expect(scope.references[1].resolved).to.be.equal(iterScope.variables[0]);
+ });
+ it('let materialize iteration scope for ForInStatement#2', function() {
+ var ast, iterScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n let i = 20;\n for (let { i, j, k } in i) {\n console.log(i);\n }\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(5);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('i');
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[1]);
+ iterScope = scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('TDZ');
+ expect(scope.variables).to.have.length(3);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.variables[0].defs[0].type).to.be.equal('TDZ');
+ expect(scope.variables[1].name).to.be.equal('j');
+ expect(scope.variables[1].defs[0].type).to.be.equal('TDZ');
+ expect(scope.variables[2].name).to.be.equal('k');
+ expect(scope.variables[2].defs[0].type).to.be.equal('TDZ');
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[0]);
+ iterScope = scope = scopeManager.scopes[3];
+ expect(scope.type).to.be.equal('for');
+ expect(scope.variables).to.have.length(3);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.variables[1].name).to.be.equal('j');
+ expect(scope.variables[2].name).to.be.equal('k');
+ expect(scope.references).to.have.length(3);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[0]);
+ expect(scope.references[1].identifier.name).to.be.equal('j');
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[1]);
+ expect(scope.references[2].identifier.name).to.be.equal('k');
+ expect(scope.references[2].resolved).to.be.equal(scope.variables[2]);
+ scope = scopeManager.scopes[4];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(2);
+ expect(scope.references[0].identifier.name).to.be.equal('console');
+ expect(scope.references[0].resolved).to.be.equal(null);
+ expect(scope.references[1].identifier.name).to.be.equal('i');
+ return expect(scope.references[1].resolved).to.be.equal(iterScope.variables[0]);
+ });
+ return it('let materialize iteration scope for ForStatement#2', function() {
+ var ast, functionScope, iterScope, scope, scopeManager;
+ ast = harmony.parse("(function () {\n let i = 20;\n let obj = {};\n for (let { i, j, k } = obj; i < okok; ++i) {\n console.log(i, j, k);\n }\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(4);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.variables).to.have.length(0);
+ functionScope = scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(3);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('i');
+ expect(scope.variables[2].name).to.be.equal('obj');
+ expect(scope.references).to.have.length(2);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[1]);
+ expect(scope.references[1].identifier.name).to.be.equal('obj');
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[2]);
+ iterScope = scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('for');
+ expect(scope.variables).to.have.length(3);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.variables[0].defs[0].type).to.be.equal('Variable');
+ expect(scope.variables[1].name).to.be.equal('j');
+ expect(scope.variables[1].defs[0].type).to.be.equal('Variable');
+ expect(scope.variables[2].name).to.be.equal('k');
+ expect(scope.variables[2].defs[0].type).to.be.equal('Variable');
+ expect(scope.references).to.have.length(7);
+ expect(scope.references[0].identifier.name).to.be.equal('i');
+ expect(scope.references[0].resolved).to.be.equal(scope.variables[0]);
+ expect(scope.references[1].identifier.name).to.be.equal('j');
+ expect(scope.references[1].resolved).to.be.equal(scope.variables[1]);
+ expect(scope.references[2].identifier.name).to.be.equal('k');
+ expect(scope.references[2].resolved).to.be.equal(scope.variables[2]);
+ expect(scope.references[3].identifier.name).to.be.equal('obj');
+ expect(scope.references[3].resolved).to.be.equal(functionScope.variables[2]);
+ expect(scope.references[4].identifier.name).to.be.equal('i');
+ expect(scope.references[4].resolved).to.be.equal(scope.variables[0]);
+ expect(scope.references[5].identifier.name).to.be.equal('okok');
+ expect(scope.references[5].resolved).to.be["null"];
+ expect(scope.references[6].identifier.name).to.be.equal('i');
+ expect(scope.references[6].resolved).to.be.equal(scope.variables[0]);
+ scope = scopeManager.scopes[3];
+ expect(scope.type).to.be.equal('block');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(4);
+ expect(scope.references[0].identifier.name).to.be.equal('console');
+ expect(scope.references[0].resolved).to.be["null"];
+ expect(scope.references[1].identifier.name).to.be.equal('i');
+ expect(scope.references[1].resolved).to.be.equal(iterScope.variables[0]);
+ expect(scope.references[2].identifier.name).to.be.equal('j');
+ expect(scope.references[2].resolved).to.be.equal(iterScope.variables[1]);
+ expect(scope.references[3].identifier.name).to.be.equal('k');
+ return expect(scope.references[3].resolved).to.be.equal(iterScope.variables[2]);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1pdGVyYXRpb24tc2NvcGUuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0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dLnJlc29sdmVkKS50by5iZS5lcXVhbCBpdGVyU2NvcGUudmFyaWFibGVzWzJdXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-object.js b/tools/eslint/node_modules/escope/powered-test/es6-object.js
new file mode 100644
index 00000000000000..2241d2558e3c2d
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-object.js
@@ -0,0 +1,57 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 object', function() {
+ it('method definition', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("({\n constructor() {\n }\n})");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('FunctionExpression');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ return expect(scope.references).to.have.length(0);
+ });
+ return it('computed property key may refer variables', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("(function () {\n var yuyushiki = 42;\n ({\n [yuyushiki]() {\n },\n\n [yuyushiki + 40]() {\n }\n })\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(4);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('FunctionExpression');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('yuyushiki');
+ expect(scope.references).to.have.length(3);
+ expect(scope.references[0].identifier.name).to.be.equal('yuyushiki');
+ expect(scope.references[1].identifier.name).to.be.equal('yuyushiki');
+ return expect(scope.references[2].identifier.name).to.be.equal('yuyushiki');
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1vYmplY3QuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUZULENBQUE7O0FBQUEsRUFJQSxRQUFBLENBQVUsWUFBVixFQUF1QixTQUFBLEdBQUE7QUFDbkIsSUFBQSxFQUFBLENBQUksbUJBQUosRUFBd0IsU0FBQSxHQUFBO0FBQ3BCLFVBQUEsd0JBQUE7QUFBQSxNQUFBLEdBQUEsR0FBTSxPQUFPLENBQUMsS0FBUixDQUFpQixvQ0FBakIsQ0FBTixDQUFBO0FBQUEsTUFPQSxZQUFBLEdBQWUsTUFBTSxDQUFDLE9BQVAsQ0FBZSxHQUFmLEVBQW9CO0FBQUEsUUFBQSxXQUFBLEVBQWEsQ0FBYjtPQUFwQixDQVBmLENBQUE7QUFBQSxNQVFBLE1BQUEsQ0FBTyxZQUFZLENBQUMsTUFBcEIsQ0FBMkIsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLE1BQXBDLENBQTJDLENBQTNDLENBUkEsQ0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kZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ3l1eXVzaGlraSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAneXV5dXNoaWtpJ1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1syXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICd5dXl1c2hpa2knXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-rest-args.js b/tools/eslint/node_modules/escope/powered-test/es6-rest-args.js
new file mode 100644
index 00000000000000..3342b7ed849aa3
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-rest-args.js
@@ -0,0 +1,35 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 rest arguments', function() {
+ return it('materialize rest argument in scope', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("function foo(...bar) {\n return bar;\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(1);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('bar');
+ expect(scope.variables[1].defs[0].name.name).to.be.equal('bar');
+ return expect(scope.variables[1].defs[0].rest).to.be["true"];
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIj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YWdlci5zY29wZXNbMV1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdmdW5jdGlvbidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMlxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdhcmd1bWVudHMnXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMV0ubmFtZSkudG8uYmUuZXF1YWwgJ2JhcidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1sxXS5kZWZzWzBdLm5hbWUubmFtZSkudG8uYmUuZXF1YWwgJ2JhcidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1sxXS5kZWZzWzBdLnJlc3QpLnRvLmJlLnRydWVcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-switch.js b/tools/eslint/node_modules/escope/powered-test/es6-switch.js
new file mode 100644
index 00000000000000..44336f0f9d270a
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-switch.js
@@ -0,0 +1,43 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 switch', function() {
+ return it('materialize scope', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("switch (ok) {\n case hello:\n let i = 20;\n i;\n break;\n\n default:\n let test = 30;\n test;\n}");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].identifier.name).to.be.equal('ok');
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('switch');
+ expect(scope.block.type).to.be.equal('SwitchStatement');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('i');
+ expect(scope.variables[1].name).to.be.equal('test');
+ expect(scope.references).to.have.length(5);
+ expect(scope.references[0].identifier.name).to.be.equal('hello');
+ expect(scope.references[1].identifier.name).to.be.equal('i');
+ expect(scope.references[2].identifier.name).to.be.equal('i');
+ expect(scope.references[3].identifier.name).to.be.equal('test');
+ return expect(scope.references[4].identifier.name).to.be.equal('test');
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1zd2l0Y2guY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUZULENBQUE7O0FBQUEsRUFJQSxRQUFBLENBQVUsWUFBVixFQUF1QixTQUFBLEdBQUE7V0FDbkIsRUFBQSxDQUFJLG1CQUFKLEVBQXdCLFNBQUEsR0FBQTtBQUNwQixVQUFBLHdCQUFBO0FBQUEsTUFBQSxHQUFBLEdBQU0sT0FBTyxDQUFDLEtBQVIsQ0FBaUIsMklBQWpCLENBQU4sQ0FBQTtBQUFBLE1BYUEsWUFBQSxHQUFlLE1BQU0sQ0FBQyxPQUFQLENBQWUsR0FBZixFQUFvQjtBQUFBLFFBQUEsV0FBQSxFQUFhLENBQWI7T0FBcEIsQ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ChzY29wZS5pc1N0cmljdCkudG8uYmUuZmFsc2VcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMlxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdpJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzFdLm5hbWUpLnRvLmJlLmVxdWFsICd0ZXN0J1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggNVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICdoZWxsbydcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMl0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbM10uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVzdCdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNF0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVzdCdcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/es6-template-literal.js b/tools/eslint/node_modules/escope/powered-test/es6-template-literal.js
new file mode 100644
index 00000000000000..5e71ad21775269
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/es6-template-literal.js
@@ -0,0 +1,45 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('ES6 template literal', function() {
+ return it('refer variables', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("(function () {\n let i, j, k;\n function testing() { }\n let template = testing`testing ${i} and ${j}`\n return template;\n}());");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('FunctionExpression');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(6);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.variables[1].name).to.be.equal('i');
+ expect(scope.variables[2].name).to.be.equal('j');
+ expect(scope.variables[3].name).to.be.equal('k');
+ expect(scope.variables[4].name).to.be.equal('testing');
+ expect(scope.variables[5].name).to.be.equal('template');
+ expect(scope.references).to.have.length(5);
+ expect(scope.references[0].identifier.name).to.be.equal('template');
+ expect(scope.references[1].identifier.name).to.be.equal('testing');
+ expect(scope.references[2].identifier.name).to.be.equal('i');
+ expect(scope.references[3].identifier.name).to.be.equal('j');
+ return expect(scope.references[4].identifier.name).to.be.equal('template');
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi10ZW1wbGF0ZS1saXRlcmFsLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLHVCQUFBOztBQUFBLEVBQUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUF6QixDQUFBOztBQUFBLEVBQ0EsT0FBQSxHQUFVLE9BQUEsQ0FBUyx3QkFBVCxDQURWLENBQUE7O0FBQUEsRUFFQSxNQUFBL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ChzY29wZS52YXJpYWJsZXNbNV0ubmFtZSkudG8uYmUuZXF1YWwgJ3RlbXBsYXRlJ1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggNVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICd0ZW1wbGF0ZSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVzdGluZydcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMl0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbM10uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNF0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVtcGxhdGUnXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/function-expression-name.js b/tools/eslint/node_modules/escope/powered-test/function-expression-name.js
new file mode 100644
index 00000000000000..7df0841856e3e8
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/function-expression-name.js
@@ -0,0 +1,42 @@
+(function() {
+ var escope, esprima, expect, harmony;
+
+ expect = require('chai').expect;
+
+ esprima = require('esprima');
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('function name', function() {
+ return it('should create its special scope', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = esprima.parse("(function name() {\n}());");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(3);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ expect(globalScope.isArgumentsMaterialized()).to.be["true"];
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function-expression-name');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('name');
+ expect(scope.isArgumentsMaterialized()).to.be["true"];
+ expect(scope.references).to.have.length(0);
+ expect(scope.upper === globalScope).to.be["true"];
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.isArgumentsMaterialized()).to.be["false"];
+ expect(scope.references).to.have.length(0);
+ return expect(scope.upper === scopeManager.scopes[1]).to.be["true"];
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZ1bmN0aW9uLWV4cHJlc3Npb24tbmFtZS5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSxnQ0FBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxFQUNBLE9BQUEsR0FBVSxPQUFBLENBQVMsU0FBVCxDQURWLENBQUE7O0FBQUEsRUFFQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRlYsQ0FBQTs7QUFBQSxFQUdBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUhULENBQUE7O0FBQUEsRUFLQSxRQUFBLENBQVUsZUFBVixFQUEwQixTQUFBLEdBQUE7V0FDdEIsRUFBQSxDQUFJLGlDQUFKLEVBQXNDLFNBQUEsR0FBQTtBQUNsQyxVQUFBLHFDQUFBO0FBQUEsTUFBQSxHQUFBLEdBQU0sT0FBTyxDQUFDLEtBQVIsQ0FBaU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lY3Qoc2NvcGUuaXNBcmd1bWVudHNNYXRlcmlhbGl6ZWQoKSkudG8uYmUuZmFsc2VcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcbiAgICAgICAgZXhwZWN0KHNjb3BlLnVwcGVyIGlzIHNjb3BlTWFuYWdlci5zY29wZXNbMV0pLnRvLmJlLnRydWVcblxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/global-increment.js b/tools/eslint/node_modules/escope/powered-test/global-increment.js
new file mode 100644
index 00000000000000..39024ff15899c8
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/global-increment.js
@@ -0,0 +1,28 @@
+(function() {
+ var escope, esprima, expect, harmony;
+
+ expect = require('chai').expect;
+
+ esprima = require('esprima');
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('global increment', function() {
+ return it('becomes read/write', function() {
+ var ast, globalScope, scopeManager;
+ ast = esprima.parse("b++;");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(1);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(1);
+ return expect(globalScope.references[0].isReadWrite()).to.be["true"];
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb2JhbC1pbmNyZW1lbnQuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsZ0NBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLFNBQVQsQ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JykuZXhwZWN0XG5lc3ByaW1hID0gcmVxdWlyZSAnZXNwcmltYSdcbmhhcm1vbnkgPSByZXF1aXJlICcuLi90aGlyZF9wYXJ0eS9lc3ByaW1hJ1xuZXNjb3BlID0gcmVxdWlyZSAnLi4nXG5cbmRlc2NyaWJlICdnbG9iYWwgaW5jcmVtZW50JywgLT5cbiAgICBpdCAnYmVjb21lcyByZWFkL3dyaXRlJywgLT5cbiAgICAgICAgYXN0ID0gZXNwcmltYS5wYXJzZSBcIlwiXCJcbiAgICAgICAgYisrO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZU1hbmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3RcbiAgICAgICAgZXhwZWN0KHNjb3BlTWFuYWdlci5zY29wZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZ2xvYmFsU2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzBdXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS50eXBlKS50by5iZS5lcXVhbCAnZ2xvYmFsJ1xuICAgICAgICBleHBlY3QoZ2xvYmFsU2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCAwXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAxXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS5yZWZlcmVuY2VzWzBdLmlzUmVhZFdyaXRlKCkpLnRvLmJlLnRydWVcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/implicit-global-reference.js b/tools/eslint/node_modules/escope/powered-test/implicit-global-reference.js
new file mode 100644
index 00000000000000..b6cf989d99adb9
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/implicit-global-reference.js
@@ -0,0 +1,113 @@
+(function() {
+ 'use strict';
+ var escope, esprima, expect;
+
+ expect = require('chai').expect;
+
+ escope = require('..');
+
+ esprima = require('esprima');
+
+ describe('implicit global reference', function() {
+ it('assignments global scope', function() {
+ var ast, scopes;
+ ast = esprima.parse("var x = 20;\nx = 300;");
+ scopes = escope.analyze(ast).scopes;
+ expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.defs.map(function(def) {
+ return def.type;
+ });
+ });
+ })).to.be.eql([[['Variable']]]);
+ return expect(scopes[0].implicit.variables.map(function(variable) {
+ return variable.name;
+ })).to.be.eql([]);
+ });
+ it('assignments global scope without definition', function() {
+ var ast, scopes;
+ ast = esprima.parse("x = 300;\nx = 300;");
+ scopes = escope.analyze(ast).scopes;
+ expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.defs.map(function(def) {
+ return def.type;
+ });
+ });
+ })).to.be.eql([[]]);
+ return expect(scopes[0].implicit.variables.map(function(variable) {
+ return variable.name;
+ })).to.be.eql(['x']);
+ });
+ it('assignments global scope without definition eval', function() {
+ var ast, scopes;
+ ast = esprima.parse("function inner() {\n eval(str);\n x = 300;\n}");
+ scopes = escope.analyze(ast).scopes;
+ expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.defs.map(function(def) {
+ return def.type;
+ });
+ });
+ })).to.be.eql([[['FunctionName']], [[]]]);
+ return expect(scopes[0].implicit.variables.map(function(variable) {
+ return variable.name;
+ })).to.be.eql([]);
+ });
+ it('assignment leaks', function() {
+ var ast, scopes;
+ ast = esprima.parse("function outer() {\n x = 20;\n}");
+ scopes = escope.analyze(ast).scopes;
+ expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.name;
+ });
+ })).to.be.eql([['outer'], ['arguments']]);
+ return expect(scopes[0].implicit.variables.map(function(variable) {
+ return variable.name;
+ })).to.be.eql(['x']);
+ });
+ it('assignment doesn\'t leak', function() {
+ var ast, scopes;
+ ast = esprima.parse("function outer() {\n function inner() {\n x = 20;\n }\n var x;\n}");
+ scopes = escope.analyze(ast).scopes;
+ expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.name;
+ });
+ })).to.be.eql([['outer'], ['arguments', 'inner', 'x'], ['arguments']]);
+ return expect(scopes[0].implicit.variables.map(function(variable) {
+ return variable.name;
+ })).to.be.eql([]);
+ });
+ it('for-in-statement leaks', function() {
+ var ast, scopes;
+ ast = esprima.parse("function outer() {\n for (x in y) { }\n}");
+ scopes = escope.analyze(ast).scopes;
+ expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.name;
+ });
+ })).to.be.eql([['outer'], ['arguments']]);
+ return expect(scopes[0].implicit.variables.map(function(variable) {
+ return variable.name;
+ })).to.be.eql(['x']);
+ });
+ return it('for-in-statement doesn\'t leaks', function() {
+ var ast, scopes;
+ ast = esprima.parse("function outer() {\n function inner() {\n for (x in y) { }\n }\n var x;\n}");
+ scopes = escope.analyze(ast).scopes;
+ expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.name;
+ });
+ })).to.be.eql([['outer'], ['arguments', 'inner', 'x'], ['arguments']]);
+ return expect(scopes[0].implicit.variables.map(function(variable) {
+ return variable.name;
+ })).to.be.eql([]);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImltcGxpY2l0LWdsb2JhbC1yZWZlcmVuY2UuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNCQztBQUFBLEVBQUEsWUFBQSxDQUFBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUVELE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFGeEIsQ0FBQTs7QUFBQSxFQUdELE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUhSLENBQUE7O0FBQUEsRUFJRCxPQUFBLEdBQVUsT0FBQSxDQUFTLFNBQVQsQ0FKVCxDQUFBOztBQUFBLEVBTUQs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cblxuZXhwZWN0ID0gcmVxdWlyZSgnY2hhaScpLmV4cGVjdFxuZXNjb3BlID0gcmVxdWlyZSAnLi4nXG5lc3ByaW1hID0gcmVxdWlyZSAnZXNwcmltYSdcblxuZGVzY3JpYmUgJ2ltcGxpY2l0IGdsb2JhbCByZWZlcmVuY2UnLCAtPlxuICAgIGl0ICdhc3NpZ25tZW50cyBnbG9iYWwgc2NvcGUnLCAtPlxuICAgICAgICBhc3QgPSBlc3ByaW1hLnBhcnNlIFwiXCJcIlxuICAgICAgICB2YXIgeCA9IDIwO1xuICAgICAgICB4ID0gMzAwO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZXMgPSBlc2NvcGUuYW5hbHl6ZShhc3QpLnNjb3Blc1xuXG4gICAgICAgIGV4cGVjdChzY29wZXMubWFwKChzY29wZSkgLT5cbiAgICAgICAgICAgIHNjb3BlLnZhcmlhYmxlcy5tYXAoKHZhcmlhYmxlKSAtPlxuICAgICAgICAgICAgICAgIHZhcmlhYmxlLmRlZnMubWFwKChkZWYpIC0+IGRlZi50eXBlKSkpKS50by5iZS5lcWwoXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAnVmFyaWFibGUnXG4gICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICBdXG4gICAgICAgIClcblxuICAgICAgICBleHBlY3Qoc2NvcGVzWzBdLmltcGxpY2l0LnZhcmlhYmxlcy5tYXAoKHZhcmlhYmxlKSAtPiB2YXJpYWJsZS5uYW1lKSkudG8uYmUuZXFsKFtdKVxuXG4gICAgaXQgJ2Fzc2lnbm1lbnRzIGdsb2JhbCBzY29wZSB3aXRob3V0IGRlZmluaXRpb24nLCAtPlxuICAgICAgICBhc3QgPSBlc3ByaW1hLnBhcnNlIFwiXCJcIlxuICAgICAgICB4ID0gMzAwO1xuICAgICAgICB4ID0gMzAwO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZXMgPSBlc2NvcGUuYW5hbHl6ZShhc3QpLnNjb3Blc1xuXG4gICAgICAgIGV4cGVjdChzY29wZXMubWFwKChzY29wZSkgLT5cbiAgICAgICAgICAgIHNjb3BlLnZhcmlhYmxlcy5tYXAoKHZhcmlhYmxlKSAtPlxuICAgICAgICAgICAgICAgIHZhcmlhYmxlLmRlZnMubWFwKChkZWYpIC0+IGRlZi50eXBlKSkpKS50by5iZS5lcWwoXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuXG4gICAgICAgIGV4cGVjdChzY29wZXNbMF0uaW1wbGljaXQudmFyaWFibGVzLm1hcCgodmFyaWFibGUpIC0+IHZhcmlhYmxlLm5hbWUpKS50by5iZS5lcWwoXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgJ3gnXG4gICAgICAgICAgICBdXG4gICAgICAgIClcblxuICAgIGl0ICdhc3NpZ25tZW50cyBnbG9iYWwgc2NvcGUgd2l0aG91dCBkZWZpbml0aW9uIGV2YWwnLCAtPlxuICAgICAgICBhc3QgPSBlc3ByaW1hLnBhcnNlIFwiXCJcIlxuICAgICAgICBmdW5jdGlvbiBpbm5lcigpIHtcbiAgICAgICAgICAgIGV2YWwoc3RyKTtcbiAgICAgICAgICAgIHggPSAzMDA7XG4gICAgICAgIH1cbiAgICAgICAgXCJcIlwiXG5cbiAgICAgICAgc2NvcGVzID0gZXNjb3BlLmFuYWx5emUoYXN0KS5zY29wZXNcblxuICAgICAgICBleHBlY3Qoc2NvcGVzLm1hcCgoc2NvcGUpIC0+XG4gICAgICAgICAgICBzY29wZS52YXJpYWJsZXMubWFwKCh2YXJpYWJsZSkgLT5cbiAgICAgICAgICAgICAgICB2YXJpYWJsZS5kZWZzLm1hcCgoZGVmKSAtPiBkZWYudHlwZSkpKSkudG8uYmUuZXFsKFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgJ0Z1bmN0aW9uTmFtZSdcbiAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuXG4gICAgICAgIGV4cGVjdChzY29wZXNbMF0uaW1wbGljaXQudmFyaWFibGVzLm1hcCgodmFyaWFibGUpIC0+IHZhcmlhYmxlLm5hbWUpKS50by5iZS5lcWwoW10pXG5cbiAgICBpdCAnYXNzaWdubWVudCBsZWFrcycsIC0+XG4gICAgICAgIGFzdCA9IGVzcHJpbWEucGFyc2UgXCJcIlwiXG4gICAgICAgIGZ1bmN0aW9uIG91dGVyKCkge1xuICAgICAgICAgICAgeCA9IDIwO1xuICAgICAgICB9XG4gICAgICAgIFwiXCJcIlxuXG4gICAgICAgIHNjb3BlcyA9IGVzY29wZS5hbmFseXplKGFzdCkuc2NvcGVzXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blcy5tYXAoKHNjb3BlKSAtPlxuICAgICAgICAgICAgc2NvcGUudmFyaWFibGVzLm1hcCgodmFyaWFibGUpIC0+IHZhcmlhYmxlLm5hbWUpKSkudG8uYmUuZXFsKFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgJ291dGVyJ1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICdhcmd1bWVudHMnXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgXVxuICAgICAgICApXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blc1swXS5pbXBsaWNpdC52YXJpYWJsZXMubWFwKCh2YXJpYWJsZSkgLT4gdmFyaWFibGUubmFtZSkpLnRvLmJlLmVxbChcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAneCdcbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuXG4gICAgaXQgJ2Fzc2lnbm1lbnQgZG9lc25cXCd0IGxlYWsnLCAtPlxuICAgICAgICBhc3QgPSBlc3ByaW1hLnBhcnNlIFwiXCJcIlxuICAgICAgICBmdW5jdGlvbiBvdXRlcigpIHtcbiAgICAgICAgICAgIGZ1bmN0aW9uIGlubmVyKCkge1xuICAgICAgICAgICAgICAgIHggPSAyMDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhciB4O1xuICAgICAgICB9XG4gICAgICAgIFwiXCJcIlxuXG4gICAgICAgIHNjb3BlcyA9IGVzY29wZS5hbmFseXplKGFzdCkuc2NvcGVzXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blcy5tYXAoKHNjb3BlKSAtPlxuICAgICAgICAgICAgc2NvcGUudmFyaWFibGVzLm1hcCgodmFyaWFibGUpIC0+IHZhcmlhYmxlLm5hbWUpKSkudG8uYmUuZXFsKFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgJ291dGVyJ1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICdhcmd1bWVudHMnXG4gICAgICAgICAgICAgICAgICAgICdpbm5lcidcbiAgICAgICAgICAgICAgICAgICAgJ3gnXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgJ2FyZ3VtZW50cydcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICBdXG4gICAgICAgIClcblxuICAgICAgICBleHBlY3Qoc2NvcGVzWzBdLmltcGxpY2l0LnZhcmlhYmxlcy5tYXAoKHZhcmlhYmxlKSAtPiB2YXJpYWJsZS5uYW1lKSkudG8uYmUuZXFsKFtdKVxuXG5cbiAgICBpdCAnZm9yLWluLXN0YXRlbWVudCBsZWFrcycsIC0+XG4gICAgICAgIGFzdCA9IGVzcHJpbWEucGFyc2UgXCJcIlwiXG4gICAgICAgIGZ1bmN0aW9uIG91dGVyKCkge1xuICAgICAgICAgICAgZm9yICh4IGluIHkpIHsgfVxuICAgICAgICB9XG4gICAgICAgIFwiXCJcIlxuXG4gICAgICAgIHNjb3BlcyA9IGVzY29wZS5hbmFseXplKGFzdCkuc2NvcGVzXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blcy5tYXAoKHNjb3BlKSAtPlxuICAgICAgICAgICAgc2NvcGUudmFyaWFibGVzLm1hcCgodmFyaWFibGUpIC0+IHZhcmlhYmxlLm5hbWUpKSkudG8uYmUuZXFsKFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgJ291dGVyJ1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICdhcmd1bWVudHMnXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgXVxuICAgICAgICApXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blc1swXS5pbXBsaWNpdC52YXJpYWJsZXMubWFwKCh2YXJpYWJsZSkgLT4gdmFyaWFibGUubmFtZSkpLnRvLmJlLmVxbChcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAneCdcbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuXG4gICAgaXQgJ2Zvci1pbi1zdGF0ZW1lbnQgZG9lc25cXCd0IGxlYWtzJywgLT5cbiAgICAgICAgYXN0ID0gZXNwcmltYS5wYXJzZSBcIlwiXCJcbiAgICAgICAgZnVuY3Rpb24gb3V0ZXIoKSB7XG4gICAgICAgICAgICBmdW5jdGlvbiBpbm5lcigpIHtcbiAgICAgICAgICAgICAgICBmb3IgKHggaW4geSkgeyB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB2YXIgeDtcbiAgICAgICAgfVxuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZXMgPSBlc2NvcGUuYW5hbHl6ZShhc3QpLnNjb3Blc1xuXG4gICAgICAgIGV4cGVjdChzY29wZXMubWFwKChzY29wZSkgLT5cbiAgICAgICAgICAgIHNjb3BlLnZhcmlhYmxlcy5tYXAoKHZhcmlhYmxlKSAtPiB2YXJpYWJsZS5uYW1lKSkpLnRvLmJlLmVxbChcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICdvdXRlcidcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAnYXJndW1lbnRzJ1xuICAgICAgICAgICAgICAgICAgICAnaW5uZXInXG4gICAgICAgICAgICAgICAgICAgICd4J1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICdhcmd1bWVudHMnXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgXVxuICAgICAgICApXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blc1swXS5pbXBsaWNpdC52YXJpYWJsZXMubWFwKCh2YXJpYWJsZSkgLT4gdmFyaWFibGUubmFtZSkpLnRvLmJlLmVxbChbXSlcbiJdfQ==
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/label-children.js b/tools/eslint/node_modules/escope/powered-test/label-children.js
new file mode 100644
index 00000000000000..710732f8071a8c
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/label-children.js
@@ -0,0 +1,34 @@
+(function() {
+ var escope, esprima, expect, harmony;
+
+ expect = require('chai').expect;
+
+ esprima = require('esprima');
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('label', function() {
+ return it('should not create variables', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = esprima.parse("function bar() { q: for(;;) { break q; } }");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(1);
+ expect(globalScope.variables[0].name).to.be.equal('bar');
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.isArgumentsMaterialized()).to.be["false"];
+ return expect(scope.references).to.have.length(0);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLWNoaWxkcmVuLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLGdDQUFBOztBQUFBLEVBQUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUF6QixDQUFBOztBQUFBLEVBQ0EsT0FBQSxHQUFVLE9BQUEsQ0FBUyxTQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FGVixDQUFBOztBQUFBLEVBR0EsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBSFQsQ0FBQTs7QUFBQSxFQUtBLFFBQUEsQ0FBVSxPQUFWLEVBQWtCLFNBQUEsR0FBQTtXQUNkLEVBQUEsQ0FBSSw2QkFBSixFQUFrQyxTQUFBLEdBQUE7QUFDOUIsVUFBQSxxQ0FBQTtBQUFBLE1BQUEsR0FBQSxHQUFNLE9BQU8sQ0FBQyxLQUFSLENBQWlCLDRDQUFqQixDQUFOLENBQUE7QUFBQSxNQUlBLFlBQUEsR0FBZSxNQUFNLENBQUMsT0FBUCxDQUFlLEdBQWYsQ0FKZixDQUFBO0FBQUEsTUFLQSxNQUFBLENBQU8sWUFBWSx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WwgJ2JhcidcbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMV1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdmdW5jdGlvbidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdhcmd1bWVudHMnXG4gICAgICAgIGV4cGVjdChzY29wZS5pc0FyZ3VtZW50c01hdGVyaWFsaXplZCgpKS50by5iZS5mYWxzZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/label.js b/tools/eslint/node_modules/escope/powered-test/label.js
new file mode 100644
index 00000000000000..a54dcd9d340a8f
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/label.js
@@ -0,0 +1,47 @@
+(function() {
+ var escope, esprima, expect, harmony;
+
+ expect = require('chai').expect;
+
+ esprima = require('esprima');
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('label', function() {
+ it('should not create variables', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = esprima.parse("function bar() { q: for(;;) { break q; } }");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(2);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(1);
+ expect(globalScope.variables[0].name).to.be.equal('bar');
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.isArgumentsMaterialized()).to.be["false"];
+ return expect(scope.references).to.have.length(0);
+ });
+ return it('should count child node references', function() {
+ var ast, globalScope, scopeManager;
+ ast = esprima.parse("var foo = 5;\n\nlabel: while (true) {\n console.log(foo);\n break;\n}");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(1);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(1);
+ expect(globalScope.variables[0].name).to.be.equal('foo');
+ expect(globalScope.through.length).to.be.equal(3);
+ expect(globalScope.through[2].identifier.name).to.be.equal('foo');
+ return expect(globalScope.through[2].isRead()).to.be["true"];
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLGdDQUFBOztBQUFBLEVBQUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUF6QixDQUFBOztBQUFBLEVBQ0EsT0FBQSxHQUFVLE9BQUEsQ0FBUyxTQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FGVixDQUFBOztBQUFBLEVBR0EsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBSFQsQ0FBQTs7QUFBQSxFQUtBLFFBQUEsQ0FBVSxPQUFWLEVBQWtCLFNBQUEsR0FBQTtBQUNkLElBQUEsRUFBQSxDQUFJLDZCQUFKLEVBQWtDLFNBQUEsR0FBQTtBQUM5QixVQUFBLHFDQUFBO0FBQUEsTUFBQSxHQUFBLEdBQU0sT0FBTyxDQUFDLEtBQVIsQ0FBaUIsNENBQWpCLENBQU4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4gICAgICAgICAgICBsYWJlbDogd2hpbGUgKHRydWUpIHtcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coZm9vKTtcbiAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBcIlwiXCJcblxuICAgICAgICAgICAgc2NvcGVNYW5hZ2VyID0gZXNjb3BlLmFuYWx5emUgYXN0XG4gICAgICAgICAgICBleHBlY3Qoc2NvcGVNYW5hZ2VyLnNjb3BlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICAgICAgZ2xvYmFsU2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzBdXG4gICAgICAgICAgICBleHBlY3QoZ2xvYmFsU2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2dsb2JhbCdcbiAgICAgICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwgJ2ZvbydcbiAgICAgICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS50aHJvdWdoLmxlbmd0aCkudG8uYmUuZXF1YWwgM1xuICAgICAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnRocm91Z2hbMl0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnZm9vJ1xuICAgICAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnRocm91Z2hbMl0uaXNSZWFkKCkpLnRvLmJlLnRydWVcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/nodejs-scope.js b/tools/eslint/node_modules/escope/powered-test/nodejs-scope.js
new file mode 100644
index 00000000000000..24fd61c2c6ba7d
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/nodejs-scope.js
@@ -0,0 +1,65 @@
+(function() {
+ var escope, expect, harmony;
+
+ expect = require('chai').expect;
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('nodejsScope option', function() {
+ it('creates a function scope following the global scope immediately', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("'use strict';\nvar hello = 20;");
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ nodejsScope: true
+ });
+ expect(scopeManager.scopes).to.have.length(2);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["true"];
+ expect(scope.variables).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ return expect(scope.variables[1].name).to.be.equal('hello');
+ });
+ return it('creates a function scope following the global scope immediately and creates module scope', function() {
+ var ast, scope, scopeManager;
+ ast = harmony.parse("import {x as v} from \"mod\";", {
+ sourceType: 'module'
+ });
+ scopeManager = escope.analyze(ast, {
+ ecmaVersion: 6,
+ nodejsScope: true,
+ sourceType: 'module'
+ });
+ expect(scopeManager.scopes).to.have.length(3);
+ scope = scopeManager.scopes[0];
+ expect(scope.type).to.be.equal('global');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.block.type).to.be.equal('Program');
+ expect(scope.isStrict).to.be["false"];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('module');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('v');
+ expect(scope.variables[0].defs[0].type).to.be.equal('ImportBinding');
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LmJlLmZhbHNlXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1syXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ21vZHVsZSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICd2J1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLmRlZnNbMF0udHlwZSkudG8uYmUuZXF1YWwgJ0ltcG9ydEJpbmRpbmcnXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG5cblxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/object-expression.js b/tools/eslint/node_modules/escope/powered-test/object-expression.js
new file mode 100644
index 00000000000000..3e845c7d798971
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/object-expression.js
@@ -0,0 +1,56 @@
+(function() {
+ 'use strict';
+ var escope, expect;
+
+ expect = require('chai').expect;
+
+ escope = require('..');
+
+ describe('object expression', function() {
+ return it('doesn\'t require property type', function() {
+ var ast, scope;
+ ast = {
+ type: 'Program',
+ body: [
+ {
+ type: 'VariableDeclaration',
+ declarations: [
+ {
+ type: 'VariableDeclarator',
+ id: {
+ type: 'Identifier',
+ name: 'a'
+ },
+ init: {
+ type: 'ObjectExpression',
+ properties: [
+ {
+ kind: 'init',
+ key: {
+ type: 'Identifier',
+ name: 'foo'
+ },
+ value: {
+ type: 'Identifier',
+ name: 'a'
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ };
+ scope = escope.analyze(ast).scopes[0];
+ expect(scope.variables).to.have.length(1);
+ expect(scope.references).to.have.length(2);
+ expect(scope.variables[0].name).to.be.equal('a');
+ expect(scope.references[0].identifier.name).to.be.equal('a');
+ return expect(scope.references[1].identifier.name).to.be.equal('a');
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9iamVjdC1leHByZXNzaW9uLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQztBQUFBLEVBQUEsWUFBQSxDQUFBO0FBQUEsTUFBQSxjQUFBOztBQUFBLEVBRUQsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUZ4QixDQUFBOztBQUFBLEVBR0QsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBSFIsQ0FBQTs7QUFBQSxFQUtELFFBQUEsQ0FBVSxtQkFBVixFQUE4QixTQUFBLEdBQUE7V0FDMUIsRUFBQSxDQUFJLGdDQUFKLEVBQXFDLFNBQUEsR0FBQTtBQUlqQyxVQUFBLFVBQUE7QUFBQSxNQUFBLEdBQUEsR0FDSTtBQUFBLFFBQUEsSUFBQSxFQUFPLFNBQVA7QUFBQSxRQUNBLElBQUEsRUFBTTtVQUFDO0FBQUEsWUFDSCxJQUFBLEVBQU8scUJBREo7QUFBQSxZQUVILFlBQUEsRUFBYztjQUFDO0FBQUEsZ0JBQ1gsSUFBQSxFQUFPLG9CQURJO0FBQUEsZ0JBRVgsRUFBQSxFQUNJO0FBQUEsa0JBQUEsSUFBQSxFQUFPLFlBQVA7QUFBQSxrQkFDQSxJQUFBLEVBQU8sR0FEUDtpQkFITztBQUFBLGdCQUtYLElBQUEsRUFDSTtBQUFBLGtCQUFBLElBQUE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G4gICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiAnYSdcbiAgICAgICAgICAgICAgICAgICAgaW5pdDpcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdPYmplY3RFeHByZXNzaW9uJ1xuICAgICAgICAgICAgICAgICAgICAgICAgcHJvcGVydGllczogW3tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBraW5kOiAnaW5pdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZXk6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdJZGVudGlmaWVyJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiAnZm9vJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAnSWRlbnRpZmllcidcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTogJ2EnXG4gICAgICAgICAgICAgICAgICAgICAgICB9XVxuICAgICAgICAgICAgICAgIH1dXG4gICAgICAgICAgICB9XVxuXG4gICAgICAgIHNjb3BlID0gZXNjb3BlLmFuYWx5emUoYXN0KS5zY29wZXNbMF1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGgoMSlcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoKDIpXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwoJ2EnKVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsKCdhJylcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCgnYScpXG4iXX0=
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/optimistic.js b/tools/eslint/node_modules/escope/powered-test/optimistic.js
new file mode 100644
index 00000000000000..5e93a0a834d291
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/optimistic.js
@@ -0,0 +1,40 @@
+(function() {
+ 'use strict';
+ var escope, esprima, expect;
+
+ expect = require('chai').expect;
+
+ escope = require('..');
+
+ esprima = require('esprima');
+
+ describe('optimistic', function() {
+ it('direct call to eval', function() {
+ var ast, scopes;
+ ast = esprima.parse("function outer() {\n eval(str);\n var i = 20;\n function inner() {\n i;\n }\n}");
+ scopes = escope.analyze(ast, {
+ optimistic: true
+ }).scopes;
+ return expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.name;
+ });
+ })).to.be.eql([['outer'], ['arguments', 'i', 'inner'], ['arguments']]);
+ });
+ return it('with statement', function() {
+ var ast, scopes;
+ ast = esprima.parse("function outer() {\n eval(str);\n var i = 20;\n with (obj) {\n i;\n }\n}");
+ scopes = escope.analyze(ast, {
+ optimistic: true
+ }).scopes;
+ return expect(scopes.map(function(scope) {
+ return scope.variables.map(function(variable) {
+ return variable.name;
+ });
+ })).to.be.eql([['outer'], ['arguments', 'i'], []]);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9wdGltaXN0aWMuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNCQztBQUFBLEVBQUEsWUFBQSxDQUFBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUVELE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFGeEIsQ0FBQTs7QUFBQSxFQUdELE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUhSLENBQUE7O0FBQUEsRUFJRCxPQUFBLEdBQVUsT0FBQSxDQUFTLFNBQVQsQ0FKVCxDQUFBOztBQUFBLEVB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dMSUdFTkNFIE9SIE9USEVSV0lTRSkgQVJJU0lORyBJTiBBTlkgV0FZIE9VVCBPRiBUSEUgVVNFIE9GXG4jIFRISVMgU09GVFdBUkUsIEVWRU4gSUYgQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuXG5cbid1c2Ugc3RyaWN0J1xuXG5leHBlY3QgPSByZXF1aXJlKCdjaGFpJykuZXhwZWN0XG5lc2NvcGUgPSByZXF1aXJlICcuLidcbmVzcHJpbWEgPSByZXF1aXJlICdlc3ByaW1hJ1xuXG5kZXNjcmliZSAnb3B0aW1pc3RpYycsIC0+XG4gICAgaXQgJ2RpcmVjdCBjYWxsIHRvIGV2YWwnLCAtPlxuICAgICAgICBhc3QgPSBlc3ByaW1hLnBhcnNlIFwiXCJcIlxuICAgICAgICBmdW5jdGlvbiBvdXRlcigpIHtcbiAgICAgICAgICAgIGV2YWwoc3RyKTtcbiAgICAgICAgICAgIHZhciBpID0gMjA7XG4gICAgICAgICAgICBmdW5jdGlvbiBpbm5lcigpIHtcbiAgICAgICAgICAgICAgICBpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIFwiXCJcIlxuXG4gICAgICAgIHNjb3BlcyA9IGVzY29wZS5hbmFseXplKGFzdCwgb3B0aW1pc3RpYzogeWVzKS5zY29wZXNcblxuICAgICAgICBleHBlY3Qoc2NvcGVzLm1hcCgoc2NvcGUpIC0+XG4gICAgICAgICAgICBzY29wZS52YXJpYWJsZXMubWFwKCh2YXJpYWJsZSkgLT4gdmFyaWFibGUubmFtZSkpKS50by5iZS5lcWwoXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAnb3V0ZXInXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgJ2FyZ3VtZW50cydcbiAgICAgICAgICAgICAgICAgICAgJ2knXG4gICAgICAgICAgICAgICAgICAgICdpbm5lcidcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAnYXJndW1lbnRzJ1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuXG4gICAgaXQgJ3dpdGggc3RhdGVtZW50JywgLT5cbiAgICAgICAgYXN0ID0gZXNwcmltYS5wYXJzZSBcIlwiXCJcbiAgICAgICAgZnVuY3Rpb24gb3V0ZXIoKSB7XG4gICAgICAgICAgICBldmFsKHN0cik7XG4gICAgICAgICAgICB2YXIgaSA9IDIwO1xuICAgICAgICAgICAgd2l0aCAob2JqKSB7XG4gICAgICAgICAgICAgICAgaTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZXMgPSBlc2NvcGUuYW5hbHl6ZShhc3QsIG9wdGltaXN0aWM6IHllcykuc2NvcGVzXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blcy5tYXAoKHNjb3BlKSAtPlxuICAgICAgICAgICAgc2NvcGUudmFyaWFibGVzLm1hcCgodmFyaWFibGUpIC0+IHZhcmlhYmxlLm5hbWUpKSkudG8uYmUuZXFsKFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgJ291dGVyJ1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICdhcmd1bWVudHMnXG4gICAgICAgICAgICAgICAgICAgICdpJ1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgXVxuICAgICAgICApXG5cblxuIl19
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/powered-test/with-scope.js b/tools/eslint/node_modules/escope/powered-test/with-scope.js
new file mode 100644
index 00000000000000..bb2c74569091ea
--- /dev/null
+++ b/tools/eslint/node_modules/escope/powered-test/with-scope.js
@@ -0,0 +1,40 @@
+(function() {
+ var escope, esprima, expect, harmony;
+
+ expect = require('chai').expect;
+
+ esprima = require('esprima');
+
+ harmony = require('../third_party/esprima');
+
+ escope = require('..');
+
+ describe('with', function() {
+ return it('creates scope', function() {
+ var ast, globalScope, scope, scopeManager;
+ ast = esprima.parse("(function () {\n with (obj) {\n testing;\n }\n}());");
+ scopeManager = escope.analyze(ast);
+ expect(scopeManager.scopes).to.have.length(3);
+ globalScope = scopeManager.scopes[0];
+ expect(globalScope.type).to.be.equal('global');
+ expect(globalScope.variables).to.have.length(0);
+ expect(globalScope.references).to.have.length(0);
+ scope = scopeManager.scopes[1];
+ expect(scope.type).to.be.equal('function');
+ expect(scope.variables).to.have.length(1);
+ expect(scope.variables[0].name).to.be.equal('arguments');
+ expect(scope.isArgumentsMaterialized()).to.be["false"];
+ expect(scope.references).to.have.length(1);
+ expect(scope.references[0].resolved).to.be["null"];
+ scope = scopeManager.scopes[2];
+ expect(scope.type).to.be.equal('with');
+ expect(scope.variables).to.have.length(0);
+ expect(scope.isArgumentsMaterialized()).to.be["true"];
+ expect(scope.references).to.have.length(1);
+ return expect(scope.references[0].resolved).to.be["null"];
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndpdGgtc2NvcGUuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsZ0NBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLFNBQVQsQ0FEVixDQUFBOztBQUFBLEVBRUEsT0FBQSxHQUFVLE9BQUEsQ0FBUyx3QkFBVCxDQUZWLENBQUE7O0FBQUEsRUFHQSxNQUFBLEdBQVMsT0FBQSxDQ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AwXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG5cbiAgICAgICAgc2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzFdXG4gICAgICAgIGV4cGVjdChzY29wZS50eXBlKS50by5iZS5lcXVhbCAnZnVuY3Rpb24nXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuaXNBcmd1bWVudHNNYXRlcmlhbGl6ZWQoKSkudG8uYmUuZmFsc2VcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMF0ucmVzb2x2ZWQpLnRvLmJlLm51bGxcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMl1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICd3aXRoJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCAwXG4gICAgICAgIGV4cGVjdChzY29wZS5pc0FyZ3VtZW50c01hdGVyaWFsaXplZCgpKS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAxXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzBdLnJlc29sdmVkKS50by5iZS5udWxsXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ No newline at end of file
diff --git a/tools/eslint/node_modules/escope/src/index.js b/tools/eslint/node_modules/escope/src/index.js
index bc9e176ef43e05..a345e1c71359eb 100644
--- a/tools/eslint/node_modules/escope/src/index.js
+++ b/tools/eslint/node_modules/escope/src/index.js
@@ -64,7 +64,9 @@ function defaultOptions() {
nodejsScope: false,
impliedStrict: false,
sourceType: 'script', // one of ['script', 'module']
- ecmaVersion: 5
+ ecmaVersion: 5,
+ childVisitorKeys: null,
+ fallback: 'iteration'
};
}
@@ -72,7 +74,7 @@ function updateDeeply(target, override) {
var key, val;
function isHashObject(target) {
- return typeof target === 'object' && target instanceof Object && !(target instanceof RegExp);
+ return typeof target === 'object' && target instanceof Object && !(target instanceof Array) && !(target instanceof RegExp);
}
for (key in override) {
@@ -108,6 +110,8 @@ function updateDeeply(target, override) {
* (if ecmaVersion >= 5).
* @param {string} [providedOptions.sourceType='script']- the source type of the script. one of 'script' and 'module'
* @param {number} [providedOptions.ecmaVersion=5]- which ECMAScript version is considered
+ * @param {Object} [providedOptions.childVisitorKeys=null] - Additional known visitor keys. See [esrecurse](https://github.com/estools/esrecurse)'s the `childVisitorKeys` option.
+ * @param {string} [providedOptions.fallback='iteration'] - A kind of the fallback in order to encounter with unknown node. See [esrecurse](https://github.com/estools/esrecurse)'s the `fallback` option.
* @return {ScopeManager}
*/
export function analyze(tree, providedOptions) {
@@ -117,7 +121,7 @@ export function analyze(tree, providedOptions) {
scopeManager = new ScopeManager(options);
- referencer = new Referencer(scopeManager);
+ referencer = new Referencer(options, scopeManager);
referencer.visit(tree);
assert(scopeManager.__currentScope === null, 'currentScope should be null.');
diff --git a/tools/eslint/node_modules/escope/src/pattern-visitor.js b/tools/eslint/node_modules/escope/src/pattern-visitor.js
index a6761a4384e029..b98e98ad22dd9a 100644
--- a/tools/eslint/node_modules/escope/src/pattern-visitor.js
+++ b/tools/eslint/node_modules/escope/src/pattern-visitor.js
@@ -42,8 +42,8 @@ export default class PatternVisitor extends esrecurse.Visitor {
);
}
- constructor(rootPattern, callback) {
- super();
+ constructor(options, rootPattern, callback) {
+ super(null, options);
this.rootPattern = rootPattern;
this.callback = callback;
this.assignments = [];
diff --git a/tools/eslint/node_modules/escope/src/referencer.js b/tools/eslint/node_modules/escope/src/referencer.js
index e09768d7e28750..bd810808ce10cc 100644
--- a/tools/eslint/node_modules/escope/src/referencer.js
+++ b/tools/eslint/node_modules/escope/src/referencer.js
@@ -29,9 +29,9 @@ import PatternVisitor from './pattern-visitor';
import { ParameterDefinition, Definition } from './definition';
import assert from 'assert';
-function traverseIdentifierInPattern(rootPattern, referencer, callback) {
+function traverseIdentifierInPattern(options, rootPattern, referencer, callback) {
// Call the callback at left hand identifier nodes, and Collect right hand nodes.
- var visitor = new PatternVisitor(rootPattern, callback);
+ var visitor = new PatternVisitor(options, rootPattern, callback);
visitor.visit(rootPattern);
// Process the right hand nodes recursively.
@@ -48,7 +48,7 @@ function traverseIdentifierInPattern(rootPattern, referencer, callback) {
class Importer extends esrecurse.Visitor {
constructor(declaration, referencer) {
- super();
+ super(null, referencer.options);
this.declaration = declaration;
this.referencer = referencer;
}
@@ -91,8 +91,9 @@ class Importer extends esrecurse.Visitor {
// Referencing variables and creating bindings.
export default class Referencer extends esrecurse.Visitor {
- constructor(scopeManager) {
- super();
+ constructor(options, scopeManager) {
+ super(null, options);
+ this.options = options;
this.scopeManager = scopeManager;
this.parent = null;
this.isInnerMethodDefinition = false;
@@ -155,6 +156,7 @@ export default class Referencer extends esrecurse.Visitor {
options = {processRightHandNodes: false}
}
traverseIdentifierInPattern(
+ this.options,
node,
options.processRightHandNodes ? this : null,
callback);
@@ -573,6 +575,10 @@ export default class Referencer extends esrecurse.Visitor {
let local = (node.id || node.local);
this.visit(local);
}
+
+ MetaProperty() {
+ // do nothing.
+ }
}
/* vim: set sw=4 ts=4 et tw=80 : */
diff --git a/tools/eslint/node_modules/escope/third_party/espree.js b/tools/eslint/node_modules/escope/third_party/espree.js
index 26df9ee6ae621e..2f68051de6419c 100644
--- a/tools/eslint/node_modules/escope/third_party/espree.js
+++ b/tools/eslint/node_modules/escope/third_party/espree.js
@@ -47,75 +47,9 @@ module.exports = function (code) {
// top-level errors array
tolerant: true,
- // specify parsing features (default only has blockBindings: true)
- ecmaFeatures: {
-
- // enable parsing of arrow functions
- arrowFunctions: true,
-
- // enable parsing of let/const
- blockBindings: true,
-
- // enable parsing of destructured arrays and objects
- destructuring: true,
-
- // enable parsing of regular expression y flag
- regexYFlag: true,
-
- // enable parsing of regular expression u flag
- regexUFlag: true,
-
- // enable parsing of template strings
- templateStrings: true,
-
- // enable parsing of binary literals
- binaryLiterals: true,
-
- // enable parsing of ES6 octal literals
- octalLiterals: true,
-
- // enable parsing unicode code point escape sequences
- unicodeCodePointEscapes: true,
-
- // enable parsing of default parameters
- defaultParams: true,
-
- // enable parsing of rest parameters
- restParams: true,
-
- // enable parsing of for-of statement
- forOf: true,
-
- // enable parsing computed object literal properties
- objectLiteralComputedProperties: true,
-
- // enable parsing of shorthand object literal methods
- objectLiteralShorthandMethods: true,
-
- // enable parsing of shorthand object literal properties
- objectLiteralShorthandProperties: true,
-
- // Allow duplicate object literal properties (except '__proto__')
- objectLiteralDuplicateProperties: true,
-
- // enable parsing of generators/yield
- generators: true,
-
- // enable parsing spread operator
- spread: true,
-
- // enable parsing classes
- classes: true,
-
- // enable parsing of modules
- modules: true,
-
- // enable React JSX parsing
- jsx: true,
-
- // enable return in global scope
- globalReturn: true
- }
+ // enable es6 features.
+ ecmaVersion: 6,
+ sourceType: "module"
});
};
diff --git a/tools/eslint/node_modules/espree/README.md b/tools/eslint/node_modules/espree/README.md
index 09e906c0bf9e41..80ca0482bf62f3 100644
--- a/tools/eslint/node_modules/espree/README.md
+++ b/tools/eslint/node_modules/espree/README.md
@@ -41,7 +41,7 @@ var ast = espree.parse(code, {
// create a top-level tokens array containing all tokens
tokens: true,
- // specify the language version (3, 5, or 6, default is 5)
+ // specify the language version (3, 5, 6, or 7, default is 5)
ecmaVersion: 5,
// specify which type of script you're parsing (script or module, default is script)
@@ -130,6 +130,10 @@ We are building on top of Acorn, however, so that we can contribute back and hel
All of them.
+### What ECMAScript 7 features do you support?
+
+There is only one ECMAScript 7 syntax change: the exponentiation operator. Espree supports this.
+
### How do you determine which experimental features to support?
In general, we do not support experimental JavaScript features. We may make exceptions from time to time depending on the maturity of the features.
diff --git a/tools/eslint/node_modules/espree/espree.js b/tools/eslint/node_modules/espree/espree.js
index e085d2d5228992..581475ede0f5a5 100644
--- a/tools/eslint/node_modules/espree/espree.js
+++ b/tools/eslint/node_modules/espree/espree.js
@@ -96,8 +96,6 @@ function resetExtra() {
var tt = acorn.tokTypes,
- Parser = acorn.Parser,
- pp = Parser.prototype,
getLineInfo = acorn.getLineInfo;
// custom type for JSX attribute values
@@ -113,9 +111,6 @@ function isValidNode(node) {
var ecma = extra.ecmaFeatures;
switch (node.type) {
- case "Identifier":
- return !extra.isModule || node.name !== "await";
-
case "ExperimentalSpreadProperty":
case "ExperimentalRestProperty":
return ecma.experimentalObjectRestSpread;
@@ -235,215 +230,218 @@ function wrapFinishNode(finishNode) {
};
}
-pp.extend("finishNode", wrapFinishNode);
+acorn.plugins.espree = function(instance) {
-pp.extend("finishNodeAt", wrapFinishNode);
+ instance.extend("finishNode", wrapFinishNode);
-pp.extend("next", function(next) {
- return /** @this acorn.Parser */ function() {
- if (!isValidToken(this)) {
- this.unexpected();
- }
- return next.call(this);
- };
-});
+ instance.extend("finishNodeAt", wrapFinishNode);
+
+ instance.extend("next", function(next) {
+ return /** @this acorn.Parser */ function() {
+ if (!isValidToken(this)) {
+ this.unexpected();
+ }
+ return next.call(this);
+ };
+ });
-// needed for experimental object rest/spread
-pp.extend("checkLVal", function(checkLVal) {
+ // needed for experimental object rest/spread
+ instance.extend("checkLVal", function(checkLVal) {
- return /** @this acorn.Parser */ function(expr, isBinding, checkClashes) {
+ return /** @this acorn.Parser */ function(expr, isBinding, checkClashes) {
- if (extra.ecmaFeatures.experimentalObjectRestSpread && expr.type === "ObjectPattern") {
- for (var i = 0; i < expr.properties.length; i++) {
- if (expr.properties[i].type.indexOf("Experimental") === -1) {
- this.checkLVal(expr.properties[i].value, isBinding, checkClashes);
+ if (extra.ecmaFeatures.experimentalObjectRestSpread && expr.type === "ObjectPattern") {
+ for (var i = 0; i < expr.properties.length; i++) {
+ if (expr.properties[i].type.indexOf("Experimental") === -1) {
+ this.checkLVal(expr.properties[i].value, isBinding, checkClashes);
+ }
}
+ return undefined;
}
- return undefined;
- }
- return checkLVal.call(this, expr, isBinding, checkClashes);
- };
-});
+ return checkLVal.call(this, expr, isBinding, checkClashes);
+ };
+ });
-pp.extend("parseTopLevel", function(parseTopLevel) {
- return /** @this acorn.Parser */ function(node) {
- if (extra.ecmaFeatures.impliedStrict && this.options.ecmaVersion >= 5) {
- this.strict = true;
- }
- return parseTopLevel.call(this, node);
- };
-});
+ instance.extend("parseTopLevel", function(parseTopLevel) {
+ return /** @this acorn.Parser */ function(node) {
+ if (extra.ecmaFeatures.impliedStrict && this.options.ecmaVersion >= 5) {
+ this.strict = true;
+ }
+ return parseTopLevel.call(this, node);
+ };
+ });
-pp.extend("toAssignable", function(toAssignable) {
+ instance.extend("toAssignable", function(toAssignable) {
- return /** @this acorn.Parser */ function(node, isBinding) {
+ return /** @this acorn.Parser */ function(node, isBinding) {
- if (extra.ecmaFeatures.experimentalObjectRestSpread &&
- node.type === "ObjectExpression"
- ) {
- node.type = "ObjectPattern";
+ if (extra.ecmaFeatures.experimentalObjectRestSpread &&
+ node.type === "ObjectExpression"
+ ) {
+ node.type = "ObjectPattern";
- for (var i = 0; i < node.properties.length; i++) {
- var prop = node.properties[i];
+ for (var i = 0; i < node.properties.length; i++) {
+ var prop = node.properties[i];
- if (prop.type === "ExperimentalSpreadProperty") {
- prop.type = "ExperimentalRestProperty";
- } else if (prop.kind !== "init") {
- this.raise(prop.key.start, "Object pattern can't contain getter or setter");
- } else {
- this.toAssignable(prop.value, isBinding);
+ if (prop.type === "ExperimentalSpreadProperty") {
+ prop.type = "ExperimentalRestProperty";
+ } else if (prop.kind !== "init") {
+ this.raise(prop.key.start, "Object pattern can't contain getter or setter");
+ } else {
+ this.toAssignable(prop.value, isBinding);
+ }
}
+
+ return node;
+ } else {
+ return toAssignable.call(this, node, isBinding);
}
+ };
- return node;
- } else {
- return toAssignable.call(this, node, isBinding);
- }
- };
+ });
-});
+ /**
+ * Method to parse an object rest or object spread.
+ * @returns {ASTNode} The node representing object rest or object spread.
+ * @this acorn.Parser
+ */
+ instance.parseObjectRest = function() {
+ var node = this.startNode();
+ this.next();
+ node.argument = this.parseIdent();
+ return this.finishNode(node, "ExperimentalRestProperty");
+ };
-/**
- * Method to parse an object rest or object spread.
- * @returns {ASTNode} The node representing object rest or object spread.
- * @this acorn.Parser
- */
-pp.parseObjectRest = function() {
- var node = this.startNode();
- this.next();
- node.argument = this.parseIdent();
- return this.finishNode(node, "ExperimentalRestProperty");
-};
+ /**
+ * Method to parse an object with object rest or object spread.
+ * @param {boolean} isPattern True if the object is a destructuring pattern.
+ * @param {Object} refShorthandDefaultPos ?
+ * @returns {ASTNode} The node representing object rest or object spread.
+ * @this acorn.Parser
+ */
+ instance.parseObj = function(isPattern, refShorthandDefaultPos) {
+ var node = this.startNode(),
+ first = true,
+ propHash = {};
+ node.properties = [];
+ this.next();
+ while (!this.eat(tt.braceR)) {
+
+ if (!first) {
+ this.expect(tt.comma);
+
+ if (this.afterTrailingComma(tt.braceR)) {
+ break;
+ }
-/**
- * Method to parse an object with object rest or object spread.
- * @param {boolean} isPattern True if the object is a destructuring pattern.
- * @param {Object} refShorthandDefaultPos ?
- * @returns {ASTNode} The node representing object rest or object spread.
- * @this acorn.Parser
- */
-pp.parseObj = function(isPattern, refShorthandDefaultPos) {
- var node = this.startNode(),
- first = true,
- propHash = {};
- node.properties = [];
- this.next();
- while (!this.eat(tt.braceR)) {
-
- if (!first) {
- this.expect(tt.comma);
-
- if (this.afterTrailingComma(tt.braceR)) {
- break;
+ } else {
+ first = false;
}
- } else {
- first = false;
- }
+ var prop = this.startNode(),
+ isGenerator,
+ startPos,
+ startLoc;
- var prop = this.startNode(),
- isGenerator,
- startPos,
- startLoc;
+ if (extra.ecmaFeatures.experimentalObjectRestSpread && this.type === tt.ellipsis) {
+ if (isPattern) {
+ prop = this.parseObjectRest();
+ } else {
+ prop = this.parseSpread();
+ prop.type = "ExperimentalSpreadProperty";
+ }
- if (extra.ecmaFeatures.experimentalObjectRestSpread && this.type === tt.ellipsis) {
- if (isPattern) {
- prop = this.parseObjectRest();
- } else {
- prop = this.parseSpread();
- prop.type = "ExperimentalSpreadProperty";
+ node.properties.push(prop);
+ continue;
}
- node.properties.push(prop);
- continue;
- }
+ if (this.options.ecmaVersion >= 6) {
+ prop.method = false;
+ prop.shorthand = false;
- if (this.options.ecmaVersion >= 6) {
- prop.method = false;
- prop.shorthand = false;
+ if (isPattern || refShorthandDefaultPos) {
+ startPos = this.start;
+ startLoc = this.startLoc;
+ }
- if (isPattern || refShorthandDefaultPos) {
- startPos = this.start;
- startLoc = this.startLoc;
+ if (!isPattern) {
+ isGenerator = this.eat(tt.star);
+ }
}
- if (!isPattern) {
- isGenerator = this.eat(tt.star);
- }
+ this.parsePropertyName(prop);
+ this.parsePropertyValue(prop, isPattern, isGenerator, startPos, startLoc, refShorthandDefaultPos);
+ this.checkPropClash(prop, propHash);
+ node.properties.push(this.finishNode(prop, "Property"));
}
- this.parsePropertyName(prop);
- this.parsePropertyValue(prop, isPattern, isGenerator, startPos, startLoc, refShorthandDefaultPos);
- this.checkPropClash(prop, propHash);
- node.properties.push(this.finishNode(prop, "Property"));
- }
-
- return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression");
-};
+ return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression");
+ };
-/**
- * Overwrites the default raise method to throw Esprima-style errors.
- * @param {int} pos The position of the error.
- * @param {string} message The error message.
- * @throws {SyntaxError} A syntax error.
- * @returns {void}
- */
-pp.raise = function(pos, message) {
- var loc = getLineInfo(this.input, pos);
- var err = new SyntaxError(message);
- err.index = pos;
- err.lineNumber = loc.line;
- err.column = loc.column + 1; // acorn uses 0-based columns
- throw err;
-};
+ /**
+ * Overwrites the default raise method to throw Esprima-style errors.
+ * @param {int} pos The position of the error.
+ * @param {string} message The error message.
+ * @throws {SyntaxError} A syntax error.
+ * @returns {void}
+ */
+ instance.raise = instance.raiseRecoverable = function(pos, message) {
+ var loc = getLineInfo(this.input, pos);
+ var err = new SyntaxError(message);
+ err.index = pos;
+ err.lineNumber = loc.line;
+ err.column = loc.column + 1; // acorn uses 0-based columns
+ throw err;
+ };
-/**
- * Overwrites the default unexpected method to throw Esprima-style errors.
- * @param {int} pos The position of the error.
- * @throws {SyntaxError} A syntax error.
- * @returns {void}
- */
-pp.unexpected = function(pos) {
- var message = "Unexpected token";
+ /**
+ * Overwrites the default unexpected method to throw Esprima-style errors.
+ * @param {int} pos The position of the error.
+ * @throws {SyntaxError} A syntax error.
+ * @returns {void}
+ */
+ instance.unexpected = function(pos) {
+ var message = "Unexpected token";
- if (pos !== null && pos !== undefined) {
- this.pos = pos;
+ if (pos !== null && pos !== undefined) {
+ this.pos = pos;
- if (this.options.locations) {
- while (this.pos < this.lineStart) {
- this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1;
- --this.curLine;
+ if (this.options.locations) {
+ while (this.pos < this.lineStart) {
+ this.lineStart = this.input.lastIndexOf("\n", this.lineStart - 2) + 1;
+ --this.curLine;
+ }
}
- }
-
- this.nextToken();
- }
-
- if (this.end > this.start) {
- message += " " + this.input.slice(this.start, this.end);
- }
- this.raise(this.start, message);
-};
+ this.nextToken();
+ }
-/*
- * Esprima-FB represents JSX strings as tokens called "JSXText", but Acorn-JSX
- * uses regular tt.string without any distinction between this and regular JS
- * strings. As such, we intercept an attempt to read a JSX string and set a flag
- * on extra so that when tokens are converted, the next token will be switched
- * to JSXText via onToken.
- */
-pp.extend("jsx_readString", function(jsxReadString) {
- return /** @this acorn.Parser */ function(quote) {
- var result = jsxReadString.call(this, quote);
- if (this.type === tt.string) {
- extra.jsxAttrValueToken = true;
+ if (this.end > this.start) {
+ message += " " + this.input.slice(this.start, this.end);
}
- return result;
+ this.raise(this.start, message);
};
-});
+
+ /*
+ * Esprima-FB represents JSX strings as tokens called "JSXText", but Acorn-JSX
+ * uses regular tt.string without any distinction between this and regular JS
+ * strings. As such, we intercept an attempt to read a JSX string and set a flag
+ * on extra so that when tokens are converted, the next token will be switched
+ * to JSXText via onToken.
+ */
+ instance.extend("jsx_readString", function(jsxReadString) {
+ return /** @this acorn.Parser */ function(quote) {
+ var result = jsxReadString.call(this, quote);
+ if (this.type === tt.string) {
+ extra.jsxAttrValueToken = true;
+ }
+
+ return result;
+ };
+ });
+};
//------------------------------------------------------------------------------
// Tokenizer
@@ -474,7 +472,10 @@ function tokenize(code, options) {
options = options || {};
var acornOptions = {
- ecmaVersion: 5
+ ecmaVersion: 5,
+ plugins: {
+ espree: true
+ }
};
resetExtra();
@@ -505,12 +506,13 @@ function tokenize(code, options) {
case 3:
case 5:
case 6:
+ case 7:
acornOptions.ecmaVersion = options.ecmaVersion;
extra.ecmaVersion = options.ecmaVersion;
break;
default:
- throw new Error("ecmaVersion must be 3, 5, or 6.");
+ throw new Error("ecmaVersion must be 3, 5, 6, or 7.");
}
}
@@ -595,7 +597,10 @@ function parse(code, options) {
translator,
impliedStrict,
acornOptions = {
- ecmaVersion: 5
+ ecmaVersion: 5,
+ plugins: {
+ espree: true
+ }
};
lastToken = null;
@@ -638,12 +643,13 @@ function parse(code, options) {
case 3:
case 5:
case 6:
+ case 7:
acornOptions.ecmaVersion = options.ecmaVersion;
extra.ecmaVersion = options.ecmaVersion;
break;
default:
- throw new Error("ecmaVersion must be 3, 5, or 6.");
+ throw new Error("ecmaVersion must be 3, 5, 6, or 7.");
}
}
@@ -699,7 +705,11 @@ function parse(code, options) {
}
if (extra.ecmaFeatures.jsx) {
- acornOptions.plugins = { jsx: true };
+ // Should process jsx plugin before espree plugin.
+ acornOptions.plugins = {
+ jsx: true,
+ espree: true
+ };
}
}
diff --git a/tools/eslint/node_modules/espree/lib/comment-attachment.js b/tools/eslint/node_modules/espree/lib/comment-attachment.js
index b0f033dceac1fc..7d12270f8e60fe 100644
--- a/tools/eslint/node_modules/espree/lib/comment-attachment.js
+++ b/tools/eslint/node_modules/espree/lib/comment-attachment.js
@@ -43,6 +43,40 @@ var extra = {
bottomRightStack: []
};
+/** Recursively remove leading comments that are incorrectly added when no
+ * expression exists between comment and the current node
+ * @param {node} node to recursively check
+ * @returns {void}
+ */
+function removeExtraLeadingComments(node) {
+ var i, j;
+
+ if (!node.body) {
+ return;
+ }
+
+ if (Array.isArray(node.body)) {
+ // i must start at 0 so that we can check all indices recursively
+ for (i = 0; i < node.body.length; i++) {
+ // i must be greater than 0 to perform the check on the previous node
+ if (i > 0 && node.body[i].leadingComments) {
+ for (j = 0; j < node.body[i].leadingComments.length; j++) {
+ if (node.body[i].leadingComments[j].range[1] < node.body[i - 1].range[1]) {
+ node.body[i].leadingComments.splice(j, 1);
+ }
+ }
+
+ if (node.body[i].leadingComments.length === 0) {
+ delete node.body[i].leadingComments;
+ }
+ }
+ removeExtraLeadingComments(node.body[i]);
+ }
+ } else {
+ removeExtraLeadingComments(node.body);
+ }
+}
+
//------------------------------------------------------------------------------
// Public
//------------------------------------------------------------------------------
@@ -66,6 +100,8 @@ module.exports = {
i;
if (node.type === astNodeTypes.Program) {
+ removeExtraLeadingComments(node);
+
if (node.body.length > 0) {
return;
}
diff --git a/tools/eslint/node_modules/espree/lib/token-translator.js b/tools/eslint/node_modules/espree/lib/token-translator.js
index fbae0d80ff309a..3c094ab86610ed 100644
--- a/tools/eslint/node_modules/espree/lib/token-translator.js
+++ b/tools/eslint/node_modules/espree/lib/token-translator.js
@@ -131,6 +131,10 @@ TokenTranslator.prototype = {
token.type = Token.Keyword;
}
+ if (extra.ecmaVersion > 5 && (token.value === "yield" || token.value === "let")) {
+ token.type = Token.Keyword;
+ }
+
} else if (type === tt.semi || type === tt.comma ||
type === tt.parenL || type === tt.parenR ||
type === tt.braceL || type === tt.braceR ||
@@ -138,6 +142,7 @@ TokenTranslator.prototype = {
type === tt.colon || type === tt.question ||
type === tt.bracketR || type === tt.ellipsis ||
type === tt.arrow || type === tt.jsxTagStart ||
+ type === tt.incDec || type === tt.starstar ||
type === tt.jsxTagEnd || (type.binop && !type.keyword) ||
type.isAssign) {
diff --git a/tools/eslint/node_modules/espree/package.json b/tools/eslint/node_modules/espree/package.json
index 6ea1d086f9b10a..ad58d12498a640 100644
--- a/tools/eslint/node_modules/espree/package.json
+++ b/tools/eslint/node_modules/espree/package.json
@@ -1,18 +1,18 @@
{
"_args": [
[
- "espree@^3.0.0",
- "/Users/trott/test/node_modules/eslint"
+ "espree@3.1.3",
+ "/Users/silverwind/git/node/tools/package/package"
]
],
- "_from": "espree@>=3.0.0 <4.0.0",
- "_id": "espree@3.0.1",
+ "_from": "espree@3.1.3",
+ "_id": "espree@3.1.3",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/espree",
+ "_location": "/espree",
"_npmOperationalInternal": {
- "host": "packages-6-west.internal.npmjs.com",
- "tmp": "tmp/espree-3.0.1.tgz_1454452460192_0.6580590554513037"
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/espree-3.1.3.tgz_1458322183008_0.931681108660996"
},
"_npmUser": {
"email": "nicholas@nczconsulting.com",
@@ -22,20 +22,20 @@
"_phantomChildren": {},
"_requested": {
"name": "espree",
- "raw": "espree@^3.0.0",
- "rawSpec": "^3.0.0",
+ "raw": "espree@3.1.3",
+ "rawSpec": "3.1.3",
"scope": null,
- "spec": ">=3.0.0 <4.0.0",
- "type": "range"
+ "spec": "3.1.3",
+ "type": "version"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/espree/-/espree-3.0.1.tgz",
- "_shasum": "85a5c95c168563159406b698d3ee7d4c1ca2073f",
+ "_resolved": "https://registry.npmjs.org/espree/-/espree-3.1.3.tgz",
+ "_shasum": "a77ca630986c19b74d95541b845298cd6faa228c",
"_shrinkwrap": null,
- "_spec": "espree@^3.0.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_spec": "espree@3.1.3",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "nicholas+npm@nczconsulting.com",
"name": "Nicholas C. Zakas"
@@ -44,7 +44,7 @@
"url": "http://github.com/eslint/espree.git"
},
"dependencies": {
- "acorn": "^2.7.0",
+ "acorn": "^3.0.4",
"acorn-jsx": "^2.0.1"
},
"description": "An Esprima-compatible JavaScript parser built on Acorn",
@@ -53,7 +53,7 @@
"chai": "^1.10.0",
"eslint": "^2.0.0-beta.1",
"eslint-config-eslint": "^3.0.0",
- "eslint-release": "^0.2.0",
+ "eslint-release": "^0.3.0",
"esprima": "latest",
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
"istanbul": "~0.2.6",
@@ -68,31 +68,31 @@
},
"directories": {},
"dist": {
- "shasum": "85a5c95c168563159406b698d3ee7d4c1ca2073f",
- "tarball": "http://registry.npmjs.org/espree/-/espree-3.0.1.tgz"
+ "shasum": "a77ca630986c19b74d95541b845298cd6faa228c",
+ "tarball": "https://registry.npmjs.org/espree/-/espree-3.1.3.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
- "lib",
- "espree.js"
+ "espree.js",
+ "lib"
],
"homepage": "https://github.com/eslint/espree",
"keywords": [
+ "acorn",
"ast",
"ecmascript",
"javascript",
"parser",
- "syntax",
- "acorn"
+ "syntax"
],
"license": "BSD-2-Clause",
"main": "espree.js",
"maintainers": [
{
- "email": "nicholas@nczconsulting.com",
- "name": "nzakas"
+ "name": "nzakas",
+ "email": "nicholas@nczconsulting.com"
}
],
"name": "espree",
@@ -103,12 +103,13 @@
"url": "git+ssh://git@github.com/eslint/espree.git"
},
"scripts": {
+ "alpharelease": "eslint-prelease alpha",
+ "betarelease": "eslint-prelease beta",
"browserify": "node Makefile.js browserify",
"generate-regex": "node tools/generate-identifier-regex.js",
"lint": "node Makefile.js lint",
- "prerelease": "eslint-release",
"release": "eslint-release",
"test": "npm run-script lint && node Makefile.js test"
},
- "version": "3.0.1"
+ "version": "3.1.3"
}
diff --git a/tools/eslint/node_modules/esprima/ChangeLog b/tools/eslint/node_modules/esprima/ChangeLog
deleted file mode 100644
index 864ab696199e2c..00000000000000
--- a/tools/eslint/node_modules/esprima/ChangeLog
+++ /dev/null
@@ -1,170 +0,0 @@
-2016-02-02: Version 2.7.2
-
- * Fix out-of-bound error location in an invalid string literal (issue 1457)
- * Fix shorthand object destructuring defaults in variable declarations (issue 1459)
-
-2015-12-10: Version 2.7.1
-
- * Do not allow trailing comma in a variable declaration (issue 1360)
- * Fix assignment to `let` in non-strict mode (issue 1376)
- * Fix missing delegate property in YieldExpression (issue 1407)
-
-2015-10-22: Version 2.7.0
-
- * Fix the handling of semicolon in a break statement (issue 1044)
- * Run the test suite with major web browsers (issue 1259, 1317)
- * Allow `let` as an identifier in non-strict mode (issue 1289)
- * Attach orphaned comments as `innerComments` (issue 1328)
- * Add the support for token delegator (issue 1332)
-
-2015-09-01: Version 2.6.0
-
- * Properly allow or prohibit `let` in a binding identifier/pattern (issue 1048, 1098)
- * Add sourceType field for Program node (issue 1159)
- * Ensure that strict mode reserved word binding throw an error (issue 1171)
- * Run the test suite with Node.js and IE 11 on Windows (issue 1294)
- * Allow binding pattern with no initializer in a for statement (issue 1301)
-
-2015-07-31: Version 2.5.0
-
- * Run the test suite in a browser environment (issue 1004)
- * Ensure a comma between imported default binding and named imports (issue 1046)
- * Distinguish `yield` as a keyword vs an identifier (issue 1186)
- * Support ES6 meta property `new.target` (issue 1203)
- * Fix the syntax node for yield with expression (issue 1223)
- * Fix the check of duplicated proto in property names (issue 1225)
- * Fix ES6 Unicode escape in identifier name (issue 1229)
- * Support ES6 IdentifierStart and IdentifierPart (issue 1232)
- * Treat await as a reserved word when parsing as a module (issue 1234)
- * Recognize identifier characters from Unicode SMP (issue 1244)
- * Ensure that export and import can be followed by a comma (issue 1250)
- * Fix yield operator precedence (issue 1262)
-
-2015-07-01: Version 2.4.1
-
- * Fix some cases of comment attachment (issue 1071, 1175)
- * Fix the handling of destructuring in function arguments (issue 1193)
- * Fix invalid ranges in assignment expression (issue 1201)
-
-2015-06-26: Version 2.4.0
-
- * Support ES6 for-of iteration (issue 1047)
- * Support ES6 spread arguments (issue 1169)
- * Minimize npm payload (issue 1191)
-
-2015-06-16: Version 2.3.0
-
- * Support ES6 generator (issue 1033)
- * Improve parsing of regular expressions with `u` flag (issue 1179)
-
-2015-04-17: Version 2.2.0
-
- * Support ES6 import and export declarations (issue 1000)
- * Fix line terminator before arrow not recognized as error (issue 1009)
- * Support ES6 destructuring (issue 1045)
- * Support ES6 template literal (issue 1074)
- * Fix the handling of invalid/incomplete string escape sequences (issue 1106)
- * Fix ES3 static member access restriction (issue 1120)
- * Support for `super` in ES6 class (issue 1147)
-
-2015-03-09: Version 2.1.0
-
- * Support ES6 class (issue 1001)
- * Support ES6 rest parameter (issue 1011)
- * Expand the location of property getter, setter, and methods (issue 1029)
- * Enable TryStatement transition to a single handler (issue 1031)
- * Support ES6 computed property name (issue 1037)
- * Tolerate unclosed block comment (issue 1041)
- * Support ES6 lexical declaration (issue 1065)
-
-2015-02-06: Version 2.0.0
-
- * Support ES6 arrow function (issue 517)
- * Support ES6 Unicode code point escape (issue 521)
- * Improve the speed and accuracy of comment attachment (issue 522)
- * Support ES6 default parameter (issue 519)
- * Support ES6 regular expression flags (issue 557)
- * Fix scanning of implicit octal literals (issue 565)
- * Fix the handling of automatic semicolon insertion (issue 574)
- * Support ES6 method definition (issue 620)
- * Support ES6 octal integer literal (issue 621)
- * Support ES6 binary integer literal (issue 622)
- * Support ES6 object literal property value shorthand (issue 624)
-
-2015-03-03: Version 1.2.5
-
- * Fix scanning of implicit octal literals (issue 565)
-
-2015-02-05: Version 1.2.4
-
- * Fix parsing of LeftHandSideExpression in ForInStatement (issue 560)
- * Fix the handling of automatic semicolon insertion (issue 574)
-
-2015-01-18: Version 1.2.3
-
- * Fix division by this (issue 616)
-
-2014-05-18: Version 1.2.2
-
- * Fix duplicated tokens when collecting comments (issue 537)
-
-2014-05-04: Version 1.2.1
-
- * Ensure that Program node may still have leading comments (issue 536)
-
-2014-04-29: Version 1.2.0
-
- * Fix semicolon handling for expression statement (issue 462, 533)
- * Disallow escaped characters in regular expression flags (issue 503)
- * Performance improvement for location tracking (issue 520)
- * Improve the speed of comment attachment (issue 522)
-
-2014-03-26: Version 1.1.1
-
- * Fix token handling of forward slash after an array literal (issue 512)
-
-2014-03-23: Version 1.1.0
-
- * Optionally attach comments to the owning syntax nodes (issue 197)
- * Simplify binary parsing with stack-based shift reduce (issue 352)
- * Always include the raw source of literals (issue 376)
- * Add optional input source information (issue 386)
- * Tokenizer API for pure lexical scanning (issue 398)
- * Improve the web site and its online demos (issue 337, 400, 404)
- * Performance improvement for location tracking (issue 417, 424)
- * Support HTML comment syntax (issue 451)
- * Drop support for legacy browsers (issue 474)
-
-2013-08-27: Version 1.0.4
-
- * Minimize the payload for packages (issue 362)
- * Fix missing cases on an empty switch statement (issue 436)
- * Support escaped ] in regexp literal character classes (issue 442)
- * Tolerate invalid left-hand side expression (issue 130)
-
-2013-05-17: Version 1.0.3
-
- * Variable declaration needs at least one declarator (issue 391)
- * Fix benchmark's variance unit conversion (issue 397)
- * IE < 9: \v should be treated as vertical tab (issue 405)
- * Unary expressions should always have prefix: true (issue 418)
- * Catch clause should only accept an identifier (issue 423)
- * Tolerate setters without parameter (issue 426)
-
-2012-11-02: Version 1.0.2
-
- Improvement:
-
- * Fix esvalidate JUnit output upon a syntax error (issue 374)
-
-2012-10-28: Version 1.0.1
-
- Improvements:
-
- * esvalidate understands shebang in a Unix shell script (issue 361)
- * esvalidate treats fatal parsing failure as an error (issue 361)
- * Reduce Node.js package via .npmignore (issue 362)
-
-2012-10-22: Version 1.0.0
-
- Initial release.
diff --git a/tools/eslint/node_modules/esprima/package.json b/tools/eslint/node_modules/esprima/package.json
index c1d6e65f9a0334..8746bd43a071b5 100644
--- a/tools/eslint/node_modules/esprima/package.json
+++ b/tools/eslint/node_modules/esprima/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"esprima@^2.6.0",
- "/Users/trott/test/node_modules/eslint/node_modules/js-yaml"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/js-yaml"
]
],
"_from": "esprima@>=2.6.0 <3.0.0",
"_id": "esprima@2.7.2",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/esprima",
+ "_location": "/esprima",
"_nodeVersion": "4.2.2",
"_npmOperationalInternal": {
"host": "packages-9-west.internal.npmjs.com",
@@ -30,13 +30,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/js-yaml"
+ "/js-yaml"
],
"_resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.2.tgz",
"_shasum": "f43be543609984eae44c933ac63352a6af35f339",
"_shrinkwrap": null,
"_spec": "esprima@^2.6.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/js-yaml",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/js-yaml",
"author": {
"email": "ariya.hidayat@gmail.com",
"name": "Ariya Hidayat"
@@ -77,15 +77,15 @@
"directories": {},
"dist": {
"shasum": "f43be543609984eae44c933ac63352a6af35f339",
- "tarball": "http://registry.npmjs.org/esprima/-/esprima-2.7.2.tgz"
+ "tarball": "https://registry.npmjs.org/esprima/-/esprima-2.7.2.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"bin",
- "unit-tests.js",
- "esprima.js"
+ "esprima.js",
+ "unit-tests.js"
],
"gitHead": "eb05a03b18b8433ab1ebeabea635a949219cd75e",
"homepage": "http://esprima.org",
@@ -100,8 +100,8 @@
"main": "esprima.js",
"maintainers": [
{
- "email": "ariya.hidayat@gmail.com",
- "name": "ariya"
+ "name": "ariya",
+ "email": "ariya.hidayat@gmail.com"
}
],
"name": "esprima",
diff --git a/tools/eslint/node_modules/esrecurse/README.md b/tools/eslint/node_modules/esrecurse/README.md
deleted file mode 100644
index e767592faab07e..00000000000000
--- a/tools/eslint/node_modules/esrecurse/README.md
+++ /dev/null
@@ -1,86 +0,0 @@
-### Esrecurse [](http://travis-ci.org/estools/esrecurse)
-
-Esrecurse ([esrecurse](http://github.com/estools/esrecurse)) is
-[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
-recursive traversing functionality.
-
-### Example Usage
-
-The following code will output all variables declared at the root of a file.
-
-```javascript
-esrecurse.visit(ast, {
- XXXStatement: function (node) {
- this.visit(node.left);
- // do something...
- this.visit(node.right);
- }
-});
-```
-
-We can use `Visitor` instance.
-
-```javascript
-var visitor = new esrecurse.Visitor({
- XXXStatement: function (node) {
- this.visit(node.left);
- // do something...
- this.visit(node.right);
- }
-});
-
-visitor.visit(ast);
-```
-
-We can inherit `Visitor` instance easily.
-
-```javascript
-function DerivedVisitor() {
- esrecurse.Visitor.call(/* this for constructor */ this /* visitor object automatically becomes this. */);
-}
-util.inherits(DerivedVisitor, esrecurse.Visitor);
-DerivedVisitor.prototype.XXXStatement = function (node) {
- this.visit(node.left);
- // do something...
- this.visit(node.right);
-};
-```
-
-And you can invoke default visiting operation inside custom visit operation.
-
-```javascript
-function DerivedVisitor() {
- esrecurse.Visitor.call(/* this for constructor */ this /* visitor object automatically becomes this. */);
-}
-util.inherits(DerivedVisitor, esrecurse.Visitor);
-DerivedVisitor.prototype.XXXStatement = function (node) {
- // do something...
- this.visitChildren(node);
-};
-```
-
-### License
-
-Copyright (C) 2014 [Yusuke Suzuki](http://github.com/Constellation)
- (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/tools/eslint/node_modules/esrecurse/esrecurse.js b/tools/eslint/node_modules/esrecurse/esrecurse.js
index 0774f86f6bc6de..0805e67f391041 100644
--- a/tools/eslint/node_modules/esrecurse/esrecurse.js
+++ b/tools/eslint/node_modules/esrecurse/esrecurse.js
@@ -24,18 +24,17 @@
(function () {
'use strict';
- var estraverse,
+ var assign,
+ estraverse,
isArray,
objectKeys;
+ assign = require('object-assign');
estraverse = require('estraverse');
- isArray = Array.isArray;
- if (!isArray) {
- isArray = function isArray(array) {
- return Object.prototype.toString.call(array) === '[object Array]';
- };
- }
+ isArray = Array.isArray || function isArray(array) {
+ return Object.prototype.toString.call(array) === '[object Array]';
+ };
objectKeys = Object.keys || function (o) {
var keys = [], key;
@@ -56,8 +55,18 @@
return (nodeType === estraverse.Syntax.ObjectExpression || nodeType === estraverse.Syntax.ObjectPattern) && key === 'properties';
}
- function Visitor(visitor) {
+ function Visitor(visitor, options) {
+ options = options || {};
+
this.__visitor = visitor || this;
+ this.__childVisitorKeys = options.childVisitorKeys
+ ? assign({}, estraverse.VisitorKeys, options.childVisitorKeys)
+ : estraverse.VisitorKeys;
+ if (options.fallback === 'iteration') {
+ this.__fallback = objectKeys;
+ } else if (typeof options.fallback === 'function') {
+ this.__fallback = options.fallback;
+ }
}
/* Default method for visiting children.
@@ -73,15 +82,19 @@
type = node.type || estraverse.Syntax.Property;
- children = estraverse.VisitorKeys[type];
+ children = this.__childVisitorKeys[type];
if (!children) {
- children = objectKeys(node);
+ if (this.__fallback) {
+ children = this.__fallback(node);
+ } else {
+ throw new Error('Unknown node type ' + type + '.');
+ }
}
for (i = 0, iz = children.length; i < iz; ++i) {
child = node[children[i]];
if (child) {
- if (Array.isArray(child)) {
+ if (isArray(child)) {
for (j = 0, jz = child.length; j < jz; ++j) {
if (child[j]) {
if (isNode(child[j]) || isProperty(type, children[i])) {
@@ -114,8 +127,8 @@
exports.version = require('./package.json').version;
exports.Visitor = Visitor;
- exports.visit = function (node, visitor) {
- var v = new Visitor(visitor);
+ exports.visit = function (node, visitor, options) {
+ var v = new Visitor(visitor, options);
v.visit(node);
};
}());
diff --git a/tools/eslint/node_modules/esrecurse/gulpfile.coffee b/tools/eslint/node_modules/esrecurse/gulpfile.coffee
deleted file mode 100644
index e7781896774265..00000000000000
--- a/tools/eslint/node_modules/esrecurse/gulpfile.coffee
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright (C) 2014 Yusuke Suzuki
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-gulp = require 'gulp'
-mocha = require 'gulp-mocha'
-eslint = require 'gulp-eslint'
-minimist = require 'minimist'
-git = require 'gulp-git'
-bump = require 'gulp-bump'
-filter = require 'gulp-filter'
-tagVersion = require 'gulp-tag-version'
-require 'coffee-script/register'
-
-SOURCE = [
- '*.js'
-]
-
-ESLINT_OPTION =
- rules:
- 'quotes': 0
- 'eqeqeq': 0
- 'no-use-before-define': 0
- 'no-shadow': 0
- 'no-new': 0
- 'no-underscore-dangle': 0
- 'no-multi-spaces': false
- 'no-native-reassign': 0
- 'no-loop-func': 0
- env:
- 'node': true
-
-gulp.task 'test', ->
- options = minimist process.argv.slice(2),
- string: 'test',
- default:
- test: 'test/*.coffee'
- return gulp.src(options.test).pipe(mocha reporter: 'spec')
-
-gulp.task 'lint', ->
- return gulp.src(SOURCE)
- .pipe(eslint(ESLINT_OPTION))
- .pipe(eslint.formatEach('stylish', process.stderr))
- .pipe(eslint.failOnError())
-
-inc = (importance) ->
- gulp.src(['./package.json'])
- .pipe(bump({type: importance}))
- .pipe(gulp.dest('./'))
- .pipe(git.commit('Bumps package version'))
- .pipe(filter('package.json'))
- .pipe(tagVersion({
- prefix: ''
- }))
-
-gulp.task 'travis', [ 'lint', 'test' ]
-gulp.task 'default', [ 'travis' ]
-
-gulp.task 'patch', [ ], -> inc('patch')
-gulp.task 'minor', [ ], -> inc('minor')
-gulp.task 'major', [ ], -> inc('major')
diff --git a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/.jshintrc b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/.jshintrc
deleted file mode 100644
index f642dae7683b81..00000000000000
--- a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/.jshintrc
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "curly": true,
- "eqeqeq": true,
- "immed": true,
- "eqnull": true,
- "latedef": true,
- "noarg": true,
- "noempty": true,
- "quotmark": "single",
- "undef": true,
- "unused": true,
- "strict": true,
- "trailing": true,
-
- "node": true
-}
diff --git a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/README.md b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/README.md
index 4242c513309e9a..acefff6473c19c 100644
--- a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/README.md
+++ b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/README.md
@@ -66,7 +66,7 @@ var tree = {
estraverse.traverse(tree, {
enter: function (node) { },
- // Extending the exising traversing rules.
+ // Extending the existing traversing rules.
keys: {
// TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ]
TestExpression: ['argument']
diff --git a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/estraverse.js b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/estraverse.js
index a668aa3e61123f..0de6cec24f3ec6 100644
--- a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/estraverse.js
+++ b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/estraverse.js
@@ -185,6 +185,7 @@
LabeledStatement: 'LabeledStatement',
LogicalExpression: 'LogicalExpression',
MemberExpression: 'MemberExpression',
+ MetaProperty: 'MetaProperty',
MethodDefinition: 'MethodDefinition',
ModuleSpecifier: 'ModuleSpecifier',
NewExpression: 'NewExpression',
@@ -196,7 +197,7 @@
ReturnStatement: 'ReturnStatement',
SequenceExpression: 'SequenceExpression',
SpreadElement: 'SpreadElement',
- SuperExpression: 'SuperExpression',
+ Super: 'Super',
SwitchStatement: 'SwitchStatement',
SwitchCase: 'SwitchCase',
TaggedTemplateExpression: 'TaggedTemplateExpression',
@@ -258,6 +259,7 @@
LabeledStatement: ['label', 'body'],
LogicalExpression: ['left', 'right'],
MemberExpression: ['object', 'property'],
+ MetaProperty: ['meta', 'property'],
MethodDefinition: ['key', 'value'],
ModuleSpecifier: [],
NewExpression: ['callee', 'arguments'],
@@ -269,7 +271,7 @@
ReturnStatement: ['argument'],
SequenceExpression: ['expressions'],
SpreadElement: ['argument'],
- SuperExpression: ['super'],
+ Super: [],
SwitchStatement: ['discriminant', 'cases'],
SwitchCase: ['test', 'consequent'],
TaggedTemplateExpression: ['tag', 'quasi'],
@@ -504,7 +506,7 @@
}
node = element.node;
- nodeType = element.wrap || node.type;
+ nodeType = node.type || element.wrap;
candidates = this.__keys[nodeType];
if (!candidates) {
if (this.__fallback) {
@@ -658,7 +660,7 @@
continue;
}
- nodeType = element.wrap || node.type;
+ nodeType = node.type || element.wrap;
candidates = this.__keys[nodeType];
if (!candidates) {
if (this.__fallback) {
diff --git a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/gulpfile.js b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/gulpfile.js
deleted file mode 100644
index 8772bbcca542a8..00000000000000
--- a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/gulpfile.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- Copyright (C) 2014 Yusuke Suzuki
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-'use strict';
-
-var gulp = require('gulp'),
- git = require('gulp-git'),
- bump = require('gulp-bump'),
- filter = require('gulp-filter'),
- tagVersion = require('gulp-tag-version');
-
-var TEST = [ 'test/*.js' ];
-var POWERED = [ 'powered-test/*.js' ];
-var SOURCE = [ 'src/**/*.js' ];
-
-/**
- * Bumping version number and tagging the repository with it.
- * Please read http://semver.org/
- *
- * You can use the commands
- *
- * gulp patch # makes v0.1.0 -> v0.1.1
- * gulp feature # makes v0.1.1 -> v0.2.0
- * gulp release # makes v0.2.1 -> v1.0.0
- *
- * To bump the version numbers accordingly after you did a patch,
- * introduced a feature or made a backwards-incompatible release.
- */
-
-function inc(importance) {
- // get all the files to bump version in
- return gulp.src(['./package.json'])
- // bump the version number in those files
- .pipe(bump({type: importance}))
- // save it back to filesystem
- .pipe(gulp.dest('./'))
- // commit the changed version number
- .pipe(git.commit('Bumps package version'))
- // read only one file to get the version number
- .pipe(filter('package.json'))
- // **tag it in the repository**
- .pipe(tagVersion({
- prefix: ''
- }));
-}
-
-gulp.task('patch', [ ], function () { return inc('patch'); })
-gulp.task('minor', [ ], function () { return inc('minor'); })
-gulp.task('major', [ ], function () { return inc('major'); })
diff --git a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/package.json b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/package.json
index 82a1d3ad1cbf72..29cb591629b48c 100644
--- a/tools/eslint/node_modules/esrecurse/node_modules/estraverse/package.json
+++ b/tools/eslint/node_modules/esrecurse/node_modules/estraverse/package.json
@@ -1,37 +1,38 @@
{
"_args": [
[
- "estraverse@~3.1.0",
- "/Users/trott/test/node_modules/eslint/node_modules/esrecurse"
+ "estraverse@~4.1.0",
+ "/Users/silverwind/git/node/tools/package/package/node_modules/esrecurse"
]
],
- "_from": "estraverse@>=3.1.0 <3.2.0",
- "_id": "estraverse@3.1.0",
+ "_from": "estraverse@>=4.1.0 <4.2.0",
+ "_id": "estraverse@4.1.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/esrecurse/estraverse",
+ "_location": "/esrecurse/estraverse",
+ "_nodeVersion": "4.1.1",
"_npmUser": {
"email": "utatane.tea@gmail.com",
"name": "constellation"
},
- "_npmVersion": "2.0.0-alpha-5",
+ "_npmVersion": "2.14.4",
"_phantomChildren": {},
"_requested": {
"name": "estraverse",
- "raw": "estraverse@~3.1.0",
- "rawSpec": "~3.1.0",
+ "raw": "estraverse@~4.1.0",
+ "rawSpec": "~4.1.0",
"scope": null,
- "spec": ">=3.1.0 <3.2.0",
+ "spec": ">=4.1.0 <4.2.0",
"type": "range"
},
"_requiredBy": [
- "/eslint/esrecurse"
+ "/esrecurse"
],
- "_resolved": "https://registry.npmjs.org/estraverse/-/estraverse-3.1.0.tgz",
- "_shasum": "15e28a446b8b82bc700ccc8b96c78af4da0d6cba",
+ "_resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.1.1.tgz",
+ "_shasum": "f6caca728933a850ef90661d0e17982ba47111a2",
"_shrinkwrap": null,
- "_spec": "estraverse@~3.1.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/esrecurse",
+ "_spec": "estraverse@~4.1.0",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/esrecurse",
"bugs": {
"url": "https://github.com/estools/estraverse/issues"
},
@@ -51,29 +52,28 @@
},
"directories": {},
"dist": {
- "shasum": "15e28a446b8b82bc700ccc8b96c78af4da0d6cba",
- "tarball": "http://registry.npmjs.org/estraverse/-/estraverse-3.1.0.tgz"
+ "shasum": "f6caca728933a850ef90661d0e17982ba47111a2",
+ "tarball": "http://registry.npmjs.org/estraverse/-/estraverse-4.1.1.tgz"
},
"engines": {
"node": ">=0.10.0"
},
- "gitHead": "166ebbe0a8d45ceb2391b6f5ef5d1bab6bfb267a",
+ "gitHead": "bbcccbfe98296585e4311c8755e1d00dcd581e3c",
"homepage": "https://github.com/estools/estraverse",
- "licenses": [
- {
- "type": "BSD",
- "url": "http://github.com/estools/estraverse/raw/master/LICENSE.BSD"
- }
- ],
+ "license": "BSD-2-Clause",
"main": "estraverse.js",
"maintainers": [
{
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "name": "constellation",
+ "email": "utatane.tea@gmail.com"
+ },
+ {
+ "name": "michaelficarra",
+ "email": "npm@michael.ficarra.me"
},
{
- "email": "npm@michael.ficarra.me",
- "name": "michaelficarra"
+ "name": "nzakas",
+ "email": "nicholas@nczconsulting.com"
}
],
"name": "estraverse",
@@ -88,5 +88,5 @@
"test": "npm run-script lint && npm run-script unit-test",
"unit-test": "mocha --compilers coffee:coffee-script/register"
},
- "version": "3.1.0"
+ "version": "4.1.1"
}
diff --git a/tools/eslint/node_modules/esrecurse/package.json b/tools/eslint/node_modules/esrecurse/package.json
index 25a9651eb032ff..ad0ce09c24e32b 100644
--- a/tools/eslint/node_modules/esrecurse/package.json
+++ b/tools/eslint/node_modules/esrecurse/package.json
@@ -1,83 +1,88 @@
{
"_args": [
[
- "esrecurse@^3.1.1",
- "/Users/trott/test/node_modules/eslint/node_modules/escope"
+ "esrecurse@^4.1.0",
+ "/Users/silverwind/git/node/tools/package/package/node_modules/escope"
]
],
- "_from": "esrecurse@>=3.1.1 <4.0.0",
- "_id": "esrecurse@3.1.1",
+ "_from": "esrecurse@>=4.1.0 <5.0.0",
+ "_id": "esrecurse@4.1.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/esrecurse",
+ "_location": "/esrecurse",
+ "_nodeVersion": "0.12.9",
+ "_npmOperationalInternal": {
+ "host": "packages-13-west.internal.npmjs.com",
+ "tmp": "tmp/esrecurse-4.1.0.tgz_1457712782215_0.15950557170435786"
+ },
"_npmUser": {
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "email": "nicholas@nczconsulting.com",
+ "name": "nzakas"
},
- "_npmVersion": "2.0.0-alpha-5",
+ "_npmVersion": "2.14.9",
"_phantomChildren": {},
"_requested": {
"name": "esrecurse",
- "raw": "esrecurse@^3.1.1",
- "rawSpec": "^3.1.1",
+ "raw": "esrecurse@^4.1.0",
+ "rawSpec": "^4.1.0",
"scope": null,
- "spec": ">=3.1.1 <4.0.0",
+ "spec": ">=4.1.0 <5.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint/escope"
+ "/escope"
],
- "_resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-3.1.1.tgz",
- "_shasum": "8feb963699d4d1b2d65a576cd4b1296672a0f0e9",
+ "_resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.1.0.tgz",
+ "_shasum": "4713b6536adf7f2ac4f327d559e7756bff648220",
"_shrinkwrap": null,
- "_spec": "esrecurse@^3.1.1",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/escope",
+ "_spec": "esrecurse@^4.1.0",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/escope",
"bugs": {
"url": "https://github.com/estools/esrecurse/issues"
},
"dependencies": {
- "estraverse": "~3.1.0"
+ "estraverse": "~4.1.0",
+ "object-assign": "^4.0.1"
},
- "description": "ECMAScript scope analyzer",
+ "description": "ECMAScript AST recursive visitor",
"devDependencies": {
- "chai": "^2.1.1",
+ "chai": "^3.3.0",
"coffee-script": "^1.9.1",
"esprima": "^2.1.0",
- "gulp": "~3.8.10",
- "gulp-bump": "^0.2.2",
- "gulp-eslint": "^0.6.0",
- "gulp-filter": "^2.0.2",
+ "gulp": "^3.9.0",
+ "gulp-bump": "^1.0.0",
+ "gulp-eslint": "^1.0.0",
+ "gulp-filter": "^3.0.1",
"gulp-git": "^1.1.0",
- "gulp-mocha": "~2.0.0",
+ "gulp-mocha": "^2.1.3",
"gulp-tag-version": "^1.2.1",
- "jsdoc": "~3.3.0-alpha10",
+ "jsdoc": "^3.3.0-alpha10",
"minimist": "^1.1.0"
},
"directories": {},
"dist": {
- "shasum": "8feb963699d4d1b2d65a576cd4b1296672a0f0e9",
- "tarball": "http://registry.npmjs.org/esrecurse/-/esrecurse-3.1.1.tgz"
+ "shasum": "4713b6536adf7f2ac4f327d559e7756bff648220",
+ "tarball": "http://registry.npmjs.org/esrecurse/-/esrecurse-4.1.0.tgz"
},
"engines": {
"node": ">=0.10.0"
},
- "gitHead": "600a8aac5e7b313875a873134fd110b47a76fc77",
- "homepage": "http://github.com/estools/esrecurse",
- "licenses": [
- {
- "type": "BSD",
- "url": "http://github.com/estools/esrecurse/raw/master/LICENSE.BSD"
- }
- ],
+ "gitHead": "63a34714834bd7ad2063054bd4abb24fb82ca667",
+ "homepage": "https://github.com/estools/esrecurse",
+ "license": "BSD-2-Clause",
"main": "esrecurse.js",
"maintainers": [
{
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "name": "constellation",
+ "email": "utatane.tea@gmail.com"
+ },
+ {
+ "name": "michaelficarra",
+ "email": "npm@michael.ficarra.me"
},
{
- "email": "npm@michael.ficarra.me",
- "name": "michaelficarra"
+ "name": "nzakas",
+ "email": "nicholas@nczconsulting.com"
}
],
"name": "esrecurse",
@@ -85,12 +90,12 @@
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
- "url": "git+ssh://git@github.com/estools/esrecurse.git"
+ "url": "git+https://github.com/estools/esrecurse.git"
},
"scripts": {
"lint": "gulp lint",
"test": "gulp travis",
"unit-test": "gulp test"
},
- "version": "3.1.1"
+ "version": "4.1.0"
}
diff --git a/tools/eslint/node_modules/estraverse-fb/.npmignore b/tools/eslint/node_modules/estraverse-fb/.npmignore
deleted file mode 100644
index da23d0d4bab050..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/.npmignore
+++ /dev/null
@@ -1,25 +0,0 @@
-# Logs
-logs
-*.log
-
-# Runtime data
-pids
-*.pid
-*.seed
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-
-# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directory
-# Deployed apps should consider commenting this line out:
-# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
-node_modules
diff --git a/tools/eslint/node_modules/estraverse-fb/.travis.yml b/tools/eslint/node_modules/estraverse-fb/.travis.yml
deleted file mode 100644
index ffb9f710ac283a..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/.travis.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-language: node_js
-node_js: '0.10'
diff --git a/tools/eslint/node_modules/estraverse-fb/LICENSE b/tools/eslint/node_modules/estraverse-fb/LICENSE
deleted file mode 100644
index 54530b38082641..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Ingvar Stepanyan
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
diff --git a/tools/eslint/node_modules/estraverse-fb/README.md b/tools/eslint/node_modules/estraverse-fb/README.md
deleted file mode 100644
index 20b02966b871d0..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/README.md
+++ /dev/null
@@ -1,34 +0,0 @@
-estraverse-fb
-=============
-[](https://travis-ci.org/RReverser/estraverse-fb)
-
-Drop-in for estraverse that enables traversal over React's JSX and Flow nodes using monkey-patching technique.
-
-You can use estraverse-fb in two possible ways:
-
-* by default, you just require it and it injects needed keys into your installed version of estraverse (it's installed automatically if you don't have it yet):
- ```javascript
- var estraverse = require('estraverse-fb');
- /* same as:
- require('estraverse-fb');
- var estraverse = require('estraverse');
- */
-
- estraverse.traverse(ast, {
- enter: ...,
- leave: ...
- });
- ```
-
-* alternatively, you can use it manually for selected traversals:
- ```javascript
- var jsxKeys = require('estraverse-fb/keys');
-
- estraverse.traverse(ast, {
- enter: ...,
- leave: ...,
- keys: jsxKeys
- })
-```
-
-Check out [estraverse page](https://github.com/Constellation/estraverse) for detailed usage.
diff --git a/tools/eslint/node_modules/estraverse-fb/estraverse-fb.js b/tools/eslint/node_modules/estraverse-fb/estraverse-fb.js
deleted file mode 100644
index 795ec40e62a2ae..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/estraverse-fb.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var estraverse = module.exports = require('estraverse');
-
-var VisitorKeys = require('./keys');
-
-for (var nodeType in VisitorKeys) {
- estraverse.Syntax[nodeType] = nodeType;
-
- var keys = VisitorKeys[nodeType];
-
- if (keys) {
- estraverse.VisitorKeys[nodeType] = keys;
- }
-}
\ No newline at end of file
diff --git a/tools/eslint/node_modules/estraverse-fb/keys.js b/tools/eslint/node_modules/estraverse-fb/keys.js
deleted file mode 100644
index 47df04a58ba37d..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/keys.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var unprefixedKeys = {
- Identifier: [],
- NamespacedName: ['namespace', 'name'],
- MemberExpression: ['object', 'property'],
- EmptyExpression: [],
- ExpressionContainer: ['expression'],
- Element: ['openingElement', 'closingElement', 'children'],
- ClosingElement: ['name'],
- OpeningElement: ['name', 'attributes'],
- Attribute: ['name', 'value'],
- Text: null,
- SpreadAttribute: ['argument']
-};
-
-var flowKeys = {
- Type: [],
- AnyTypeAnnotation: [],
- VoidTypeAnnotation: [],
- NumberTypeAnnotation: [],
- StringTypeAnnotation: [],
- StringLiteralTypeAnnotation: ["value", "raw"],
- BooleanTypeAnnotation: [],
- TypeAnnotation: ["typeAnnotation"],
- NullableTypeAnnotation: ["typeAnnotation"],
- FunctionTypeAnnotation: ["params", "returnType", "rest", "typeParameters"],
- FunctionTypeParam: ["name", "typeAnnotation", "optional"],
- ObjectTypeAnnotation: ["properties"],
- ObjectTypeProperty: ["key", "value", "optional"],
- ObjectTypeIndexer: ["id", "key", "value"],
- ObjectTypeCallProperty: ["value"],
- QualifiedTypeIdentifier: ["qualification", "id"],
- GenericTypeAnnotation: ["id", "typeParameters"],
- MemberTypeAnnotation: ["object", "property"],
- UnionTypeAnnotation: ["types"],
- IntersectionTypeAnnotation: ["types"],
- TypeofTypeAnnotation: ["argument"],
- TypeParameterDeclaration: ["params"],
- TypeParameterInstantiation: ["params"],
- ClassProperty: ["key", "typeAnnotation"],
- ClassImplements: [],
- InterfaceDeclaration: ["id", "body", "extends"],
- InterfaceExtends: ["id"],
- TypeAlias: ["id", "typeParameters", "right"],
- TupleTypeAnnotation: ["types"],
- DeclareVariable: ["id"],
- DeclareFunction: ["id"],
- DeclareClass: ["id"],
- DeclareModule: ["id", "body"]
-};
-
-for (var key in unprefixedKeys) {
- exports['XJS' + key] = exports['JSX' + key] = unprefixedKeys[key];
-}
-
-for (var key in flowKeys) {
- exports[key] = flowKeys[key];
-}
\ No newline at end of file
diff --git a/tools/eslint/node_modules/estraverse-fb/package.json b/tools/eslint/node_modules/estraverse-fb/package.json
deleted file mode 100644
index f645d728aea7cb..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_args": [
- [
- "estraverse-fb@^1.3.1",
- "/Users/trott/test/node_modules/eslint"
- ]
- ],
- "_from": "estraverse-fb@>=1.3.1 <2.0.0",
- "_id": "estraverse-fb@1.3.1",
- "_inCache": true,
- "_installable": true,
- "_location": "/eslint/estraverse-fb",
- "_npmUser": {
- "email": "me@rreverser.com",
- "name": "rreverser"
- },
- "_npmVersion": "1.4.28",
- "_phantomChildren": {},
- "_requested": {
- "name": "estraverse-fb",
- "raw": "estraverse-fb@^1.3.1",
- "rawSpec": "^1.3.1",
- "scope": null,
- "spec": ">=1.3.1 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/eslint"
- ],
- "_resolved": "https://registry.npmjs.org/estraverse-fb/-/estraverse-fb-1.3.1.tgz",
- "_shasum": "160e75a80e605b08ce894bcce2fe3e429abf92bf",
- "_shrinkwrap": null,
- "_spec": "estraverse-fb@^1.3.1",
- "_where": "/Users/trott/test/node_modules/eslint",
- "author": {
- "email": "me@rreverser.com",
- "name": "Ingvar Stepanyan",
- "url": "https://github.com/RReverser"
- },
- "bugs": {
- "url": "https://github.com/RReverser/estraverse-fb/issues"
- },
- "dependencies": {},
- "description": "Drop-in for estraverse that enables traversal over React's JSX nodes.",
- "devDependencies": {
- "chai": "^1.9.1",
- "esprima-fb": "^8001.1001.0-dev-harmony-fb",
- "estraverse": "^1.7.0",
- "mocha": "^1.20.0"
- },
- "directories": {},
- "dist": {
- "shasum": "160e75a80e605b08ce894bcce2fe3e429abf92bf",
- "tarball": "http://registry.npmjs.org/estraverse-fb/-/estraverse-fb-1.3.1.tgz"
- },
- "gitHead": "776d565d897ad91e20efedd926972c7ab0c7221e",
- "homepage": "https://github.com/RReverser/estraverse-fb",
- "keywords": [
- "traverse",
- "ast",
- "react",
- "jsx"
- ],
- "license": "MIT",
- "main": "estraverse-fb.js",
- "maintainers": [
- {
- "email": "me@rreverser.com",
- "name": "rreverser"
- }
- ],
- "name": "estraverse-fb",
- "optionalDependencies": {},
- "peerDependencies": {
- "estraverse": "*"
- },
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/RReverser/estraverse-fb.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "1.3.1"
-}
diff --git a/tools/eslint/node_modules/estraverse-fb/test.js b/tools/eslint/node_modules/estraverse-fb/test.js
deleted file mode 100644
index e0fca88a01689a..00000000000000
--- a/tools/eslint/node_modules/estraverse-fb/test.js
+++ /dev/null
@@ -1,116 +0,0 @@
-var assert = require('chai').assert;
-var parse = require('esprima-fb').parse;
-var originalKeys = require('./keys');
-
-describe('works', function () {
- var code = ['class MyClass{',
- 'x: number;',
- 'y: number;',
- 'constructor(x: number, y: number){',
- 'this.x = x;',
- 'this.y = y;',
- '}',
- 'render(){',
- 'return !{}',
- '}',
- '}'].join('\n');
-
- var ast = parse(code);
-
- var expectedKeys = [
- 'ClassProperty',
- 'TypeAnnotation',
- 'NumberTypeAnnotation',
- 'ClassProperty',
- 'TypeAnnotation',
- 'NumberTypeAnnotation',
- 'XJSElement',
- 'XJSOpeningElement',
- 'XJSNamespacedName',
- 'XJSIdentifier',
- 'XJSIdentifier',
- 'XJSAttribute',
- 'XJSIdentifier',
- 'XJSAttribute',
- 'XJSIdentifier',
- 'XJSExpressionContainer',
- 'XJSSpreadAttribute',
- 'XJSClosingElement',
- 'XJSNamespacedName',
- 'XJSIdentifier',
- 'XJSIdentifier',
- 'XJSElement',
- 'XJSOpeningElement',
- 'XJSMemberExpression',
- 'XJSIdentifier',
- 'XJSIdentifier',
- 'XJSClosingElement',
- 'XJSMemberExpression',
- 'XJSIdentifier',
- 'XJSIdentifier',
- 'XJSExpressionContainer',
- 'XJSEmptyExpression'
- ];
-
- beforeEach(function () {
- for (var key in require.cache) {
- delete require.cache[key];
- }
- });
-
- it('directly from dependency', function () {
- var traverse = require('./').traverse;
- var actualKeys = [];
- var actualTypeKeys = [];
-
- traverse(ast, {
- enter: function (node) {
- if (originalKeys[node.type] != null) {
- actualKeys.push(node.type);
- }
- }
- });
-
- assert.deepEqual(actualKeys, expectedKeys);
- });
-
- it('in injected mode', function () {
- require('./');
- var traverse = require('estraverse').traverse;
- var actualKeys = [];
-
- traverse(ast, {
- enter: function (node) {
- if (originalKeys[node.type] != null) {
- actualKeys.push(node.type);
- }
- }
- });
-
- assert.deepEqual(actualKeys, expectedKeys);
- });
-
- it('in single-pass mode', function () {
- var traverse = require('estraverse').traverse;
- var keys = require('./keys');
-
- var actualKeys = [];
-
- traverse(ast, {
- enter: function (node) {
- if (originalKeys[node.type] != null) {
- actualKeys.push(node.type);
- }
- },
- keys: keys
- });
-
- assert.throws(function () {
- traverse(ast, {
- enter: function () {}
- });
- });
-
- assert.deepEqual(actualKeys, expectedKeys);
- });
-});
diff --git a/tools/eslint/node_modules/estraverse/.babelrc b/tools/eslint/node_modules/estraverse/.babelrc
new file mode 100644
index 00000000000000..dc1bc4f9cdba17
--- /dev/null
+++ b/tools/eslint/node_modules/estraverse/.babelrc
@@ -0,0 +1,3 @@
+{
+ "presets": ["es2015"]
+}
\ No newline at end of file
diff --git a/tools/eslint/node_modules/estraverse/.jshintrc b/tools/eslint/node_modules/estraverse/.jshintrc
deleted file mode 100644
index f642dae7683b81..00000000000000
--- a/tools/eslint/node_modules/estraverse/.jshintrc
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "curly": true,
- "eqeqeq": true,
- "immed": true,
- "eqnull": true,
- "latedef": true,
- "noarg": true,
- "noempty": true,
- "quotmark": "single",
- "undef": true,
- "unused": true,
- "strict": true,
- "trailing": true,
-
- "node": true
-}
diff --git a/tools/eslint/node_modules/estraverse/README.md b/tools/eslint/node_modules/estraverse/README.md
deleted file mode 100644
index acefff6473c19c..00000000000000
--- a/tools/eslint/node_modules/estraverse/README.md
+++ /dev/null
@@ -1,124 +0,0 @@
-### Estraverse [](http://travis-ci.org/estools/estraverse)
-
-Estraverse ([estraverse](http://github.com/estools/estraverse)) is
-[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
-traversal functions from [esmangle project](http://github.com/estools/esmangle).
-
-### Documentation
-
-You can find usage docs at [wiki page](https://github.com/estools/estraverse/wiki/Usage).
-
-### Example Usage
-
-The following code will output all variables declared at the root of a file.
-
-```javascript
-estraverse.traverse(ast, {
- enter: function (node, parent) {
- if (node.type == 'FunctionExpression' || node.type == 'FunctionDeclaration')
- return estraverse.VisitorOption.Skip;
- },
- leave: function (node, parent) {
- if (node.type == 'VariableDeclarator')
- console.log(node.id.name);
- }
-});
-```
-
-We can use `this.skip`, `this.remove` and `this.break` functions instead of using Skip, Remove and Break.
-
-```javascript
-estraverse.traverse(ast, {
- enter: function (node) {
- this.break();
- }
-});
-```
-
-And estraverse provides `estraverse.replace` function. When returning node from `enter`/`leave`, current node is replaced with it.
-
-```javascript
-result = estraverse.replace(tree, {
- enter: function (node) {
- // Replace it with replaced.
- if (node.type === 'Literal')
- return replaced;
- }
-});
-```
-
-By passing `visitor.keys` mapping, we can extend estraverse traversing functionality.
-
-```javascript
-// This tree contains a user-defined `TestExpression` node.
-var tree = {
- type: 'TestExpression',
-
- // This 'argument' is the property containing the other **node**.
- argument: {
- type: 'Literal',
- value: 20
- },
-
- // This 'extended' is the property not containing the other **node**.
- extended: true
-};
-estraverse.traverse(tree, {
- enter: function (node) { },
-
- // Extending the existing traversing rules.
- keys: {
- // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ]
- TestExpression: ['argument']
- }
-});
-```
-
-By passing `visitor.fallback` option, we can control the behavior when encountering unknown nodes.
-```javascript
-// This tree contains a user-defined `TestExpression` node.
-var tree = {
- type: 'TestExpression',
-
- // This 'argument' is the property containing the other **node**.
- argument: {
- type: 'Literal',
- value: 20
- },
-
- // This 'extended' is the property not containing the other **node**.
- extended: true
-};
-estraverse.traverse(tree, {
- enter: function (node) { },
-
- // Iterating the child **nodes** of unknown nodes.
- fallback: 'iteration'
-});
-```
-
-### License
-
-Copyright (C) 2012-2013 [Yusuke Suzuki](http://github.com/Constellation)
- (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/tools/eslint/node_modules/estraverse/estraverse.js b/tools/eslint/node_modules/estraverse/estraverse.js
index 0de6cec24f3ec6..09ae4783247f0c 100644
--- a/tools/eslint/node_modules/estraverse/estraverse.js
+++ b/tools/eslint/node_modules/estraverse/estraverse.js
@@ -432,7 +432,13 @@
this.__leavelist = [];
this.__current = null;
this.__state = null;
- this.__fallback = visitor.fallback === 'iteration';
+ this.__fallback = null;
+ if (visitor.fallback === 'iteration') {
+ this.__fallback = objectKeys;
+ } else if (typeof visitor.fallback === 'function') {
+ this.__fallback = visitor.fallback;
+ }
+
this.__keys = VisitorKeys;
if (visitor.keys) {
this.__keys = extend(objectCreate(this.__keys), visitor.keys);
@@ -510,7 +516,7 @@
candidates = this.__keys[nodeType];
if (!candidates) {
if (this.__fallback) {
- candidates = objectKeys(node);
+ candidates = this.__fallback(node);
} else {
throw new Error('Unknown node type ' + nodeType + '.');
}
@@ -548,6 +554,20 @@
};
Controller.prototype.replace = function replace(root, visitor) {
+ var worklist,
+ leavelist,
+ node,
+ nodeType,
+ target,
+ element,
+ current,
+ current2,
+ candidates,
+ candidate,
+ sentinel,
+ outer,
+ key;
+
function removeElem(element) {
var i,
key,
@@ -573,20 +593,6 @@
}
}
- var worklist,
- leavelist,
- node,
- nodeType,
- target,
- element,
- current,
- current2,
- candidates,
- candidate,
- sentinel,
- outer,
- key;
-
this.__initialize(root, visitor);
sentinel = {};
@@ -664,7 +670,7 @@
candidates = this.__keys[nodeType];
if (!candidates) {
if (this.__fallback) {
- candidates = objectKeys(node);
+ candidates = this.__fallback(node);
} else {
throw new Error('Unknown node type ' + nodeType + '.');
}
diff --git a/tools/eslint/node_modules/estraverse/gulpfile.js b/tools/eslint/node_modules/estraverse/gulpfile.js
deleted file mode 100644
index 8772bbcca542a8..00000000000000
--- a/tools/eslint/node_modules/estraverse/gulpfile.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- Copyright (C) 2014 Yusuke Suzuki
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-'use strict';
-
-var gulp = require('gulp'),
- git = require('gulp-git'),
- bump = require('gulp-bump'),
- filter = require('gulp-filter'),
- tagVersion = require('gulp-tag-version');
-
-var TEST = [ 'test/*.js' ];
-var POWERED = [ 'powered-test/*.js' ];
-var SOURCE = [ 'src/**/*.js' ];
-
-/**
- * Bumping version number and tagging the repository with it.
- * Please read http://semver.org/
- *
- * You can use the commands
- *
- * gulp patch # makes v0.1.0 -> v0.1.1
- * gulp feature # makes v0.1.1 -> v0.2.0
- * gulp release # makes v0.2.1 -> v1.0.0
- *
- * To bump the version numbers accordingly after you did a patch,
- * introduced a feature or made a backwards-incompatible release.
- */
-
-function inc(importance) {
- // get all the files to bump version in
- return gulp.src(['./package.json'])
- // bump the version number in those files
- .pipe(bump({type: importance}))
- // save it back to filesystem
- .pipe(gulp.dest('./'))
- // commit the changed version number
- .pipe(git.commit('Bumps package version'))
- // read only one file to get the version number
- .pipe(filter('package.json'))
- // **tag it in the repository**
- .pipe(tagVersion({
- prefix: ''
- }));
-}
-
-gulp.task('patch', [ ], function () { return inc('patch'); })
-gulp.task('minor', [ ], function () { return inc('minor'); })
-gulp.task('major', [ ], function () { return inc('major'); })
diff --git a/tools/eslint/node_modules/estraverse/package.json b/tools/eslint/node_modules/estraverse/package.json
index 0c93cb3587e3ad..91c7179f8dfb36 100644
--- a/tools/eslint/node_modules/estraverse/package.json
+++ b/tools/eslint/node_modules/estraverse/package.json
@@ -1,47 +1,52 @@
{
"_args": [
[
- "estraverse@^4.1.1",
- "/Users/trott/test/node_modules/eslint"
+ "estraverse@^4.2.0",
+ "/Users/silverwind/git/node/tools/package/package"
]
],
- "_from": "estraverse@>=4.1.1 <5.0.0",
- "_id": "estraverse@4.1.1",
+ "_from": "estraverse@>=4.2.0 <5.0.0",
+ "_id": "estraverse@4.2.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/estraverse",
- "_nodeVersion": "4.1.1",
+ "_location": "/estraverse",
+ "_nodeVersion": "0.12.9",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/estraverse-4.2.0.tgz_1457646738925_0.7118953282479197"
+ },
"_npmUser": {
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "email": "nicholas@nczconsulting.com",
+ "name": "nzakas"
},
- "_npmVersion": "2.14.4",
+ "_npmVersion": "2.14.9",
"_phantomChildren": {},
"_requested": {
"name": "estraverse",
- "raw": "estraverse@^4.1.1",
- "rawSpec": "^4.1.1",
+ "raw": "estraverse@^4.2.0",
+ "rawSpec": "^4.2.0",
"scope": null,
- "spec": ">=4.1.1 <5.0.0",
+ "spec": ">=4.2.0 <5.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint",
- "/eslint/escope"
+ "/",
+ "/escope"
],
- "_resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.1.1.tgz",
- "_shasum": "f6caca728933a850ef90661d0e17982ba47111a2",
+ "_resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz",
+ "_shasum": "0dee3fed31fcd469618ce7342099fc1afa0bdb13",
"_shrinkwrap": null,
- "_spec": "estraverse@^4.1.1",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_spec": "estraverse@^4.2.0",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"bugs": {
"url": "https://github.com/estools/estraverse/issues"
},
"dependencies": {},
"description": "ECMAScript JS AST traversal functions",
"devDependencies": {
+ "babel-preset-es2015": "^6.3.13",
+ "babel-register": "^6.3.13",
"chai": "^2.1.1",
- "coffee-script": "^1.8.0",
"espree": "^1.11.0",
"gulp": "^3.8.10",
"gulp-bump": "^0.2.2",
@@ -53,28 +58,28 @@
},
"directories": {},
"dist": {
- "shasum": "f6caca728933a850ef90661d0e17982ba47111a2",
- "tarball": "http://registry.npmjs.org/estraverse/-/estraverse-4.1.1.tgz"
+ "shasum": "0dee3fed31fcd469618ce7342099fc1afa0bdb13",
+ "tarball": "http://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz"
},
"engines": {
"node": ">=0.10.0"
},
- "gitHead": "bbcccbfe98296585e4311c8755e1d00dcd581e3c",
+ "gitHead": "6f6a4e99653908e859c7c10d04d9518bf4844ede",
"homepage": "https://github.com/estools/estraverse",
"license": "BSD-2-Clause",
"main": "estraverse.js",
"maintainers": [
{
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "name": "constellation",
+ "email": "utatane.tea@gmail.com"
},
{
- "email": "npm@michael.ficarra.me",
- "name": "michaelficarra"
+ "name": "michaelficarra",
+ "email": "npm@michael.ficarra.me"
},
{
- "email": "nicholas@nczconsulting.com",
- "name": "nzakas"
+ "name": "nzakas",
+ "email": "nicholas@nczconsulting.com"
}
],
"name": "estraverse",
@@ -87,7 +92,7 @@
"scripts": {
"lint": "jshint estraverse.js",
"test": "npm run-script lint && npm run-script unit-test",
- "unit-test": "mocha --compilers coffee:coffee-script/register"
+ "unit-test": "mocha --compilers js:babel-register"
},
- "version": "4.1.1"
+ "version": "4.2.0"
}
diff --git a/tools/eslint/node_modules/esutils/package.json b/tools/eslint/node_modules/esutils/package.json
index 2df344559204f6..74b5ae3f36a52a 100644
--- a/tools/eslint/node_modules/esutils/package.json
+++ b/tools/eslint/node_modules/esutils/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"esutils@^2.0.2",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "esutils@>=2.0.2 <3.0.0",
"_id": "esutils@2.0.2",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/esutils",
+ "_location": "/esutils",
"_nodeVersion": "0.12.0",
"_npmUser": {
"email": "npm@michael.ficarra.me",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
"_resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
"_shasum": "0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b",
"_shrinkwrap": null,
"_spec": "esutils@^2.0.2",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"bugs": {
"url": "https://github.com/estools/esutils/issues"
},
@@ -72,12 +72,12 @@
"main": "lib/utils.js",
"maintainers": [
{
- "email": "utatane.tea@gmail.com",
- "name": "constellation"
+ "name": "constellation",
+ "email": "utatane.tea@gmail.com"
},
{
- "email": "npm@michael.ficarra.me",
- "name": "michaelficarra"
+ "name": "michaelficarra",
+ "email": "npm@michael.ficarra.me"
}
],
"name": "esutils",
diff --git a/tools/eslint/node_modules/event-emitter/.npmignore b/tools/eslint/node_modules/event-emitter/.npmignore
deleted file mode 100644
index 68ebfddd24fb33..00000000000000
--- a/tools/eslint/node_modules/event-emitter/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-.DS_Store
-/.lintcache
-/node_modules
diff --git a/tools/eslint/node_modules/event-emitter/.travis.yml b/tools/eslint/node_modules/event-emitter/.travis.yml
deleted file mode 100644
index 628c3f34b5708a..00000000000000
--- a/tools/eslint/node_modules/event-emitter/.travis.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-language: node_js
-node_js:
- - 0.12
- - 4
-
-before_install:
- - mkdir node_modules; ln -s ../ node_modules/event-emitter
-
-notifications:
- email:
- - medikoo+event-emitter@medikoo.com
-
-script: "npm test && npm run lint"
diff --git a/tools/eslint/node_modules/event-emitter/CHANGES b/tools/eslint/node_modules/event-emitter/CHANGES
deleted file mode 100644
index 2e5e8e7d761aef..00000000000000
--- a/tools/eslint/node_modules/event-emitter/CHANGES
+++ /dev/null
@@ -1,69 +0,0 @@
-v0.3.4 -- 2015.10.02
-* Add `emitError` extension
-
-v0.3.3 -- 2015.01.30
-* Fix reference to module in benchmarks
-
-v0.3.2 -- 2015.01.20
-* Improve documentation
-* Configure lint scripts
-* Fix spelling of LICENSE
-
-v0.3.1 -- 2014.04.25
-* Fix redefinition of emit method in `pipe`
-* Allow custom emit method name in `pipe`
-
-v0.3.0 -- 2014.04.24
-* Move out from lib folder
-* Do not expose all utilities on main module
-* Support objects which do not inherit from Object.prototype
-* Improve arguments validation
-* Improve internals
-* Remove Makefile
-* Improve documentation
-
-v0.2.2 -- 2013.06.05
-* `unify` functionality
-
-v0.2.1 -- 2012.09.21
-* hasListeners module
-* Simplified internal id (improves performance a little), now it starts with
- underscore (hint it's private). Abstracted it to external module to have it
- one place
-* Documentation cleanup
-
-v0.2.0 -- 2012.09.19
-* Trashed poor implementation of v0.1 and came up with something solid
-
-Changes:
-* Improved performance
-* Fixed bugs event-emitter is now cross-prototype safe and not affected by
- unexpected methods attached to Object.prototype
-* Removed support for optional "emitter" argument in `emit` method, it was
- cumbersome to use, and should be solved just with event objects
-
-v0.1.5 -- 2012.08.06
-* (maintanance) Do not use descriptors for internal objects, it exposes V8 bugs
- (only Node v0.6 branch)
-
-v0.1.4 -- 2012.06.13
-* Fix detachment of listeners added with 'once'
-
-v0.1.3 -- 2012.05.28
-* Updated es5-ext to latest version (v0.8)
-* Cleared package.json so it's in npm friendly format
-
-v0.1.2 -- 2012.01.22
-* Support for emitter argument in emit function, this allows some listeners not
- to be notified about event
-* allOff - removes all listeners from object
-* All methods returns self object
-* Internal fixes
-* Travis CI integration
-
-v0.1.1 -- 2011.08.08
-* Added TAD test suite to devDependencies, configured test commands.
- Tests can be run with 'make test' or 'npm test'
-
-v0.1.0 -- 2011.08.08
-Initial version
diff --git a/tools/eslint/node_modules/event-emitter/benchmark/many-on.js b/tools/eslint/node_modules/event-emitter/benchmark/many-on.js
deleted file mode 100644
index e09bfde8489386..00000000000000
--- a/tools/eslint/node_modules/event-emitter/benchmark/many-on.js
+++ /dev/null
@@ -1,83 +0,0 @@
-'use strict';
-
-// Benchmark comparing performance of event emit for many listeners
-// To run it, do following in memoizee package path:
-//
-// $ npm install eventemitter2 signals
-// $ node benchmark/many-on.js
-
-var forEach = require('es5-ext/object/for-each')
- , pad = require('es5-ext/string/#/pad')
-
- , now = Date.now
-
- , time, count = 1000000, i, data = {}
- , ee, native, ee2, signals, a = {}, b = {};
-
-ee = (function () {
- var ee = require('../')();
- ee.on('test', function () { return arguments; });
- ee.on('test', function () { return arguments; });
- return ee.on('test', function () { return arguments; });
-}());
-
-native = (function () {
- var ee = require('events');
- ee = new ee.EventEmitter();
- ee.on('test', function () { return arguments; });
- ee.on('test', function () { return arguments; });
- return ee.on('test', function () { return arguments; });
-}());
-
-ee2 = (function () {
- var ee = require('eventemitter2');
- ee = new ee.EventEmitter2();
- ee.on('test', function () { return arguments; });
- ee.on('test', function () { return arguments; });
- return ee.on('test', function () { return arguments; });
-}());
-
-signals = (function () {
- var Signal = require('signals')
- , ee = { test: new Signal() };
- ee.test.add(function () { return arguments; });
- ee.test.add(function () { return arguments; });
- ee.test.add(function () { return arguments; });
- return ee;
-}());
-
-console.log("Emit for 3 listeners", "x" + count + ":\n");
-
-i = count;
-time = now();
-while (i--) {
- ee.emit('test', a, b);
-}
-data["event-emitter (this implementation)"] = now() - time;
-
-i = count;
-time = now();
-while (i--) {
- native.emit('test', a, b);
-}
-data["EventEmitter (Node.js native)"] = now() - time;
-
-i = count;
-time = now();
-while (i--) {
- ee2.emit('test', a, b);
-}
-data.EventEmitter2 = now() - time;
-
-i = count;
-time = now();
-while (i--) {
- signals.test.dispatch(a, b);
-}
-data.Signals = now() - time;
-
-forEach(data, function (value, name, obj, index) {
- console.log(index + 1 + ":", pad.call(value, " ", 5), name);
-}, null, function (a, b) {
- return this[a] - this[b];
-});
diff --git a/tools/eslint/node_modules/event-emitter/benchmark/single-on.js b/tools/eslint/node_modules/event-emitter/benchmark/single-on.js
deleted file mode 100644
index 99decbdae72566..00000000000000
--- a/tools/eslint/node_modules/event-emitter/benchmark/single-on.js
+++ /dev/null
@@ -1,73 +0,0 @@
-'use strict';
-
-// Benchmark comparing performance of event emit for single listener
-// To run it, do following in memoizee package path:
-//
-// $ npm install eventemitter2 signals
-// $ node benchmark/single-on.js
-
-var forEach = require('es5-ext/object/for-each')
- , pad = require('es5-ext/string/#/pad')
-
- , now = Date.now
-
- , time, count = 1000000, i, data = {}
- , ee, native, ee2, signals, a = {}, b = {};
-
-ee = (function () {
- var ee = require('../');
- return ee().on('test', function () { return arguments; });
-}());
-
-native = (function () {
- var ee = require('events');
- return (new ee.EventEmitter()).on('test', function () { return arguments; });
-}());
-
-ee2 = (function () {
- var ee = require('eventemitter2');
- return (new ee.EventEmitter2()).on('test', function () { return arguments; });
-}());
-
-signals = (function () {
- var Signal = require('signals')
- , ee = { test: new Signal() };
- ee.test.add(function () { return arguments; });
- return ee;
-}());
-
-console.log("Emit for single listener", "x" + count + ":\n");
-
-i = count;
-time = now();
-while (i--) {
- ee.emit('test', a, b);
-}
-data["event-emitter (this implementation)"] = now() - time;
-
-i = count;
-time = now();
-while (i--) {
- native.emit('test', a, b);
-}
-data["EventEmitter (Node.js native)"] = now() - time;
-
-i = count;
-time = now();
-while (i--) {
- ee2.emit('test', a, b);
-}
-data.EventEmitter2 = now() - time;
-
-i = count;
-time = now();
-while (i--) {
- signals.test.dispatch(a, b);
-}
-data.Signals = now() - time;
-
-forEach(data, function (value, name, obj, index) {
- console.log(index + 1 + ":", pad.call(value, " ", 5), name);
-}, null, function (a, b) {
- return this[a] - this[b];
-});
diff --git a/tools/eslint/node_modules/event-emitter/package.json b/tools/eslint/node_modules/event-emitter/package.json
index 47195fee0d32f1..bb1914b8c4568e 100644
--- a/tools/eslint/node_modules/event-emitter/package.json
+++ b/tools/eslint/node_modules/event-emitter/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"event-emitter@~0.3.4",
- "/Users/trott/test/node_modules/eslint/node_modules/es6-map"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map"
]
],
"_from": "event-emitter@>=0.3.4 <0.4.0",
"_id": "event-emitter@0.3.4",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/event-emitter",
+ "_location": "/event-emitter",
"_nodeVersion": "4.1.1",
"_npmUser": {
"email": "medikoo+npm@medikoo.com",
@@ -26,14 +26,14 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/es6-map",
- "/eslint/es6-set"
+ "/es6-map",
+ "/es6-set"
],
"_resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.4.tgz",
"_shasum": "8d63ddfb4cfe1fae3b32ca265c4c720222080bb5",
"_shrinkwrap": null,
"_spec": "event-emitter@~0.3.4",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/es6-map",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map",
"author": {
"email": "medyk@medikoo.com",
"name": "Mariusz Nowak",
@@ -55,24 +55,24 @@
"directories": {},
"dist": {
"shasum": "8d63ddfb4cfe1fae3b32ca265c4c720222080bb5",
- "tarball": "http://registry.npmjs.org/event-emitter/-/event-emitter-0.3.4.tgz"
+ "tarball": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.4.tgz"
},
"gitHead": "adc27b543a53528b9af8a82f7c88db3292f0faa0",
"homepage": "https://github.com/medikoo/event-emitter#readme",
"keywords": [
+ "emitter",
"event",
"events",
- "trigger",
- "observer",
"listener",
- "emitter",
- "pubsub"
+ "observer",
+ "pubsub",
+ "trigger"
],
"license": "MIT",
"maintainers": [
{
- "email": "medikoo+npm@medikoo.com",
- "name": "medikoo"
+ "name": "medikoo",
+ "email": "medikoo+npm@medikoo.com"
}
],
"name": "event-emitter",
diff --git a/tools/eslint/node_modules/event-emitter/test/all-off.js b/tools/eslint/node_modules/event-emitter/test/all-off.js
deleted file mode 100644
index 8aa872e9c9478d..00000000000000
--- a/tools/eslint/node_modules/event-emitter/test/all-off.js
+++ /dev/null
@@ -1,48 +0,0 @@
-'use strict';
-
-var ee = require('../');
-
-module.exports = function (t, a) {
- var x, count, count2;
-
- x = ee();
- count = 0;
- count2 = 0;
- x.on('foo', function () {
- ++count;
- });
- x.on('foo', function () {
- ++count;
- });
- x.on('bar', function () {
- ++count2;
- });
- x.on('bar', function () {
- ++count2;
- });
- t(x, 'foo');
- x.emit('foo');
- x.emit('bar');
- a(count, 0, "All off: type");
- a(count2, 2, "All off: ohter type");
-
- count = 0;
- count2 = 0;
- x.on('foo', function () {
- ++count;
- });
- x.on('foo', function () {
- ++count;
- });
- x.on('bar', function () {
- ++count2;
- });
- x.on('bar', function () {
- ++count2;
- });
- t(x);
- x.emit('foo');
- x.emit('bar');
- a(count, 0, "All off: type");
- a(count2, 0, "All off: other type");
-};
diff --git a/tools/eslint/node_modules/event-emitter/test/emit-error.js b/tools/eslint/node_modules/event-emitter/test/emit-error.js
deleted file mode 100644
index edac350afb56ce..00000000000000
--- a/tools/eslint/node_modules/event-emitter/test/emit-error.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var customError = require('es5-ext/error/custom')
- , ee = require('../');
-
-module.exports = function (t, a) {
- var x, error = customError('Some error', 'ERROR_TEST'), emitted;
-
- x = ee();
- a.throws(function () { t.call(x, error); }, 'ERROR_TEST');
- x.on('error', function (err) { emitted = err; });
- t.call(x, error);
- a(emitted, error);
-};
diff --git a/tools/eslint/node_modules/event-emitter/test/has-listeners.js b/tools/eslint/node_modules/event-emitter/test/has-listeners.js
deleted file mode 100644
index 875b048a4193cb..00000000000000
--- a/tools/eslint/node_modules/event-emitter/test/has-listeners.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict';
-
-var ee = require('../');
-
-module.exports = function (t) {
- var x, y;
- return {
- Any: function (a) {
- a(t(true), false, "Primitive");
- a(t({ events: [] }), false, "Other object");
- a(t(x = ee()), false, "Emitter: empty");
-
- x.on('test', y = function () {});
- a(t(x), true, "Emitter: full");
- x.off('test', y);
- a(t(x), false, "Emitter: empty but touched");
- x.once('test', y = function () {});
- a(t(x), true, "Emitter: full: Once");
- x.off('test', y);
- a(t(x), false, "Emitter: empty but touched by once");
- },
- Specific: function (a) {
- a(t(true, 'test'), false, "Primitive");
- a(t({ events: [] }, 'test'), false, "Other object");
- a(t(x = ee(), 'test'), false, "Emitter: empty");
-
- x.on('test', y = function () {});
- a(t(x, 'test'), true, "Emitter: full");
- a(t(x, 'foo'), false, "Emitter: full, other event");
- x.off('test', y);
- a(t(x, 'test'), false, "Emitter: empty but touched");
- a(t(x, 'foo'), false, "Emitter: empty but touched, other event");
-
- x.once('test', y = function () {});
- a(t(x, 'test'), true, "Emitter: full: Once");
- a(t(x, 'foo'), false, "Emitter: full: Once, other event");
- x.off('test', y);
- a(t(x, 'test'), false, "Emitter: empty but touched by once");
- a(t(x, 'foo'), false, "Emitter: empty but touched by once, other event");
- }
- };
-};
diff --git a/tools/eslint/node_modules/event-emitter/test/index.js b/tools/eslint/node_modules/event-emitter/test/index.js
deleted file mode 100644
index c7c3f24c476862..00000000000000
--- a/tools/eslint/node_modules/event-emitter/test/index.js
+++ /dev/null
@@ -1,107 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var x = t(), y, count, count2, count3, count4, test, listener1, listener2;
-
- x.emit('none');
-
- test = "Once: ";
- count = 0;
- x.once('foo', function (a1, a2, a3) {
- a(this, x, test + "Context");
- a.deep([a1, a2, a3], ['foo', x, 15], test + "Arguments");
- ++count;
- });
-
- x.emit('foobar');
- a(count, 0, test + "Not invoked on other event");
- x.emit('foo', 'foo', x, 15);
- a(count, 1, test + "Emitted");
- x.emit('foo');
- a(count, 1, test + "Emitted once");
-
- test = "On & Once: ";
- count = 0;
- x.on('foo', listener1 = function (a1, a2, a3) {
- a(this, x, test + "Context");
- a.deep([a1, a2, a3], ['foo', x, 15], test + "Arguments");
- ++count;
- });
- count2 = 0;
- x.once('foo', listener2 = function (a1, a2, a3) {
- a(this, x, test + "Context");
- a.deep([a1, a2, a3], ['foo', x, 15], test + "Arguments");
- ++count2;
- });
-
- x.emit('foobar');
- a(count, 0, test + "Not invoked on other event");
- x.emit('foo', 'foo', x, 15);
- a(count, 1, test + "Emitted");
- x.emit('foo', 'foo', x, 15);
- a(count, 2, test + "Emitted twice");
- a(count2, 1, test + "Emitted once");
- x.off('foo', listener1);
- x.emit('foo');
- a(count, 2, test + "Not emitter after off");
-
- count = 0;
- x.once('foo', listener1 = function () { ++count; });
-
- x.off('foo', listener1);
- x.emit('foo');
- a(count, 0, "Once Off: Not emitted");
-
- count = 0;
- x.on('foo', listener2 = function () {});
- x.once('foo', listener1 = function () { ++count; });
-
- x.off('foo', listener1);
- x.emit('foo');
- a(count, 0, "Once Off (multi): Not emitted");
- x.off('foo', listener2);
-
- test = "Prototype Share: ";
-
- y = Object.create(x);
-
- count = 0;
- count2 = 0;
- count3 = 0;
- count4 = 0;
- x.on('foo', function () {
- ++count;
- });
- y.on('foo', function () {
- ++count2;
- });
- x.once('foo', function () {
- ++count3;
- });
- y.once('foo', function () {
- ++count4;
- });
- x.emit('foo');
- a(count, 1, test + "x on count");
- a(count2, 0, test + "y on count");
- a(count3, 1, test + "x once count");
- a(count4, 0, test + "y once count");
-
- y.emit('foo');
- a(count, 1, test + "x on count");
- a(count2, 1, test + "y on count");
- a(count3, 1, test + "x once count");
- a(count4, 1, test + "y once count");
-
- x.emit('foo');
- a(count, 2, test + "x on count");
- a(count2, 1, test + "y on count");
- a(count3, 1, test + "x once count");
- a(count4, 1, test + "y once count");
-
- y.emit('foo');
- a(count, 2, test + "x on count");
- a(count2, 2, test + "y on count");
- a(count3, 1, test + "x once count");
- a(count4, 1, test + "y once count");
-};
diff --git a/tools/eslint/node_modules/event-emitter/test/pipe.js b/tools/eslint/node_modules/event-emitter/test/pipe.js
deleted file mode 100644
index 9d15d6dae308dc..00000000000000
--- a/tools/eslint/node_modules/event-emitter/test/pipe.js
+++ /dev/null
@@ -1,53 +0,0 @@
-'use strict';
-
-var ee = require('../');
-
-module.exports = function (t, a) {
- var x = {}, y = {}, z = {}, count, count2, count3, pipe;
-
- ee(x);
- x = Object.create(x);
- ee(y);
- ee(z);
-
- count = 0;
- count2 = 0;
- count3 = 0;
- x.on('foo', function () {
- ++count;
- });
- y.on('foo', function () {
- ++count2;
- });
- z.on('foo', function () {
- ++count3;
- });
-
- x.emit('foo');
- a(count, 1, "Pre pipe, x");
- a(count2, 0, "Pre pipe, y");
- a(count3, 0, "Pre pipe, z");
-
- pipe = t(x, y);
- x.emit('foo');
- a(count, 2, "Post pipe, x");
- a(count2, 1, "Post pipe, y");
- a(count3, 0, "Post pipe, z");
-
- y.emit('foo');
- a(count, 2, "Post pipe, on y, x");
- a(count2, 2, "Post pipe, on y, y");
- a(count3, 0, "Post pipe, on y, z");
-
- t(x, z);
- x.emit('foo');
- a(count, 3, "Post pipe z, x");
- a(count2, 3, "Post pipe z, y");
- a(count3, 1, "Post pipe z, z");
-
- pipe.close();
- x.emit('foo');
- a(count, 4, "Close pipe y, x");
- a(count2, 3, "Close pipe y, y");
- a(count3, 2, "Close pipe y, z");
-};
diff --git a/tools/eslint/node_modules/event-emitter/test/unify.js b/tools/eslint/node_modules/event-emitter/test/unify.js
deleted file mode 100644
index 69295e0657ad50..00000000000000
--- a/tools/eslint/node_modules/event-emitter/test/unify.js
+++ /dev/null
@@ -1,123 +0,0 @@
-'use strict';
-
-var ee = require('../');
-
-module.exports = function (t) {
-
- return {
- "": function (a) {
- var x = {}, y = {}, z = {}, count, count2, count3;
-
- ee(x);
- ee(y);
- ee(z);
-
- count = 0;
- count2 = 0;
- count3 = 0;
- x.on('foo', function () { ++count; });
- y.on('foo', function () { ++count2; });
- z.on('foo', function () { ++count3; });
-
- x.emit('foo');
- a(count, 1, "Pre unify, x");
- a(count2, 0, "Pre unify, y");
- a(count3, 0, "Pre unify, z");
-
- t(x, y);
- a(x.__ee__, y.__ee__, "Post unify y");
- x.emit('foo');
- a(count, 2, "Post unify, x");
- a(count2, 1, "Post unify, y");
- a(count3, 0, "Post unify, z");
-
- y.emit('foo');
- a(count, 3, "Post unify, on y, x");
- a(count2, 2, "Post unify, on y, y");
- a(count3, 0, "Post unify, on y, z");
-
- t(x, z);
- a(x.__ee__, x.__ee__, "Post unify z");
- x.emit('foo');
- a(count, 4, "Post unify z, x");
- a(count2, 3, "Post unify z, y");
- a(count3, 1, "Post unify z, z");
- },
- "On empty": function (a) {
- var x = {}, y = {}, z = {}, count, count2, count3;
-
- ee(x);
- ee(y);
- ee(z);
-
- count = 0;
- count2 = 0;
- count3 = 0;
- y.on('foo', function () { ++count2; });
- x.emit('foo');
- a(count, 0, "Pre unify, x");
- a(count2, 0, "Pre unify, y");
- a(count3, 0, "Pre unify, z");
-
- t(x, y);
- a(x.__ee__, y.__ee__, "Post unify y");
- x.on('foo', function () { ++count; });
- x.emit('foo');
- a(count, 1, "Post unify, x");
- a(count2, 1, "Post unify, y");
- a(count3, 0, "Post unify, z");
-
- y.emit('foo');
- a(count, 2, "Post unify, on y, x");
- a(count2, 2, "Post unify, on y, y");
- a(count3, 0, "Post unify, on y, z");
-
- t(x, z);
- a(x.__ee__, z.__ee__, "Post unify z");
- z.on('foo', function () { ++count3; });
- x.emit('foo');
- a(count, 3, "Post unify z, x");
- a(count2, 3, "Post unify z, y");
- a(count3, 1, "Post unify z, z");
- },
- Many: function (a) {
- var x = {}, y = {}, z = {}, count, count2, count3;
-
- ee(x);
- ee(y);
- ee(z);
-
- count = 0;
- count2 = 0;
- count3 = 0;
- x.on('foo', function () { ++count; });
- y.on('foo', function () { ++count2; });
- y.on('foo', function () { ++count2; });
- z.on('foo', function () { ++count3; });
-
- x.emit('foo');
- a(count, 1, "Pre unify, x");
- a(count2, 0, "Pre unify, y");
- a(count3, 0, "Pre unify, z");
-
- t(x, y);
- a(x.__ee__, y.__ee__, "Post unify y");
- x.emit('foo');
- a(count, 2, "Post unify, x");
- a(count2, 2, "Post unify, y");
- a(count3, 0, "Post unify, z");
-
- y.emit('foo');
- a(count, 3, "Post unify, on y, x");
- a(count2, 4, "Post unify, on y, y");
- a(count3, 0, "Post unify, on y, z");
-
- t(x, z);
- a(x.__ee__, x.__ee__, "Post unify z");
- x.emit('foo');
- a(count, 4, "Post unify z, x");
- a(count2, 6, "Post unify z, y");
- a(count3, 1, "Post unify z, z");
- }
- };
-};
diff --git a/tools/eslint/node_modules/exit-hook/package.json b/tools/eslint/node_modules/exit-hook/package.json
index 43411de64dce5c..ebf49d5d5ef08e 100644
--- a/tools/eslint/node_modules/exit-hook/package.json
+++ b/tools/eslint/node_modules/exit-hook/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"exit-hook@^1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/restore-cursor"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/restore-cursor"
]
],
"_from": "exit-hook@>=1.0.0 <2.0.0",
"_id": "exit-hook@1.1.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/exit-hook",
+ "_location": "/exit-hook",
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
@@ -25,13 +25,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/restore-cursor"
+ "/restore-cursor"
],
"_resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
"_shasum": "f05ca233b48c05d54fff07765df8507e95c02ff8",
"_shrinkwrap": null,
"_spec": "exit-hook@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/restore-cursor",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/restore-cursor",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -58,25 +58,25 @@
],
"homepage": "https://github.com/sindresorhus/exit-hook",
"keywords": [
+ "event",
"exit",
- "quit",
- "process",
- "hook",
"graceful",
"handler",
+ "hook",
+ "kill",
+ "process",
+ "quit",
"shutdown",
- "sigterm",
"sigint",
- "terminate",
- "kill",
+ "sigterm",
"stop",
- "event"
+ "terminate"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "exit-hook",
diff --git a/tools/eslint/node_modules/fast-levenshtein/package.json b/tools/eslint/node_modules/fast-levenshtein/package.json
index 5acd6fe7782c49..7425a2655d5a61 100644
--- a/tools/eslint/node_modules/fast-levenshtein/package.json
+++ b/tools/eslint/node_modules/fast-levenshtein/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"fast-levenshtein@^1.1.0",
- "/Users/trott/test/node_modules/eslint/node_modules/optionator"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/optionator"
]
],
"_from": "fast-levenshtein@>=1.1.0 <2.0.0",
"_id": "fast-levenshtein@1.1.3",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/fast-levenshtein",
+ "_location": "/fast-levenshtein",
"_nodeVersion": "0.12.9",
"_npmUser": {
"email": "ram@hiddentao.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/optionator"
+ "/optionator"
],
"_resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-1.1.3.tgz",
"_shasum": "2ae7b32abc1e612da48a4e13849b888a2f61e7e9",
"_shrinkwrap": null,
"_spec": "fast-levenshtein@^1.1.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/optionator",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/optionator",
"author": {
"email": "ram@hiddentao.com",
"name": "Ramesh Nair",
@@ -66,16 +66,16 @@
"gitHead": "bce911eb885fb52e37b1be793c22cfaf88d580d2",
"homepage": "https://github.com/hiddentao/fast-levenshtein#readme",
"keywords": [
- "levenshtein",
"distance",
+ "levenshtein",
"string"
],
"license": "MIT",
"main": "levenshtein.js",
"maintainers": [
{
- "email": "ram@hiddentao.com",
- "name": "hiddentao"
+ "name": "hiddentao",
+ "email": "ram@hiddentao.com"
}
],
"name": "fast-levenshtein",
diff --git a/tools/eslint/node_modules/figures/index.js b/tools/eslint/node_modules/figures/index.js
index aabd817a9c7fa3..edfeff273d8e26 100644
--- a/tools/eslint/node_modules/figures/index.js
+++ b/tools/eslint/node_modules/figures/index.js
@@ -8,6 +8,7 @@ var main = {
square: '▇',
squareSmall: '◻',
squareSmallFilled: '◼',
+ play: '▶',
circle: '◯',
circleFilled: '◉',
circleDotted: '◌',
@@ -48,6 +49,7 @@ var win = {
square: '█',
squareSmall: '[ ]',
squareSmallFilled: '[█]',
+ play: '►',
circle: '( )',
circleFilled: '(*)',
circleDotted: '( )',
diff --git a/tools/eslint/node_modules/figures/package.json b/tools/eslint/node_modules/figures/package.json
index 359795b913a78d..2ddb1377bbaa6d 100644
--- a/tools/eslint/node_modules/figures/package.json
+++ b/tools/eslint/node_modules/figures/package.json
@@ -2,20 +2,24 @@
"_args": [
[
"figures@^1.3.5",
- "/Users/trott/test/node_modules/eslint/node_modules/inquirer"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/inquirer"
]
],
"_from": "figures@>=1.3.5 <2.0.0",
- "_id": "figures@1.4.0",
+ "_id": "figures@1.5.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/figures",
- "_nodeVersion": "4.1.0",
+ "_location": "/figures",
+ "_nodeVersion": "5.6.0",
+ "_npmOperationalInternal": {
+ "host": "packages-13-west.internal.npmjs.com",
+ "tmp": "tmp/figures-1.5.0.tgz_1458741326698_0.9015887144487351"
+ },
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
},
- "_npmVersion": "2.14.3",
+ "_npmVersion": "3.6.0",
"_phantomChildren": {},
"_requested": {
"name": "figures",
@@ -26,17 +30,17 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/inquirer"
+ "/inquirer"
],
- "_resolved": "https://registry.npmjs.org/figures/-/figures-1.4.0.tgz",
- "_shasum": "eb8f56390dbe3081044a5c2a9d9089075a48432f",
+ "_resolved": "https://registry.npmjs.org/figures/-/figures-1.5.0.tgz",
+ "_shasum": "56d8a0949c19643af764d573a648d384218da737",
"_shrinkwrap": null,
"_spec": "figures@^1.3.5",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/inquirer",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/inquirer",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
- "url": "http://sindresorhus.com"
+ "url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/figures/issues"
@@ -44,12 +48,13 @@
"dependencies": {},
"description": "Unicode symbols with Windows CMD fallbacks",
"devDependencies": {
- "ava": "0.0.4"
+ "ava": "*",
+ "xo": "*"
},
"directories": {},
"dist": {
- "shasum": "eb8f56390dbe3081044a5c2a9d9089075a48432f",
- "tarball": "http://registry.npmjs.org/figures/-/figures-1.4.0.tgz"
+ "shasum": "56d8a0949c19643af764d573a648d384218da737",
+ "tarball": "http://registry.npmjs.org/figures/-/figures-1.5.0.tgz"
},
"engines": {
"node": ">=0.10.0"
@@ -57,26 +62,26 @@
"files": [
"index.js"
],
- "gitHead": "6b8b7482290192d6eeb3e80508f59ad33bc012f7",
+ "gitHead": "0f0ec0620de08ed4e1b1ab7073cb2e1104c246e8",
"homepage": "https://github.com/sindresorhus/figures#readme",
"keywords": [
- "unicode",
+ "char",
+ "characters",
"cli",
"cmd",
"command-line",
- "characters",
- "char",
- "symbol",
- "symbols",
+ "fallback",
"figure",
"figures",
- "fallback"
+ "symbol",
+ "symbols",
+ "unicode"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "figures",
@@ -87,7 +92,7 @@
"url": "git+https://github.com/sindresorhus/figures.git"
},
"scripts": {
- "test": "node test.js"
+ "test": "xo && ava"
},
- "version": "1.4.0"
+ "version": "1.5.0"
}
diff --git a/tools/eslint/node_modules/figures/readme.md b/tools/eslint/node_modules/figures/readme.md
index bb7ddf0054bded..88e2531d7b41c6 100644
--- a/tools/eslint/node_modules/figures/readme.md
+++ b/tools/eslint/node_modules/figures/readme.md
@@ -21,7 +21,7 @@ $ npm install --save figures
See the [source](index.js) for supported symbols.
```js
-var figures = require('figures');
+const figures = require('figures');
console.log(figures.tick);
// On real OSes: ✔︎
diff --git a/tools/eslint/node_modules/file-entry-cache/package.json b/tools/eslint/node_modules/file-entry-cache/package.json
index 57bb4b6e411c85..fda420abc17fcd 100644
--- a/tools/eslint/node_modules/file-entry-cache/package.json
+++ b/tools/eslint/node_modules/file-entry-cache/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"file-entry-cache@^1.1.1",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "file-entry-cache@>=1.1.1 <2.0.0",
"_id": "file-entry-cache@1.2.4",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/file-entry-cache",
+ "_location": "/file-entry-cache",
"_nodeVersion": "0.12.0",
"_npmUser": {
"email": "royriojas@gmail.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
"_resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-1.2.4.tgz",
"_shasum": "9a586072c69365a7ef7ec72a7c2b9046de091e9c",
"_shrinkwrap": null,
"_spec": "file-entry-cache@^1.1.1",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"name": "Roy Riojas",
"url": "http://royriojas.com"
@@ -90,19 +90,19 @@
"gitHead": "3ca70d84f97822df7f769409f49ecf22c8908412",
"homepage": "https://github.com/royriojas/file-entry-cache#readme",
"keywords": [
+ "cache",
"file cache",
- "task cache files",
"file cache",
"key par",
"key value",
- "cache"
+ "task cache files"
],
"license": "MIT",
"main": "cache.js",
"maintainers": [
{
- "email": "royriojas@gmail.com",
- "name": "royriojas"
+ "name": "royriojas",
+ "email": "royriojas@gmail.com"
}
],
"name": "file-entry-cache",
diff --git a/tools/eslint/node_modules/flat-cache/package.json b/tools/eslint/node_modules/flat-cache/package.json
index 429417ded8ed79..1558d29aeb13e2 100644
--- a/tools/eslint/node_modules/flat-cache/package.json
+++ b/tools/eslint/node_modules/flat-cache/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"flat-cache@^1.0.9",
- "/Users/trott/test/node_modules/eslint/node_modules/file-entry-cache"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/file-entry-cache"
]
],
"_from": "flat-cache@>=1.0.9 <2.0.0",
"_id": "flat-cache@1.0.10",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/flat-cache",
+ "_location": "/flat-cache",
"_nodeVersion": "0.12.0",
"_npmUser": {
"email": "royriojas@gmail.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/file-entry-cache"
+ "/file-entry-cache"
],
"_resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.0.10.tgz",
"_shasum": "73d6df4a28502160a05e059544a6aeeae8b0047a",
"_shrinkwrap": null,
"_spec": "flat-cache@^1.0.9",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/file-entry-cache",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/file-entry-cache",
"author": {
"name": "Roy Riojas",
"url": "http://royriojas.com"
@@ -88,19 +88,19 @@
"gitHead": "58bb40ccc87d79eb16146629be79d7577e6632da",
"homepage": "https://github.com/royriojas/flat-cache#readme",
"keywords": [
- "json cache",
- "simple cache",
+ "cache",
"file cache",
+ "json cache",
"key par",
"key value",
- "cache"
+ "simple cache"
],
"license": "MIT",
"main": "cache.js",
"maintainers": [
{
- "email": "royriojas@gmail.com",
- "name": "royriojas"
+ "name": "royriojas",
+ "email": "royriojas@gmail.com"
}
],
"name": "flat-cache",
diff --git a/tools/eslint/node_modules/generate-function/.travis.yml b/tools/eslint/node_modules/generate-function/.travis.yml
deleted file mode 100644
index 6e5919de39a312..00000000000000
--- a/tools/eslint/node_modules/generate-function/.travis.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-language: node_js
-node_js:
- - "0.10"
diff --git a/tools/eslint/node_modules/generate-function/package.json b/tools/eslint/node_modules/generate-function/package.json
index a7cde9f4e3699a..6bf82cdcada968 100644
--- a/tools/eslint/node_modules/generate-function/package.json
+++ b/tools/eslint/node_modules/generate-function/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"generate-function@^2.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/is-my-json-valid"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/is-my-json-valid"
]
],
"_from": "generate-function@>=2.0.0 <3.0.0",
"_id": "generate-function@2.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/generate-function",
+ "_location": "/generate-function",
"_npmUser": {
"email": "mathiasbuus@gmail.com",
"name": "mafintosh"
@@ -25,13 +25,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/is-my-json-valid"
+ "/is-my-json-valid"
],
"_resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz",
"_shasum": "6858fe7c0969b7d4e9093337647ac79f60dfbe74",
"_shrinkwrap": null,
"_spec": "generate-function@^2.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/is-my-json-valid",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/is-my-json-valid",
"author": {
"name": "Mathias Buus"
},
@@ -51,18 +51,18 @@
"gitHead": "3d5fc8de5859be95f58e3af9bfb5f663edd95149",
"homepage": "https://github.com/mafintosh/generate-function",
"keywords": [
- "generate",
"code",
- "generation",
"function",
+ "generate",
+ "generation",
"performance"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
- "email": "mathiasbuus@gmail.com",
- "name": "mafintosh"
+ "name": "mafintosh",
+ "email": "mathiasbuus@gmail.com"
}
],
"name": "generate-function",
diff --git a/tools/eslint/node_modules/generate-function/test.js b/tools/eslint/node_modules/generate-function/test.js
deleted file mode 100644
index 2768893eb15066..00000000000000
--- a/tools/eslint/node_modules/generate-function/test.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var tape = require('tape')
-var genfun = require('./')
-
-tape('generate add function', function(t) {
- var fn = genfun()
- ('function add(n) {')
- ('return n + %d', 42)
- ('}')
-
- t.same(fn.toString(), 'function add(n) {\n return n + 42\n}', 'code is indented')
- t.same(fn.toFunction()(10), 52, 'function works')
- t.end()
-})
-
-tape('generate function + closed variables', function(t) {
- var fn = genfun()
- ('function add(n) {')
- ('return n + %d + number', 42)
- ('}')
-
- var notGood = fn.toFunction()
- var good = fn.toFunction({number:10})
-
- try {
- notGood(10)
- t.ok(false, 'function should not work')
- } catch (err) {
- t.same(err.message, 'number is not defined', 'throws reference error')
- }
-
- t.same(good(11), 63, 'function with closed var works')
- t.end()
-})
\ No newline at end of file
diff --git a/tools/eslint/node_modules/generate-object-property/.npmignore b/tools/eslint/node_modules/generate-object-property/.npmignore
deleted file mode 100644
index 3c3629e647f5dd..00000000000000
--- a/tools/eslint/node_modules/generate-object-property/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/tools/eslint/node_modules/generate-object-property/.travis.yml b/tools/eslint/node_modules/generate-object-property/.travis.yml
deleted file mode 100644
index 6e5919de39a312..00000000000000
--- a/tools/eslint/node_modules/generate-object-property/.travis.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-language: node_js
-node_js:
- - "0.10"
diff --git a/tools/eslint/node_modules/generate-object-property/package.json b/tools/eslint/node_modules/generate-object-property/package.json
index eaf984971b540b..0f7a596e8484d2 100644
--- a/tools/eslint/node_modules/generate-object-property/package.json
+++ b/tools/eslint/node_modules/generate-object-property/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"generate-object-property@^1.1.0",
- "/Users/trott/test/node_modules/eslint/node_modules/is-my-json-valid"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/is-my-json-valid"
]
],
"_from": "generate-object-property@>=1.1.0 <2.0.0",
"_id": "generate-object-property@1.2.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/generate-object-property",
+ "_location": "/generate-object-property",
"_nodeVersion": "2.0.1",
"_npmUser": {
"email": "mathiasbuus@gmail.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/is-my-json-valid"
+ "/is-my-json-valid"
],
"_resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz",
"_shasum": "9c0e1c40308ce804f4783618b937fa88f99d50d0",
"_shrinkwrap": null,
"_spec": "generate-object-property@^1.1.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/is-my-json-valid",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/is-my-json-valid",
"author": {
"name": "Mathias Buus",
"url": "@mafintosh"
@@ -58,8 +58,8 @@
"main": "index.js",
"maintainers": [
{
- "email": "mathiasbuus@gmail.com",
- "name": "mafintosh"
+ "name": "mafintosh",
+ "email": "mathiasbuus@gmail.com"
}
],
"name": "generate-object-property",
diff --git a/tools/eslint/node_modules/generate-object-property/test.js b/tools/eslint/node_modules/generate-object-property/test.js
deleted file mode 100644
index 6c299c67fd3165..00000000000000
--- a/tools/eslint/node_modules/generate-object-property/test.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var tape = require('tape')
-var gen = require('./')
-
-tape('valid', function(t) {
- t.same(gen('a', 'b'), 'a.b')
- t.end()
-})
-
-tape('invalid', function(t) {
- t.same(gen('a', '-b'), 'a["-b"]')
- t.end()
-})
\ No newline at end of file
diff --git a/tools/eslint/node_modules/glob/README.md b/tools/eslint/node_modules/glob/README.md
index 6960483bac63c6..9dd9384fa143c3 100644
--- a/tools/eslint/node_modules/glob/README.md
+++ b/tools/eslint/node_modules/glob/README.md
@@ -11,6 +11,12 @@ library to do its matching.
## Usage
+Install with npm
+
+```
+npm i glob
+```
+
```javascript
var glob = require("glob")
diff --git a/tools/eslint/node_modules/glob/changelog.md b/tools/eslint/node_modules/glob/changelog.md
new file mode 100644
index 00000000000000..41636771e3a7cd
--- /dev/null
+++ b/tools/eslint/node_modules/glob/changelog.md
@@ -0,0 +1,67 @@
+## 7.0
+
+- Raise error if `options.cwd` is specified, and not a directory
+
+## 6.0
+
+- Remove comment and negation pattern support
+- Ignore patterns are always in `dot:true` mode
+
+## 5.0
+
+- Deprecate comment and negation patterns
+- Fix regression in `mark` and `nodir` options from making all cache
+ keys absolute path.
+- Abort if `fs.readdir` returns an error that's unexpected
+- Don't emit `match` events for ignored items
+- Treat ENOTSUP like ENOTDIR in readdir
+
+## 4.5
+
+- Add `options.follow` to always follow directory symlinks in globstar
+- Add `options.realpath` to call `fs.realpath` on all results
+- Always cache based on absolute path
+
+## 4.4
+
+- Add `options.ignore`
+- Fix handling of broken symlinks
+
+## 4.3
+
+- Bump minimatch to 2.x
+- Pass all tests on Windows
+
+## 4.2
+
+- Add `glob.hasMagic` function
+- Add `options.nodir` flag
+
+## 4.1
+
+- Refactor sync and async implementations for performance
+- Throw if callback provided to sync glob function
+- Treat symbolic links in globstar results the same as Bash 4.3
+
+## 4.0
+
+- Use `^` for dependency versions (bumped major because this breaks
+ older npm versions)
+- Ensure callbacks are only ever called once
+- switch to ISC license
+
+## 3.x
+
+- Rewrite in JavaScript
+- Add support for setting root, cwd, and windows support
+- Cache many fs calls
+- Add globstar support
+- emit match events
+
+## 2.x
+
+- Use `glob.h` and `fnmatch.h` from NetBSD
+
+## 1.x
+
+- `glob.h` static binding.
diff --git a/tools/eslint/node_modules/glob/common.js b/tools/eslint/node_modules/glob/common.js
index c9127eb334f18b..58dc41e6632160 100644
--- a/tools/eslint/node_modules/glob/common.js
+++ b/tools/eslint/node_modules/glob/common.js
@@ -93,8 +93,8 @@ function setopts (self, pattern, options) {
if (!ownProp(options, "cwd"))
self.cwd = cwd
else {
- self.cwd = options.cwd
- self.changedCwd = path.resolve(options.cwd) !== cwd
+ self.cwd = path.resolve(options.cwd)
+ self.changedCwd = self.cwd !== cwd
}
self.root = options.root || path.resolve(self.cwd, "/")
@@ -102,6 +102,7 @@ function setopts (self, pattern, options) {
if (process.platform === "win32")
self.root = self.root.replace(/\\/g, "/")
+ self.cwdAbs = makeAbs(self, self.cwd)
self.nomount = !!options.nomount
// disable comments and negation in Minimatch.
@@ -153,7 +154,11 @@ function finish (self) {
}
if (self.nodir) {
all = all.filter(function (e) {
- return !(/\/$/.test(e))
+ var notDir = !(/\/$/.test(e))
+ var c = self.cache[e] || self.cache[makeAbs(self, e)]
+ if (notDir && c)
+ notDir = c !== 'DIR' && !Array.isArray(c)
+ return notDir
})
}
}
@@ -201,6 +206,10 @@ function makeAbs (self, f) {
} else {
abs = path.resolve(f)
}
+
+ if (process.platform === 'win32')
+ abs = abs.replace(/\\/g, '/')
+
return abs
}
diff --git a/tools/eslint/node_modules/glob/glob.js b/tools/eslint/node_modules/glob/glob.js
index a62da27ebd507a..4dba04adec43c4 100644
--- a/tools/eslint/node_modules/glob/glob.js
+++ b/tools/eslint/node_modules/glob/glob.js
@@ -162,14 +162,23 @@ function Glob (pattern, options, cb) {
if (n === 0)
return done()
+ var sync = true
for (var i = 0; i < n; i ++) {
this._process(this.minimatch.set[i], i, false, done)
}
+ sync = false
function done () {
--self._processing
- if (self._processing <= 0)
- self._finish()
+ if (self._processing <= 0) {
+ if (sync) {
+ process.nextTick(function () {
+ self._finish()
+ })
+ } else {
+ self._finish()
+ }
+ }
}
}
@@ -571,7 +580,15 @@ Glob.prototype._readdirError = function (f, er, cb) {
switch (er.code) {
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
case 'ENOTDIR': // totally normal. means it *does* exist.
- this.cache[this._makeAbs(f)] = 'FILE'
+ var abs = this._makeAbs(f)
+ this.cache[abs] = 'FILE'
+ if (abs === this.cwdAbs) {
+ var error = new Error(er.code + ' invalid cwd ' + this.cwd)
+ error.path = this.cwd
+ error.code = er.code
+ this.emit('error', error)
+ this.abort()
+ }
break
case 'ENOENT': // not terribly unusual
diff --git a/tools/eslint/node_modules/glob/package.json b/tools/eslint/node_modules/glob/package.json
index 90a9c38820841e..537635f8eafc3c 100644
--- a/tools/eslint/node_modules/glob/package.json
+++ b/tools/eslint/node_modules/glob/package.json
@@ -1,39 +1,43 @@
{
"_args": [
[
- "glob@^6.0.4",
- "/Users/trott/test/node_modules/eslint"
+ "glob@^7.0.3",
+ "/Users/silverwind/git/node/tools/package/package"
]
],
- "_from": "glob@>=6.0.4 <7.0.0",
- "_id": "glob@6.0.4",
+ "_from": "glob@>=7.0.3 <8.0.0",
+ "_id": "glob@7.0.3",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/glob",
- "_nodeVersion": "4.0.0",
+ "_location": "/glob",
+ "_nodeVersion": "5.6.0",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/glob-7.0.3.tgz_1457166529288_0.7840580905321985"
+ },
"_npmUser": {
"email": "i@izs.me",
"name": "isaacs"
},
- "_npmVersion": "2.14.15",
+ "_npmVersion": "3.7.3",
"_phantomChildren": {},
"_requested": {
"name": "glob",
- "raw": "glob@^6.0.4",
- "rawSpec": "^6.0.4",
+ "raw": "glob@^7.0.3",
+ "rawSpec": "^7.0.3",
"scope": null,
- "spec": ">=6.0.4 <7.0.0",
+ "spec": ">=7.0.3 <8.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint",
- "/eslint/globby"
+ "/",
+ "/rimraf"
],
- "_resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
- "_shasum": "0f08860f6a155127b2fadd4f9ce24b1aab6e4d22",
+ "_resolved": "https://registry.npmjs.org/glob/-/glob-7.0.3.tgz",
+ "_shasum": "0aa235931a4a96ac13d60ffac2fb877bd6ed4f58",
"_shrinkwrap": null,
- "_spec": "glob@^6.0.4",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_spec": "glob@^7.0.3",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "i@izs.me",
"name": "Isaac Z. Schlueter",
@@ -53,30 +57,30 @@
"devDependencies": {
"mkdirp": "0",
"rimraf": "^2.2.8",
- "tap": "^5.0.0",
+ "tap": "^5.7.0",
"tick": "0.0.6"
},
"directories": {},
"dist": {
- "shasum": "0f08860f6a155127b2fadd4f9ce24b1aab6e4d22",
- "tarball": "http://registry.npmjs.org/glob/-/glob-6.0.4.tgz"
+ "shasum": "0aa235931a4a96ac13d60ffac2fb877bd6ed4f58",
+ "tarball": "https://registry.npmjs.org/glob/-/glob-7.0.3.tgz"
},
"engines": {
"node": "*"
},
"files": [
+ "common.js",
"glob.js",
- "sync.js",
- "common.js"
+ "sync.js"
],
- "gitHead": "3bd419c538737e56fda7e21c21ff52ca0c198df6",
+ "gitHead": "2fc2278ab857c7df117213a2fb431de090be6353",
"homepage": "https://github.com/isaacs/node-glob#readme",
"license": "ISC",
"main": "glob.js",
"maintainers": [
{
- "email": "i@izs.me",
- "name": "isaacs"
+ "name": "isaacs",
+ "email": "i@izs.me"
}
],
"name": "glob",
@@ -95,5 +99,5 @@
"test": "tap test/*.js --cov",
"test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js"
},
- "version": "6.0.4"
+ "version": "7.0.3"
}
diff --git a/tools/eslint/node_modules/glob/sync.js b/tools/eslint/node_modules/glob/sync.js
index 09883d2ce0c9de..301577ab5f228f 100644
--- a/tools/eslint/node_modules/glob/sync.js
+++ b/tools/eslint/node_modules/glob/sync.js
@@ -305,7 +305,14 @@ GlobSync.prototype._readdirError = function (f, er) {
switch (er.code) {
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
case 'ENOTDIR': // totally normal. means it *does* exist.
- this.cache[this._makeAbs(f)] = 'FILE'
+ var abs = this._makeAbs(f)
+ this.cache[abs] = 'FILE'
+ if (abs === this.cwdAbs) {
+ var error = new Error(er.code + ' invalid cwd ' + this.cwd)
+ error.path = this.cwd
+ error.code = er.code
+ throw error
+ }
break
case 'ENOENT': // not terribly unusual
diff --git a/tools/eslint/node_modules/globals/globals.json b/tools/eslint/node_modules/globals/globals.json
index 38a7d72e997870..756009decc0bbf 100644
--- a/tools/eslint/node_modules/globals/globals.json
+++ b/tools/eslint/node_modules/globals/globals.json
@@ -72,8 +72,6 @@
"escape": false,
"eval": false,
"EvalError": false,
- "Float32Array": false,
- "Float64Array": false,
"Function": false,
"hasOwnProperty": false,
"Infinity": false,
@@ -719,6 +717,7 @@
"TreeWalker": false,
"UIEvent": false,
"URL": false,
+ "URLSearchParams": false,
"ValidityState": false,
"VTTCue": false,
"WaveShaperNode": false,
@@ -817,6 +816,7 @@
"TextDecoder": false,
"TextEncoder": false,
"URL": false,
+ "URLSearchParams": false,
"WebSocket": false,
"Worker": false,
"XMLHttpRequest": false
@@ -833,6 +833,7 @@
"exports": true,
"GLOBAL": false,
"global": false,
+ "Intl": false,
"module": false,
"process": false,
"require": false,
@@ -1082,6 +1083,9 @@
"$": false,
"_": false,
"Accounts": false,
+ "AccountsClient": false,
+ "AccountsServer": false,
+ "AccountsCommon": false,
"App": false,
"Assets": false,
"Blaze": false,
@@ -1089,6 +1093,7 @@
"Cordova": false,
"DDP": false,
"DDPServer": false,
+ "DDPRateLimiter": false,
"Deps": false,
"EJSON": false,
"Email": false,
@@ -1106,6 +1111,7 @@
"ReactiveDict": false,
"ReactiveVar": false,
"Router": false,
+ "ServiceConfiguration": false,
"Session": false,
"share": false,
"Spacebars": false,
diff --git a/tools/eslint/node_modules/globals/package.json b/tools/eslint/node_modules/globals/package.json
index c14975e90c2de2..351bed5d12d4a1 100644
--- a/tools/eslint/node_modules/globals/package.json
+++ b/tools/eslint/node_modules/globals/package.json
@@ -1,38 +1,42 @@
{
"_args": [
[
- "globals@^8.18.0",
- "/Users/trott/test/node_modules/eslint"
+ "globals@^9.2.0",
+ "/Users/silverwind/git/node/tools/package/package"
]
],
- "_from": "globals@>=8.18.0 <9.0.0",
- "_id": "globals@8.18.0",
+ "_from": "globals@>=9.2.0 <10.0.0",
+ "_id": "globals@9.4.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/globals",
- "_nodeVersion": "5.3.0",
+ "_location": "/globals",
+ "_nodeVersion": "4.3.0",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/globals-9.4.0.tgz_1459871365142_0.9750835259910673"
+ },
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
},
- "_npmVersion": "3.3.12",
+ "_npmVersion": "2.14.12",
"_phantomChildren": {},
"_requested": {
"name": "globals",
- "raw": "globals@^8.18.0",
- "rawSpec": "^8.18.0",
+ "raw": "globals@^9.2.0",
+ "rawSpec": "^9.2.0",
"scope": null,
- "spec": ">=8.18.0 <9.0.0",
+ "spec": ">=9.2.0 <10.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/globals/-/globals-8.18.0.tgz",
- "_shasum": "93d4a62bdcac38cfafafc47d6b034768cb0ffcb4",
+ "_resolved": "https://registry.npmjs.org/globals/-/globals-9.4.0.tgz",
+ "_shasum": "e89906bbd58b40305e5691ef934324e93325b35f",
"_shrinkwrap": null,
- "_spec": "globals@^8.18.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_spec": "globals@^9.2.0",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -48,45 +52,45 @@
},
"directories": {},
"dist": {
- "shasum": "93d4a62bdcac38cfafafc47d6b034768cb0ffcb4",
- "tarball": "http://registry.npmjs.org/globals/-/globals-8.18.0.tgz"
+ "shasum": "e89906bbd58b40305e5691ef934324e93325b35f",
+ "tarball": "https://registry.npmjs.org/globals/-/globals-9.4.0.tgz"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
- "index.js",
- "globals.json"
+ "globals.json",
+ "index.js"
],
- "gitHead": "d929a0c638008d4cbf87cc7faac5bc5169e2b86d",
+ "gitHead": "77c6fd4f214140ef81c530c5b3da49ee346fd08a",
"homepage": "https://github.com/sindresorhus/globals",
"keywords": [
- "globals",
+ "environments",
+ "eslint",
"global",
+ "globals",
"identifiers",
- "variables",
- "vars",
"jshint",
- "eslint",
- "environments"
+ "variables",
+ "vars"
],
"license": "MIT",
"maintainers": [
{
- "email": "ben@byk.im",
- "name": "byk"
+ "name": "byk",
+ "email": "ben@byk.im"
},
{
- "email": "schreck.mathias@gmail.com",
- "name": "lo1tuma"
+ "name": "lo1tuma",
+ "email": "schreck.mathias@gmail.com"
},
{
- "email": "nicholas@nczconsulting.com",
- "name": "nzakas"
+ "name": "nzakas",
+ "email": "nicholas@nczconsulting.com"
},
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "globals",
@@ -99,5 +103,5 @@
"scripts": {
"test": "mocha"
},
- "version": "8.18.0"
+ "version": "9.4.0"
}
diff --git a/tools/eslint/node_modules/globals/readme.md b/tools/eslint/node_modules/globals/readme.md
index 3eb024e5a5b190..5314bbb93a401d 100644
--- a/tools/eslint/node_modules/globals/readme.md
+++ b/tools/eslint/node_modules/globals/readme.md
@@ -6,6 +6,8 @@ Extracted from [JSHint](https://github.com/jshint/jshint/blob/3a8efa979dbb157bfb
It's just a [JSON file](globals.json), so use it in whatever environment you like.
+**This module [no longer accepts](https://github.com/sindresorhus/globals/issues/82) new environments. If you need it for ESLint, just [create a plugin](http://eslint.org/docs/developer-guide/working-with-plugins#environments-in-plugins).**
+
## Install
diff --git a/tools/eslint/node_modules/globby/node_modules/glob/LICENSE b/tools/eslint/node_modules/globby/node_modules/glob/LICENSE
new file mode 100644
index 00000000000000..19129e315fe593
--- /dev/null
+++ b/tools/eslint/node_modules/globby/node_modules/glob/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/tools/eslint/node_modules/rimraf/node_modules/glob/README.md b/tools/eslint/node_modules/globby/node_modules/glob/README.md
similarity index 100%
rename from tools/eslint/node_modules/rimraf/node_modules/glob/README.md
rename to tools/eslint/node_modules/globby/node_modules/glob/README.md
diff --git a/tools/eslint/node_modules/rimraf/node_modules/glob/common.js b/tools/eslint/node_modules/globby/node_modules/glob/common.js
similarity index 98%
rename from tools/eslint/node_modules/rimraf/node_modules/glob/common.js
rename to tools/eslint/node_modules/globby/node_modules/glob/common.js
index b280e76cee9be6..c9127eb334f18b 100644
--- a/tools/eslint/node_modules/rimraf/node_modules/glob/common.js
+++ b/tools/eslint/node_modules/globby/node_modules/glob/common.js
@@ -93,8 +93,8 @@ function setopts (self, pattern, options) {
if (!ownProp(options, "cwd"))
self.cwd = cwd
else {
- self.cwd = path.resolve(options.cwd)
- self.changedCwd = self.cwd !== cwd
+ self.cwd = options.cwd
+ self.changedCwd = path.resolve(options.cwd) !== cwd
}
self.root = options.root || path.resolve(self.cwd, "/")
diff --git a/tools/eslint/node_modules/rimraf/node_modules/glob/glob.js b/tools/eslint/node_modules/globby/node_modules/glob/glob.js
similarity index 98%
rename from tools/eslint/node_modules/rimraf/node_modules/glob/glob.js
rename to tools/eslint/node_modules/globby/node_modules/glob/glob.js
index 804cde53f0d276..a62da27ebd507a 100644
--- a/tools/eslint/node_modules/rimraf/node_modules/glob/glob.js
+++ b/tools/eslint/node_modules/globby/node_modules/glob/glob.js
@@ -572,13 +572,6 @@ Glob.prototype._readdirError = function (f, er, cb) {
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
case 'ENOTDIR': // totally normal. means it *does* exist.
this.cache[this._makeAbs(f)] = 'FILE'
- if (f === this.cwd) {
- var error = new Error(er.code + ' invalid cwd ' + f)
- error.path = f
- error.code = er.code
- this.emit('error', error)
- this.abort()
- }
break
case 'ENOENT': // not terribly unusual
diff --git a/tools/eslint/node_modules/globby/node_modules/glob/package.json b/tools/eslint/node_modules/globby/node_modules/glob/package.json
new file mode 100644
index 00000000000000..8ed608ec65a303
--- /dev/null
+++ b/tools/eslint/node_modules/globby/node_modules/glob/package.json
@@ -0,0 +1,98 @@
+{
+ "_args": [
+ [
+ "glob@^6.0.1",
+ "/Users/silverwind/git/node/tools/package/package/node_modules/globby"
+ ]
+ ],
+ "_from": "glob@>=6.0.1 <7.0.0",
+ "_id": "glob@6.0.4",
+ "_inCache": true,
+ "_installable": true,
+ "_location": "/globby/glob",
+ "_nodeVersion": "4.0.0",
+ "_npmUser": {
+ "email": "i@izs.me",
+ "name": "isaacs"
+ },
+ "_npmVersion": "2.14.15",
+ "_phantomChildren": {},
+ "_requested": {
+ "name": "glob",
+ "raw": "glob@^6.0.1",
+ "rawSpec": "^6.0.1",
+ "scope": null,
+ "spec": ">=6.0.1 <7.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/globby"
+ ],
+ "_resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
+ "_shasum": "0f08860f6a155127b2fadd4f9ce24b1aab6e4d22",
+ "_shrinkwrap": null,
+ "_spec": "glob@^6.0.1",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/globby",
+ "author": {
+ "email": "i@izs.me",
+ "name": "Isaac Z. Schlueter",
+ "url": "http://blog.izs.me/"
+ },
+ "bugs": {
+ "url": "https://github.com/isaacs/node-glob/issues"
+ },
+ "dependencies": {
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "2 || 3",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "description": "a little globber",
+ "devDependencies": {
+ "mkdirp": "0",
+ "rimraf": "^2.2.8",
+ "tap": "^5.0.0",
+ "tick": "0.0.6"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "0f08860f6a155127b2fadd4f9ce24b1aab6e4d22",
+ "tarball": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "files": [
+ "common.js",
+ "glob.js",
+ "sync.js"
+ ],
+ "gitHead": "3bd419c538737e56fda7e21c21ff52ca0c198df6",
+ "homepage": "https://github.com/isaacs/node-glob#readme",
+ "license": "ISC",
+ "main": "glob.js",
+ "maintainers": [
+ {
+ "name": "isaacs",
+ "email": "i@izs.me"
+ }
+ ],
+ "name": "glob",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/isaacs/node-glob.git"
+ },
+ "scripts": {
+ "bench": "bash benchmark.sh",
+ "benchclean": "node benchclean.js",
+ "prepublish": "npm run benchclean",
+ "prof": "bash prof.sh && cat profile.txt",
+ "profclean": "rm -f v8.log profile.txt",
+ "test": "tap test/*.js --cov",
+ "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js"
+ },
+ "version": "6.0.4"
+}
diff --git a/tools/eslint/node_modules/globby/node_modules/glob/sync.js b/tools/eslint/node_modules/globby/node_modules/glob/sync.js
new file mode 100644
index 00000000000000..09883d2ce0c9de
--- /dev/null
+++ b/tools/eslint/node_modules/globby/node_modules/glob/sync.js
@@ -0,0 +1,460 @@
+module.exports = globSync
+globSync.GlobSync = GlobSync
+
+var fs = require('fs')
+var minimatch = require('minimatch')
+var Minimatch = minimatch.Minimatch
+var Glob = require('./glob.js').Glob
+var util = require('util')
+var path = require('path')
+var assert = require('assert')
+var isAbsolute = require('path-is-absolute')
+var common = require('./common.js')
+var alphasort = common.alphasort
+var alphasorti = common.alphasorti
+var setopts = common.setopts
+var ownProp = common.ownProp
+var childrenIgnored = common.childrenIgnored
+
+function globSync (pattern, options) {
+ if (typeof options === 'function' || arguments.length === 3)
+ throw new TypeError('callback provided to sync glob\n'+
+ 'See: https://github.com/isaacs/node-glob/issues/167')
+
+ return new GlobSync(pattern, options).found
+}
+
+function GlobSync (pattern, options) {
+ if (!pattern)
+ throw new Error('must provide pattern')
+
+ if (typeof options === 'function' || arguments.length === 3)
+ throw new TypeError('callback provided to sync glob\n'+
+ 'See: https://github.com/isaacs/node-glob/issues/167')
+
+ if (!(this instanceof GlobSync))
+ return new GlobSync(pattern, options)
+
+ setopts(this, pattern, options)
+
+ if (this.noprocess)
+ return this
+
+ var n = this.minimatch.set.length
+ this.matches = new Array(n)
+ for (var i = 0; i < n; i ++) {
+ this._process(this.minimatch.set[i], i, false)
+ }
+ this._finish()
+}
+
+GlobSync.prototype._finish = function () {
+ assert(this instanceof GlobSync)
+ if (this.realpath) {
+ var self = this
+ this.matches.forEach(function (matchset, index) {
+ var set = self.matches[index] = Object.create(null)
+ for (var p in matchset) {
+ try {
+ p = self._makeAbs(p)
+ var real = fs.realpathSync(p, self.realpathCache)
+ set[real] = true
+ } catch (er) {
+ if (er.syscall === 'stat')
+ set[self._makeAbs(p)] = true
+ else
+ throw er
+ }
+ }
+ })
+ }
+ common.finish(this)
+}
+
+
+GlobSync.prototype._process = function (pattern, index, inGlobStar) {
+ assert(this instanceof GlobSync)
+
+ // Get the first [n] parts of pattern that are all strings.
+ var n = 0
+ while (typeof pattern[n] === 'string') {
+ n ++
+ }
+ // now n is the index of the first one that is *not* a string.
+
+ // See if there's anything else
+ var prefix
+ switch (n) {
+ // if not, then this is rather simple
+ case pattern.length:
+ this._processSimple(pattern.join('/'), index)
+ return
+
+ case 0:
+ // pattern *starts* with some non-trivial item.
+ // going to readdir(cwd), but not include the prefix in matches.
+ prefix = null
+ break
+
+ default:
+ // pattern has some string bits in the front.
+ // whatever it starts with, whether that's 'absolute' like /foo/bar,
+ // or 'relative' like '../baz'
+ prefix = pattern.slice(0, n).join('/')
+ break
+ }
+
+ var remain = pattern.slice(n)
+
+ // get the list of entries.
+ var read
+ if (prefix === null)
+ read = '.'
+ else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
+ if (!prefix || !isAbsolute(prefix))
+ prefix = '/' + prefix
+ read = prefix
+ } else
+ read = prefix
+
+ var abs = this._makeAbs(read)
+
+ //if ignored, skip processing
+ if (childrenIgnored(this, read))
+ return
+
+ var isGlobStar = remain[0] === minimatch.GLOBSTAR
+ if (isGlobStar)
+ this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
+ else
+ this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
+}
+
+
+GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
+ var entries = this._readdir(abs, inGlobStar)
+
+ // if the abs isn't a dir, then nothing can match!
+ if (!entries)
+ return
+
+ // It will only match dot entries if it starts with a dot, or if
+ // dot is set. Stuff like @(.foo|.bar) isn't allowed.
+ var pn = remain[0]
+ var negate = !!this.minimatch.negate
+ var rawGlob = pn._glob
+ var dotOk = this.dot || rawGlob.charAt(0) === '.'
+
+ var matchedEntries = []
+ for (var i = 0; i < entries.length; i++) {
+ var e = entries[i]
+ if (e.charAt(0) !== '.' || dotOk) {
+ var m
+ if (negate && !prefix) {
+ m = !e.match(pn)
+ } else {
+ m = e.match(pn)
+ }
+ if (m)
+ matchedEntries.push(e)
+ }
+ }
+
+ var len = matchedEntries.length
+ // If there are no matched entries, then nothing matches.
+ if (len === 0)
+ return
+
+ // if this is the last remaining pattern bit, then no need for
+ // an additional stat *unless* the user has specified mark or
+ // stat explicitly. We know they exist, since readdir returned
+ // them.
+
+ if (remain.length === 1 && !this.mark && !this.stat) {
+ if (!this.matches[index])
+ this.matches[index] = Object.create(null)
+
+ for (var i = 0; i < len; i ++) {
+ var e = matchedEntries[i]
+ if (prefix) {
+ if (prefix.slice(-1) !== '/')
+ e = prefix + '/' + e
+ else
+ e = prefix + e
+ }
+
+ if (e.charAt(0) === '/' && !this.nomount) {
+ e = path.join(this.root, e)
+ }
+ this.matches[index][e] = true
+ }
+ // This was the last one, and no stats were needed
+ return
+ }
+
+ // now test all matched entries as stand-ins for that part
+ // of the pattern.
+ remain.shift()
+ for (var i = 0; i < len; i ++) {
+ var e = matchedEntries[i]
+ var newPattern
+ if (prefix)
+ newPattern = [prefix, e]
+ else
+ newPattern = [e]
+ this._process(newPattern.concat(remain), index, inGlobStar)
+ }
+}
+
+
+GlobSync.prototype._emitMatch = function (index, e) {
+ var abs = this._makeAbs(e)
+ if (this.mark)
+ e = this._mark(e)
+
+ if (this.matches[index][e])
+ return
+
+ if (this.nodir) {
+ var c = this.cache[this._makeAbs(e)]
+ if (c === 'DIR' || Array.isArray(c))
+ return
+ }
+
+ this.matches[index][e] = true
+ if (this.stat)
+ this._stat(e)
+}
+
+
+GlobSync.prototype._readdirInGlobStar = function (abs) {
+ // follow all symlinked directories forever
+ // just proceed as if this is a non-globstar situation
+ if (this.follow)
+ return this._readdir(abs, false)
+
+ var entries
+ var lstat
+ var stat
+ try {
+ lstat = fs.lstatSync(abs)
+ } catch (er) {
+ // lstat failed, doesn't exist
+ return null
+ }
+
+ var isSym = lstat.isSymbolicLink()
+ this.symlinks[abs] = isSym
+
+ // If it's not a symlink or a dir, then it's definitely a regular file.
+ // don't bother doing a readdir in that case.
+ if (!isSym && !lstat.isDirectory())
+ this.cache[abs] = 'FILE'
+ else
+ entries = this._readdir(abs, false)
+
+ return entries
+}
+
+GlobSync.prototype._readdir = function (abs, inGlobStar) {
+ var entries
+
+ if (inGlobStar && !ownProp(this.symlinks, abs))
+ return this._readdirInGlobStar(abs)
+
+ if (ownProp(this.cache, abs)) {
+ var c = this.cache[abs]
+ if (!c || c === 'FILE')
+ return null
+
+ if (Array.isArray(c))
+ return c
+ }
+
+ try {
+ return this._readdirEntries(abs, fs.readdirSync(abs))
+ } catch (er) {
+ this._readdirError(abs, er)
+ return null
+ }
+}
+
+GlobSync.prototype._readdirEntries = function (abs, entries) {
+ // if we haven't asked to stat everything, then just
+ // assume that everything in there exists, so we can avoid
+ // having to stat it a second time.
+ if (!this.mark && !this.stat) {
+ for (var i = 0; i < entries.length; i ++) {
+ var e = entries[i]
+ if (abs === '/')
+ e = abs + e
+ else
+ e = abs + '/' + e
+ this.cache[e] = true
+ }
+ }
+
+ this.cache[abs] = entries
+
+ // mark and cache dir-ness
+ return entries
+}
+
+GlobSync.prototype._readdirError = function (f, er) {
+ // handle errors, and cache the information
+ switch (er.code) {
+ case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
+ case 'ENOTDIR': // totally normal. means it *does* exist.
+ this.cache[this._makeAbs(f)] = 'FILE'
+ break
+
+ case 'ENOENT': // not terribly unusual
+ case 'ELOOP':
+ case 'ENAMETOOLONG':
+ case 'UNKNOWN':
+ this.cache[this._makeAbs(f)] = false
+ break
+
+ default: // some unusual error. Treat as failure.
+ this.cache[this._makeAbs(f)] = false
+ if (this.strict)
+ throw er
+ if (!this.silent)
+ console.error('glob error', er)
+ break
+ }
+}
+
+GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
+
+ var entries = this._readdir(abs, inGlobStar)
+
+ // no entries means not a dir, so it can never have matches
+ // foo.txt/** doesn't match foo.txt
+ if (!entries)
+ return
+
+ // test without the globstar, and with every child both below
+ // and replacing the globstar.
+ var remainWithoutGlobStar = remain.slice(1)
+ var gspref = prefix ? [ prefix ] : []
+ var noGlobStar = gspref.concat(remainWithoutGlobStar)
+
+ // the noGlobStar pattern exits the inGlobStar state
+ this._process(noGlobStar, index, false)
+
+ var len = entries.length
+ var isSym = this.symlinks[abs]
+
+ // If it's a symlink, and we're in a globstar, then stop
+ if (isSym && inGlobStar)
+ return
+
+ for (var i = 0; i < len; i++) {
+ var e = entries[i]
+ if (e.charAt(0) === '.' && !this.dot)
+ continue
+
+ // these two cases enter the inGlobStar state
+ var instead = gspref.concat(entries[i], remainWithoutGlobStar)
+ this._process(instead, index, true)
+
+ var below = gspref.concat(entries[i], remain)
+ this._process(below, index, true)
+ }
+}
+
+GlobSync.prototype._processSimple = function (prefix, index) {
+ // XXX review this. Shouldn't it be doing the mounting etc
+ // before doing stat? kinda weird?
+ var exists = this._stat(prefix)
+
+ if (!this.matches[index])
+ this.matches[index] = Object.create(null)
+
+ // If it doesn't exist, then just mark the lack of results
+ if (!exists)
+ return
+
+ if (prefix && isAbsolute(prefix) && !this.nomount) {
+ var trail = /[\/\\]$/.test(prefix)
+ if (prefix.charAt(0) === '/') {
+ prefix = path.join(this.root, prefix)
+ } else {
+ prefix = path.resolve(this.root, prefix)
+ if (trail)
+ prefix += '/'
+ }
+ }
+
+ if (process.platform === 'win32')
+ prefix = prefix.replace(/\\/g, '/')
+
+ // Mark this as a match
+ this.matches[index][prefix] = true
+}
+
+// Returns either 'DIR', 'FILE', or false
+GlobSync.prototype._stat = function (f) {
+ var abs = this._makeAbs(f)
+ var needDir = f.slice(-1) === '/'
+
+ if (f.length > this.maxLength)
+ return false
+
+ if (!this.stat && ownProp(this.cache, abs)) {
+ var c = this.cache[abs]
+
+ if (Array.isArray(c))
+ c = 'DIR'
+
+ // It exists, but maybe not how we need it
+ if (!needDir || c === 'DIR')
+ return c
+
+ if (needDir && c === 'FILE')
+ return false
+
+ // otherwise we have to stat, because maybe c=true
+ // if we know it exists, but not what it is.
+ }
+
+ var exists
+ var stat = this.statCache[abs]
+ if (!stat) {
+ var lstat
+ try {
+ lstat = fs.lstatSync(abs)
+ } catch (er) {
+ return false
+ }
+
+ if (lstat.isSymbolicLink()) {
+ try {
+ stat = fs.statSync(abs)
+ } catch (er) {
+ stat = lstat
+ }
+ } else {
+ stat = lstat
+ }
+ }
+
+ this.statCache[abs] = stat
+
+ var c = stat.isDirectory() ? 'DIR' : 'FILE'
+ this.cache[abs] = this.cache[abs] || c
+
+ if (needDir && c !== 'DIR')
+ return false
+
+ return c
+}
+
+GlobSync.prototype._mark = function (p) {
+ return common.mark(this, p)
+}
+
+GlobSync.prototype._makeAbs = function (f) {
+ return common.makeAbs(this, f)
+}
diff --git a/tools/eslint/node_modules/globby/package.json b/tools/eslint/node_modules/globby/package.json
index 2aeef7e15b3ce8..b5a0101dc03a5c 100644
--- a/tools/eslint/node_modules/globby/package.json
+++ b/tools/eslint/node_modules/globby/package.json
@@ -2,21 +2,27 @@
"_args": [
[
"globby@^4.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/del"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/del"
]
],
"_from": "globby@>=4.0.0 <5.0.0",
"_id": "globby@4.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/globby",
+ "_location": "/globby",
"_nodeVersion": "4.2.1",
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
},
"_npmVersion": "2.14.7",
- "_phantomChildren": {},
+ "_phantomChildren": {
+ "inflight": "1.0.4",
+ "inherits": "2.0.1",
+ "minimatch": "3.0.0",
+ "once": "1.3.3",
+ "path-is-absolute": "1.0.0"
+ },
"_requested": {
"name": "globby",
"raw": "globby@^4.0.0",
@@ -26,13 +32,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/del"
+ "/del"
],
"_resolved": "https://registry.npmjs.org/globby/-/globby-4.0.0.tgz",
"_shasum": "36ff06c5a9dc1dbc201f700074992882857e9817",
"_shrinkwrap": null,
"_spec": "globby@^4.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/del",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/del",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -61,7 +67,7 @@
"directories": {},
"dist": {
"shasum": "36ff06c5a9dc1dbc201f700074992882857e9817",
- "tarball": "http://registry.npmjs.org/globby/-/globby-4.0.0.tgz"
+ "tarball": "https://registry.npmjs.org/globby/-/globby-4.0.0.tgz"
},
"engines": {
"node": ">=0.10.0"
@@ -96,18 +102,18 @@
"paths",
"pattern",
"patterns",
+ "promise",
"traverse",
"util",
"utility",
"wildcard",
- "wildcards",
- "promise"
+ "wildcards"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "globby",
@@ -124,8 +130,8 @@
"version": "4.0.0",
"xo": {
"envs": [
- "node",
- "mocha"
+ "mocha",
+ "node"
]
}
}
diff --git a/tools/eslint/node_modules/graceful-fs/package.json b/tools/eslint/node_modules/graceful-fs/package.json
index 7e4829d35746f3..cbe6dfc359a40b 100644
--- a/tools/eslint/node_modules/graceful-fs/package.json
+++ b/tools/eslint/node_modules/graceful-fs/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"graceful-fs@^4.1.2",
- "/Users/trott/test/node_modules/eslint/node_modules/flat-cache"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/flat-cache"
]
],
"_from": "graceful-fs@>=4.1.2 <5.0.0",
"_id": "graceful-fs@4.1.3",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/graceful-fs",
+ "_location": "/graceful-fs",
"_nodeVersion": "4.0.0",
"_npmOperationalInternal": {
"host": "packages-6-west.internal.npmjs.com",
@@ -30,14 +30,14 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/flat-cache",
- "/eslint/read-json-sync"
+ "/flat-cache",
+ "/read-json-sync"
],
"_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.3.tgz",
"_shasum": "92033ce11113c41e2628d61fdfa40bc10dc0155c",
"_shrinkwrap": null,
"_spec": "graceful-fs@^4.1.2",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/flat-cache",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/flat-cache",
"bugs": {
"url": "https://github.com/isaacs/node-graceful-fs/issues"
},
@@ -67,27 +67,27 @@
"gitHead": "694c56f3aed4aee62d6df169be123d3984f61b85",
"homepage": "https://github.com/isaacs/node-graceful-fs#readme",
"keywords": [
+ "EACCESS",
+ "EAGAIN",
+ "EINVAL",
+ "EMFILE",
+ "EPERM",
+ "error",
+ "errors",
"fs",
+ "handling",
"module",
+ "queue",
"reading",
- "retry",
"retries",
- "queue",
- "error",
- "errors",
- "handling",
- "EMFILE",
- "EAGAIN",
- "EINVAL",
- "EPERM",
- "EACCESS"
+ "retry"
],
"license": "ISC",
"main": "graceful-fs.js",
"maintainers": [
{
- "email": "i@izs.me",
- "name": "isaacs"
+ "name": "isaacs",
+ "email": "i@izs.me"
}
],
"name": "graceful-fs",
diff --git a/tools/eslint/node_modules/has-ansi/package.json b/tools/eslint/node_modules/has-ansi/package.json
index 9c1a14915bb31d..aa6114cc023f0a 100644
--- a/tools/eslint/node_modules/has-ansi/package.json
+++ b/tools/eslint/node_modules/has-ansi/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"has-ansi@^2.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/chalk"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/chalk"
]
],
"_from": "has-ansi@>=2.0.0 <3.0.0",
"_id": "has-ansi@2.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/has-ansi",
+ "_location": "/has-ansi",
"_nodeVersion": "0.12.5",
"_npmUser": {
"email": "sindresorhus@gmail.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/chalk"
+ "/chalk"
],
"_resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
"_shasum": "34f5049ce1ecdf2b0649af3ef24e45ed35416d91",
"_shrinkwrap": null,
"_spec": "has-ansi@^2.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/chalk",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/chalk",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -51,7 +51,7 @@
"directories": {},
"dist": {
"shasum": "34f5049ce1ecdf2b0649af3ef24e45ed35416d91",
- "tarball": "http://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz"
+ "tarball": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz"
},
"engines": {
"node": ">=0.10.0"
@@ -63,37 +63,37 @@
"homepage": "https://github.com/sindresorhus/has-ansi",
"keywords": [
"ansi",
- "styles",
"color",
- "colour",
"colors",
- "terminal",
+ "colour",
+ "command-line",
"console",
- "string",
- "tty",
"escape",
- "shell",
- "xterm",
- "command-line",
- "text",
+ "find",
+ "has",
+ "match",
+ "pattern",
+ "re",
"regex",
"regexp",
- "re",
- "match",
+ "shell",
+ "string",
+ "styles",
+ "terminal",
"test",
- "find",
- "pattern",
- "has"
+ "text",
+ "tty",
+ "xterm"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
},
{
- "email": "jappelman@xebia.com",
- "name": "jbnicolai"
+ "name": "jbnicolai",
+ "email": "jappelman@xebia.com"
}
],
"name": "has-ansi",
diff --git a/tools/eslint/node_modules/ignore/LICENSE-MIT b/tools/eslint/node_modules/ignore/LICENSE-MIT
old mode 100644
new mode 100755
diff --git a/tools/eslint/node_modules/ignore/README.md b/tools/eslint/node_modules/ignore/README.md
old mode 100644
new mode 100755
index 43dc2ff8fc7b19..cd4518febfffd9
--- a/tools/eslint/node_modules/ignore/README.md
+++ b/tools/eslint/node_modules/ignore/README.md
@@ -1,34 +1,40 @@
-# ignore
-
-[](http://badge.fury.io/js/ignore)
+[](https://travis-ci.org/kaelzhang/node-ignore)
+[](https://ci.appveyor.com/project/kaelzhang/node-ignore)
[](https://www.npmjs.org/package/ignore)
-[](https://travis-ci.org/kaelzhang/node-ignore)
-[](https://gemnasium.com/kaelzhang/node-ignore)
+
+# ignore
`ignore` is a manager and filter which implemented in pure JavaScript according to the .gitignore [spec](http://git-scm.com/docs/gitignore).
Pay attention that [`minimatch`](https://www.npmjs.org/package/minimatch) does not work in the gitignore way. To filter filenames according to .gitignore file, I recommend this module.
-## Installation
+##### Tested on
- npm install ignore --save
+- Linux + Node: `0.8` - `5.x`
+- Windows + Node: `0.10` - `5.x`, node < `0.10` is not tested due to the lack of support of appveyor.
+
+## Table Of Main Contents
+
+- [Usage](#usage)
+- [Guide for 2.x -> 3.x](#upgrade-2x---3x)
+- [Contributing](#contributing)
## Usage
```js
-var ignore = require('ignore');
-var ig = ignore(options).addPattern(['.abc/*', '!.abc/d/']);
+const ignore = require('ignore')
+var ig = ignore().add(['.abc/*', '!.abc/d/'])
```
### Filter the given paths
```js
var paths = [
- '.abc/a.js', // filtered out
- '.abc/d/e.js' // included
-];
+ '.abc/a.js', // filtered out
+ '.abc/d/e.js' // included
+]
-ig.filter(paths); // ['.abc/d/e.js']
+ig.filter(paths) // ['.abc/d/e.js']
```
### As the filter function
@@ -37,18 +43,12 @@ ig.filter(paths); // ['.abc/d/e.js']
paths.filter(ig.createFilter()); // ['.abc/d/e.js']
```
-### With ignore files
-
-For most cases, we'd better use only one ignore file. We could use `ignore.select` to select the first existing file.
+### Win32 paths will be handled
```js
-ignore().addIgnoreFile(
- ignore.select([
- '.xxxignore',
- '.gitignore',
- '.ignore'
- ])
-);
+ig.filter(['.abc\\a.js', '.abc\\d\\e.js'])
+// if the code above runs on windows, the result will be
+// ['.abc\\d\\e.js']
```
## Why another ignore?
@@ -56,53 +56,66 @@ ignore().addIgnoreFile(
1. `ignore` is a standalone module, and is much simpler so that it could easy work with other programs, unlike [isaacs](https://npmjs.org/~isaacs)'s [fstream-ignore](https://npmjs.org/package/fstream-ignore) which must work with the modules of the fstream family.
2. `ignore` only contains utility methods to filter paths according to the specified ignore rules, so
-
-- `ignore` never try to find out ignore rules by traversing directories or fetching from git configurations.
-
-- `ignore` don't cares about sub-modules of git projects.
+ - `ignore` never try to find out ignore rules by traversing directories or fetching from git configurations.
+ - `ignore` don't cares about sub-modules of git projects.
3. Exactly according to [gitignore man page](http://git-scm.com/docs/gitignore), fixes some known matching issues of fstream-ignore, such as:
- - '`/*.js`' should only match '`a.js`', but not '`abc/a.js`'.
- - '`**/foo`' should match '`foo`' anywhere.
-
-
+ - '`/*.js`' should only match '`a.js`', but not '`abc/a.js`'.
+ - '`**/foo`' should match '`foo`' anywhere.
+ - prevent re-including a file if a parent directory of that file is excluded.
+ - handle trailing whitespaces:
+ - `'a '`(one space) should not match `'a '`(two spaces).
+ - `'a \ '` matches `'a '`
## Methods
-### .addPattern(pattern)
+### .add(pattern)
+### .add(patterns)
+
+- pattern `String|Ignore` An ignore pattern string, or the `Ignore` instance
+- patterns `Array.` Array of ignore patterns.
Adds a rule or several rules to the current manager.
-#### Returns `this`
+Returns `this`
-#### pattern `String|Array.`
+Notice that a line starting with `'#'`(hash) is treated as a comment. Put a backslash (`'\'`) in front of the first hash for patterns that begin with a hash, if you want to ignore a file with a hash at the beginning of the filename.
-The ignore rule or a array of rules.
+```js
+ignore().add('#abc').filter(['#abc']) // ['#abc']
+ignore().add('\#abc').filter(['#abc']) // []
+```
-Notice that a line starting with `'#'`(hash) is treated as a comment. Put a backslash (`'\'`) in front of the first hash for patterns that begin with a hash, if you want to ignore a file with a hash at the beginning of the filename.
+`pattern` could either be a line of ignore pattern or a string of multiple ignore patterns, which means we could just `ignore().add()` the content of a ignore file:
```js
-ignore().addPattern('#abc').filter(['#abc']); // ['#abc']
-ignore().addPattern('\#abc').filter(['#abc']); // []
+ignore().add(fs.readFileSync(filenameOfGitignore).toString()).filter(filenames)
```
+`pattern` could also be an `ignore` instance, so that we could easily inherit the rules of another `Ignore` instance.
+
+### .addIgnoreFile(path)
-### .addIgnoreFile(path)
+REMOVED in `3.x` for now.
-Adds rules from a ignore file or several files
+To upgrade `ignore@2.x` up to `3.x`, use
+
+```js
+const fs = require('fs')
-#### Returns `this`
+if (fs.existsSync(filename)) {
+ ignore().add(fs.readFileSync(filename).toString())
+}
+```
-#### Rule `String|Array.`
+instead.
### .filter(paths)
Filters the given array of pathnames, and returns the filtered array.
-#### paths `Array.`
-
-The array of paths to be filtered.
+- paths `Array.` The array of paths to be filtered.
*NOTICE* that each `path` here should be a relative path to the root of your repository. Suppose the dir structure is:
@@ -121,64 +134,55 @@ Then the `paths` might be like this:
```js
[
- 'a/a.js'
- '.b',
- '.c/.DS_store'
+ 'a/a.js'
+ '.b',
+ '.c/.DS_store'
]
```
-Usually, you could use [`glob`](http://npmjs.org/package/glob) to fetch the structure of the current directory:
+Usually, you could use [`glob`](http://npmjs.org/package/glob) with `option.mark = true` to fetch the structure of the current directory:
```js
-var glob = require('glob');
-glob('**', function(err, files){
- var filtered;
-
- if ( err ) {
- console.log(err);
- } else {
- filtered = ignore().addIgnoreFile('.gitignore').filter(files);
- console.log(filtered);
- }
-});
+const glob = require('glob')
+
+glob('**', {
+ // Adds a / character to directory matches.
+ mark: true
+}, (err, files) => {
+ if (err) {
+ return console.error(err)
+ }
+
+ var filtered = ignore().add(patterns).filter(files)
+ console.log(filtered)
+})
```
### .createFilter()
Creates a filter function which could filter an array of paths with `Array.prototype.filter`.
-#### Returns `function(path)`
+Returns `function(path)` the filter function.
-The filter function.
+****
+## Upgrade 2.x -> 3.x
-## Constructor: ignore.Ignore
+- All `options` of 2.x are unnecessary and removed, so just remove them.
+- `ignore()` instance is no longer an [`EventEmitter`](nodejs.org/api/events.html), and all events are unnecessary and removed.
+- `.addIgnoreFile()` is removed, see the [.addIgnoreFile](#addignorefilepath) section for details.
-```js
-new ignore.Ignore(options);
-ignore(options);
-```
+****
-#### options.matchCase `boolean=false`
+## Contributing
-By default, all ignore rules will be treated as case-insensitive ones as well as the git does.
+The code of `node-ignore` is based on es6 and babel, but babel and its preset is not included in the `dependencies` field of package.json, so that the installation process of test cases will not fail in older versions of node.
-#### options.twoGlobstars `boolean=false`
+So use `bash install.sh` to install dependencies and `bash test.sh` to run test cases in your local machine.
-By defailt, `ignoreRules` will omit every pattern that includes '`**`' (two consecutive asterisks) which is not compatible cross operating systems, because the behavior of file .gitignore depends on the implementation of command `fnmatch` in shell.
-
-By the way, Mac OS doesn't support '`**`'.
-
-#### options.ignore `Array.`
-
-The ignore rules to be added. Default to `['.git', '.svn', '.DS_Store']`
-
-If you want those directories to be included, you could
-
-```js
-ignore({
- ignore: []
-});
-```
+#### Collaborators
-You can also use `.addPattern()` method to do this.
+- [SamyPesse](https://github.com/SamyPesse) *Samy Pessé*
+- [azproduction](https://github.com/azproduction) *Mikhail Davydov*
+- [TrySound](https://github.com/TrySound) *Bogdan Chadkin*
+- [JanMattner](https://github.com/JanMattner) *Jan Mattner*
diff --git a/tools/eslint/node_modules/ignore/ignore.js b/tools/eslint/node_modules/ignore/ignore.js
new file mode 100644
index 00000000000000..221b97e80e58e0
--- /dev/null
+++ b/tools/eslint/node_modules/ignore/ignore.js
@@ -0,0 +1,382 @@
+'use strict';
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+module.exports = function () {
+ return new IgnoreBase();
+};
+
+// A simple implementation of make-array
+function make_array(subject) {
+ return Array.isArray(subject) ? subject : [subject];
+}
+
+var REGEX_BLANK_LINE = /^\s+$/;
+var REGEX_LEADING_EXCAPED_EXCLAMATION = /^\\\!/;
+var REGEX_LEADING_EXCAPED_HASH = /^\\#/;
+var SLASH = '/';
+
+var IgnoreBase = function () {
+ function IgnoreBase() {
+ _classCallCheck(this, IgnoreBase);
+
+ this._rules = [];
+ this._initCache();
+ }
+
+ _createClass(IgnoreBase, [{
+ key: '_initCache',
+ value: function _initCache() {
+ this._cache = {};
+ }
+
+ // @param {Array.|string|Ignore} pattern
+
+ }, {
+ key: 'add',
+ value: function add(pattern) {
+ this._added = false;
+
+ if (typeof pattern === 'string') {
+ pattern = pattern.split(/\r?\n/g);
+ }
+
+ make_array(pattern).forEach(this._addPattern, this);
+
+ // Some rules have just added to the ignore,
+ // making the behavior changed.
+ if (this._added) {
+ this._initCache();
+ }
+
+ return this;
+ }
+
+ // legacy
+
+ }, {
+ key: 'addPattern',
+ value: function addPattern(pattern) {
+ return this.add(pattern);
+ }
+ }, {
+ key: '_addPattern',
+ value: function _addPattern(pattern) {
+ if (pattern instanceof IgnoreBase) {
+ this._rules = this._rules.concat(pattern._rules);
+ this._added = true;
+ return;
+ }
+
+ if (this._checkPattern(pattern)) {
+ var rule = this._createRule(pattern);
+ this._added = true;
+ this._rules.push(rule);
+ }
+ }
+ }, {
+ key: '_checkPattern',
+ value: function _checkPattern(pattern) {
+ // > A blank line matches no files, so it can serve as a separator for readability.
+ return pattern && typeof pattern === 'string' && !REGEX_BLANK_LINE.test(pattern)
+
+ // > A line starting with # serves as a comment.
+ && pattern.indexOf('#') !== 0;
+ }
+ }, {
+ key: 'filter',
+ value: function filter(paths) {
+ var _this = this;
+
+ return make_array(paths).filter(function (path) {
+ return _this._filter(path);
+ });
+ }
+ }, {
+ key: 'createFilter',
+ value: function createFilter() {
+ var _this2 = this;
+
+ return function (path) {
+ return _this2._filter(path);
+ };
+ }
+ }, {
+ key: '_createRule',
+ value: function _createRule(pattern) {
+ var rule_object = {
+ origin: pattern
+ };
+
+ // > An optional prefix "!" which negates the pattern;
+ if (pattern.indexOf('!') === 0) {
+ rule_object.negative = true;
+ pattern = pattern.substr(1);
+ }
+
+ pattern = pattern
+ // > Put a backslash ("\") in front of the first "!" for patterns that begin with a literal "!", for example, `"\!important!.txt"`.
+ .replace(REGEX_LEADING_EXCAPED_EXCLAMATION, '!')
+ // > Put a backslash ("\") in front of the first hash for patterns that begin with a hash.
+ .replace(REGEX_LEADING_EXCAPED_HASH, '#');
+
+ rule_object.pattern = pattern;
+ rule_object.regex = regex(pattern);
+
+ return rule_object;
+ }
+ }, {
+ key: '_filter',
+ value: function _filter(path, slices) {
+ if (!path) {
+ return false;
+ }
+
+ if (path in this._cache) {
+ return this._cache[path];
+ }
+
+ if (!slices) {
+ // path/to/a.js
+ // ['path', 'to', 'a.js']
+ slices = path.split(SLASH);
+
+ // '/b/a.js' -> ['', 'b', 'a.js'] -> ['']
+ if (slices.length && !slices[0]) {
+ slices = slices.slice(1);
+ slices[0] = SLASH + slices[0];
+ }
+ }
+
+ slices.pop();
+
+ return this._cache[path] = slices.length
+ // > It is not possible to re-include a file if a parent directory of that file is excluded.
+ // If the path contains a parent directory, check the parent first
+ ? this._filter(slices.join(SLASH) + SLASH, slices) && this._test(path)
+
+ // Or only test the path
+ : this._test(path);
+ }
+
+ // @returns {Boolean} true if a file is NOT ignored
+
+ }, {
+ key: '_test',
+ value: function _test(path) {
+ // Explicitly define variable type by setting matched to `0`
+ var matched = 0;
+
+ this._rules.forEach(function (rule) {
+ // if matched = true, then we only test negative rules
+ // if matched = false, then we test non-negative rules
+ if (!(matched ^ rule.negative)) {
+ matched = rule.negative ^ rule.regex.test(path);
+ }
+ });
+
+ return !matched;
+ }
+ }]);
+
+ return IgnoreBase;
+}();
+
+// > If the pattern ends with a slash,
+// > it is removed for the purpose of the following description,
+// > but it would only find a match with a directory.
+// > In other words, foo/ will match a directory foo and paths underneath it,
+// > but will not match a regular file or a symbolic link foo
+// > (this is consistent with the way how pathspec works in general in Git).
+// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
+// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
+// you could use option `mark: true` with `glob`
+
+// '`foo/`' should not continue with the '`..`'
+
+
+var REPLACERS = [
+
+// > Trailing spaces are ignored unless they are quoted with backslash ("\")
+[
+// (a\ ) -> (a )
+// (a ) -> (a)
+// (a \ ) -> (a )
+/\\?\s+$/, function (match) {
+ return match.indexOf('\\') === 0 ? ' ' : '';
+}],
+
+// replace (\ ) with ' '
+[/\\\s/g, function (match) {
+ return ' ';
+}],
+
+// Escape metacharacters
+// which is written down by users but means special for regular expressions.
+
+// > There are 12 characters with special meanings:
+// > - the backslash \,
+// > - the caret ^,
+// > - the dollar sign $,
+// > - the period or dot .,
+// > - the vertical bar or pipe symbol |,
+// > - the question mark ?,
+// > - the asterisk or star *,
+// > - the plus sign +,
+// > - the opening parenthesis (,
+// > - the closing parenthesis ),
+// > - and the opening square bracket [,
+// > - the opening curly brace {,
+// > These special characters are often called "metacharacters".
+[/[\\\^$.|?*+()\[{]/g, function (match) {
+ return '\\' + match;
+}],
+
+// leading slash
+[
+
+// > A leading slash matches the beginning of the pathname.
+// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
+// A leading slash matches the beginning of the pathname
+/^\//, function () {
+ return '^';
+}],
+
+// replace special metacharacter slash after the leading slash
+[/\//g, function () {
+ return '\\/';
+}], [
+// > A leading "**" followed by a slash means match in all directories.
+// > For example, "**/foo" matches file or directory "foo" anywhere,
+// > the same as pattern "foo".
+// > "**/foo/bar" matches file or directory "bar" anywhere that is directly under directory "foo".
+// Notice that the '*'s have been replaced as '\\*'
+/^\^*\\\*\\\*\\\//,
+
+// '**/foo' <-> 'foo'
+// just remove it
+function () {
+ return '^(?:.*\\/)?';
+}],
+
+// 'f'
+// matches
+// - /f(end)
+// - /f/
+// - (start)f(end)
+// - (start)f/
+// doesn't match
+// - oof
+// - foo
+// pseudo:
+// -> (^|/)f(/|$)
+
+// ending
+[
+// 'js' will not match 'js.'
+// 'ab' will not match 'abc'
+/(?:[^*\/])$/, function (match) {
+ // 'js*' will not match 'a.js'
+ // 'js/' will not match 'a.js'
+ // 'js' will match 'a.js' and 'a.js/'
+ return match + '(?=$|\\/)';
+}],
+
+// starting
+[
+// there will be no leading '/' (which has been replaced by section "leading slash")
+// If starts with '**', adding a '^' to the regular expression also works
+/^(?=[^\^])/, function (match) {
+ return !/\/(?!$)/.test(this)
+ // > If the pattern does not contain a slash /, Git treats it as a shell glob pattern
+ // Actually, if there is only a trailing slash, git also treats it as a shell glob pattern
+ ? '(?:^|\\/)'
+
+ // > Otherwise, Git treats the pattern as a shell glob suitable for consumption by fnmatch(3)
+ : '^';
+}],
+
+// two globstars
+[/\\\/\\\*\\\*(\\\/|$)/g,
+
+// Zero, one or several directories
+// should not use '*', or it will be replaced by the next replacer
+function (m, p1) {
+ return p1 === '\\/'
+
+ // case: /**/
+ // > A slash followed by two consecutive asterisks then a slash matches zero or more directories.
+ // > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
+ // '/**/'
+ ? '(?:\\/[^\\/]+)*\\/'
+
+ // case: /**
+ // > A trailing `"/**"` matches everything inside.
+ : '\\/';
+}],
+
+// intermediate wildcards
+[
+// Never replace escaped '*'
+// ignore rule '\*' will match the path '*'
+
+// 'abc.*/' -> go
+// 'abc.*' -> skip this rule
+/(^|[^\\]+)\\\*(?=.+)/g, function (match, p1) {
+ // '*.js' matches '.js'
+ // '*.js' doesn't match 'abc'
+ return p1 + '[^\\/]*';
+}],
+
+// trailing wildcard
+[/(\\\/)?\\\*$/, function (m, p1) {
+ return p1 === '\\/'
+ // 'a/*' does not match 'a/'
+ // 'a/*' matches 'a/a'
+ // 'a/'
+ ? '\\/[^/]+'
+
+ // or it will match everything after
+ : '';
+}], [
+// unescape
+/\\\\\\/g, function () {
+ return '\\';
+}]];
+
+// A simple cache, because an ignore rule only has only one certain meaning
+var cache = {};
+
+// @param {pattern}
+function regex(pattern) {
+ var r = cache[pattern];
+ if (r) {
+ return r;
+ }
+
+ var source = REPLACERS.reduce(function (prev, current) {
+ return prev.replace(current[0], current[1].bind(pattern));
+ }, pattern);
+
+ return cache[pattern] = new RegExp(source, 'i');
+}
+
+// Windows
+// --------------------------------------------------------------
+if (process.env.IGNORE_TEST_WIN32 || process.platform === 'win32') {
+ (function () {
+
+ var filter = IgnoreBase.prototype._filter;
+ var make_posix = function make_posix(str) {
+ return (/^\\\\\?\\/.test(str) || /[^\x00-\x80]+/.test(str) ? str : str.replace(/\\/g, '/')
+ );
+ };
+
+ IgnoreBase.prototype._filter = function (path, slices) {
+ path = make_posix(path);
+ return filter.call(this, path, slices);
+ };
+ })();
+}
diff --git a/tools/eslint/node_modules/ignore/index.js b/tools/eslint/node_modules/ignore/index.js
deleted file mode 100644
index 4b9585e30950a9..00000000000000
--- a/tools/eslint/node_modules/ignore/index.js
+++ /dev/null
@@ -1,364 +0,0 @@
-'use strict';
-
-module.exports = ignore;
-ignore.Ignore = Ignore;
-
-var EE = require('events').EventEmitter;
-var node_util = require('util');
-var node_fs = require('fs');
-
-function ignore(options) {
- return new Ignore(options);
-}
-
-var exists = node_fs.existsSync
- ? function(file) {
- return node_fs.existsSync(file);
- }
-
- // if node <= 0.6, there's no fs.existsSync method.
- : function(file) {
- try {
- node_fs.statSync(file);
- return true;
- } catch (e) {
- return false;
- }
- };
-
-// Select the first existing file of the file list
-ignore.select = function(files) {
- var selected;
-
- files.some(function(file) {
- if (exists(file)) {
- selected = file;
- return true;
- }
- });
-
- return selected;
-};
-
-
-// @param {Object} options
-// - ignore: {Array}
-// - twoGlobstars: {boolean=false} enable pattern `'**'` (two consecutive asterisks), default to `false`.
-// If false, ignore patterns with two globstars will be omitted
-// - matchCase: {boolean=} case sensitive.
-// By default, git is case-insensitive
-function Ignore(options) {
- options = options || {};
-
- this.options = options;
- this._patterns = [];
- this._rules = [];
- this._ignoreFiles = [];
-
- options.ignore = options.ignore || [
- // Some files or directories which we should ignore for most cases.
- '.git',
- '.svn',
- '.DS_Store'
- ];
-
- this.addPattern(options.ignore);
-}
-
-// Events:
-// 'warn': ,
-// will warn when encounter '`**`' (two consecutive asterisks)
-// which is not compatible with all platforms (not works on Mac OS for example)
-node_util.inherits(Ignore, EE);
-
-function makeArray(subject) {
- return Array.isArray(subject)
- ? subject
- : subject === undefined || subject === null
- ? []
- : [subject];
-}
-
-
-// @param {Array.|string} pattern
-Ignore.prototype.addPattern = function(pattern) {
- makeArray(pattern).forEach(this._addPattern, this);
- return this;
-};
-
-
-Ignore.prototype._addPattern = function(pattern) {
- if (this._simpleTest(pattern)) {
- var rule = this._createRule(pattern);
- this._rules.push(rule);
- }
-};
-
-
-Ignore.prototype.filter = function(paths) {
- return paths.filter(this._filter, this);
-};
-
-
-Ignore.prototype._simpleTest = function(pattern) {
- // Whitespace dirs are allowed, so only filter blank pattern.
- var pass = pattern
- // And not start with a '#'
- && pattern.indexOf('#') !== 0
- && !~this._patterns.indexOf(pattern);
-
- this._patterns.push(pattern);
-
- if (~pattern.indexOf('**')) {
- this.emit('warn', {
- code: 'WGLOBSTARS',
- data: {
- origin: pattern
- },
- message: '`**` found, which is not compatible cross all platforms.'
- });
-
- if (!this.options.twoGlobstars) {
- return false;
- }
- }
-
- return pass;
-};
-
-var REGEX_LEADING_EXCLAMATION = /^\\\!/;
-var REGEX_LEADING_HASH = /^\\#/;
-
-Ignore.prototype._createRule = function(pattern) {
- var rule_object = {
- origin: pattern
- };
-
- var match_start;
-
- if (pattern.indexOf('!') === 0) {
- rule_object.negative = true;
- pattern = pattern.substr(1);
- }
-
- pattern = pattern
- .replace(REGEX_LEADING_EXCLAMATION, '!')
- .replace(REGEX_LEADING_HASH, '#');
-
- rule_object.pattern = pattern;
-
- rule_object.regex = this.makeRegex(pattern);
-
- return rule_object;
-};
-
-// > If the pattern ends with a slash,
-// > it is removed for the purpose of the following description,
-// > but it would only find a match with a directory.
-// > In other words, foo/ will match a directory foo and paths underneath it,
-// > but will not match a regular file or a symbolic link foo (this is consistent with the way how pathspec works in general in Git).
-// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
-// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
-// you could use option `mark: true` with `glob`
-
-// '`foo/`' should not continue with the '`..`'
-var REPLACERS = [
-
- // Escape metacharacters
- // which is written down by users but means special for regular expressions.
-
- // > There are 12 characters with special meanings:
- // > - the backslash \,
- // > - the caret ^,
- // > - the dollar sign $,
- // > - the period or dot .,
- // > - the vertical bar or pipe symbol |,
- // > - the question mark ?,
- // > - the asterisk or star *,
- // > - the plus sign +,
- // > - the opening parenthesis (,
- // > - the closing parenthesis ),
- // > - and the opening square bracket [,
- // > - the opening curly brace {,
- // > These special characters are often called "metacharacters".
- [
- /[\\\^$.|?*+()\[{]/g,
- function(match) {
- return '\\' + match;
- }
- ],
-
- // leading slash
- [
-
- // > A leading slash matches the beginning of the pathname.
- // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
- // A leading slash matches the beginning of the pathname
- /^\//,
- '^'
- ],
-
- [
- /\//g,
- '\\/'
- ],
-
- [
- // > A leading "**" followed by a slash means match in all directories.
- // > For example, "**/foo" matches file or directory "foo" anywhere,
- // > the same as pattern "foo".
- // > "**/foo/bar" matches file or directory "bar" anywhere that is directly under directory "foo".
- // Notice that the '*'s have been replaced as '\\*'
- /^\^*\\\*\\\*\\\//,
-
- // '**/foo' <-> 'foo'
- // just remove it
- ''
- ],
-
- // 'f'
- // matches
- // - /f(end)
- // - /f/
- // - (start)f(end)
- // - (start)f/
- // doesn't match
- // - oof
- // - foo
- // pseudo:
- // -> (^|/)f(/|$)
-
- // ending
- [
- // 'js' will not match 'js.'
- /(?:[^*\/])$/,
- function(match) {
- // 'js*' will not match 'a.js'
- // 'js/' will not match 'a.js'
- // 'js' will match 'a.js' and 'a.js/'
- return match + '(?=$|\\/)';
- }
- ],
-
- // starting
- [
- // there will be no leading '/' (which has been replaced by the second replacer)
- // If starts with '**', adding a '^' to the regular expression also works
- /^(?=[^\^])/,
- '(?:^|\\/)'
- ],
-
- // two globstars
- [
- // > A slash followed by two consecutive asterisks then a slash matches zero or more directories.
- // > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
- // '/**/'
- /\\\/\\\*\\\*\\\//g,
-
- // Zero, one or several directories
- // should not use '*', or it will be replaced by the next replacer
- '(?:\\/[^\\/]+)*\\/'
- ],
-
- // intermediate wildcards
- [
- // Never replace escaped '*'
- // ignore rule '\*' will match the path '*'
-
- // 'abc.*/' -> go
- // 'abc.*' -> skip
- /(^|[^\\]+)\\\*(?=.+)/g,
- function(match, p1) {
- // '*.js' matches '.js'
- // '*.js' doesn't match 'abc'
- return p1 + '[^\\/]*';
- }
- ],
-
- // ending wildcard
- [
- /\\\*$/,
- // simply remove it
- ''
- ],
-
- [
- /\\\\\\/g,
- '\\'
- ]
-];
-
-
-// @param {pattern}
-Ignore.prototype.makeRegex = function(pattern) {
- var source = REPLACERS.reduce(function(prev, current) {
- return prev.replace(current[0], current[1]);
-
- }, pattern);
-
- return new RegExp(source, this.options.matchCase ? '' : 'i');
-};
-
-
-Ignore.prototype._filter = function(path) {
- var rules = this._rules;
- var i = 0;
- var length = rules.length;
- var matched;
- var rule;
-
- for (; i < length; i++) {
- rule = rules[i];
-
- // if matched = true, then we only test negative rules
- // if matched = false, then we test non-negative rules
- if (!(matched ^ rule.negative)) {
- matched = rule.negative ^ rule.regex.test(path);
-
- } else {
- continue;
- }
- }
-
- return !matched;
-};
-
-
-Ignore.prototype.createFilter = function() {
- var self = this;
-
- return function(path) {
- return self._filter(path);
- };
-};
-
-
-// @param {Array.|path} a
-Ignore.prototype.addIgnoreFile = function(files) {
- makeArray(files).forEach(this._addIgnoreFile, this);
- return this;
-};
-
-
-Ignore.prototype._addIgnoreFile = function(file) {
- if (this._checkRuleFile(file)) {
- this._ignoreFiles.push(file);
-
- var content;
-
- try {
- content = node_fs.readFileSync(file);
- } catch (e) {}
-
- if (content) {
- this.addPattern(content.toString().split(/\r?\n/));
- }
- }
-};
-
-
-Ignore.prototype._checkRuleFile = function(file) {
- return file !== '.'
- && file !== '..'
- && !~this._ignoreFiles.indexOf(file);
-};
diff --git a/tools/eslint/node_modules/ignore/package.json b/tools/eslint/node_modules/ignore/package.json
index 60c9e0665121b2..1a966f18036f3a 100644
--- a/tools/eslint/node_modules/ignore/package.json
+++ b/tools/eslint/node_modules/ignore/package.json
@@ -1,38 +1,42 @@
{
"_args": [
[
- "ignore@^2.2.19",
- "/Users/trott/test/node_modules/eslint"
+ "ignore@^3.0.10",
+ "/Users/silverwind/git/node/tools/package/package"
]
],
- "_from": "ignore@>=2.2.19 <3.0.0",
- "_id": "ignore@2.2.19",
+ "_from": "ignore@>=3.0.10 <4.0.0",
+ "_id": "ignore@3.1.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/ignore",
- "_nodeVersion": "0.12.1",
+ "_location": "/ignore",
+ "_nodeVersion": "5.10.1",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/ignore-3.1.1.tgz_1460180585110_0.08555315271951258"
+ },
"_npmUser": {
"email": "i@kael.me",
"name": "kael"
},
- "_npmVersion": "3.3.9",
+ "_npmVersion": "3.8.3",
"_phantomChildren": {},
"_requested": {
"name": "ignore",
- "raw": "ignore@^2.2.19",
- "rawSpec": "^2.2.19",
+ "raw": "ignore@^3.0.10",
+ "rawSpec": "^3.0.10",
"scope": null,
- "spec": ">=2.2.19 <3.0.0",
+ "spec": ">=3.0.10 <4.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/ignore/-/ignore-2.2.19.tgz",
- "_shasum": "4c845a61f7e50b4a410f6156aaa38b6ad95e0c8f",
+ "_resolved": "https://registry.npmjs.org/ignore/-/ignore-3.1.1.tgz",
+ "_shasum": "09e941c520c61452a8ec127fe70b4b6e4f281cde",
"_shrinkwrap": null,
- "_spec": "ignore@^2.2.19",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_spec": "ignore@^3.0.10",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"name": "kael"
},
@@ -47,33 +51,36 @@
},
"directories": {},
"dist": {
- "shasum": "4c845a61f7e50b4a410f6156aaa38b6ad95e0c8f",
- "tarball": "http://registry.npmjs.org/ignore/-/ignore-2.2.19.tgz"
+ "shasum": "09e941c520c61452a8ec127fe70b4b6e4f281cde",
+ "tarball": "https://registry.npmjs.org/ignore/-/ignore-3.1.1.tgz"
},
"files": [
- "index.js",
- "LICENSE-MIT"
+ "LICENSE-MIT",
+ "ignore.js"
],
- "gitHead": "97df28de4e8401e08c620986156924c1c0f3f37e",
+ "gitHead": "043fa425fc967c9b5745d83ccb45253967d7a14e",
"homepage": "https://github.com/kaelzhang/node-ignore#readme",
"keywords": [
- "ignore",
".gitignore",
+ "asterisks",
+ "filter",
+ "fnmatch",
"gitignore",
- "npmignore",
- "rules",
+ "glob",
+ "ignore",
"manager",
- "filter",
- "regexp",
+ "npmignore",
"regex",
- "regular-expression"
+ "regexp",
+ "regular-expression",
+ "rules"
],
"license": "MIT",
- "main": "index.js",
+ "main": "./ignore.js",
"maintainers": [
{
- "email": "i@kael.me",
- "name": "kael"
+ "name": "kael",
+ "email": "i@kael.me"
}
],
"name": "ignore",
@@ -86,5 +93,5 @@
"scripts": {
"test": "mocha --reporter spec ./test/ignore.js"
},
- "version": "2.2.19"
+ "version": "3.1.1"
}
diff --git a/tools/eslint/node_modules/imurmurhash/README.md b/tools/eslint/node_modules/imurmurhash/README.md
new file mode 100644
index 00000000000000..f35b20a0ef5bfe
--- /dev/null
+++ b/tools/eslint/node_modules/imurmurhash/README.md
@@ -0,0 +1,122 @@
+iMurmurHash.js
+==============
+
+An incremental implementation of the MurmurHash3 (32-bit) hashing algorithm for JavaScript based on [Gary Court's implementation](https://github.com/garycourt/murmurhash-js) with [kazuyukitanimura's modifications](https://github.com/kazuyukitanimura/murmurhash-js).
+
+This version works significantly faster than the non-incremental version if you need to hash many small strings into a single hash, since string concatenation (to build the single string to pass the non-incremental version) is fairly costly. In one case tested, using the incremental version was about 50% faster than concatenating 5-10 strings and then hashing.
+
+Installation
+------------
+
+To use iMurmurHash in the browser, [download the latest version](https://raw.github.com/jensyt/imurmurhash-js/master/imurmurhash.min.js) and include it as a script on your site.
+
+```html
+
+
+```
+
+---
+
+To use iMurmurHash in Node.js, install the module using NPM:
+
+```bash
+npm install imurmurhash
+```
+
+Then simply include it in your scripts:
+
+```javascript
+MurmurHash3 = require('imurmurhash');
+```
+
+Quick Example
+-------------
+
+```javascript
+// Create the initial hash
+var hashState = MurmurHash3('string');
+
+// Incrementally add text
+hashState.hash('more strings');
+hashState.hash('even more strings');
+
+// All calls can be chained if desired
+hashState.hash('and').hash('some').hash('more');
+
+// Get a result
+hashState.result();
+// returns 0xe4ccfe6b
+```
+
+Functions
+---------
+
+### MurmurHash3 ([string], [seed])
+Get a hash state object, optionally initialized with the given _string_ and _seed_. _Seed_ must be a positive integer if provided. Calling this function without the `new` keyword will return a cached state object that has been reset. This is safe to use as long as the object is only used from a single thread and no other hashes are created while operating on this one. If this constraint cannot be met, you can use `new` to create a new state object. For example:
+
+```javascript
+// Use the cached object, calling the function again will return the same
+// object (but reset, so the current state would be lost)
+hashState = MurmurHash3();
+...
+
+// Create a new object that can be safely used however you wish. Calling the
+// function again will simply return a new state object, and no state loss
+// will occur, at the cost of creating more objects.
+hashState = new MurmurHash3();
+```
+
+Both methods can be mixed however you like if you have different use cases.
+
+---
+
+### MurmurHash3.prototype.hash (string)
+Incrementally add _string_ to the hash. This can be called as many times as you want for the hash state object, including after a call to `result()`. Returns `this` so calls can be chained.
+
+---
+
+### MurmurHash3.prototype.result ()
+Get the result of the hash as a 32-bit positive integer. This performs the tail and finalizer portions of the algorithm, but does not store the result in the state object. This means that it is perfectly safe to get results and then continue adding strings via `hash`.
+
+```javascript
+// Do the whole string at once
+MurmurHash3('this is a test string').result();
+// 0x70529328
+
+// Do part of the string, get a result, then the other part
+var m = MurmurHash3('this is a');
+m.result();
+// 0xbfc4f834
+m.hash(' test string').result();
+// 0x70529328 (same as above)
+```
+
+---
+
+### MurmurHash3.prototype.reset ([seed])
+Reset the state object for reuse, optionally using the given _seed_ (defaults to 0 like the constructor). Returns `this` so calls can be chained.
+
+---
+
+License (MIT)
+-------------
+Copyright (c) 2013 Gary Court, Jens Taylor
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/tools/eslint/node_modules/imurmurhash/imurmurhash.js b/tools/eslint/node_modules/imurmurhash/imurmurhash.js
new file mode 100644
index 00000000000000..05347a2536fce2
--- /dev/null
+++ b/tools/eslint/node_modules/imurmurhash/imurmurhash.js
@@ -0,0 +1,138 @@
+/**
+ * @preserve
+ * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
+ *
+ * @author Jens Taylor
+ * @see http://github.com/homebrewing/brauhaus-diff
+ * @author Gary Court
+ * @see http://github.com/garycourt/murmurhash-js
+ * @author Austin Appleby
+ * @see http://sites.google.com/site/murmurhash/
+ */
+(function(){
+ var cache;
+
+ // Call this function without `new` to use the cached object (good for
+ // single-threaded environments), or with `new` to create a new object.
+ //
+ // @param {string} key A UTF-16 or ASCII string
+ // @param {number} seed An optional positive integer
+ // @return {object} A MurmurHash3 object for incremental hashing
+ function MurmurHash3(key, seed) {
+ var m = this instanceof MurmurHash3 ? this : cache;
+ m.reset(seed)
+ if (typeof key === 'string' && key.length > 0) {
+ m.hash(key);
+ }
+
+ if (m !== this) {
+ return m;
+ }
+ };
+
+ // Incrementally add a string to this hash
+ //
+ // @param {string} key A UTF-16 or ASCII string
+ // @return {object} this
+ MurmurHash3.prototype.hash = function(key) {
+ var h1, k1, i, top, len;
+
+ len = key.length;
+ this.len += len;
+
+ k1 = this.k1;
+ i = 0;
+ switch (this.rem) {
+ case 0: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) : 0;
+ case 1: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0;
+ case 2: k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0;
+ case 3:
+ k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0;
+ k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0;
+ }
+
+ this.rem = (len + this.rem) & 3; // & 3 is same as % 4
+ len -= this.rem;
+ if (len > 0) {
+ h1 = this.h1;
+ while (1) {
+ k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff;
+ k1 = (k1 << 15) | (k1 >>> 17);
+ k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff;
+
+ h1 ^= k1;
+ h1 = (h1 << 13) | (h1 >>> 19);
+ h1 = (h1 * 5 + 0xe6546b64) & 0xffffffff;
+
+ if (i >= len) {
+ break;
+ }
+
+ k1 = ((key.charCodeAt(i++) & 0xffff)) ^
+ ((key.charCodeAt(i++) & 0xffff) << 8) ^
+ ((key.charCodeAt(i++) & 0xffff) << 16);
+ top = key.charCodeAt(i++);
+ k1 ^= ((top & 0xff) << 24) ^
+ ((top & 0xff00) >> 8);
+ }
+
+ k1 = 0;
+ switch (this.rem) {
+ case 3: k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16;
+ case 2: k1 ^= (key.charCodeAt(i + 1) & 0xffff) << 8;
+ case 1: k1 ^= (key.charCodeAt(i) & 0xffff);
+ }
+
+ this.h1 = h1;
+ }
+
+ this.k1 = k1;
+ return this;
+ };
+
+ // Get the result of this hash
+ //
+ // @return {number} The 32-bit hash
+ MurmurHash3.prototype.result = function() {
+ var k1, h1;
+
+ k1 = this.k1;
+ h1 = this.h1;
+
+ if (k1 > 0) {
+ k1 = (k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000) & 0xffffffff;
+ k1 = (k1 << 15) | (k1 >>> 17);
+ k1 = (k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000) & 0xffffffff;
+ h1 ^= k1;
+ }
+
+ h1 ^= this.len;
+
+ h1 ^= h1 >>> 16;
+ h1 = (h1 * 0xca6b + (h1 & 0xffff) * 0x85eb0000) & 0xffffffff;
+ h1 ^= h1 >>> 13;
+ h1 = (h1 * 0xae35 + (h1 & 0xffff) * 0xc2b20000) & 0xffffffff;
+ h1 ^= h1 >>> 16;
+
+ return h1 >>> 0;
+ };
+
+ // Reset the hash object for reuse
+ //
+ // @param {number} seed An optional positive integer
+ MurmurHash3.prototype.reset = function(seed) {
+ this.h1 = typeof seed === 'number' ? seed : 0;
+ this.rem = this.k1 = this.len = 0;
+ return this;
+ };
+
+ // A cached object to use. This can be safely used if you're in a single-
+ // threaded environment, otherwise you need to create new hashes to use.
+ cache = new MurmurHash3();
+
+ if (typeof(module) != 'undefined') {
+ module.exports = MurmurHash3;
+ } else {
+ this.MurmurHash3 = MurmurHash3;
+ }
+}());
diff --git a/tools/eslint/node_modules/imurmurhash/imurmurhash.min.js b/tools/eslint/node_modules/imurmurhash/imurmurhash.min.js
new file mode 100644
index 00000000000000..dc0ee88d6b69c9
--- /dev/null
+++ b/tools/eslint/node_modules/imurmurhash/imurmurhash.min.js
@@ -0,0 +1,12 @@
+/**
+ * @preserve
+ * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
+ *
+ * @author Jens Taylor
+ * @see http://github.com/homebrewing/brauhaus-diff
+ * @author Gary Court
+ * @see http://github.com/garycourt/murmurhash-js
+ * @author Austin Appleby
+ * @see http://sites.google.com/site/murmurhash/
+ */
+!function(){function t(h,r){var s=this instanceof t?this:e;return s.reset(r),"string"==typeof h&&h.length>0&&s.hash(h),s!==this?s:void 0}var e;t.prototype.hash=function(t){var e,h,r,s,i;switch(i=t.length,this.len+=i,h=this.k1,r=0,this.rem){case 0:h^=i>r?65535&t.charCodeAt(r++):0;case 1:h^=i>r?(65535&t.charCodeAt(r++))<<8:0;case 2:h^=i>r?(65535&t.charCodeAt(r++))<<16:0;case 3:h^=i>r?(255&t.charCodeAt(r))<<24:0,h^=i>r?(65280&t.charCodeAt(r++))>>8:0}if(this.rem=3&i+this.rem,i-=this.rem,i>0){for(e=this.h1;;){if(h=4294967295&11601*h+3432906752*(65535&h),h=h<<15|h>>>17,h=4294967295&13715*h+461832192*(65535&h),e^=h,e=e<<13|e>>>19,e=4294967295&5*e+3864292196,r>=i)break;h=65535&t.charCodeAt(r++)^(65535&t.charCodeAt(r++))<<8^(65535&t.charCodeAt(r++))<<16,s=t.charCodeAt(r++),h^=(255&s)<<24^(65280&s)>>8}switch(h=0,this.rem){case 3:h^=(65535&t.charCodeAt(r+2))<<16;case 2:h^=(65535&t.charCodeAt(r+1))<<8;case 1:h^=65535&t.charCodeAt(r)}this.h1=e}return this.k1=h,this},t.prototype.result=function(){var t,e;return t=this.k1,e=this.h1,t>0&&(t=4294967295&11601*t+3432906752*(65535&t),t=t<<15|t>>>17,t=4294967295&13715*t+461832192*(65535&t),e^=t),e^=this.len,e^=e>>>16,e=4294967295&51819*e+2246770688*(65535&e),e^=e>>>13,e=4294967295&44597*e+3266445312*(65535&e),e^=e>>>16,e>>>0},t.prototype.reset=function(t){return this.h1="number"==typeof t?t:0,this.rem=this.k1=this.len=0,this},e=new t,"undefined"!=typeof module?module.exports=t:this.MurmurHash3=t}();
\ No newline at end of file
diff --git a/tools/eslint/node_modules/imurmurhash/package.json b/tools/eslint/node_modules/imurmurhash/package.json
new file mode 100644
index 00000000000000..a260b301258a4d
--- /dev/null
+++ b/tools/eslint/node_modules/imurmurhash/package.json
@@ -0,0 +1,85 @@
+{
+ "_args": [
+ [
+ "imurmurhash@^0.1.4",
+ "/Users/silverwind/git/node/tools/package/package"
+ ]
+ ],
+ "_from": "imurmurhash@>=0.1.4 <0.2.0",
+ "_id": "imurmurhash@0.1.4",
+ "_inCache": true,
+ "_installable": true,
+ "_location": "/imurmurhash",
+ "_npmUser": {
+ "email": "jensyt@gmail.com",
+ "name": "jensyt"
+ },
+ "_npmVersion": "1.3.2",
+ "_phantomChildren": {},
+ "_requested": {
+ "name": "imurmurhash",
+ "raw": "imurmurhash@^0.1.4",
+ "rawSpec": "^0.1.4",
+ "scope": null,
+ "spec": ">=0.1.4 <0.2.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/"
+ ],
+ "_resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "_shasum": "9218b9b2b928a238b13dc4fb6b6d576f231453ea",
+ "_shrinkwrap": null,
+ "_spec": "imurmurhash@^0.1.4",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
+ "author": {
+ "email": "jensyt@gmail.com",
+ "name": "Jens Taylor",
+ "url": "https://github.com/homebrewing"
+ },
+ "bugs": {
+ "url": "https://github.com/jensyt/imurmurhash-js/issues"
+ },
+ "dependencies": {},
+ "description": "An incremental implementation of MurmurHash3",
+ "devDependencies": {},
+ "directories": {},
+ "dist": {
+ "shasum": "9218b9b2b928a238b13dc4fb6b6d576f231453ea",
+ "tarball": "http://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz"
+ },
+ "engines": {
+ "node": ">=0.8.19"
+ },
+ "files": [
+ "README.md",
+ "imurmurhash.js",
+ "imurmurhash.min.js",
+ "package.json"
+ ],
+ "homepage": "https://github.com/jensyt/imurmurhash-js",
+ "keywords": [
+ "hash",
+ "incremental",
+ "murmur",
+ "murmurhash",
+ "murmurhash3"
+ ],
+ "license": "MIT",
+ "main": "imurmurhash.js",
+ "maintainers": [
+ {
+ "name": "jensyt",
+ "email": "jensyt@gmail.com"
+ }
+ ],
+ "name": "imurmurhash",
+ "optionalDependencies": {},
+ "readme": "iMurmurHash.js\n==============\n\nAn incremental implementation of the MurmurHash3 (32-bit) hashing algorithm for JavaScript based on [Gary Court's implementation](https://github.com/garycourt/murmurhash-js) with [kazuyukitanimura's modifications](https://github.com/kazuyukitanimura/murmurhash-js).\n\nThis version works significantly faster than the non-incremental version if you need to hash many small strings into a single hash, since string concatenation (to build the single string to pass the non-incremental version) is fairly costly. In one case tested, using the incremental version was about 50% faster than concatenating 5-10 strings and then hashing.\n\nInstallation\n------------\n\nTo use iMurmurHash in the browser, [download the latest version](https://raw.github.com/jensyt/imurmurhash-js/master/imurmurhash.min.js) and include it as a script on your site.\n\n```html\n\n\n```\n\n---\n\nTo use iMurmurHash in Node.js, install the module using NPM:\n\n```bash\nnpm install imurmurhash\n```\n\nThen simply include it in your scripts:\n\n```javascript\nMurmurHash3 = require('imurmurhash');\n```\n\nQuick Example\n-------------\n\n```javascript\n// Create the initial hash\nvar hashState = MurmurHash3('string');\n\n// Incrementally add text\nhashState.hash('more strings');\nhashState.hash('even more strings');\n\n// All calls can be chained if desired\nhashState.hash('and').hash('some').hash('more');\n\n// Get a result\nhashState.result();\n// returns 0xe4ccfe6b\n```\n\nFunctions\n---------\n\n### MurmurHash3 ([string], [seed])\nGet a hash state object, optionally initialized with the given _string_ and _seed_. _Seed_ must be a positive integer if provided. Calling this function without the `new` keyword will return a cached state object that has been reset. This is safe to use as long as the object is only used from a single thread and no other hashes are created while operating on this one. If this constraint cannot be met, you can use `new` to create a new state object. For example:\n\n```javascript\n// Use the cached object, calling the function again will return the same\n// object (but reset, so the current state would be lost)\nhashState = MurmurHash3();\n...\n\n// Create a new object that can be safely used however you wish. Calling the\n// function again will simply return a new state object, and no state loss\n// will occur, at the cost of creating more objects.\nhashState = new MurmurHash3();\n```\n\nBoth methods can be mixed however you like if you have different use cases.\n\n---\n\n### MurmurHash3.prototype.hash (string)\nIncrementally add _string_ to the hash. This can be called as many times as you want for the hash state object, including after a call to `result()`. Returns `this` so calls can be chained.\n\n---\n\n### MurmurHash3.prototype.result ()\nGet the result of the hash as a 32-bit positive integer. This performs the tail and finalizer portions of the algorithm, but does not store the result in the state object. This means that it is perfectly safe to get results and then continue adding strings via `hash`.\n\n```javascript\n// Do the whole string at once\nMurmurHash3('this is a test string').result();\n// 0x70529328\n\n// Do part of the string, get a result, then the other part\nvar m = MurmurHash3('this is a');\nm.result();\n// 0xbfc4f834\nm.hash(' test string').result();\n// 0x70529328 (same as above)\n```\n\n---\n\n### MurmurHash3.prototype.reset ([seed])\nReset the state object for reuse, optionally using the given _seed_ (defaults to 0 like the constructor). Returns `this` so calls can be chained.\n\n---\n\nLicense (MIT)\n-------------\nCopyright (c) 2013 Gary Court, Jens Taylor\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
+ "readmeFilename": "README.md",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jensyt/imurmurhash-js.git"
+ },
+ "version": "0.1.4"
+}
diff --git a/tools/eslint/node_modules/inflight/.eslintrc b/tools/eslint/node_modules/inflight/.eslintrc
deleted file mode 100644
index b7a1550efc2b2c..00000000000000
--- a/tools/eslint/node_modules/inflight/.eslintrc
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "env" : {
- "node" : true
- },
- "rules" : {
- "semi": [2, "never"],
- "strict": 0,
- "quotes": [1, "single", "avoid-escape"],
- "no-use-before-define": 0,
- "curly": 0,
- "no-underscore-dangle": 0,
- "no-lonely-if": 1,
- "no-unused-vars": [2, {"vars" : "all", "args" : "after-used"}],
- "no-mixed-requires": 0,
- "space-infix-ops": 0
- }
-}
diff --git a/tools/eslint/node_modules/inflight/package.json b/tools/eslint/node_modules/inflight/package.json
index 7db3e9ddab6b30..e9d4f97951b132 100644
--- a/tools/eslint/node_modules/inflight/package.json
+++ b/tools/eslint/node_modules/inflight/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"inflight@^1.0.4",
- "/Users/trott/test/node_modules/eslint/node_modules/glob"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/globby/node_modules/glob"
]
],
"_from": "inflight@>=1.0.4 <2.0.0",
"_id": "inflight@1.0.4",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/inflight",
+ "_location": "/inflight",
"_nodeVersion": "0.10.32",
"_npmUser": {
"email": "ogd@aoaioxxysz.net",
@@ -26,14 +26,14 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/glob",
- "/eslint/rimraf/glob"
+ "/glob",
+ "/globby/glob"
],
"_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz",
"_shasum": "6cbb4521ebd51ce0ec0a936bfd7657ef7e9b172a",
"_shrinkwrap": null,
"_spec": "inflight@^1.0.4",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/glob",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/globby/node_modules/glob",
"author": {
"email": "i@izs.me",
"name": "Isaac Z. Schlueter",
@@ -61,16 +61,16 @@
"main": "inflight.js",
"maintainers": [
{
- "email": "i@izs.me",
- "name": "isaacs"
+ "name": "isaacs",
+ "email": "i@izs.me"
},
{
- "email": "ogd@aoaioxxysz.net",
- "name": "othiym23"
+ "name": "othiym23",
+ "email": "ogd@aoaioxxysz.net"
},
{
- "email": "me@re-becca.org",
- "name": "iarna"
+ "name": "iarna",
+ "email": "me@re-becca.org"
}
],
"name": "inflight",
diff --git a/tools/eslint/node_modules/inflight/test.js b/tools/eslint/node_modules/inflight/test.js
deleted file mode 100644
index 2bb75b38814a60..00000000000000
--- a/tools/eslint/node_modules/inflight/test.js
+++ /dev/null
@@ -1,97 +0,0 @@
-var test = require('tap').test
-var inf = require('./inflight.js')
-
-
-function req (key, cb) {
- cb = inf(key, cb)
- if (cb) setTimeout(function () {
- cb(key)
- cb(key)
- })
- return cb
-}
-
-test('basic', function (t) {
- var calleda = false
- var a = req('key', function (k) {
- t.notOk(calleda)
- calleda = true
- t.equal(k, 'key')
- if (calledb) t.end()
- })
- t.ok(a, 'first returned cb function')
-
- var calledb = false
- var b = req('key', function (k) {
- t.notOk(calledb)
- calledb = true
- t.equal(k, 'key')
- if (calleda) t.end()
- })
-
- t.notOk(b, 'second should get falsey inflight response')
-})
-
-test('timing', function (t) {
- var expect = [
- 'method one',
- 'start one',
- 'end one',
- 'two',
- 'tick',
- 'three'
- ]
- var i = 0
-
- function log (m) {
- t.equal(m, expect[i], m + ' === ' + expect[i])
- ++i
- if (i === expect.length)
- t.end()
- }
-
- function method (name, cb) {
- log('method ' + name)
- process.nextTick(cb)
- }
-
- var one = inf('foo', function () {
- log('start one')
- var three = inf('foo', function () {
- log('three')
- })
- if (three) method('three', three)
- log('end one')
- })
-
- method('one', one)
-
- var two = inf('foo', function () {
- log('two')
- })
- if (two) method('one', two)
-
- process.nextTick(log.bind(null, 'tick'))
-})
-
-test('parameters', function (t) {
- t.plan(8)
-
- var a = inf('key', function (first, second, third) {
- t.equal(first, 1)
- t.equal(second, 2)
- t.equal(third, 3)
- })
- t.ok(a, 'first returned cb function')
-
- var b = inf('key', function (first, second, third) {
- t.equal(first, 1)
- t.equal(second, 2)
- t.equal(third, 3)
- })
- t.notOk(b, 'second should get falsey inflight response')
-
- setTimeout(function () {
- a(1, 2, 3)
- })
-})
diff --git a/tools/eslint/node_modules/inherits/package.json b/tools/eslint/node_modules/inherits/package.json
index 57448988915c7b..d121220ba659ba 100644
--- a/tools/eslint/node_modules/inherits/package.json
+++ b/tools/eslint/node_modules/inherits/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"inherits@~2.0.1",
- "/Users/trott/test/node_modules/eslint/node_modules/concat-stream"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/concat-stream"
]
],
"_from": "inherits@>=2.0.1 <2.1.0",
"_id": "inherits@2.0.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/inherits",
+ "_location": "/inherits",
"_npmUser": {
"email": "i@izs.me",
"name": "isaacs"
@@ -25,16 +25,16 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/concat-stream",
- "/eslint/glob",
- "/eslint/readable-stream",
- "/eslint/rimraf/glob"
+ "/concat-stream",
+ "/glob",
+ "/globby/glob",
+ "/readable-stream"
],
"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
"_shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",
"_shrinkwrap": null,
"_spec": "inherits@~2.0.1",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/concat-stream",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/concat-stream",
"browser": "./inherits_browser.js",
"bugs": {
"url": "https://github.com/isaacs/inherits/issues"
@@ -45,25 +45,25 @@
"directories": {},
"dist": {
"shasum": "b17d08d326b4423e568eff719f91b0b1cbdf69f1",
- "tarball": "http://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"
+ "tarball": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"
},
"homepage": "https://github.com/isaacs/inherits#readme",
"keywords": [
- "inheritance",
+ "browser",
+ "browserify",
"class",
+ "inheritance",
+ "inherits",
"klass",
- "oop",
"object-oriented",
- "inherits",
- "browser",
- "browserify"
+ "oop"
],
"license": "ISC",
"main": "./inherits.js",
"maintainers": [
{
- "email": "i@izs.me",
- "name": "isaacs"
+ "name": "isaacs",
+ "email": "i@izs.me"
}
],
"name": "inherits",
diff --git a/tools/eslint/node_modules/inherits/test.js b/tools/eslint/node_modules/inherits/test.js
deleted file mode 100644
index fc53012d31c0cd..00000000000000
--- a/tools/eslint/node_modules/inherits/test.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var inherits = require('./inherits.js')
-var assert = require('assert')
-
-function test(c) {
- assert(c.constructor === Child)
- assert(c.constructor.super_ === Parent)
- assert(Object.getPrototypeOf(c) === Child.prototype)
- assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype)
- assert(c instanceof Child)
- assert(c instanceof Parent)
-}
-
-function Child() {
- Parent.call(this)
- test(this)
-}
-
-function Parent() {}
-
-inherits(Child, Parent)
-
-var c = new Child
-test(c)
-
-console.log('ok')
diff --git a/tools/eslint/node_modules/inquirer/package.json b/tools/eslint/node_modules/inquirer/package.json
index 654a767f7e5fad..529ff5cbd87574 100644
--- a/tools/eslint/node_modules/inquirer/package.json
+++ b/tools/eslint/node_modules/inquirer/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"inquirer@^0.12.0",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "inquirer@>=0.12.0 <0.13.0",
"_id": "inquirer@0.12.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/inquirer",
+ "_location": "/inquirer",
"_nodeVersion": "5.2.0",
"_npmOperationalInternal": {
"host": "packages-9-west.internal.npmjs.com",
@@ -30,13 +30,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
"_resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz",
"_shasum": "1ef2bfd63504df0bc75785fff8c2c41df12f077e",
"_shrinkwrap": null,
"_spec": "inquirer@^0.12.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "admin@simonboudrias.com",
"name": "Simon Boudrias"
@@ -74,7 +74,7 @@
"directories": {},
"dist": {
"shasum": "1ef2bfd63504df0bc75785fff8c2c41df12f077e",
- "tarball": "http://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz"
+ "tarball": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz"
},
"files": [
"lib"
@@ -82,19 +82,19 @@
"gitHead": "a0c2d4d2bcd2818f27c8a2e96477d65f0f386944",
"homepage": "https://github.com/sboudrias/Inquirer.js#readme",
"keywords": [
+ "cli",
"command",
+ "menu",
"prompt",
"stdin",
- "cli",
- "tty",
- "menu"
+ "tty"
],
"license": "MIT",
"main": "lib/inquirer.js",
"maintainers": [
{
- "email": "admin@simonboudrias.com",
- "name": "sboudrias"
+ "name": "sboudrias",
+ "email": "admin@simonboudrias.com"
}
],
"name": "inquirer",
diff --git a/tools/eslint/node_modules/is-fullwidth-code-point/package.json b/tools/eslint/node_modules/is-fullwidth-code-point/package.json
index f2869d6d675099..05ef35459e7e20 100644
--- a/tools/eslint/node_modules/is-fullwidth-code-point/package.json
+++ b/tools/eslint/node_modules/is-fullwidth-code-point/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"is-fullwidth-code-point@^1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/readline2"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/readline2"
]
],
"_from": "is-fullwidth-code-point@>=1.0.0 <2.0.0",
"_id": "is-fullwidth-code-point@1.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/is-fullwidth-code-point",
+ "_location": "/is-fullwidth-code-point",
"_nodeVersion": "0.12.5",
"_npmUser": {
"email": "sindresorhus@gmail.com",
@@ -26,14 +26,14 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/readline2",
- "/eslint/string-width"
+ "/readline2",
+ "/string-width"
],
"_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"_shasum": "ef9e31386f031a7f0d643af82fde50c457ef00cb",
"_shrinkwrap": null,
"_spec": "is-fullwidth-code-point@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/readline2",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/readline2",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -64,27 +64,27 @@
"gitHead": "f2152d357f41f82785436d428e4f8ede143b7548",
"homepage": "https://github.com/sindresorhus/is-fullwidth-code-point",
"keywords": [
- "fullwidth",
- "full-width",
- "full",
- "width",
- "unicode",
- "character",
"char",
- "string",
- "str",
- "codepoint",
+ "character",
+ "check",
"code",
- "point",
- "is",
+ "codepoint",
"detect",
- "check"
+ "full",
+ "full-width",
+ "fullwidth",
+ "is",
+ "point",
+ "str",
+ "string",
+ "unicode",
+ "width"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "is-fullwidth-code-point",
diff --git a/tools/eslint/node_modules/is-my-json-valid/.npmignore b/tools/eslint/node_modules/is-my-json-valid/.npmignore
deleted file mode 100644
index dbb0721ce547c1..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules
-cosmicrealms.com
diff --git a/tools/eslint/node_modules/is-my-json-valid/.travis.yml b/tools/eslint/node_modules/is-my-json-valid/.travis.yml
deleted file mode 100644
index 6e5919de39a312..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/.travis.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-language: node_js
-node_js:
- - "0.10"
diff --git a/tools/eslint/node_modules/is-my-json-valid/README.md b/tools/eslint/node_modules/is-my-json-valid/README.md
index cbf2b20d336045..104a425ad204ed 100644
--- a/tools/eslint/node_modules/is-my-json-valid/README.md
+++ b/tools/eslint/node_modules/is-my-json-valid/README.md
@@ -40,7 +40,7 @@ console.log(validate.errors)
You can also pass the schema as a string
``` js
-var validate = validate('{"type": ... }')
+var validate = validator('{"type": ... }')
```
Optionally you can use the require submodule to load a schema from `__dirname`
@@ -128,7 +128,7 @@ var validate = validator({
})
validate({hello: 100});
-console.log(validate.errors) // {field: 'data.hello', message: 'is the wrong type', value: 100}
+console.log(validate.errors) // {field: 'data.hello', message: 'is the wrong type', value: 100, type: 'string'}
```
## Greedy mode tries to validate as much as possible
diff --git a/tools/eslint/node_modules/is-my-json-valid/index.js b/tools/eslint/node_modules/is-my-json-valid/index.js
index f24db9b1c9062b..f929bb75394944 100644
--- a/tools/eslint/node_modules/is-my-json-valid/index.js
+++ b/tools/eslint/node_modules/is-my-json-valid/index.js
@@ -5,7 +5,6 @@ var xtend = require('xtend')
var formats = require('./formats')
var get = function(obj, additionalSchemas, ptr) {
- if (/^https?:\/\//.test(ptr)) return null
var visit = function(sub) {
if (sub && sub.id === ptr) return sub
@@ -98,13 +97,25 @@ var unique = function(array) {
return true
}
+var isMultipleOf = function(name, multipleOf) {
+ var res;
+ var factor = ((multipleOf | 0) !== multipleOf) ? Math.pow(10, multipleOf.toString().split('.').pop().length) : 1
+ if (factor > 1) {
+ var factorName = ((name | 0) !== name) ? Math.pow(10, name.toString().split('.').pop().length) : 1
+ if (factorName > factor) res = true
+ else res = Math.round(factor * name) % (factor * multipleOf)
+ }
+ else res = name % multipleOf;
+ return !res;
+}
+
var toType = function(node) {
return node.type
}
var compile = function(schema, cache, root, reporter, opts) {
var fmts = opts ? xtend(formats, opts.formats) : formats
- var scope = {unique:unique, formats:fmts}
+ var scope = {unique:unique, formats:fmts, isMultipleOf:isMultipleOf}
var verbose = opts ? !!opts.verbose : false;
var greedy = opts && opts.greedy !== undefined ?
opts.greedy : false;
@@ -150,7 +161,7 @@ var compile = function(schema, cache, root, reporter, opts) {
if (reporter === true) {
validate('if (validate.errors === null) validate.errors = []')
if (verbose) {
- validate('validate.errors.push({field:%s,message:%s,value:%s})', formatName(prop || name), JSON.stringify(msg), value || name)
+ validate('validate.errors.push({field:%s,message:%s,value:%s,type:%s})', formatName(prop || name), JSON.stringify(msg), value || name, JSON.stringify(type))
} else {
validate('validate.errors.push({field:%s,message:%s})', formatName(prop || name), JSON.stringify(msg))
}
@@ -434,9 +445,7 @@ var compile = function(schema, cache, root, reporter, opts) {
if (node.multipleOf !== undefined) {
if (type !== 'number' && type !== 'integer') validate('if (%s) {', types.number(name))
- var factor = ((node.multipleOf | 0) !== node.multipleOf) ? Math.pow(10, node.multipleOf.toString().split('.').pop().length) : 1
- if (factor > 1) validate('if ((%d*%s) % %d) {', factor, name, factor*node.multipleOf)
- else validate('if (%s % %d) {', name, node.multipleOf)
+ validate('if (!isMultipleOf(%s, %d)) {', name, node.multipleOf)
error('has a remainder')
validate('}')
diff --git a/tools/eslint/node_modules/is-my-json-valid/package.json b/tools/eslint/node_modules/is-my-json-valid/package.json
index 929ada2ba28d34..62cd6f7c5f5af2 100644
--- a/tools/eslint/node_modules/is-my-json-valid/package.json
+++ b/tools/eslint/node_modules/is-my-json-valid/package.json
@@ -2,15 +2,19 @@
"_args": [
[
"is-my-json-valid@^2.10.0",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "is-my-json-valid@>=2.10.0 <3.0.0",
- "_id": "is-my-json-valid@2.12.4",
+ "_id": "is-my-json-valid@2.13.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/is-my-json-valid",
+ "_location": "/is-my-json-valid",
"_nodeVersion": "4.2.3",
+ "_npmOperationalInternal": {
+ "host": "packages-5-east.internal.npmjs.com",
+ "tmp": "tmp/is-my-json-valid-2.13.1.tgz_1456180270224_0.17748022079467773"
+ },
"_npmUser": {
"email": "mathiasbuus@gmail.com",
"name": "mafintosh"
@@ -26,13 +30,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.4.tgz",
- "_shasum": "d4ed2bc1d7f88daf8d0f763b3e3e39a69bd37880",
+ "_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.13.1.tgz",
+ "_shasum": "d55778a82feb6b0963ff4be111d5d1684e890707",
"_shrinkwrap": null,
"_spec": "is-my-json-valid@^2.10.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"name": "Mathias Buus"
},
@@ -51,35 +55,35 @@
},
"directories": {},
"dist": {
- "shasum": "d4ed2bc1d7f88daf8d0f763b3e3e39a69bd37880",
- "tarball": "http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.4.tgz"
+ "shasum": "d55778a82feb6b0963ff4be111d5d1684e890707",
+ "tarball": "http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.13.1.tgz"
},
- "gitHead": "8978aa8f40eef4ac47a5d18270c13abd48927ddb",
+ "gitHead": "5bacc71441750bc6e79829abcfc21d4f2f0c4396",
"homepage": "https://github.com/mafintosh/is-my-json-valid",
"keywords": [
"json",
- "schema",
+ "jsonschema",
"orderly",
- "jsonschema"
+ "schema"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
- "email": "freeall@gmail.com",
- "name": "freeall"
+ "name": "freeall",
+ "email": "freeall@gmail.com"
},
{
- "email": "mathiasbuus@gmail.com",
- "name": "mafintosh"
+ "name": "mafintosh",
+ "email": "mathiasbuus@gmail.com"
},
{
- "email": "w@tson.dk",
- "name": "watson"
+ "name": "watson",
+ "email": "w@tson.dk"
},
{
- "email": "i@yoshuawuyts.com",
- "name": "yoshuawuyts"
+ "name": "yoshuawuyts",
+ "email": "i@yoshuawuyts.com"
}
],
"name": "is-my-json-valid",
@@ -92,5 +96,5 @@
"scripts": {
"test": "tape test/*.js"
},
- "version": "2.12.4"
+ "version": "2.13.1"
}
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/fixtures/cosmic.js b/tools/eslint/node_modules/is-my-json-valid/test/fixtures/cosmic.js
deleted file mode 100644
index 4e0a34b210c52b..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/fixtures/cosmic.js
+++ /dev/null
@@ -1,84 +0,0 @@
-exports.valid = {
- fullName : "John Doe",
- age : 47,
- state : "Massachusetts",
- city : "Boston",
- zip : 16417,
- married : false,
- dozen : 12,
- dozenOrBakersDozen : 13,
- favoriteEvenNumber : 14,
- topThreeFavoriteColors : [ "red", "blue", "green" ],
- favoriteSingleDigitWholeNumbers : [ 7 ],
- favoriteFiveLetterWord : "coder",
- emailAddresses :
- [
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@letters-in-local.org",
- "01234567890@numbers-in-local.net",
- "&'*+-./=?^_{}~@other-valid-characters-in-local.net",
- "mixed-1234-in-{+^}-local@sld.net",
- "a@single-character-in-local.org",
- "\"quoted\"@sld.com",
- "\"\\e\\s\\c\\a\\p\\e\\d\"@sld.com",
- "\"quoted-at-sign@sld.org\"@sld.com",
- "\"escaped\\\"quote\"@sld.com",
- "\"back\\slash\"@sld.com",
- "one-character-third-level@a.example.com",
- "single-character-in-sld@x.org",
- "local@dash-in-sld.com",
- "letters-in-sld@123.com",
- "one-letter-sld@x.org",
- "uncommon-tld@sld.museum",
- "uncommon-tld@sld.travel",
- "uncommon-tld@sld.mobi",
- "country-code-tld@sld.uk",
- "country-code-tld@sld.rw",
- "local@sld.newTLD",
- "the-total-length@of-an-entire-address.cannot-be-longer-than-two-hundred-and-fifty-four-characters.and-this-address-is-254-characters-exactly.so-it-should-be-valid.and-im-going-to-add-some-more-words-here.to-increase-the-lenght-blah-blah-blah-blah-bla.org",
- "the-character-limit@for-each-part.of-the-domain.is-sixty-three-characters.this-is-exactly-sixty-three-characters-so-it-is-valid-blah-blah.com",
- "local@sub.domains.com"
- ],
- ipAddresses : [ "127.0.0.1", "24.48.64.2", "192.168.1.1", "209.68.44.3", "2.2.2.2" ]
-}
-
-exports.invalid = {
- fullName : null,
- age : -1,
- state : 47,
- city : false,
- zip : [null],
- married : "yes",
- dozen : 50,
- dozenOrBakersDozen : "over 9000",
- favoriteEvenNumber : 15,
- topThreeFavoriteColors : [ "red", 5 ],
- favoriteSingleDigitWholeNumbers : [ 78, 2, 999 ],
- favoriteFiveLetterWord : "codernaut",
- emailAddresses : [],
- ipAddresses : [ "999.0.099.1", "294.48.64.2346", false, "2221409.64214128.42414.235233", "124124.12412412" ]
-}
-
-exports.schema = { // from cosmic thingy
- name : "test",
- type : "object",
- additionalProperties : false,
- required : ["fullName", "age", "zip", "married", "dozen", "dozenOrBakersDozen", "favoriteEvenNumber", "topThreeFavoriteColors", "favoriteSingleDigitWholeNumbers", "favoriteFiveLetterWord", "emailAddresses", "ipAddresses"],
- properties :
- {
- fullName : { type : "string" },
- age : { type : "integer", minimum : 0 },
- optionalItem : { type : "string" },
- state : { type : "string" },
- city : { type : "string" },
- zip : { type : "integer", minimum : 0, maximum : 99999 },
- married : { type : "boolean" },
- dozen : { type : "integer", minimum : 12, maximum : 12 },
- dozenOrBakersDozen : { type : "integer", minimum : 12, maximum : 13 },
- favoriteEvenNumber : { type : "integer", multipleOf : 2 },
- topThreeFavoriteColors : { type : "array", minItems : 3, maxItems : 3, uniqueItems : true, items : { type : "string" }},
- favoriteSingleDigitWholeNumbers : { type : "array", minItems : 1, maxItems : 10, uniqueItems : true, items : { type : "integer", minimum : 0, maximum : 9 }},
- favoriteFiveLetterWord : { type : "string", minLength : 5, maxLength : 5 },
- emailAddresses : { type : "array", minItems : 1, uniqueItems : true, items : { type : "string", format : "email" }},
- ipAddresses : { type : "array", uniqueItems : true, items : { type : "string", format : "ipv4" }},
- }
- }
\ No newline at end of file
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json
deleted file mode 100644
index 521745c8d6ed50..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/additionalItems.json
+++ /dev/null
@@ -1,82 +0,0 @@
-[
- {
- "description": "additionalItems as schema",
- "schema": {
- "items": [{}],
- "additionalItems": {"type": "integer"}
- },
- "tests": [
- {
- "description": "additional items match schema",
- "data": [ null, 2, 3, 4 ],
- "valid": true
- },
- {
- "description": "additional items do not match schema",
- "data": [ null, 2, 3, "foo" ],
- "valid": false
- }
- ]
- },
- {
- "description": "items is schema, no additionalItems",
- "schema": {
- "items": {},
- "additionalItems": false
- },
- "tests": [
- {
- "description": "all items match schema",
- "data": [ 1, 2, 3, 4, 5 ],
- "valid": true
- }
- ]
- },
- {
- "description": "array of items with no additionalItems",
- "schema": {
- "items": [{}, {}, {}],
- "additionalItems": false
- },
- "tests": [
- {
- "description": "no additional items present",
- "data": [ 1, 2, 3 ],
- "valid": true
- },
- {
- "description": "additional items are not permitted",
- "data": [ 1, 2, 3, 4 ],
- "valid": false
- }
- ]
- },
- {
- "description": "additionalItems as false without items",
- "schema": {"additionalItems": false},
- "tests": [
- {
- "description":
- "items defaults to empty schema so everything is valid",
- "data": [ 1, 2, 3, 4, 5 ],
- "valid": true
- },
- {
- "description": "ignores non-arrays",
- "data": {"foo" : "bar"},
- "valid": true
- }
- ]
- },
- {
- "description": "additionalItems are allowed by default",
- "schema": {"items": [{"type": "integer"}]},
- "tests": [
- {
- "description": "only the first item is validated",
- "data": [1, "foo", false],
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json
deleted file mode 100644
index 40831f9e9aa135..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/additionalProperties.json
+++ /dev/null
@@ -1,88 +0,0 @@
-[
- {
- "description":
- "additionalProperties being false does not allow other properties",
- "schema": {
- "properties": {"foo": {}, "bar": {}},
- "patternProperties": { "^v": {} },
- "additionalProperties": false
- },
- "tests": [
- {
- "description": "no additional properties is valid",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "an additional property is invalid",
- "data": {"foo" : 1, "bar" : 2, "quux" : "boom"},
- "valid": false
- },
- {
- "description": "ignores non-objects",
- "data": [1, 2, 3],
- "valid": true
- },
- {
- "description": "patternProperties are not additional properties",
- "data": {"foo":1, "vroom": 2},
- "valid": true
- }
- ]
- },
- {
- "description":
- "additionalProperties allows a schema which should validate",
- "schema": {
- "properties": {"foo": {}, "bar": {}},
- "additionalProperties": {"type": "boolean"}
- },
- "tests": [
- {
- "description": "no additional properties is valid",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "an additional valid property is valid",
- "data": {"foo" : 1, "bar" : 2, "quux" : true},
- "valid": true
- },
- {
- "description": "an additional invalid property is invalid",
- "data": {"foo" : 1, "bar" : 2, "quux" : 12},
- "valid": false
- }
- ]
- },
- {
- "description":
- "additionalProperties can exist by itself",
- "schema": {
- "additionalProperties": {"type": "boolean"}
- },
- "tests": [
- {
- "description": "an additional valid property is valid",
- "data": {"foo" : true},
- "valid": true
- },
- {
- "description": "an additional invalid property is invalid",
- "data": {"foo" : 1},
- "valid": false
- }
- ]
- },
- {
- "description": "additionalProperties are allowed by default",
- "schema": {"properties": {"foo": {}, "bar": {}}},
- "tests": [
- {
- "description": "additional properties are allowed",
- "data": {"foo": 1, "bar": 2, "quux": true},
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json
deleted file mode 100644
index bbb5f89e4bc5e1..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/allOf.json
+++ /dev/null
@@ -1,112 +0,0 @@
-[
- {
- "description": "allOf",
- "schema": {
- "allOf": [
- {
- "properties": {
- "bar": {"type": "integer"}
- },
- "required": ["bar"]
- },
- {
- "properties": {
- "foo": {"type": "string"}
- },
- "required": ["foo"]
- }
- ]
- },
- "tests": [
- {
- "description": "allOf",
- "data": {"foo": "baz", "bar": 2},
- "valid": true
- },
- {
- "description": "mismatch second",
- "data": {"foo": "baz"},
- "valid": false
- },
- {
- "description": "mismatch first",
- "data": {"bar": 2},
- "valid": false
- },
- {
- "description": "wrong type",
- "data": {"foo": "baz", "bar": "quux"},
- "valid": false
- }
- ]
- },
- {
- "description": "allOf with base schema",
- "schema": {
- "properties": {"bar": {"type": "integer"}},
- "required": ["bar"],
- "allOf" : [
- {
- "properties": {
- "foo": {"type": "string"}
- },
- "required": ["foo"]
- },
- {
- "properties": {
- "baz": {"type": "null"}
- },
- "required": ["baz"]
- }
- ]
- },
- "tests": [
- {
- "description": "valid",
- "data": {"foo": "quux", "bar": 2, "baz": null},
- "valid": true
- },
- {
- "description": "mismatch base schema",
- "data": {"foo": "quux", "baz": null},
- "valid": false
- },
- {
- "description": "mismatch first allOf",
- "data": {"bar": 2, "baz": null},
- "valid": false
- },
- {
- "description": "mismatch second allOf",
- "data": {"foo": "quux", "bar": 2},
- "valid": false
- },
- {
- "description": "mismatch both",
- "data": {"bar": 2},
- "valid": false
- }
- ]
- },
- {
- "description": "allOf simple types",
- "schema": {
- "allOf": [
- {"maximum": 30},
- {"minimum": 20}
- ]
- },
- "tests": [
- {
- "description": "valid",
- "data": 25,
- "valid": true
- },
- {
- "description": "mismatch one",
- "data": 35,
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
deleted file mode 100644
index a58714afd89277..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
+++ /dev/null
@@ -1,68 +0,0 @@
-[
- {
- "description": "anyOf",
- "schema": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "minimum": 2
- }
- ]
- },
- "tests": [
- {
- "description": "first anyOf valid",
- "data": 1,
- "valid": true
- },
- {
- "description": "second anyOf valid",
- "data": 2.5,
- "valid": true
- },
- {
- "description": "both anyOf valid",
- "data": 3,
- "valid": true
- },
- {
- "description": "neither anyOf valid",
- "data": 1.5,
- "valid": false
- }
- ]
- },
- {
- "description": "anyOf with base schema",
- "schema": {
- "type": "string",
- "anyOf" : [
- {
- "maxLength": 2
- },
- {
- "minLength": 4
- }
- ]
- },
- "tests": [
- {
- "description": "mismatch base schema",
- "data": 3,
- "valid": false
- },
- {
- "description": "one anyOf valid",
- "data": "foobar",
- "valid": true
- },
- {
- "description": "both anyOf invalid",
- "data": "foo",
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json
deleted file mode 100644
index ccc7c17fe8d504..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/bignum.json
+++ /dev/null
@@ -1,107 +0,0 @@
-[
- {
- "description": "integer",
- "schema": {"type": "integer"},
- "tests": [
- {
- "description": "a bignum is an integer",
- "data": 12345678910111213141516171819202122232425262728293031,
- "valid": true
- }
- ]
- },
- {
- "description": "number",
- "schema": {"type": "number"},
- "tests": [
- {
- "description": "a bignum is a number",
- "data": 98249283749234923498293171823948729348710298301928331,
- "valid": true
- }
- ]
- },
- {
- "description": "integer",
- "schema": {"type": "integer"},
- "tests": [
- {
- "description": "a negative bignum is an integer",
- "data": -12345678910111213141516171819202122232425262728293031,
- "valid": true
- }
- ]
- },
- {
- "description": "number",
- "schema": {"type": "number"},
- "tests": [
- {
- "description": "a negative bignum is a number",
- "data": -98249283749234923498293171823948729348710298301928331,
- "valid": true
- }
- ]
- },
- {
- "description": "string",
- "schema": {"type": "string"},
- "tests": [
- {
- "description": "a bignum is not a string",
- "data": 98249283749234923498293171823948729348710298301928331,
- "valid": false
- }
- ]
- },
- {
- "description": "integer comparison",
- "schema": {"maximum": 18446744073709551615},
- "tests": [
- {
- "description": "comparison works for high numbers",
- "data": 18446744073709551600,
- "valid": true
- }
- ]
- },
- {
- "description": "float comparison with high precision",
- "schema": {
- "maximum": 972783798187987123879878123.18878137,
- "exclusiveMaximum": true
- },
- "tests": [
- {
- "description": "comparison works for high numbers",
- "data": 972783798187987123879878123.188781371,
- "valid": false
- }
- ]
- },
- {
- "description": "integer comparison",
- "schema": {"minimum": -18446744073709551615},
- "tests": [
- {
- "description": "comparison works for very negative numbers",
- "data": -18446744073709551600,
- "valid": true
- }
- ]
- },
- {
- "description": "float comparison with high precision on negative numbers",
- "schema": {
- "minimum": -972783798187987123879878123.18878137,
- "exclusiveMinimum": true
- },
- "tests": [
- {
- "description": "comparison works for very negative numbers",
- "data": -972783798187987123879878123.188781371,
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/default.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/default.json
deleted file mode 100644
index 17629779fbeabe..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/default.json
+++ /dev/null
@@ -1,49 +0,0 @@
-[
- {
- "description": "invalid type for default",
- "schema": {
- "properties": {
- "foo": {
- "type": "integer",
- "default": []
- }
- }
- },
- "tests": [
- {
- "description": "valid when property is specified",
- "data": {"foo": 13},
- "valid": true
- },
- {
- "description": "still valid when the invalid default is used",
- "data": {},
- "valid": true
- }
- ]
- },
- {
- "description": "invalid string value for default",
- "schema": {
- "properties": {
- "bar": {
- "type": "string",
- "minLength": 4,
- "default": "bad"
- }
- }
- },
- "tests": [
- {
- "description": "valid when property is specified",
- "data": {"bar": "good"},
- "valid": true
- },
- {
- "description": "still valid when the invalid default is used",
- "data": {},
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json
deleted file mode 100644
index cf935a321532a6..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/definitions.json
+++ /dev/null
@@ -1,32 +0,0 @@
-[
- {
- "description": "valid definition",
- "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
- "tests": [
- {
- "description": "valid definition schema",
- "data": {
- "definitions": {
- "foo": {"type": "integer"}
- }
- },
- "valid": true
- }
- ]
- },
- {
- "description": "invalid definition",
- "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
- "tests": [
- {
- "description": "invalid definition schema",
- "data": {
- "definitions": {
- "foo": {"type": 1}
- }
- },
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json
deleted file mode 100644
index 7b9b16a7e125ff..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/dependencies.json
+++ /dev/null
@@ -1,113 +0,0 @@
-[
- {
- "description": "dependencies",
- "schema": {
- "dependencies": {"bar": ["foo"]}
- },
- "tests": [
- {
- "description": "neither",
- "data": {},
- "valid": true
- },
- {
- "description": "nondependant",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "with dependency",
- "data": {"foo": 1, "bar": 2},
- "valid": true
- },
- {
- "description": "missing dependency",
- "data": {"bar": 2},
- "valid": false
- },
- {
- "description": "ignores non-objects",
- "data": "foo",
- "valid": true
- }
- ]
- },
- {
- "description": "multiple dependencies",
- "schema": {
- "dependencies": {"quux": ["foo", "bar"]}
- },
- "tests": [
- {
- "description": "neither",
- "data": {},
- "valid": true
- },
- {
- "description": "nondependants",
- "data": {"foo": 1, "bar": 2},
- "valid": true
- },
- {
- "description": "with dependencies",
- "data": {"foo": 1, "bar": 2, "quux": 3},
- "valid": true
- },
- {
- "description": "missing dependency",
- "data": {"foo": 1, "quux": 2},
- "valid": false
- },
- {
- "description": "missing other dependency",
- "data": {"bar": 1, "quux": 2},
- "valid": false
- },
- {
- "description": "missing both dependencies",
- "data": {"quux": 1},
- "valid": false
- }
- ]
- },
- {
- "description": "multiple dependencies subschema",
- "schema": {
- "dependencies": {
- "bar": {
- "properties": {
- "foo": {"type": "integer"},
- "bar": {"type": "integer"}
- }
- }
- }
- },
- "tests": [
- {
- "description": "valid",
- "data": {"foo": 1, "bar": 2},
- "valid": true
- },
- {
- "description": "no dependency",
- "data": {"foo": "quux"},
- "valid": true
- },
- {
- "description": "wrong type",
- "data": {"foo": "quux", "bar": 2},
- "valid": false
- },
- {
- "description": "wrong type other",
- "data": {"foo": 2, "bar": "quux"},
- "valid": false
- },
- {
- "description": "wrong type both",
- "data": {"foo": "quux", "bar": "quux"},
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json
deleted file mode 100644
index f124436a7d9040..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/enum.json
+++ /dev/null
@@ -1,72 +0,0 @@
-[
- {
- "description": "simple enum validation",
- "schema": {"enum": [1, 2, 3]},
- "tests": [
- {
- "description": "one of the enum is valid",
- "data": 1,
- "valid": true
- },
- {
- "description": "something else is invalid",
- "data": 4,
- "valid": false
- }
- ]
- },
- {
- "description": "heterogeneous enum validation",
- "schema": {"enum": [6, "foo", [], true, {"foo": 12}]},
- "tests": [
- {
- "description": "one of the enum is valid",
- "data": [],
- "valid": true
- },
- {
- "description": "something else is invalid",
- "data": null,
- "valid": false
- },
- {
- "description": "objects are deep compared",
- "data": {"foo": false},
- "valid": false
- }
- ]
- },
- {
- "description": "enums in properties",
- "schema": {
- "type":"object",
- "properties": {
- "foo": {"enum":["foo"]},
- "bar": {"enum":["bar"]}
- },
- "required": ["bar"]
- },
- "tests": [
- {
- "description": "both properties are valid",
- "data": {"foo":"foo", "bar":"bar"},
- "valid": true
- },
- {
- "description": "missing optional property is valid",
- "data": {"bar":"bar"},
- "valid": true
- },
- {
- "description": "missing required property is invalid",
- "data": {"foo":"foo"},
- "valid": false
- },
- {
- "description": "missing all properties is invalid",
- "data": {},
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/format.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/format.json
deleted file mode 100644
index 53c5d2519056c6..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/format.json
+++ /dev/null
@@ -1,143 +0,0 @@
-[
- {
- "description": "validation of date-time strings",
- "schema": {"format": "date-time"},
- "tests": [
- {
- "description": "a valid date-time string",
- "data": "1963-06-19T08:30:06.283185Z",
- "valid": true
- },
- {
- "description": "an invalid date-time string",
- "data": "06/19/1963 08:30:06 PST",
- "valid": false
- },
- {
- "description": "only RFC3339 not all of ISO 8601 are valid",
- "data": "2013-350T01:01:01",
- "valid": false
- }
- ]
- },
- {
- "description": "validation of URIs",
- "schema": {"format": "uri"},
- "tests": [
- {
- "description": "a valid URI",
- "data": "http://foo.bar/?baz=qux#quux",
- "valid": true
- },
- {
- "description": "an invalid URI",
- "data": "\\\\WINDOWS\\fileshare",
- "valid": false
- },
- {
- "description": "an invalid URI though valid URI reference",
- "data": "abc",
- "valid": false
- }
- ]
- },
- {
- "description": "validation of e-mail addresses",
- "schema": {"format": "email"},
- "tests": [
- {
- "description": "a valid e-mail address",
- "data": "joe.bloggs@example.com",
- "valid": true
- },
- {
- "description": "an invalid e-mail address",
- "data": "2962",
- "valid": false
- }
- ]
- },
- {
- "description": "validation of IP addresses",
- "schema": {"format": "ipv4"},
- "tests": [
- {
- "description": "a valid IP address",
- "data": "192.168.0.1",
- "valid": true
- },
- {
- "description": "an IP address with too many components",
- "data": "127.0.0.0.1",
- "valid": false
- },
- {
- "description": "an IP address with out-of-range values",
- "data": "256.256.256.256",
- "valid": false
- },
- {
- "description": "an IP address without 4 components",
- "data": "127.0",
- "valid": false
- },
- {
- "description": "an IP address as an integer",
- "data": "0x7f000001",
- "valid": false
- }
- ]
- },
- {
- "description": "validation of IPv6 addresses",
- "schema": {"format": "ipv6"},
- "tests": [
- {
- "description": "a valid IPv6 address",
- "data": "::1",
- "valid": true
- },
- {
- "description": "an IPv6 address with out-of-range values",
- "data": "12345::",
- "valid": false
- },
- {
- "description": "an IPv6 address with too many components",
- "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
- "valid": false
- },
- {
- "description": "an IPv6 address containing illegal characters",
- "data": "::laptop",
- "valid": false
- }
- ]
- },
- {
- "description": "validation of host names",
- "schema": {"format": "hostname"},
- "tests": [
- {
- "description": "a valid host name",
- "data": "www.example.com",
- "valid": true
- },
- {
- "description": "a host name starting with an illegal character",
- "data": "-a-host-name-that-starts-with--",
- "valid": false
- },
- {
- "description": "a host name containing illegal characters",
- "data": "not_a_valid_host_name",
- "valid": false
- },
- {
- "description": "a host name with a component too long",
- "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component",
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/items.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/items.json
deleted file mode 100644
index f5e18a13848f71..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/items.json
+++ /dev/null
@@ -1,46 +0,0 @@
-[
- {
- "description": "a schema given for items",
- "schema": {
- "items": {"type": "integer"}
- },
- "tests": [
- {
- "description": "valid items",
- "data": [ 1, 2, 3 ],
- "valid": true
- },
- {
- "description": "wrong type of items",
- "data": [1, "x"],
- "valid": false
- },
- {
- "description": "ignores non-arrays",
- "data": {"foo" : "bar"},
- "valid": true
- }
- ]
- },
- {
- "description": "an array of schemas for items",
- "schema": {
- "items": [
- {"type": "integer"},
- {"type": "string"}
- ]
- },
- "tests": [
- {
- "description": "correct types",
- "data": [ 1, "foo" ],
- "valid": true
- },
- {
- "description": "wrong types",
- "data": [ "foo", 1 ],
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json
deleted file mode 100644
index 3b53a6b371a7b6..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxItems.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "description": "maxItems validation",
- "schema": {"maxItems": 2},
- "tests": [
- {
- "description": "shorter is valid",
- "data": [1],
- "valid": true
- },
- {
- "description": "exact length is valid",
- "data": [1, 2],
- "valid": true
- },
- {
- "description": "too long is invalid",
- "data": [1, 2, 3],
- "valid": false
- },
- {
- "description": "ignores non-arrays",
- "data": "foobar",
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json
deleted file mode 100644
index 48eb1296d2e420..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxLength.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "description": "maxLength validation",
- "schema": {"maxLength": 2},
- "tests": [
- {
- "description": "shorter is valid",
- "data": "f",
- "valid": true
- },
- {
- "description": "exact length is valid",
- "data": "fo",
- "valid": true
- },
- {
- "description": "too long is invalid",
- "data": "foo",
- "valid": false
- },
- {
- "description": "ignores non-strings",
- "data": 100,
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json
deleted file mode 100644
index d282446ad6978d..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maxProperties.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "description": "maxProperties validation",
- "schema": {"maxProperties": 2},
- "tests": [
- {
- "description": "shorter is valid",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "exact length is valid",
- "data": {"foo": 1, "bar": 2},
- "valid": true
- },
- {
- "description": "too long is invalid",
- "data": {"foo": 1, "bar": 2, "baz": 3},
- "valid": false
- },
- {
- "description": "ignores non-objects",
- "data": "foobar",
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json
deleted file mode 100644
index 86c7b89c9a9047..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/maximum.json
+++ /dev/null
@@ -1,42 +0,0 @@
-[
- {
- "description": "maximum validation",
- "schema": {"maximum": 3.0},
- "tests": [
- {
- "description": "below the maximum is valid",
- "data": 2.6,
- "valid": true
- },
- {
- "description": "above the maximum is invalid",
- "data": 3.5,
- "valid": false
- },
- {
- "description": "ignores non-numbers",
- "data": "x",
- "valid": true
- }
- ]
- },
- {
- "description": "exclusiveMaximum validation",
- "schema": {
- "maximum": 3.0,
- "exclusiveMaximum": true
- },
- "tests": [
- {
- "description": "below the maximum is still valid",
- "data": 2.2,
- "valid": true
- },
- {
- "description": "boundary point is invalid",
- "data": 3.0,
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json
deleted file mode 100644
index ed5118815ee933..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minItems.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "description": "minItems validation",
- "schema": {"minItems": 1},
- "tests": [
- {
- "description": "longer is valid",
- "data": [1, 2],
- "valid": true
- },
- {
- "description": "exact length is valid",
- "data": [1],
- "valid": true
- },
- {
- "description": "too short is invalid",
- "data": [],
- "valid": false
- },
- {
- "description": "ignores non-arrays",
- "data": "",
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json
deleted file mode 100644
index e9c14b1723efd9..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minLength.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "description": "minLength validation",
- "schema": {"minLength": 2},
- "tests": [
- {
- "description": "longer is valid",
- "data": "foo",
- "valid": true
- },
- {
- "description": "exact length is valid",
- "data": "fo",
- "valid": true
- },
- {
- "description": "too short is invalid",
- "data": "f",
- "valid": false
- },
- {
- "description": "ignores non-strings",
- "data": 1,
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json
deleted file mode 100644
index a72c7d293e6c3e..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minProperties.json
+++ /dev/null
@@ -1,28 +0,0 @@
-[
- {
- "description": "minProperties validation",
- "schema": {"minProperties": 1},
- "tests": [
- {
- "description": "longer is valid",
- "data": {"foo": 1, "bar": 2},
- "valid": true
- },
- {
- "description": "exact length is valid",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "too short is invalid",
- "data": {},
- "valid": false
- },
- {
- "description": "ignores non-objects",
- "data": "",
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json
deleted file mode 100644
index d5bf000bcc66f8..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/minimum.json
+++ /dev/null
@@ -1,42 +0,0 @@
-[
- {
- "description": "minimum validation",
- "schema": {"minimum": 1.1},
- "tests": [
- {
- "description": "above the minimum is valid",
- "data": 2.6,
- "valid": true
- },
- {
- "description": "below the minimum is invalid",
- "data": 0.6,
- "valid": false
- },
- {
- "description": "ignores non-numbers",
- "data": "x",
- "valid": true
- }
- ]
- },
- {
- "description": "exclusiveMinimum validation",
- "schema": {
- "minimum": 1.1,
- "exclusiveMinimum": true
- },
- "tests": [
- {
- "description": "above the minimum is still valid",
- "data": 1.2,
- "valid": true
- },
- {
- "description": "boundary point is invalid",
- "data": 1.1,
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json
deleted file mode 100644
index ca3b7618053f49..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json
+++ /dev/null
@@ -1,60 +0,0 @@
-[
- {
- "description": "by int",
- "schema": {"multipleOf": 2},
- "tests": [
- {
- "description": "int by int",
- "data": 10,
- "valid": true
- },
- {
- "description": "int by int fail",
- "data": 7,
- "valid": false
- },
- {
- "description": "ignores non-numbers",
- "data": "foo",
- "valid": true
- }
- ]
- },
- {
- "description": "by number",
- "schema": {"multipleOf": 1.5},
- "tests": [
- {
- "description": "zero is multiple of anything",
- "data": 0,
- "valid": true
- },
- {
- "description": "4.5 is multiple of 1.5",
- "data": 4.5,
- "valid": true
- },
- {
- "description": "35 is not multiple of 1.5",
- "data": 35,
- "valid": false
- }
- ]
- },
- {
- "description": "by small number",
- "schema": {"multipleOf": 0.0001},
- "tests": [
- {
- "description": "0.0075 is multiple of 0.0001",
- "data": 0.0075,
- "valid": true
- },
- {
- "description": "0.00751 is not multiple of 0.0001",
- "data": 0.00751,
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/not.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/not.json
deleted file mode 100644
index f66690fe1bbff5..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/not.json
+++ /dev/null
@@ -1,96 +0,0 @@
-[
- {
- "description": "not",
- "schema": {
- "not": {"type": "integer"}
- },
- "tests": [
- {
- "description": "allowed",
- "data": "foo",
- "valid": true
- },
- {
- "description": "disallowed",
- "data": 1,
- "valid": false
- }
- ]
- },
- {
- "description": "not multiple types",
- "schema": {
- "not": {"type": ["integer", "boolean"]}
- },
- "tests": [
- {
- "description": "valid",
- "data": "foo",
- "valid": true
- },
- {
- "description": "mismatch",
- "data": 1,
- "valid": false
- },
- {
- "description": "other mismatch",
- "data": true,
- "valid": false
- }
- ]
- },
- {
- "description": "not more complex schema",
- "schema": {
- "not": {
- "type": "object",
- "properties": {
- "foo": {
- "type": "string"
- }
- }
- }
- },
- "tests": [
- {
- "description": "match",
- "data": 1,
- "valid": true
- },
- {
- "description": "other match",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "mismatch",
- "data": {"foo": "bar"},
- "valid": false
- }
- ]
- },
- {
- "description": "forbidden property",
- "schema": {
- "properties": {
- "foo": {
- "not": {}
- }
- }
- },
- "tests": [
- {
- "description": "property present",
- "data": {"foo": 1, "bar": 2},
- "valid": false
- },
- {
- "description": "property absent",
- "data": {"bar": 1, "baz": 2},
- "valid": true
- }
- ]
- }
-
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json
deleted file mode 100644
index d7fce9f50907a0..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndFormat.json
+++ /dev/null
@@ -1,18 +0,0 @@
-[
- {
- "description": "validation of null and format",
- "schema": {"type": ["null", "string"], "format": "date-time"},
- "tests": [
- {
- "description": "a valid date-time string",
- "data": "1963-06-19T08:30:06.283185Z",
- "valid": true
- },
- {
- "description": "allow null",
- "data": null,
- "valid": true
- }
- ]
- }
-]
\ No newline at end of file
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json
deleted file mode 100644
index c65c02c36f9706..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/nullAndObject.json
+++ /dev/null
@@ -1,18 +0,0 @@
-[
- {
- "description": "multiple types of null and object containing properties",
- "schema": {
- "type": ["null", "object"],
- "properties": {
- "foo": {}
- }
- },
- "tests": [
- {
- "description": "null is valid",
- "data": null,
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json
deleted file mode 100644
index 1eaa4e47949dc3..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json
+++ /dev/null
@@ -1,68 +0,0 @@
-[
- {
- "description": "oneOf",
- "schema": {
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "minimum": 2
- }
- ]
- },
- "tests": [
- {
- "description": "first oneOf valid",
- "data": 1,
- "valid": true
- },
- {
- "description": "second oneOf valid",
- "data": 2.5,
- "valid": true
- },
- {
- "description": "both oneOf valid",
- "data": 3,
- "valid": false
- },
- {
- "description": "neither oneOf valid",
- "data": 1.5,
- "valid": false
- }
- ]
- },
- {
- "description": "oneOf with base schema",
- "schema": {
- "type": "string",
- "oneOf" : [
- {
- "minLength": 2
- },
- {
- "maxLength": 4
- }
- ]
- },
- "tests": [
- {
- "description": "mismatch base schema",
- "data": 3,
- "valid": false
- },
- {
- "description": "one oneOf valid",
- "data": "foobar",
- "valid": true
- },
- {
- "description": "both oneOf valid",
- "data": "foo",
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json
deleted file mode 100644
index befc4b560f7c33..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/pattern.json
+++ /dev/null
@@ -1,23 +0,0 @@
-[
- {
- "description": "pattern validation",
- "schema": {"pattern": "^a*$"},
- "tests": [
- {
- "description": "a matching pattern is valid",
- "data": "aaa",
- "valid": true
- },
- {
- "description": "a non-matching pattern is invalid",
- "data": "abc",
- "valid": false
- },
- {
- "description": "ignores non-strings",
- "data": true,
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json
deleted file mode 100644
index 18586e5daba602..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/patternProperties.json
+++ /dev/null
@@ -1,110 +0,0 @@
-[
- {
- "description":
- "patternProperties validates properties matching a regex",
- "schema": {
- "patternProperties": {
- "f.*o": {"type": "integer"}
- }
- },
- "tests": [
- {
- "description": "a single valid match is valid",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "multiple valid matches is valid",
- "data": {"foo": 1, "foooooo" : 2},
- "valid": true
- },
- {
- "description": "a single invalid match is invalid",
- "data": {"foo": "bar", "fooooo": 2},
- "valid": false
- },
- {
- "description": "multiple invalid matches is invalid",
- "data": {"foo": "bar", "foooooo" : "baz"},
- "valid": false
- },
- {
- "description": "ignores non-objects",
- "data": 12,
- "valid": true
- }
- ]
- },
- {
- "description": "multiple simultaneous patternProperties are validated",
- "schema": {
- "patternProperties": {
- "a*": {"type": "integer"},
- "aaa*": {"maximum": 20}
- }
- },
- "tests": [
- {
- "description": "a single valid match is valid",
- "data": {"a": 21},
- "valid": true
- },
- {
- "description": "a simultaneous match is valid",
- "data": {"aaaa": 18},
- "valid": true
- },
- {
- "description": "multiple matches is valid",
- "data": {"a": 21, "aaaa": 18},
- "valid": true
- },
- {
- "description": "an invalid due to one is invalid",
- "data": {"a": "bar"},
- "valid": false
- },
- {
- "description": "an invalid due to the other is invalid",
- "data": {"aaaa": 31},
- "valid": false
- },
- {
- "description": "an invalid due to both is invalid",
- "data": {"aaa": "foo", "aaaa": 31},
- "valid": false
- }
- ]
- },
- {
- "description": "regexes are not anchored by default and are case sensitive",
- "schema": {
- "patternProperties": {
- "[0-9]{2,}": { "type": "boolean" },
- "X_": { "type": "string" }
- }
- },
- "tests": [
- {
- "description": "non recognized members are ignored",
- "data": { "answer 1": "42" },
- "valid": true
- },
- {
- "description": "recognized members are accounted for",
- "data": { "a31b": null },
- "valid": false
- },
- {
- "description": "regexes are case sensitive",
- "data": { "a_x_3": 3 },
- "valid": true
- },
- {
- "description": "regexes are case sensitive, 2",
- "data": { "a_X_3": 3 },
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json
deleted file mode 100644
index cd1644dcd91fe0..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/properties.json
+++ /dev/null
@@ -1,92 +0,0 @@
-[
- {
- "description": "object properties validation",
- "schema": {
- "properties": {
- "foo": {"type": "integer"},
- "bar": {"type": "string"}
- }
- },
- "tests": [
- {
- "description": "both properties present and valid is valid",
- "data": {"foo": 1, "bar": "baz"},
- "valid": true
- },
- {
- "description": "one property invalid is invalid",
- "data": {"foo": 1, "bar": {}},
- "valid": false
- },
- {
- "description": "both properties invalid is invalid",
- "data": {"foo": [], "bar": {}},
- "valid": false
- },
- {
- "description": "doesn't invalidate other properties",
- "data": {"quux": []},
- "valid": true
- },
- {
- "description": "ignores non-objects",
- "data": [],
- "valid": true
- }
- ]
- },
- {
- "description":
- "properties, patternProperties, additionalProperties interaction",
- "schema": {
- "properties": {
- "foo": {"type": "array", "maxItems": 3},
- "bar": {"type": "array"}
- },
- "patternProperties": {"f.o": {"minItems": 2}},
- "additionalProperties": {"type": "integer"}
- },
- "tests": [
- {
- "description": "property validates property",
- "data": {"foo": [1, 2]},
- "valid": true
- },
- {
- "description": "property invalidates property",
- "data": {"foo": [1, 2, 3, 4]},
- "valid": false
- },
- {
- "description": "patternProperty invalidates property",
- "data": {"foo": []},
- "valid": false
- },
- {
- "description": "patternProperty validates nonproperty",
- "data": {"fxo": [1, 2]},
- "valid": true
- },
- {
- "description": "patternProperty invalidates nonproperty",
- "data": {"fxo": []},
- "valid": false
- },
- {
- "description": "additionalProperty ignores property",
- "data": {"bar": []},
- "valid": true
- },
- {
- "description": "additionalProperty validates others",
- "data": {"quux": 3},
- "valid": true
- },
- {
- "description": "additionalProperty invalidates others",
- "data": {"quux": "foo"},
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json
deleted file mode 100644
index d8214bc2b30c1f..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/ref.json
+++ /dev/null
@@ -1,128 +0,0 @@
-[
- {
- "description": "root pointer ref",
- "schema": {
- "properties": {
- "foo": {"$ref": "#"}
- },
- "additionalProperties": false
- },
- "tests": [
- {
- "description": "match",
- "data": {"foo": false},
- "valid": true
- },
- {
- "description": "recursive match",
- "data": {"foo": {"foo": false}},
- "valid": true
- },
- {
- "description": "mismatch",
- "data": {"bar": false},
- "valid": false
- },
- {
- "description": "recursive mismatch",
- "data": {"foo": {"bar": false}},
- "valid": false
- }
- ]
- },
- {
- "description": "relative pointer ref to object",
- "schema": {
- "properties": {
- "foo": {"type": "integer"},
- "bar": {"$ref": "#/properties/foo"}
- }
- },
- "tests": [
- {
- "description": "match",
- "data": {"bar": 3},
- "valid": true
- },
- {
- "description": "mismatch",
- "data": {"bar": true},
- "valid": false
- }
- ]
- },
- {
- "description": "relative pointer ref to array",
- "schema": {
- "items": [
- {"type": "integer"},
- {"$ref": "#/items/0"}
- ]
- },
- "tests": [
- {
- "description": "match array",
- "data": [1, 2],
- "valid": true
- },
- {
- "description": "mismatch array",
- "data": [1, "foo"],
- "valid": false
- }
- ]
- },
- {
- "description": "escaped pointer ref",
- "schema": {
- "tilda~field": {"type": "integer"},
- "slash/field": {"type": "integer"},
- "percent%field": {"type": "integer"},
- "properties": {
- "tilda": {"$ref": "#/tilda~0field"},
- "slash": {"$ref": "#/slash~1field"},
- "percent": {"$ref": "#/percent%25field"}
- }
- },
- "tests": [
- {
- "description": "slash",
- "data": {"slash": "aoeu"},
- "valid": false
- },
- {
- "description": "tilda",
- "data": {"tilda": "aoeu"},
- "valid": false
- },
- {
- "description": "percent",
- "data": {"percent": "aoeu"},
- "valid": false
- }
- ]
- },
- {
- "description": "nested refs",
- "schema": {
- "definitions": {
- "a": {"type": "integer"},
- "b": {"$ref": "#/definitions/a"},
- "c": {"$ref": "#/definitions/b"}
- },
- "$ref": "#/definitions/c"
- },
- "tests": [
- {
- "description": "nested ref valid",
- "data": 5,
- "valid": true
- },
- {
- "description": "nested ref invalid",
- "data": "a",
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json
deleted file mode 100644
index 4ca804732c9754..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/refRemote.json
+++ /dev/null
@@ -1,74 +0,0 @@
-[
- {
- "description": "remote ref",
- "schema": {"$ref": "http://localhost:1234/integer.json"},
- "tests": [
- {
- "description": "remote ref valid",
- "data": 1,
- "valid": true
- },
- {
- "description": "remote ref invalid",
- "data": "a",
- "valid": false
- }
- ]
- },
- {
- "description": "fragment within remote ref",
- "schema": {"$ref": "http://localhost:1234/subSchemas.json#/integer"},
- "tests": [
- {
- "description": "remote fragment valid",
- "data": 1,
- "valid": true
- },
- {
- "description": "remote fragment invalid",
- "data": "a",
- "valid": false
- }
- ]
- },
- {
- "description": "ref within remote ref",
- "schema": {
- "$ref": "http://localhost:1234/subSchemas.json#/refToInteger"
- },
- "tests": [
- {
- "description": "ref within ref valid",
- "data": 1,
- "valid": true
- },
- {
- "description": "ref within ref invalid",
- "data": "a",
- "valid": false
- }
- ]
- },
- {
- "description": "change resolution scope",
- "schema": {
- "id": "http://localhost:1234/",
- "items": {
- "id": "folder/",
- "items": {"$ref": "folderInteger.json"}
- }
- },
- "tests": [
- {
- "description": "changed scope ref valid",
- "data": [[1]],
- "valid": true
- },
- {
- "description": "changed scope ref invalid",
- "data": [["a"]],
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/required.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/required.json
deleted file mode 100644
index 612f73f3472bc0..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/required.json
+++ /dev/null
@@ -1,39 +0,0 @@
-[
- {
- "description": "required validation",
- "schema": {
- "properties": {
- "foo": {},
- "bar": {}
- },
- "required": ["foo"]
- },
- "tests": [
- {
- "description": "present required property is valid",
- "data": {"foo": 1},
- "valid": true
- },
- {
- "description": "non-present required property is invalid",
- "data": {"bar": 1},
- "valid": false
- }
- ]
- },
- {
- "description": "required default validation",
- "schema": {
- "properties": {
- "foo": {}
- }
- },
- "tests": [
- {
- "description": "not required by default",
- "data": {},
- "valid": true
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/type.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/type.json
deleted file mode 100644
index 257f05129279fa..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/type.json
+++ /dev/null
@@ -1,330 +0,0 @@
-[
- {
- "description": "integer type matches integers",
- "schema": {"type": "integer"},
- "tests": [
- {
- "description": "an integer is an integer",
- "data": 1,
- "valid": true
- },
- {
- "description": "a float is not an integer",
- "data": 1.1,
- "valid": false
- },
- {
- "description": "a string is not an integer",
- "data": "foo",
- "valid": false
- },
- {
- "description": "an object is not an integer",
- "data": {},
- "valid": false
- },
- {
- "description": "an array is not an integer",
- "data": [],
- "valid": false
- },
- {
- "description": "a boolean is not an integer",
- "data": true,
- "valid": false
- },
- {
- "description": "null is not an integer",
- "data": null,
- "valid": false
- }
- ]
- },
- {
- "description": "number type matches numbers",
- "schema": {"type": "number"},
- "tests": [
- {
- "description": "an integer is a number",
- "data": 1,
- "valid": true
- },
- {
- "description": "a float is a number",
- "data": 1.1,
- "valid": true
- },
- {
- "description": "a string is not a number",
- "data": "foo",
- "valid": false
- },
- {
- "description": "an object is not a number",
- "data": {},
- "valid": false
- },
- {
- "description": "an array is not a number",
- "data": [],
- "valid": false
- },
- {
- "description": "a boolean is not a number",
- "data": true,
- "valid": false
- },
- {
- "description": "null is not a number",
- "data": null,
- "valid": false
- }
- ]
- },
- {
- "description": "string type matches strings",
- "schema": {"type": "string"},
- "tests": [
- {
- "description": "1 is not a string",
- "data": 1,
- "valid": false
- },
- {
- "description": "a float is not a string",
- "data": 1.1,
- "valid": false
- },
- {
- "description": "a string is a string",
- "data": "foo",
- "valid": true
- },
- {
- "description": "an object is not a string",
- "data": {},
- "valid": false
- },
- {
- "description": "an array is not a string",
- "data": [],
- "valid": false
- },
- {
- "description": "a boolean is not a string",
- "data": true,
- "valid": false
- },
- {
- "description": "null is not a string",
- "data": null,
- "valid": false
- }
- ]
- },
- {
- "description": "object type matches objects",
- "schema": {"type": "object"},
- "tests": [
- {
- "description": "an integer is not an object",
- "data": 1,
- "valid": false
- },
- {
- "description": "a float is not an object",
- "data": 1.1,
- "valid": false
- },
- {
- "description": "a string is not an object",
- "data": "foo",
- "valid": false
- },
- {
- "description": "an object is an object",
- "data": {},
- "valid": true
- },
- {
- "description": "an array is not an object",
- "data": [],
- "valid": false
- },
- {
- "description": "a boolean is not an object",
- "data": true,
- "valid": false
- },
- {
- "description": "null is not an object",
- "data": null,
- "valid": false
- }
- ]
- },
- {
- "description": "array type matches arrays",
- "schema": {"type": "array"},
- "tests": [
- {
- "description": "an integer is not an array",
- "data": 1,
- "valid": false
- },
- {
- "description": "a float is not an array",
- "data": 1.1,
- "valid": false
- },
- {
- "description": "a string is not an array",
- "data": "foo",
- "valid": false
- },
- {
- "description": "an object is not an array",
- "data": {},
- "valid": false
- },
- {
- "description": "an array is not an array",
- "data": [],
- "valid": true
- },
- {
- "description": "a boolean is not an array",
- "data": true,
- "valid": false
- },
- {
- "description": "null is not an array",
- "data": null,
- "valid": false
- }
- ]
- },
- {
- "description": "boolean type matches booleans",
- "schema": {"type": "boolean"},
- "tests": [
- {
- "description": "an integer is not a boolean",
- "data": 1,
- "valid": false
- },
- {
- "description": "a float is not a boolean",
- "data": 1.1,
- "valid": false
- },
- {
- "description": "a string is not a boolean",
- "data": "foo",
- "valid": false
- },
- {
- "description": "an object is not a boolean",
- "data": {},
- "valid": false
- },
- {
- "description": "an array is not a boolean",
- "data": [],
- "valid": false
- },
- {
- "description": "a boolean is not a boolean",
- "data": true,
- "valid": true
- },
- {
- "description": "null is not a boolean",
- "data": null,
- "valid": false
- }
- ]
- },
- {
- "description": "null type matches only the null object",
- "schema": {"type": "null"},
- "tests": [
- {
- "description": "an integer is not null",
- "data": 1,
- "valid": false
- },
- {
- "description": "a float is not null",
- "data": 1.1,
- "valid": false
- },
- {
- "description": "a string is not null",
- "data": "foo",
- "valid": false
- },
- {
- "description": "an object is not null",
- "data": {},
- "valid": false
- },
- {
- "description": "an array is not null",
- "data": [],
- "valid": false
- },
- {
- "description": "a boolean is not null",
- "data": true,
- "valid": false
- },
- {
- "description": "null is null",
- "data": null,
- "valid": true
- }
- ]
- },
- {
- "description": "multiple types can be specified in an array",
- "schema": {"type": ["integer", "string"]},
- "tests": [
- {
- "description": "an integer is valid",
- "data": 1,
- "valid": true
- },
- {
- "description": "a string is valid",
- "data": "foo",
- "valid": true
- },
- {
- "description": "a float is invalid",
- "data": 1.1,
- "valid": false
- },
- {
- "description": "an object is invalid",
- "data": {},
- "valid": false
- },
- {
- "description": "an array is invalid",
- "data": [],
- "valid": false
- },
- {
- "description": "a boolean is invalid",
- "data": true,
- "valid": false
- },
- {
- "description": "null is invalid",
- "data": null,
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json b/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json
deleted file mode 100644
index c1f4ab99c9a485..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/uniqueItems.json
+++ /dev/null
@@ -1,79 +0,0 @@
-[
- {
- "description": "uniqueItems validation",
- "schema": {"uniqueItems": true},
- "tests": [
- {
- "description": "unique array of integers is valid",
- "data": [1, 2],
- "valid": true
- },
- {
- "description": "non-unique array of integers is invalid",
- "data": [1, 1],
- "valid": false
- },
- {
- "description": "numbers are unique if mathematically unequal",
- "data": [1.0, 1.00, 1],
- "valid": false
- },
- {
- "description": "unique array of objects is valid",
- "data": [{"foo": "bar"}, {"foo": "baz"}],
- "valid": true
- },
- {
- "description": "non-unique array of objects is invalid",
- "data": [{"foo": "bar"}, {"foo": "bar"}],
- "valid": false
- },
- {
- "description": "unique array of nested objects is valid",
- "data": [
- {"foo": {"bar" : {"baz" : true}}},
- {"foo": {"bar" : {"baz" : false}}}
- ],
- "valid": true
- },
- {
- "description": "non-unique array of nested objects is invalid",
- "data": [
- {"foo": {"bar" : {"baz" : true}}},
- {"foo": {"bar" : {"baz" : true}}}
- ],
- "valid": false
- },
- {
- "description": "unique array of arrays is valid",
- "data": [["foo"], ["bar"]],
- "valid": true
- },
- {
- "description": "non-unique array of arrays is invalid",
- "data": [["foo"], ["foo"]],
- "valid": false
- },
- {
- "description": "1 and true are unique",
- "data": [1, true],
- "valid": true
- },
- {
- "description": "0 and false are unique",
- "data": [0, false],
- "valid": true
- },
- {
- "description": "unique heterogeneous types are valid",
- "data": [{}, [1], true, null, 1],
- "valid": true
- },
- {
- "description": "non-unique heterogeneous types are invalid",
- "data": [{}, [1], true, null, {}, 1],
- "valid": false
- }
- ]
- }
-]
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/json-schema.js b/tools/eslint/node_modules/is-my-json-valid/test/json-schema.js
deleted file mode 100644
index e68a263a279218..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/json-schema.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var tape = require('tape')
-var fs = require('fs')
-var validator = require('../')
-
-var files = fs.readdirSync(__dirname+'/json-schema-draft4')
- .map(function(file) {
- if (file === 'definitions.json') return null
- if (file === 'refRemote.json') return null
- return require('./json-schema-draft4/'+file)
- })
- .filter(Boolean)
-
-files.forEach(function(file) {
- file.forEach(function(f) {
- tape('json-schema-test-suite '+f.description, function(t) {
- var validate = validator(f.schema)
- f.tests.forEach(function(test) {
- t.same(validate(test.data), test.valid, test.description)
- })
- t.end()
- })
- })
-})
diff --git a/tools/eslint/node_modules/is-my-json-valid/test/misc.js b/tools/eslint/node_modules/is-my-json-valid/test/misc.js
deleted file mode 100644
index b5109e576f26b9..00000000000000
--- a/tools/eslint/node_modules/is-my-json-valid/test/misc.js
+++ /dev/null
@@ -1,429 +0,0 @@
-var tape = require('tape')
-var cosmic = require('./fixtures/cosmic')
-var validator = require('../')
-var validatorRequire = require('../require')
-
-tape('simple', function(t) {
- var schema = {
- required: true,
- type: 'object',
- properties: {
- hello: {type:'string', required:true}
- }
- }
-
- var validate = validator(schema)
-
- t.ok(validate({hello: 'world'}), 'should be valid')
- t.notOk(validate(), 'should be invalid')
- t.notOk(validate({}), 'should be invalid')
- t.end()
-})
-
-tape('advanced', function(t) {
- var validate = validator(cosmic.schema)
-
- t.ok(validate(cosmic.valid), 'should be valid')
- t.notOk(validate(cosmic.invalid), 'should be invalid')
- t.end()
-})
-
-tape('greedy/false', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- x: {
- type: 'number'
- }
- },
- required: ['x', 'y']
- });
- t.notOk(validate({}), 'should be invalid')
- t.strictEqual(validate.errors.length, 2);
- t.strictEqual(validate.errors[0].field, 'data.x')
- t.strictEqual(validate.errors[0].message, 'is required')
- t.strictEqual(validate.errors[1].field, 'data.y')
- t.strictEqual(validate.errors[1].message, 'is required')
- t.notOk(validate({x: 'string'}), 'should be invalid')
- t.strictEqual(validate.errors.length, 1);
- t.strictEqual(validate.errors[0].field, 'data.y')
- t.strictEqual(validate.errors[0].message, 'is required')
- t.notOk(validate({x: 'string', y: 'value'}), 'should be invalid')
- t.strictEqual(validate.errors.length, 1);
- t.strictEqual(validate.errors[0].field, 'data.x')
- t.strictEqual(validate.errors[0].message, 'is the wrong type')
- t.end();
-});
-
-tape('greedy/true', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- x: {
- type: 'number'
- }
- },
- required: ['x', 'y']
- }, {
- greedy: true
- });
- t.notOk(validate({}), 'should be invalid')
- t.strictEqual(validate.errors.length, 2);
- t.strictEqual(validate.errors[0].field, 'data.x')
- t.strictEqual(validate.errors[0].message, 'is required')
- t.strictEqual(validate.errors[1].field, 'data.y')
- t.strictEqual(validate.errors[1].message, 'is required')
- t.notOk(validate({x: 'string'}), 'should be invalid')
- t.strictEqual(validate.errors.length, 2);
- t.strictEqual(validate.errors[0].field, 'data.y')
- t.strictEqual(validate.errors[0].message, 'is required')
- t.strictEqual(validate.errors[1].field, 'data.x')
- t.strictEqual(validate.errors[1].message, 'is the wrong type')
- t.notOk(validate({x: 'string', y: 'value'}), 'should be invalid')
- t.strictEqual(validate.errors.length, 1);
- t.strictEqual(validate.errors[0].field, 'data.x')
- t.strictEqual(validate.errors[0].message, 'is the wrong type')
- t.ok(validate({x: 1, y: 'value'}), 'should be invalid')
- t.end();
-});
-
-tape('additional props', function(t) {
- var validate = validator({
- type: 'object',
- additionalProperties: false
- }, {
- verbose: true
- })
-
- t.ok(validate({}))
- t.notOk(validate({foo:'bar'}))
- t.ok(validate.errors[0].value === 'data.foo', 'should output the property not allowed in verbose mode')
- t.end()
-})
-
-tape('array', function(t) {
- var validate = validator({
- type: 'array',
- required: true,
- items: {
- type: 'string'
- }
- })
-
- t.notOk(validate({}), 'wrong type')
- t.notOk(validate(), 'is required')
- t.ok(validate(['test']))
- t.end()
-})
-
-tape('nested array', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- list: {
- type: 'array',
- required: true,
- items: {
- type: 'string'
- }
- }
- }
- })
-
- t.notOk(validate({}), 'is required')
- t.ok(validate({list:['test']}))
- t.notOk(validate({list:[1]}))
- t.end()
-})
-
-tape('enum', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- foo: {
- type: 'number',
- required: true,
- enum: [42]
- }
- }
- })
-
- t.notOk(validate({}), 'is required')
- t.ok(validate({foo:42}))
- t.notOk(validate({foo:43}))
- t.end()
-})
-
-tape('minimum/maximum', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- foo: {
- type: 'number',
- minimum: 0,
- maximum: 0
- }
- }
- })
-
- t.notOk(validate({foo:-42}))
- t.ok(validate({foo:0}))
- t.notOk(validate({foo:42}))
- t.end()
-})
-
-tape('exclusiveMinimum/exclusiveMaximum', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- foo: {
- type: 'number',
- minimum: 10,
- maximum: 20,
- exclusiveMinimum: true,
- exclusiveMaximum: true
- }
- }
- })
-
- t.notOk(validate({foo:10}))
- t.ok(validate({foo:11}))
- t.notOk(validate({foo:20}))
- t.ok(validate({foo:19}))
- t.end()
-})
-
-tape('custom format', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- foo: {
- type: 'string',
- format: 'as'
- }
- }
- }, {formats: {as:/^a+$/}})
-
- t.notOk(validate({foo:''}), 'not as')
- t.notOk(validate({foo:'b'}), 'not as')
- t.notOk(validate({foo:'aaab'}), 'not as')
- t.ok(validate({foo:'a'}), 'as')
- t.ok(validate({foo:'aaaaaa'}), 'as')
- t.end()
-})
-
-tape('custom format function', function(t) {
- var validate = validator({
- type: 'object',
- properties: {
- foo: {
- type: 'string',
- format: 'as'
- }
- }
- }, {formats: {as:function(s) { return /^a+$/.test(s) } }})
-
- t.notOk(validate({foo:''}), 'not as')
- t.notOk(validate({foo:'b'}), 'not as')
- t.notOk(validate({foo:'aaab'}), 'not as')
- t.ok(validate({foo:'a'}), 'as')
- t.ok(validate({foo:'aaaaaa'}), 'as')
- t.end()
-})
-
-tape('do not mutate schema', function(t) {
- var sch = {
- items: [
- {}
- ],
- additionalItems: {
- type: 'integer'
- }
- }
-
- var copy = JSON.parse(JSON.stringify(sch))
-
- validator(sch)
-
- t.same(sch, copy, 'did not mutate')
- t.end()
-})
-
-tape('#toJSON()', function(t) {
- var schema = {
- required: true,
- type: 'object',
- properties: {
- hello: {type:'string', required:true}
- }
- }
-
- var validate = validator(schema)
-
- t.deepEqual(validate.toJSON(), schema, 'should return original schema')
- t.end()
-})
-
-tape('external schemas', function(t) {
- var ext = {type: 'string'}
- var schema = {
- required: true,
- $ref: '#ext'
- }
-
- var validate = validator(schema, {schemas: {ext:ext}})
-
- t.ok(validate('hello string'), 'is a string')
- t.notOk(validate(42), 'not a string')
- t.end()
-})
-
-tape('top-level external schema', function(t) {
- var defs = {
- "string": {
- type: "string"
- },
- "sex": {
- type: "string",
- enum: ["male", "female", "other"]
- }
- }
- var schema = {
- type: "object",
- properties: {
- "name": { $ref: "definitions.json#/string" },
- "sex": { $ref: "definitions.json#/sex" }
- },
- required: ["name", "sex"]
- }
-
- var validate = validator(schema, {
- schemas: {
- "definitions.json": defs
- }
- })
- t.ok(validate({name:"alice", sex:"female"}), 'is an object')
- t.notOk(validate({name:"alice", sex: "bob"}), 'recognizes external schema')
- t.notOk(validate({name:2, sex: "female"}), 'recognizes external schema')
- t.end()
-})
-
-tape('nested required array decl', function(t) {
- var schema = {
- properties: {
- x: {
- type: 'object',
- properties: {
- y: {
- type: 'object',
- properties: {
- z: {
- type: 'string'
- }
- },
- required: ['z']
- }
- }
- }
- },
- required: ['x']
- }
-
- var validate = validator(schema)
-
- t.ok(validate({x: {}}), 'should be valid')
- t.notOk(validate({}), 'should not be valid')
- t.strictEqual(validate.errors[0].field, 'data.x', 'should output the missing field')
- t.end()
-})
-
-tape('verbose mode', function(t) {
- var schema = {
- required: true,
- type: 'object',
- properties: {
- hello: {
- required: true,
- type: 'string'
- }
- }
- };
-
- var validate = validator(schema, {verbose: true})
-
- t.ok(validate({hello: 'string'}), 'should be valid')
- t.notOk(validate({hello: 100}), 'should not be valid')
- t.strictEqual(validate.errors[0].value, 100, 'error object should contain the invalid value')
- t.end()
-})
-
-tape('additional props in verbose mode', function(t) {
- var schema = {
- type: 'object',
- required: true,
- additionalProperties: false,
- properties: {
- foo: {
- type: 'string'
- },
- 'hello world': {
- type: 'object',
- required: true,
- additionalProperties: false,
- properties: {
- foo: {
- type: 'string'
- }
- }
- }
- }
- };
-
- var validate = validator(schema, {verbose: true})
-
- validate({'hello world': {bar: 'string'}});
-
- t.strictEqual(validate.errors[0].value, 'data["hello world"].bar', 'should output the path to the additional prop in the error')
- t.end()
-})
-
-tape('Date.now() is an integer', function(t) {
- var schema = {type: 'integer'}
- var validate = validator(schema)
-
- t.ok(validate(Date.now()), 'is integer')
- t.end()
-})
-
-tape('field shows item index in arrays', function(t) {
- var schema = {
- type: 'array',
- items: {
- type: 'array',
- items: {
- properties: {
- foo: {
- type: 'string',
- required: true
- }
- }
- }
- }
- }
-
- var validate = validator(schema)
-
- validate([
- [
- { foo: 'test' },
- { foo: 'test' }
- ],
- [
- { foo: 'test' },
- { baz: 'test' }
- ]
- ])
-
- t.strictEqual(validate.errors[0].field, 'data.1.1.foo', 'should output the field with specific index of failing item in the error')
- t.end()
-})
diff --git a/tools/eslint/node_modules/is-path-cwd/package.json b/tools/eslint/node_modules/is-path-cwd/package.json
index e3a6a3c7b1152d..53311c57f7941f 100644
--- a/tools/eslint/node_modules/is-path-cwd/package.json
+++ b/tools/eslint/node_modules/is-path-cwd/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"is-path-cwd@^1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/del"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/del"
]
],
"_from": "is-path-cwd@>=1.0.0 <2.0.0",
"_id": "is-path-cwd@1.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/is-path-cwd",
+ "_location": "/is-path-cwd",
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
@@ -25,13 +25,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/del"
+ "/del"
],
"_resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
"_shasum": "d225ec23132e89edd38fda767472e62e65f1106d",
"_shrinkwrap": null,
"_spec": "is-path-cwd@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/del",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/del",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -59,19 +59,19 @@
"gitHead": "f71d4ecaa43bfe23c9cb35af6bf31e6b5b3f04eb",
"homepage": "https://github.com/sindresorhus/is-path-cwd",
"keywords": [
- "path",
- "cwd",
- "pwd",
"check",
- "filepath",
+ "cwd",
"file",
- "folder"
+ "filepath",
+ "folder",
+ "path",
+ "pwd"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "is-path-cwd",
diff --git a/tools/eslint/node_modules/is-path-in-cwd/package.json b/tools/eslint/node_modules/is-path-in-cwd/package.json
index 25884ed6bcc8f4..bae1a3afb4450c 100644
--- a/tools/eslint/node_modules/is-path-in-cwd/package.json
+++ b/tools/eslint/node_modules/is-path-in-cwd/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"is-path-in-cwd@^1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/del"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/del"
]
],
"_from": "is-path-in-cwd@>=1.0.0 <2.0.0",
"_id": "is-path-in-cwd@1.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/is-path-in-cwd",
+ "_location": "/is-path-in-cwd",
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
@@ -25,13 +25,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/del"
+ "/del"
],
"_resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz",
"_shasum": "6477582b8214d602346094567003be8a9eac04dc",
"_shrinkwrap": null,
"_spec": "is-path-in-cwd@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/del",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/del",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -61,21 +61,21 @@
"gitHead": "a5a2a7c967eae3f6faee9ab5e40abca6127d55de",
"homepage": "https://github.com/sindresorhus/is-path-in-cwd",
"keywords": [
- "path",
- "cwd",
- "pwd",
"check",
- "filepath",
+ "cwd",
"file",
+ "filepath",
"folder",
"in",
- "inside"
+ "inside",
+ "path",
+ "pwd"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "is-path-in-cwd",
diff --git a/tools/eslint/node_modules/is-path-inside/package.json b/tools/eslint/node_modules/is-path-inside/package.json
index fe03962cdd3ef1..03e9e6f8db05c8 100644
--- a/tools/eslint/node_modules/is-path-inside/package.json
+++ b/tools/eslint/node_modules/is-path-inside/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"is-path-inside@^1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/is-path-in-cwd"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/is-path-in-cwd"
]
],
"_from": "is-path-inside@>=1.0.0 <2.0.0",
"_id": "is-path-inside@1.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/is-path-inside",
+ "_location": "/is-path-inside",
"_npmUser": {
"email": "sindresorhus@gmail.com",
"name": "sindresorhus"
@@ -25,13 +25,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/is-path-in-cwd"
+ "/is-path-in-cwd"
],
"_resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz",
"_shasum": "fc06e5a1683fbda13de667aff717bbc10a48f37f",
"_shrinkwrap": null,
"_spec": "is-path-inside@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/is-path-in-cwd",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/is-path-in-cwd",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
@@ -61,19 +61,19 @@
"gitHead": "b507035b66a539b7c12ba8b6b486377aa02aef9f",
"homepage": "https://github.com/sindresorhus/is-path-inside",
"keywords": [
- "path",
- "inside",
- "folder",
- "directory",
"dir",
+ "directory",
"file",
+ "folder",
+ "inside",
+ "path",
"resolve"
],
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "is-path-inside",
diff --git a/tools/eslint/node_modules/is-property/.npmignore b/tools/eslint/node_modules/is-property/.npmignore
deleted file mode 100644
index 8ecfa25a868d83..00000000000000
--- a/tools/eslint/node_modules/is-property/.npmignore
+++ /dev/null
@@ -1,17 +0,0 @@
-lib-cov
-*.seed
-*.log
-*.csv
-*.dat
-*.out
-*.pid
-*.gz
-
-pids
-logs
-results
-
-npm-debug.log
-node_modules/*
-*.DS_Store
-test/*
\ No newline at end of file
diff --git a/tools/eslint/node_modules/is-property/package.json b/tools/eslint/node_modules/is-property/package.json
index 586bd1571f5d06..e1e26c85335343 100644
--- a/tools/eslint/node_modules/is-property/package.json
+++ b/tools/eslint/node_modules/is-property/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"is-property@^1.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/generate-object-property"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/generate-object-property"
]
],
"_from": "is-property@>=1.0.0 <2.0.0",
"_id": "is-property@1.0.2",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/is-property",
+ "_location": "/is-property",
"_nodeVersion": "0.10.26",
"_npmUser": {
"email": "mikolalysenko@gmail.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/generate-object-property"
+ "/generate-object-property"
],
"_resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
"_shasum": "57fe1c4e48474edd65b09911f26b1cd4095dda84",
"_shrinkwrap": null,
"_spec": "is-property@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/generate-object-property",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/generate-object-property",
"author": {
"name": "Mikola Lysenko"
},
@@ -54,20 +54,20 @@
"gitHead": "0a85ea5b6b1264ea1cdecc6e5cf186adbb3ffc50",
"homepage": "https://github.com/mikolalysenko/is-property",
"keywords": [
+ ".",
+ "[]",
+ "bracket",
+ "dot",
"is",
- "property",
"json",
- "dot",
- "bracket",
- ".",
- "[]"
+ "property"
],
"license": "MIT",
"main": "is-property.js",
"maintainers": [
{
- "email": "mikolalysenko@gmail.com",
- "name": "mikolalysenko"
+ "name": "mikolalysenko",
+ "email": "mikolalysenko@gmail.com"
}
],
"name": "is-property",
diff --git a/tools/eslint/node_modules/is-resolvable/package.json b/tools/eslint/node_modules/is-resolvable/package.json
index 3e53ca97816675..3bbdd3ad3d1c8a 100644
--- a/tools/eslint/node_modules/is-resolvable/package.json
+++ b/tools/eslint/node_modules/is-resolvable/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"is-resolvable@^1.0.0",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "is-resolvable@>=1.0.0 <2.0.0",
"_id": "is-resolvable@1.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/is-resolvable",
+ "_location": "/is-resolvable",
"_nodeVersion": "2.4.0",
"_npmUser": {
"email": "snnskwtnb@gmail.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
"_resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.0.0.tgz",
"_shasum": "8df57c61ea2e3c501408d100fb013cf8d6e0cc62",
"_shrinkwrap": null,
"_spec": "is-resolvable@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"name": "Shinnosuke Watanabe",
"url": "https://github.com/shinnn"
@@ -61,23 +61,23 @@
"gitHead": "e68ea1b3affa382cbd31b4bae1e1421040249a73",
"homepage": "https://github.com/shinnn/is-resolvable#readme",
"keywords": [
- "read",
+ "cmap",
+ "code-point",
+ "data",
"file",
"font",
"glyph",
- "code-point",
- "unicode",
+ "metadata",
"parse",
- "cmap",
+ "read",
"table",
- "data",
- "metadata"
+ "unicode"
],
"license": "MIT",
"maintainers": [
{
- "email": "snnskwtnb@gmail.com",
- "name": "shinnn"
+ "name": "shinnn",
+ "email": "snnskwtnb@gmail.com"
}
],
"name": "is-resolvable",
diff --git a/tools/eslint/node_modules/isarray/Makefile b/tools/eslint/node_modules/isarray/Makefile
new file mode 100644
index 00000000000000..0ecc29c402c243
--- /dev/null
+++ b/tools/eslint/node_modules/isarray/Makefile
@@ -0,0 +1,5 @@
+
+test:
+ @node_modules/.bin/tape test.js
+
+.PHONY: test
diff --git a/tools/eslint/node_modules/isarray/README.md b/tools/eslint/node_modules/isarray/README.md
index 052a62b8d7b7ae..16d2c59c6195f9 100644
--- a/tools/eslint/node_modules/isarray/README.md
+++ b/tools/eslint/node_modules/isarray/README.md
@@ -3,6 +3,12 @@
`Array#isArray` for older browsers.
+[](http://travis-ci.org/juliangruber/isarray)
+[](https://www.npmjs.org/package/isarray)
+
+[
+](https://ci.testling.com/juliangruber/isarray)
+
## Usage
```js
diff --git a/tools/eslint/node_modules/isarray/build/build.js b/tools/eslint/node_modules/isarray/build/build.js
deleted file mode 100644
index e1856ef0943728..00000000000000
--- a/tools/eslint/node_modules/isarray/build/build.js
+++ /dev/null
@@ -1,208 +0,0 @@
-
-/**
- * Require the given path.
- *
- * @param {String} path
- * @return {Object} exports
- * @api public
- */
-
-function require(path, parent, orig) {
- var resolved = require.resolve(path);
-
- // lookup failed
- if (null == resolved) {
- orig = orig || path;
- parent = parent || 'root';
- var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
- err.path = orig;
- err.parent = parent;
- err.require = true;
- throw err;
- }
-
- var module = require.modules[resolved];
-
- // perform real require()
- // by invoking the module's
- // registered function
- if (!module.exports) {
- module.exports = {};
- module.client = module.component = true;
- module.call(this, module.exports, require.relative(resolved), module);
- }
-
- return module.exports;
-}
-
-/**
- * Registered modules.
- */
-
-require.modules = {};
-
-/**
- * Registered aliases.
- */
-
-require.aliases = {};
-
-/**
- * Resolve `path`.
- *
- * Lookup:
- *
- * - PATH/index.js
- * - PATH.js
- * - PATH
- *
- * @param {String} path
- * @return {String} path or null
- * @api private
- */
-
-require.resolve = function(path) {
- if (path.charAt(0) === '/') path = path.slice(1);
- var index = path + '/index.js';
-
- var paths = [
- path,
- path + '.js',
- path + '.json',
- path + '/index.js',
- path + '/index.json'
- ];
-
- for (var i = 0; i < paths.length; i++) {
- var path = paths[i];
- if (require.modules.hasOwnProperty(path)) return path;
- }
-
- if (require.aliases.hasOwnProperty(index)) {
- return require.aliases[index];
- }
-};
-
-/**
- * Normalize `path` relative to the current path.
- *
- * @param {String} curr
- * @param {String} path
- * @return {String}
- * @api private
- */
-
-require.normalize = function(curr, path) {
- var segs = [];
-
- if ('.' != path.charAt(0)) return path;
-
- curr = curr.split('/');
- path = path.split('/');
-
- for (var i = 0; i < path.length; ++i) {
- if ('..' == path[i]) {
- curr.pop();
- } else if ('.' != path[i] && '' != path[i]) {
- segs.push(path[i]);
- }
- }
-
- return curr.concat(segs).join('/');
-};
-
-/**
- * Register module at `path` with callback `definition`.
- *
- * @param {String} path
- * @param {Function} definition
- * @api private
- */
-
-require.register = function(path, definition) {
- require.modules[path] = definition;
-};
-
-/**
- * Alias a module definition.
- *
- * @param {String} from
- * @param {String} to
- * @api private
- */
-
-require.alias = function(from, to) {
- if (!require.modules.hasOwnProperty(from)) {
- throw new Error('Failed to alias "' + from + '", it does not exist');
- }
- require.aliases[to] = from;
-};
-
-/**
- * Return a require function relative to the `parent` path.
- *
- * @param {String} parent
- * @return {Function}
- * @api private
- */
-
-require.relative = function(parent) {
- var p = require.normalize(parent, '..');
-
- /**
- * lastIndexOf helper.
- */
-
- function lastIndexOf(arr, obj) {
- var i = arr.length;
- while (i--) {
- if (arr[i] === obj) return i;
- }
- return -1;
- }
-
- /**
- * The relative require() itself.
- */
-
- function localRequire(path) {
- var resolved = localRequire.resolve(path);
- return require(resolved, parent, path);
- }
-
- /**
- * Resolve relative to the parent.
- */
-
- localRequire.resolve = function(path) {
- var c = path.charAt(0);
- if ('/' == c) return path.slice(1);
- if ('.' == c) return require.normalize(p, path);
-
- // resolve deps by returning
- // the dep in the nearest "deps"
- // directory
- var segs = parent.split('/');
- var i = lastIndexOf(segs, 'deps') + 1;
- if (!i) i = 0;
- path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
- return path;
- };
-
- /**
- * Check if module is defined at `path`.
- */
-
- localRequire.exists = function(path) {
- return require.modules.hasOwnProperty(localRequire.resolve(path));
- };
-
- return localRequire;
-};
-require.register("isarray/index.js", function(exports, require, module){
-module.exports = Array.isArray || function (arr) {
- return Object.prototype.toString.call(arr) == '[object Array]';
-};
-
-});
-require.alias("isarray/index.js", "isarray/index.js");
diff --git a/tools/eslint/node_modules/isarray/component.json b/tools/eslint/node_modules/isarray/component.json
deleted file mode 100644
index 9e31b683889015..00000000000000
--- a/tools/eslint/node_modules/isarray/component.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name" : "isarray",
- "description" : "Array#isArray for older browsers",
- "version" : "0.0.1",
- "repository" : "juliangruber/isarray",
- "homepage": "https://github.com/juliangruber/isarray",
- "main" : "index.js",
- "scripts" : [
- "index.js"
- ],
- "dependencies" : {},
- "keywords": ["browser","isarray","array"],
- "author": {
- "name": "Julian Gruber",
- "email": "mail@juliangruber.com",
- "url": "http://juliangruber.com"
- },
- "license": "MIT"
-}
diff --git a/tools/eslint/node_modules/isarray/index.js b/tools/eslint/node_modules/isarray/index.js
index 5f5ad45d46dda9..a57f63495943a0 100644
--- a/tools/eslint/node_modules/isarray/index.js
+++ b/tools/eslint/node_modules/isarray/index.js
@@ -1,3 +1,5 @@
+var toString = {}.toString;
+
module.exports = Array.isArray || function (arr) {
- return Object.prototype.toString.call(arr) == '[object Array]';
+ return toString.call(arr) == '[object Array]';
};
diff --git a/tools/eslint/node_modules/isarray/package.json b/tools/eslint/node_modules/isarray/package.json
index 699ef751cc8680..7f00f694edc02d 100644
--- a/tools/eslint/node_modules/isarray/package.json
+++ b/tools/eslint/node_modules/isarray/package.json
@@ -1,38 +1,39 @@
{
"_args": [
[
- "isarray@0.0.1",
- "/Users/trott/test/node_modules/eslint/node_modules/readable-stream"
+ "isarray@~1.0.0",
+ "/Users/silverwind/git/node/tools/package/package/node_modules/readable-stream"
]
],
- "_from": "isarray@0.0.1",
- "_id": "isarray@0.0.1",
+ "_from": "isarray@>=1.0.0 <1.1.0",
+ "_id": "isarray@1.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/isarray",
+ "_location": "/isarray",
+ "_nodeVersion": "5.1.0",
"_npmUser": {
"email": "julian@juliangruber.com",
"name": "juliangruber"
},
- "_npmVersion": "1.2.18",
+ "_npmVersion": "3.3.12",
"_phantomChildren": {},
"_requested": {
"name": "isarray",
- "raw": "isarray@0.0.1",
- "rawSpec": "0.0.1",
+ "raw": "isarray@~1.0.0",
+ "rawSpec": "~1.0.0",
"scope": null,
- "spec": "0.0.1",
- "type": "version"
+ "spec": ">=1.0.0 <1.1.0",
+ "type": "range"
},
"_requiredBy": [
- "/eslint/doctrine",
- "/eslint/readable-stream"
+ "/doctrine",
+ "/readable-stream"
],
- "_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
- "_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
+ "_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+ "_shasum": "bb935d48582cba168c06834957a54a3e07124f11",
"_shrinkwrap": null,
- "_spec": "isarray@0.0.1",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/readable-stream",
+ "_spec": "isarray@~1.0.0",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/readable-stream",
"author": {
"email": "mail@juliangruber.com",
"name": "Julian Gruber",
@@ -44,25 +45,26 @@
"dependencies": {},
"description": "Array#isArray for older browsers",
"devDependencies": {
- "tap": "*"
+ "tape": "~2.13.4"
},
"directories": {},
"dist": {
- "shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
- "tarball": "http://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
+ "shasum": "bb935d48582cba168c06834957a54a3e07124f11",
+ "tarball": "http://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
},
+ "gitHead": "2a23a281f369e9ae06394c0fb4d2381355a6ba33",
"homepage": "https://github.com/juliangruber/isarray",
"keywords": [
+ "array",
"browser",
- "isarray",
- "array"
+ "isarray"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
- "email": "julian@juliangruber.com",
- "name": "juliangruber"
+ "name": "juliangruber",
+ "email": "julian@juliangruber.com"
}
],
"name": "isarray",
@@ -73,7 +75,23 @@
"url": "git://github.com/juliangruber/isarray.git"
},
"scripts": {
- "test": "tap test/*.js"
+ "test": "tape test.js"
},
- "version": "0.0.1"
+ "testling": {
+ "browsers": [
+ "android-browser/4.2..latest",
+ "chrome/22..latest",
+ "chrome/canary",
+ "firefox/17..latest",
+ "firefox/nightly",
+ "ie/8..latest",
+ "ipad/6.0..latest",
+ "iphone/6.0..latest",
+ "opera/12..latest",
+ "opera/next",
+ "safari/5.1..latest"
+ ],
+ "files": "test.js"
+ },
+ "version": "1.0.0"
}
diff --git a/tools/eslint/node_modules/js-yaml/CHANGELOG.md b/tools/eslint/node_modules/js-yaml/CHANGELOG.md
deleted file mode 100644
index e7ff17185e53b8..00000000000000
--- a/tools/eslint/node_modules/js-yaml/CHANGELOG.md
+++ /dev/null
@@ -1,376 +0,0 @@
-3.5.3 / 2016-02-11
-------------------
-
-- Maintenance release.
-
-
-3.5.2 / 2016-01-11
-------------------
-
-- Maintenance: missed comma in bower config.
-
-
-3.5.1 / 2016-01-11
-------------------
-
-- Removed `inherit` dependency, #239.
-- Better browserify workaround for esprima load.
-- Demo rewrite.
-
-
-3.5.0 / 2016-01-10
-------------------
-
-- Dumper. Fold strings only, #217.
-- Dumper. `norefs` option, to clone linked objects, #229.
-- Loader. Throw a warning for duplicate keys, #166.
-- Improved browserify support (mark `esprima` & `Buffer` excluded).
-
-
-3.4.6 / 2015-11-26
-------------------
-
-- Use standalone `inherit` to keep browserified files clear.
-
-
-3.4.5 / 2015-11-23
-------------------
-
-- Added `lineWidth` option to dumper.
-
-
-3.4.4 / 2015-11-21
-------------------
-
-- Fixed floats dump (missed dot for scientific format), #220.
-- Allow non-printable characters inside quoted scalars, #192.
-
-
-3.4.3 / 2015-10-10
-------------------
-
-- Maintenance release - deps bump (esprima, argparse).
-
-
-3.4.2 / 2015-09-09
-------------------
-
-- Fixed serialization of duplicated entries in sequences, #205.
- Thanks to @vogelsgesang.
-
-
-3.4.1 / 2015-09-05
-------------------
-
-- Fixed stacktrace handling in generated errors, for browsers (FF/IE).
-
-
-3.4.0 / 2015-08-23
-------------------
-
-- Fixed multiline keys dump, #197. Thanks to @tcr.
-- Don't throw on warnongs anymore. Use `onWarning` option to catch.
-- Throw error on unknown tags (was warning before).
-- Fixed heading line breaks in some scalars (regression).
-- Reworked internals of error class.
-
-
-3.3.1 / 2015-05-13
-------------------
-
-- Added `.sortKeys` dumper option, thanks to @rjmunro.
-- Fixed astral characters support, #191.
-
-
-3.3.0 / 2015-04-26
-------------------
-
-- Significantly improved long strings formatting in dumper, thanks to @isaacs.
-- Strip BOM if exists.
-
-
-3.2.7 / 2015-02-19
-------------------
-
-- Maintenance release.
-- Updated dependencies.
-- HISTORY.md -> CHANGELOG.md
-
-
-3.2.6 / 2015-02-07
-------------------
-
-- Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE).
-- Fixed demo dates dump (#113, thanks to @Hypercubed).
-
-
-3.2.5 / 2014-12-28
-------------------
-
-- Fixed resolving of all built-in types on empty nodes.
-- Fixed invalid warning on empty lines within quoted scalars and flow collections.
-- Fixed bug: Tag on an empty node didn't resolve in some cases.
-
-
-3.2.4 / 2014-12-19
-------------------
-
-- Fixed resolving of !!null tag on an empty node.
-
-
-3.2.3 / 2014-11-08
-------------------
-
-- Implemented dumping of objects with circular and cross references.
-- Partially fixed aliasing of constructed objects. (see issue #141 for details)
-
-
-3.2.2 / 2014-09-07
-------------------
-
-- Fixed infinite loop on unindented block scalars.
-- Rewritten base64 encode/decode in binary type, to keep code licence clear.
-
-
-3.2.1 / 2014-08-24
-------------------
-
-- Nothig new. Just fix npm publish error.
-
-
-3.2.0 / 2014-08-24
-------------------
-
-- Added input piping support to CLI.
-- Fixed typo, that could cause hand on initial indent (#139).
-
-
-3.1.0 / 2014-07-07
-------------------
-
-- 1.5x-2x speed boost.
-- Removed deprecated `require('xxx.yml')` support.
-- Significant code cleanup and refactoring.
-- Internal API changed. If you used custom types - see updated examples.
- Others are not affected.
-- Even if the input string has no trailing line break character,
- it will be parsed as if it has one.
-- Added benchmark scripts.
-- Moved bower files to /dist folder
-- Bugfixes.
-
-
-3.0.2 / 2014-02-27
-------------------
-
-- Fixed bug: "constructor" string parsed as `null`.
-
-
-3.0.1 / 2013-12-22
-------------------
-
-- Fixed parsing of literal scalars. (issue #108)
-- Prevented adding unnecessary spaces in object dumps. (issue #68)
-- Fixed dumping of objects with very long (> 1024 in length) keys.
-
-
-3.0.0 / 2013-12-16
-------------------
-
-- Refactored code. Changed API for custom types.
-- Removed output colors in CLI, dump json by default.
-- Removed big dependencies from browser version (esprima, buffer)
- - load `esprima` manually, if !!js/function needed
- - !!bin now returns Array in browser
-- AMD support.
-- Don't quote dumped strings because of `-` & `?` (if not first char).
-- __Deprecated__ loading yaml files via `require()`, as not recommended
- behaviour for node.
-
-
-2.1.3 / 2013-10-16
-------------------
-
-- Fix wrong loading of empty block scalars.
-
-
-2.1.2 / 2013-10-07
-------------------
-
-- Fix unwanted line breaks in folded scalars.
-
-
-2.1.1 / 2013-10-02
-------------------
-
-- Dumper now respects deprecated booleans syntax from YAML 1.0/1.1
-- Fixed reader bug in JSON-like sequences/mappings.
-
-
-2.1.0 / 2013-06-05
-------------------
-
-- Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`),
- JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`).
-- Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA`
- and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`.
-- Bug fix: export `NIL` constant from the public interface.
-- Add `skipInvalid` dumper option.
-- Use `safeLoad` for `require` extension.
-
-
-2.0.5 / 2013-04-26
-------------------
-
-- Close security issue in !!js/function constructor.
- Big thanks to @nealpoole for security audit.
-
-
-2.0.4 / 2013-04-08
-------------------
-
-- Updated .npmignore to reduce package size
-
-
-2.0.3 / 2013-02-26
-------------------
-
-- Fixed dumping of empty arrays ans objects. ([] and {} instead of null)
-
-
-2.0.2 / 2013-02-15
-------------------
-
-- Fixed input validation: tabs are printable characters.
-
-
-2.0.1 / 2013-02-09
-------------------
-
-- Fixed error, when options not passed to function cass
-
-
-2.0.0 / 2013-02-09
-------------------
-
-- Full rewrite. New architecture. Fast one-stage parsing.
-- Changed custom types API.
-- Added YAML dumper.
-
-
-1.0.3 / 2012-11-05
-------------------
-
-- Fixed utf-8 files loading.
-
-
-1.0.2 / 2012-08-02
-------------------
-
-- Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44.
-- Fix timstamps incorectly parsed in local time when no time part specified.
-
-
-1.0.1 / 2012-07-07
-------------------
-
-- Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong.
-- Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46.
-
-
-1.0.0 / 2012-07-01
-------------------
-
-- `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore.
- Fixes #42.
-- `require(filename)` now returns a single document and throws an Error if
- file contains more than one document.
-- CLI was merged back from js-yaml.bin
-
-
-0.3.7 / 2012-02-28
-------------------
-
-- Fix export of `addConstructor()`. Closes #39.
-
-
-0.3.6 / 2012-02-22
-------------------
-
-- Removed AMD parts - too buggy to use. Need help to rewrite from scratch
-- Removed YUI compressor warning (renamed `double` variable). Closes #40.
-
-
-0.3.5 / 2012-01-10
-------------------
-
-- Workagound for .npmignore fuckup under windows. Thanks to airportyh.
-
-
-0.3.4 / 2011-12-24
-------------------
-
-- Fixes str[] for oldIEs support.
-- Adds better has change support for browserified demo.
-- improves compact output of Error. Closes #33.
-
-
-0.3.3 / 2011-12-20
-------------------
-
-- jsyaml executable moved to separate module.
-- adds `compact` stringification of Errors.
-
-
-0.3.2 / 2011-12-16
-------------------
-
-- Fixes ug with block style scalars. Closes #26.
-- All sources are passing JSLint now.
-- Fixes bug in Safari. Closes #28.
-- Fixes bug in Opers. Closes #29.
-- Improves browser support. Closes #20.
-- Added jsyaml executable.
-- Added !!js/function support. Closes #12.
-
-
-0.3.1 / 2011-11-18
-------------------
-
-- Added AMD support for browserified version.
-- Wrapped browserified js-yaml into closure.
-- Fixed the resolvement of non-specific tags. Closes #17.
-- Added permalinks for online demo YAML snippets. Now we have YPaste service, lol.
-- Added !!js/regexp and !!js/undefined types. Partially solves #12.
-- Fixed !!set mapping.
-- Fixed month parse in dates. Closes #19.
-
-
-0.3.0 / 2011-11-09
-------------------
-
-- Removed JS.Class dependency. Closes #3.
-- Added browserified version. Closes #13.
-- Added live demo of browserified version.
-- Ported some of the PyYAML tests. See #14.
-- Fixed timestamp bug when fraction was given.
-
-
-0.2.2 / 2011-11-06
-------------------
-
-- Fixed crash on docs without ---. Closes #8.
-- Fixed miltiline string parse
-- Fixed tests/comments for using array as key
-
-
-0.2.1 / 2011-11-02
-------------------
-
-- Fixed short file read (<4k). Closes #9.
-
-
-0.2.0 / 2011-11-02
-------------------
-
-- First public release
diff --git a/tools/eslint/node_modules/js-yaml/README.md b/tools/eslint/node_modules/js-yaml/README.md
index 2a595ef2327cf2..45c35020ce2998 100644
--- a/tools/eslint/node_modules/js-yaml/README.md
+++ b/tools/eslint/node_modules/js-yaml/README.md
@@ -180,6 +180,8 @@ options:
function, use the function to sort the keys.
- `lineWidth` _(default: `80`)_ - set max line width.
- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references
+- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older
+ yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1
styles:
diff --git a/tools/eslint/node_modules/js-yaml/dist/js-yaml.js b/tools/eslint/node_modules/js-yaml/dist/js-yaml.js
index 87a0c994e05ce8..5f20e9b5d9c382 100644
--- a/tools/eslint/node_modules/js-yaml/dist/js-yaml.js
+++ b/tools/eslint/node_modules/js-yaml/dist/js-yaml.js
@@ -1,4 +1,4 @@
-/* js-yaml 3.5.3 https://github.com/nodeca/js-yaml */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsyaml = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;on;n+=1)r=o[n],e[r]=t[r];return e}function s(e,t){var n,i="";for(n=0;t>n;n+=1)i+=e;return i}function c(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}t.exports.isNothing=i,t.exports.isObject=r,t.exports.toArray=o,t.exports.repeat=s,t.exports.isNegativeZero=c,t.exports.extend=a},{}],3:[function(e,t,n){"use strict";function i(e,t){var n,i,r,o,a,s,c;if(null===t)return{};for(n={},i=Object.keys(t),r=0,o=i.length;o>r;r+=1)a=i[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap[a],c&&F.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[a]=s;return n}function r(e){var t,n,i;if(t=e.toString(16).toUpperCase(),255>=e)n="x",i=2;else if(65535>=e)n="u",i=4;else{if(!(4294967295>=e))throw new I("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+j.repeat("0",i-t.length)+t}function o(e){this.schema=e.schema||S,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=j.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=i(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function a(e,t){for(var n,i=j.repeat(" ",t),r=0,o=-1,a="",s=e.length;s>r;)o=e.indexOf("\n",r),-1===o?(n=e.slice(r),r=s):(n=e.slice(r,o+1),r=o+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function s(e,t){return"\n"+j.repeat(" ",e.indent*t)}function c(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;i>n;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}function u(e){this.source=e,this.result="",this.checkpoint=0}function l(e,t,n,i){var r,o,s,l,f,m,g,y,x,v,A,b,w,k,C,j,I,S,E,O,F;if(0===t.length)return void(e.dump="''");if(-1!==te.indexOf(t))return void(e.dump="'"+t+"'");for(r=!0,o=t.length?t.charCodeAt(0):0,s=L===o||L===t.charCodeAt(t.length-1),($===o||W===o||G===o||z===o)&&(r=!1),s||e.flowLevel>-1&&e.flowLevel<=n?(s&&(r=!1),l=!1,f=!1):(l=!i,f=!i),m=!0,g=new u(t),y=!1,x=0,v=0,A=e.indent*n,b=e.lineWidth,-1===b&&(b=9007199254740991),40>A?b-=A:b=40,k=0;k0&&(I=t.charCodeAt(k-1),I===L&&(f=!1,l=!1)),l&&(S=k-x,x=k,S>v&&(v=S))),w!==D&&(m=!1),g.takeUpTo(k),g.escapeChar())}if(r&&c(e,t)&&(r=!1),E="",(l||f)&&(O=0,t.charCodeAt(t.length-1)===T&&(O+=1,t.charCodeAt(t.length-2)===T&&(O+=1)),0===O?E="-":2===O&&(E="+")),(f&&b>v||null!==e.tag)&&(l=!1),y||(f=!1),r)e.dump=t;else if(m)e.dump="'"+t+"'";else if(l)F=p(t,b),e.dump=">"+E+"\n"+a(F,A);else if(f)E||(t=t.replace(/\n$/,"")),e.dump="|"+E+"\n"+a(t,A);else{if(!g)throw new Error("Failed to dump scalar value");g.finish(),e.dump='"'+g.result+'"'}}function p(e,t){var n,i="",r=0,o=e.length,a=/\n+$/.exec(e);for(a&&(o=a.index+1);o>r;)n=e.indexOf("\n",r),n>o||-1===n?(i&&(i+="\n\n"),i+=f(e.slice(r,o),t),r=o):(i&&(i+="\n\n"),i+=f(e.slice(r,n),t),r=n+1);return a&&"\n"!==a[0]&&(i+=a[0]),i}function f(e,t){if(""===e)return e;for(var n,i,r,o=/[^\s] [^\s]/g,a="",s=0,c=0,u=o.exec(e);u;)n=u.index,n-c>t&&(i=s!==c?s:n,a&&(a+="\n"),r=e.slice(c,i),a+=r,c=i+1),s=n+1,u=o.exec(e);return a&&(a+="\n"),a+=c!==s&&e.length-c>t?e.slice(c,s)+"\n"+e.slice(s+1):e.slice(c)}function h(e){return N!==e&&T!==e&&_!==e&&P!==e&&V!==e&&Z!==e&&J!==e&&X!==e&&U!==e&&Y!==e&&B!==e&&M!==e&&Q!==e&&H!==e&&R!==e&&D!==e&&q!==e&&K!==e&&!ee[e]&&!d(e)}function d(e){return!(e>=32&&126>=e||133===e||e>=160&&55295>=e||e>=57344&&65533>=e||e>=65536&&1114111>=e)}function m(e,t,n){var i,r,o="",a=e.tag;for(i=0,r=n.length;r>i;i+=1)A(e,t,n[i],!1,!1)&&(0!==i&&(o+=", "),o+=e.dump);e.tag=a,e.dump="["+o+"]"}function g(e,t,n,i){var r,o,a="",c=e.tag;for(r=0,o=n.length;o>r;r+=1)A(e,t+1,n[r],!0,!0)&&(i&&0===r||(a+=s(e,t)),a+="- "+e.dump);e.tag=c,e.dump=a||"[]"}function y(e,t,n){var i,r,o,a,s,c="",u=e.tag,l=Object.keys(n);for(i=0,r=l.length;r>i;i+=1)s="",0!==i&&(s+=", "),o=l[i],a=n[o],A(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+": ",A(e,t,a,!1,!1)&&(s+=e.dump,c+=s));e.tag=u,e.dump="{"+c+"}"}function x(e,t,n,i){var r,o,a,c,u,l,p="",f=e.tag,h=Object.keys(n);if(e.sortKeys===!0)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new I("sortKeys must be a boolean or a function");for(r=0,o=h.length;o>r;r+=1)l="",i&&0===r||(l+=s(e,t)),a=h[r],c=n[a],A(e,t+1,a,!0,!0,!0)&&(u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024,u&&(l+=e.dump&&T===e.dump.charCodeAt(0)?"?":"? "),l+=e.dump,u&&(l+=s(e,t)),A(e,t+1,c,!0,u)&&(l+=e.dump&&T===e.dump.charCodeAt(0)?":":": ",l+=e.dump,p+=l));e.tag=f,e.dump=p||"{}"}function v(e,t,n){var i,r,o,a,s,c;for(r=n?e.explicitTypes:e.implicitTypes,o=0,a=r.length;a>o;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(e.tag=n?s.tag:"?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===O.call(s.represent))i=s.represent(t,c);else{if(!F.call(s.represent,c))throw new I("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');i=s.represent[c](t,c)}e.dump=i}return!0}return!1}function A(e,t,n,i,r,o){e.tag=null,e.dump=n,v(e,n,!1)||v(e,n,!0);var a=O.call(e.dump);i&&(i=e.flowLevel<0||e.flowLevel>t);var s,c,u="[object Object]"===a||"[object Array]"===a;if(u&&(s=e.duplicates.indexOf(n),c=-1!==s),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(r=!1),c&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(u&&c&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===a)i&&0!==Object.keys(e.dump).length?(x(e,t,e.dump,r),c&&(e.dump="&ref_"+s+e.dump)):(y(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===a)i&&0!==e.dump.length?(g(e,t,e.dump,r),c&&(e.dump="&ref_"+s+e.dump)):(m(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else{if("[object String]"!==a){if(e.skipInvalid)return!1;throw new I("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&l(e,e.dump,t,o)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function b(e,t){var n,i,r=[],o=[];for(w(e,r,o),n=0,i=o.length;i>n;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function w(e,t,n){var i,r,o;if(null!==e&&"object"==typeof e)if(r=t.indexOf(e),-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,o=e.length;o>r;r+=1)w(e[r],t,n);else for(i=Object.keys(e),r=0,o=i.length;o>r;r+=1)w(e[i[r]],t,n)}function k(e,t){t=t||{};var n=new o(t);return n.noRefs||b(e,n),A(n,0,e,!0,!0)?n.dump+"\n":""}function C(e,t){return k(e,j.extend({schema:E},t))}var j=e("./common"),I=e("./exception"),S=e("./schema/default_full"),E=e("./schema/default_safe"),O=Object.prototype.toString,F=Object.prototype.hasOwnProperty,N=9,T=10,_=13,L=32,M=33,D=34,U=35,q=37,Y=38,R=39,B=42,P=44,$=45,K=58,H=62,W=63,G=64,V=91,Z=93,z=96,J=123,Q=124,X=125,ee={};ee[0]="\\0",ee[7]="\\a",ee[8]="\\b",ee[9]="\\t",ee[10]="\\n",ee[11]="\\v",ee[12]="\\f",ee[13]="\\r",ee[27]="\\e",ee[34]='\\"',ee[92]="\\\\",ee[133]="\\N",ee[160]="\\_",ee[8232]="\\L",ee[8233]="\\P";var te=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];u.prototype.takeUpTo=function(e){var t;if(e checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this},u.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=ee[e]||r(e),this.result+=t,this.checkpoint+=1,this},u.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)},t.exports.dump=k,t.exports.safeDump=C},{"./common":2,"./exception":4,"./schema/default_full":9,"./schema/default_safe":10}],4:[function(e,t,n){"use strict";function i(e,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},t.exports=i},{}],5:[function(e,t,n){"use strict";function i(e){return 10===e||13===e}function r(e){return 9===e||32===e}function o(e){return 9===e||32===e||10===e||13===e}function a(e){return 44===e||91===e||93===e||123===e||125===e}function s(e){var t;return e>=48&&57>=e?e-48:(t=32|e,t>=97&&102>=t?t-97+10:-1)}function c(e){return 120===e?2:117===e?4:85===e?8:0}function u(e){return e>=48&&57>=e?e-48:-1}function l(e){return 48===e?"\x00":97===e?"":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"\x0B":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function p(e){return 65535>=e?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function f(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||K,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function h(e,t){return new B(t,new P(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function d(e,t){throw h(e,t)}function m(e,t){e.onWarning&&e.onWarning.call(null,h(e,t))}function g(e,t,n,i){var r,o,a,s;if(n>t){if(s=e.input.slice(t,n),i)for(r=0,o=s.length;o>r;r+=1)a=s.charCodeAt(r),9===a||a>=32&&1114111>=a||d(e,"expected valid JSON character");else X.test(s)&&d(e,"the stream contains non-printable characters");e.result+=s}}function y(e,t,n,i){var r,o,a,s;for(R.isObject(n)||d(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),a=0,s=r.length;s>a;a+=1)o=r[a],H.call(t,o)||(t[o]=n[o],i[o]=!0)}function x(e,t,n,i,r,o){var a,s;if(r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(a=0,s=o.length;s>a;a+=1)y(e,t,o[a],n);else y(e,t,o,n);else e.json||H.call(n,r)||!H.call(t,r)||d(e,"duplicated mapping key"),t[r]=o,delete n[r];return t}function v(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):d(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function A(e,t,n){for(var o=0,a=e.input.charCodeAt(e.position);0!==a;){for(;r(a);)a=e.input.charCodeAt(++e.position);if(t&&35===a)do a=e.input.charCodeAt(++e.position);while(10!==a&&13!==a&&0!==a);if(!i(a))break;for(v(e),a=e.input.charCodeAt(e.position),o++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position)}return-1!==n&&0!==o&&e.lineIndent1&&(e.result+=R.repeat("\n",t-1))}function k(e,t,n){var s,c,u,l,p,f,h,d,m,y=e.kind,x=e.result;if(m=e.input.charCodeAt(e.position),o(m)||a(m)||35===m||38===m||42===m||33===m||124===m||62===m||39===m||34===m||37===m||64===m||96===m)return!1;if((63===m||45===m)&&(c=e.input.charCodeAt(e.position+1),o(c)||n&&a(c)))return!1;for(e.kind="scalar",e.result="",u=l=e.position,p=!1;0!==m;){if(58===m){if(c=e.input.charCodeAt(e.position+1),o(c)||n&&a(c))break}else if(35===m){if(s=e.input.charCodeAt(e.position-1),o(s))break}else{if(e.position===e.lineStart&&b(e)||n&&a(m))break;if(i(m)){if(f=e.line,h=e.lineStart,d=e.lineIndent,A(e,!1,-1),e.lineIndent>=t){p=!0,m=e.input.charCodeAt(e.position);continue}e.position=l,e.line=f,e.lineStart=h,e.lineIndent=d;break}}p&&(g(e,u,l,!1),w(e,e.line-f),u=l=e.position,p=!1),r(m)||(l=e.position+1),m=e.input.charCodeAt(++e.position)}return g(e,u,l,!1),e.result?!0:(e.kind=y,e.result=x,!1)}function C(e,t){var n,r,o;if(n=e.input.charCodeAt(e.position),39!==n)return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(g(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;r=o=e.position,e.position++}else i(n)?(g(e,r,o,!0),w(e,A(e,!1,t)),r=o=e.position):e.position===e.lineStart&&b(e)?d(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);d(e,"unexpected end of the stream within a single quoted scalar")}function j(e,t){var n,r,o,a,u,l;if(l=e.input.charCodeAt(e.position),34!==l)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(l=e.input.charCodeAt(e.position));){if(34===l)return g(e,n,e.position,!0),e.position++,!0;if(92===l){if(g(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),i(l))A(e,!1,t);else if(256>l&&re[l])e.result+=oe[l],e.position++;else if((u=c(l))>0){for(o=u,a=0;o>0;o--)l=e.input.charCodeAt(++e.position),(u=s(l))>=0?a=(a<<4)+u:d(e,"expected hexadecimal character");e.result+=p(a),e.position++}else d(e,"unknown escape sequence");n=r=e.position}else i(l)?(g(e,n,r,!0),w(e,A(e,!1,t)),n=r=e.position):e.position===e.lineStart&&b(e)?d(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}d(e,"unexpected end of the stream within a double quoted scalar")}function I(e,t){var n,i,r,a,s,c,u,l,p,f,h,m=!0,g=e.tag,y=e.anchor,v={};if(h=e.input.charCodeAt(e.position),91===h)a=93,u=!1,i=[];else{if(123!==h)return!1;a=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);0!==h;){if(A(e,!0,t),h=e.input.charCodeAt(e.position),h===a)return e.position++,e.tag=g,e.anchor=y,e.kind=u?"mapping":"sequence",e.result=i,!0;m||d(e,"missed comma between flow collection entries"),p=l=f=null,s=c=!1,63===h&&(r=e.input.charCodeAt(e.position+1),o(r)&&(s=c=!0,e.position++,A(e,!0,t))),n=e.line,_(e,t,W,!1,!0),p=e.tag,l=e.result,A(e,!0,t),h=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==h||(s=!0,h=e.input.charCodeAt(++e.position),A(e,!0,t),_(e,t,W,!1,!0),f=e.result),u?x(e,i,v,p,l,f):s?i.push(x(e,null,v,p,l,f)):i.push(l),A(e,!0,t),h=e.input.charCodeAt(e.position),44===h?(m=!0,h=e.input.charCodeAt(++e.position)):m=!1}d(e,"unexpected end of the stream within a flow collection")}function S(e,t){var n,o,a,s,c=z,l=!1,p=t,f=0,h=!1;if(s=e.input.charCodeAt(e.position),124===s)o=!1;else{if(62!==s)return!1;o=!0}for(e.kind="scalar",e.result="";0!==s;)if(s=e.input.charCodeAt(++e.position),43===s||45===s)z===c?c=43===s?Q:J:d(e,"repeat of a chomping mode identifier");else{if(!((a=u(s))>=0))break;0===a?d(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?d(e,"repeat of an indentation width identifier"):(p=t+a-1,l=!0)}if(r(s)){do s=e.input.charCodeAt(++e.position);while(r(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!i(s)&&0!==s)}for(;0!==s;){for(v(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!l||e.lineIndentp&&(p=e.lineIndent),i(s))f++;else{if(e.lineIndent
t)&&0!==r)d(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(_(e,t,Z,!0,a)&&(y?m=e.result:g=e.result),y||(x(e,p,f,h,m,g),h=m=g=null),A(e,!0,-1),c=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==c)d(e,"bad indentation of a mapping entry");else if(e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentc;c+=1)if(l=e.implicitTypes[c],l.resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else H.call(e.typeMap,e.tag)?(l=e.typeMap[e.tag],null!==e.result&&l.kind!==e.kind&&d(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result)?(e.result=l.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):d(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):d(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function L(e){var t,n,a,s,c=e.position,u=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(s=e.input.charCodeAt(e.position))&&(A(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(u=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!o(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),a=[],n.length<1&&d(e,"directive name must not be less than one character in length");0!==s;){for(;r(s);)s=e.input.charCodeAt(++e.position);if(35===s){do s=e.input.charCodeAt(++e.position);while(0!==s&&!i(s));break}if(i(s))break;for(t=e.position;0!==s&&!o(s);)s=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}0!==s&&v(e),H.call(se,n)?se[n](e,n,a):m(e,'unknown document directive "'+n+'"')}return A(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,A(e,!0,-1)):u&&d(e,"directives end mark is expected"),_(e,e.lineIndent-1,Z,!1,!0),A(e,!0,-1),e.checkLineBreaks&&ee.test(e.input.slice(c,e.position))&&m(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&b(e)?void(46===e.input.charCodeAt(e.position)&&(e.position+=3,A(e,!0,-1))):void(e.positioni;i+=1)t(o[i])}function U(e,t){var n=M(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new B("expected a single document in the stream, but found more")}}function q(e,t,n){D(e,t,R.extend({schema:$},n))}function Y(e,t){return U(e,R.extend({schema:$},t))}for(var R=e("./common"),B=e("./exception"),P=e("./mark"),$=e("./schema/default_safe"),K=e("./schema/default_full"),H=Object.prototype.hasOwnProperty,W=1,G=2,V=3,Z=4,z=1,J=2,Q=3,X=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\x85\u2028\u2029]/,te=/[,\[\]\{\}]/,ne=/^(?:!|!!|![a-z\-]+!)$/i,ie=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,re=new Array(256),oe=new Array(256),ae=0;256>ae;ae++)re[ae]=l(ae)?1:0,oe[ae]=l(ae);var se={YAML:function(e,t,n){var i,r,o;null!==e.version&&d(e,"duplication of %YAML directive"),1!==n.length&&d(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===i&&d(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&d(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=2>o,1!==o&&2!==o&&m(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&d(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],ne.test(i)||d(e,"ill-formed tag handle (first argument) of the TAG directive"),H.call(e.tagMap,i)&&d(e,'there is a previously declared suffix for "'+i+'" tag handle'),ie.test(r)||d(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=r}};t.exports.loadAll=D,t.exports.load=U,t.exports.safeLoadAll=q,t.exports.safeLoad=Y},{"./common":2,"./exception":4,"./mark":6,"./schema/default_full":9,"./schema/default_safe":10}],6:[function(e,t,n){"use strict";function i(e,t,n,i,r){this.name=e,this.buffer=t,this.position=n,this.line=i,this.column=r}var r=e("./common");i.prototype.getSnippet=function(e,t){var n,i,o,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;at/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",e)+n+s+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet(),t&&(n+=":\n"+t)),n},t.exports=i},{"./common":2}],7:[function(e,t,n){"use strict";function i(e,t,n){var r=[];return e.include.forEach(function(e){n=i(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return-1===r.indexOf(t)})}function r(){function e(e){i[e.tag]=e}var t,n,i={};for(t=0,n=arguments.length;n>t;t+=1)arguments[t].forEach(e);return i}function o(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=i(this,"implicit",[]),this.compiledExplicit=i(this,"explicit",[]),this.compiledTypeMap=r(this.compiledImplicit,this.compiledExplicit)}var a=e("./common"),s=e("./exception"),c=e("./type");o.DEFAULT=null,o.create=function(){var e,t;switch(arguments.length){case 1:e=o.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new s("Wrong number of arguments for Schema.create function")}if(e=a.toArray(e),t=a.toArray(t),!e.every(function(e){return e instanceof o}))throw new s("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(e){return e instanceof c}))throw new s("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:e,explicit:t})},t.exports=o},{"./common":2,"./exception":4,"./type":13}],8:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({include:[e("./json")]})},{"../schema":7,"./json":12}],9:[function(e,t,n){"use strict";var i=e("../schema");t.exports=i.DEFAULT=new i({include:[e("./default_safe")],explicit:[e("../type/js/undefined"),e("../type/js/regexp"),e("../type/js/function")]})},{"../schema":7,"../type/js/function":18,"../type/js/regexp":19,"../type/js/undefined":20,"./default_safe":10}],10:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({include:[e("./core")],implicit:[e("../type/timestamp"),e("../type/merge")],explicit:[e("../type/binary"),e("../type/omap"),e("../type/pairs"),e("../type/set")]})},{"../schema":7,"../type/binary":14,"../type/merge":22,"../type/omap":24,"../type/pairs":25,"../type/set":27,"../type/timestamp":29,"./core":8}],11:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({explicit:[e("../type/str"),e("../type/seq"),e("../type/map")]})},{"../schema":7,"../type/map":21,"../type/seq":26,"../type/str":28}],12:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({include:[e("./failsafe")],implicit:[e("../type/null"),e("../type/bool"),e("../type/int"),e("../type/float")]})},{"../schema":7,"../type/bool":15,"../type/float":16,"../type/int":17,"../type/null":23,"./failsafe":11}],13:[function(e,t,n){"use strict";function i(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function r(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===a.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=i(t.styleAliases||null),-1===s.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var o=e("./exception"),a=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],s=["scalar","sequence","mapping"];t.exports=r},{"./exception":4}],14:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=u;for(n=0;r>n;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(0>t)return!1;i+=6}return i%8===0}function r(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=u,a=0,c=[];for(t=0;r>t;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return n=r%4*6,0===n?(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)):18===n?(c.push(a>>10&255),c.push(a>>2&255)):12===n&&c.push(a>>4&255),s?new s(c):c}function o(e){var t,n,i="",r=0,o=e.length,a=u;for(t=0;o>t;t++)t%3===0&&t&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return n=o%3,0===n?(i+=a[r>>18&63],i+=a[r>>12&63],
-i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}function a(e){return s&&s.isBuffer(e)}var s=e("buffer").Buffer,c=e("../type"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new c("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../type":13,buffer:30}],15:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function r(e){return"true"===e||"True"===e||"TRUE"===e}function o(e){return"[object Boolean]"===Object.prototype.toString.call(e)}var a=e("../type");t.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":13}],16:[function(e,t,n){"use strict";function i(e){return null===e?!1:u.test(e)?!0:!1}function r(e){var t,n,i,r;return t=e.replace(/_/g,"").toLowerCase(),n="-"===t[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){r.unshift(parseFloat(e,10))}),t=0,i=1,r.forEach(function(e){t+=e*i,i*=60}),n*t):n*parseFloat(t,10)}function o(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(e))return"-0.0";return n=e.toString(10),l.test(n)?n.replace("e",".e"):n}function a(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!==0||s.isNegativeZero(e))}var s=e("../common"),c=e("../type"),u=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),l=/^[-+]?[0-9]+e/;t.exports=new c("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o,defaultStyle:"lowercase"})},{"../common":2,"../type":13}],17:[function(e,t,n){"use strict";function i(e){return e>=48&&57>=e||e>=65&&70>=e||e>=97&&102>=e}function r(e){return e>=48&&55>=e}function o(e){return e>=48&&57>=e}function a(e){if(null===e)return!1;var t,n=e.length,a=0,s=!1;if(!n)return!1;if(t=e[a],("-"===t||"+"===t)&&(t=e[++a]),"0"===t){if(a+1===n)return!0;if(t=e[++a],"b"===t){for(a++;n>a;a++)if(t=e[a],"_"!==t){if("0"!==t&&"1"!==t)return!1;s=!0}return s}if("x"===t){for(a++;n>a;a++)if(t=e[a],"_"!==t){if(!i(e.charCodeAt(a)))return!1;s=!0}return s}for(;n>a;a++)if(t=e[a],"_"!==t){if(!r(e.charCodeAt(a)))return!1;s=!0}return s}for(;n>a;a++)if(t=e[a],"_"!==t){if(":"===t)break;if(!o(e.charCodeAt(a)))return!1;s=!0}return s?":"!==t?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(a)):!1}function s(e){var t,n,i=e,r=1,o=[];return-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),t=i[0],("-"===t||"+"===t)&&("-"===t&&(r=-1),i=i.slice(1),t=i[0]),"0"===i?0:"0"===t?"b"===i[1]?r*parseInt(i.slice(2),2):"x"===i[1]?r*parseInt(i,16):r*parseInt(i,8):-1!==i.indexOf(":")?(i.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),i=0,n=1,o.forEach(function(e){i+=e*n,n*=60}),r*i):r*parseInt(i,10)}function c(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1===0&&!u.isNegativeZero(e)}var u=e("../common"),l=e("../type");t.exports=new l("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:s,predicate:c,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":2,"../type":13}],18:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;try{var t="("+e+")",n=s.parse(t,{range:!0});return"Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"FunctionExpression"!==n.body[0].expression.type?!1:!0}catch(i){return!1}}function r(e){var t,n="("+e+")",i=s.parse(n,{range:!0}),r=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){r.push(e.name)}),t=i.body[0].expression.body.range,new Function(r,n.slice(t[0]+1,t[1]-1))}function o(e){return e.toString()}function a(e){return"[object Function]"===Object.prototype.toString.call(e)}var s;try{var c=e;s=c("esprima")}catch(u){"undefined"!=typeof window&&(s=window.esprima)}var l=e("../../type");t.exports=new l("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],19:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),i="";if("/"===t[0]){if(n&&(i=n[1]),i.length>3)return!1;if("/"!==t[t.length-i.length-1])return!1}return!0}function r(e){var t=e,n=/\/([gim]*)$/.exec(e),i="";return"/"===t[0]&&(n&&(i=n[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)}function o(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function a(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var s=e("../../type");t.exports=new s("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],20:[function(e,t,n){"use strict";function i(){return!0}function r(){}function o(){return""}function a(e){return"undefined"==typeof e}var s=e("../../type");t.exports=new s("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],21:[function(e,t,n){"use strict";var i=e("../type");t.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},{"../type":13}],22:[function(e,t,n){"use strict";function i(e){return"<<"===e||null===e}var r=e("../type");t.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:i})},{"../type":13}],23:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function r(){return null}function o(e){return null===e}var a=e("../type");t.exports=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":13}],24:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n,i,r,o,c=[],u=e;for(t=0,n=u.length;n>t;t+=1){if(i=u[t],o=!1,"[object Object]"!==s.call(i))return!1;for(r in i)if(a.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==c.indexOf(r))return!1;c.push(r)}return!0}function r(e){return null!==e?e:[]}var o=e("../type"),a=Object.prototype.hasOwnProperty,s=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:r})},{"../type":13}],25:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n,i,r,o,s=e;for(o=new Array(s.length),t=0,n=s.length;n>t;t+=1){if(i=s[t],"[object Object]"!==a.call(i))return!1;if(r=Object.keys(i),1!==r.length)return!1;o[t]=[r[0],i[r[0]]]}return!0}function r(e){if(null===e)return[];var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;n>t;t+=1)i=a[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}var o=e("../type"),a=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:r})},{"../type":13}],26:[function(e,t,n){"use strict";var i=e("../type");t.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},{"../type":13}],27:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n=e;for(t in n)if(a.call(n,t)&&null!==n[t])return!1;return!0}function r(e){return null!==e?e:{}}var o=e("../type"),a=Object.prototype.hasOwnProperty;t.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:r})},{"../type":13}],28:[function(e,t,n){"use strict";var i=e("../type");t.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},{"../type":13}],29:[function(e,t,n){"use strict";function i(e){return null===e?!1:null===s.exec(e)?!1:!0}function r(e){var t,n,i,r,o,a,c,u,l,p,f=0,h=null;if(t=s.exec(e),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],c=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(u=+t[10],l=+(t[11]||0),h=6e4*(60*u+l),"-"===t[9]&&(h=-h)),p=new Date(Date.UTC(n,i,r,o,a,c,f)),h&&p.setTime(p.getTime()-h),p}function o(e){return e.toISOString()}var a=e("../type"),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");t.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:r,instanceOf:Date,represent:o})},{"../type":13}],30:[function(e,t,n){},{}],"/":[function(e,t,n){"use strict";var i=e("./lib/js-yaml.js");t.exports=i},{"./lib/js-yaml.js":1}]},{},[])("/")});
+/* js-yaml 3.5.5 https://github.com/nodeca/js-yaml */
+!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.jsyaml=e()}}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n?n:e)},l,l.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;an;n+=1)r=o[n],e[r]=t[r];return e}function s(e,t){var n,i="";for(n=0;t>n;n+=1)i+=e;return i}function c(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}t.exports.isNothing=i,t.exports.isObject=r,t.exports.toArray=o,t.exports.repeat=s,t.exports.isNegativeZero=c,t.exports.extend=a},{}],3:[function(e,t,n){"use strict";function i(e,t){var n,i,r,o,a,s,c;if(null===t)return{};for(n={},i=Object.keys(t),r=0,o=i.length;o>r;r+=1)a=i[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap[a],c&&F.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[a]=s;return n}function r(e){var t,n,i;if(t=e.toString(16).toUpperCase(),255>=e)n="x",i=2;else if(65535>=e)n="u",i=4;else{if(!(4294967295>=e))throw new I("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+j.repeat("0",i-t.length)+t}function o(e){this.schema=e.schema||S,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=j.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=i(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function a(e,t){for(var n,i=j.repeat(" ",t),r=0,o=-1,a="",s=e.length;s>r;)o=e.indexOf("\n",r),-1===o?(n=e.slice(r),r=s):(n=e.slice(r,o+1),r=o+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function s(e,t){return"\n"+j.repeat(" ",e.indent*t)}function c(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;i>n;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}function u(e){this.source=e,this.result="",this.checkpoint=0}function l(e,t,n,i){var r,o,s,l,f,m,g,y,x,v,A,b,w,C,k,j,I,S,E,O,F;if(0===t.length)return void(e.dump="''");if(!e.noCompatMode&&-1!==te.indexOf(t))return void(e.dump="'"+t+"'");for(r=!0,o=t.length?t.charCodeAt(0):0,s=M===o||M===t.charCodeAt(t.length-1),P!==o&&W!==o&&G!==o&&z!==o||(r=!1),s||e.flowLevel>-1&&e.flowLevel<=n?(s&&(r=!1),l=!1,f=!1):(l=!i,f=!i),m=!0,g=new u(t),y=!1,x=0,v=0,A=e.indent*n,b=e.lineWidth,-1===b&&(b=9007199254740991),40>A?b-=A:b=40,C=0;C0&&(I=t.charCodeAt(C-1),I===M&&(f=!1,l=!1)),l&&(S=C-x,x=C,S>v&&(v=S))),w!==D&&(m=!1),g.takeUpTo(C),g.escapeChar())}if(r&&c(e,t)&&(r=!1),E="",(l||f)&&(O=0,t.charCodeAt(t.length-1)===T&&(O+=1,t.charCodeAt(t.length-2)===T&&(O+=1)),0===O?E="-":2===O&&(E="+")),(f&&b>v||null!==e.tag)&&(l=!1),y||(f=!1),r)e.dump=t;else if(m)e.dump="'"+t+"'";else if(l)F=p(t,b),e.dump=">"+E+"\n"+a(F,A);else if(f)E||(t=t.replace(/\n$/,"")),e.dump="|"+E+"\n"+a(t,A);else{if(!g)throw new Error("Failed to dump scalar value");g.finish(),e.dump='"'+g.result+'"'}}function p(e,t){var n,i="",r=0,o=e.length,a=/\n+$/.exec(e);for(a&&(o=a.index+1);o>r;)n=e.indexOf("\n",r),n>o||-1===n?(i&&(i+="\n\n"),i+=f(e.slice(r,o),t),r=o):(i&&(i+="\n\n"),i+=f(e.slice(r,n),t),r=n+1);return a&&"\n"!==a[0]&&(i+=a[0]),i}function f(e,t){if(""===e)return e;for(var n,i,r,o=/[^\s] [^\s]/g,a="",s=0,c=0,u=o.exec(e);u;)n=u.index,n-c>t&&(i=s!==c?s:n,a&&(a+="\n"),r=e.slice(c,i),a+=r,c=i+1),s=n+1,u=o.exec(e);return a&&(a+="\n"),a+=c!==s&&e.length-c>t?e.slice(c,s)+"\n"+e.slice(s+1):e.slice(c)}function h(e){return N!==e&&T!==e&&_!==e&&B!==e&&V!==e&&Z!==e&&J!==e&&X!==e&&U!==e&&Y!==e&&$!==e&&L!==e&&Q!==e&&H!==e&&R!==e&&D!==e&&q!==e&&K!==e&&!ee[e]&&!d(e)}function d(e){return!(e>=32&&126>=e||133===e||e>=160&&55295>=e||e>=57344&&65533>=e||e>=65536&&1114111>=e)}function m(e,t,n){var i,r,o="",a=e.tag;for(i=0,r=n.length;r>i;i+=1)A(e,t,n[i],!1,!1)&&(0!==i&&(o+=", "),o+=e.dump);e.tag=a,e.dump="["+o+"]"}function g(e,t,n,i){var r,o,a="",c=e.tag;for(r=0,o=n.length;o>r;r+=1)A(e,t+1,n[r],!0,!0)&&(i&&0===r||(a+=s(e,t)),a+="- "+e.dump);e.tag=c,e.dump=a||"[]"}function y(e,t,n){var i,r,o,a,s,c="",u=e.tag,l=Object.keys(n);for(i=0,r=l.length;r>i;i+=1)s="",0!==i&&(s+=", "),o=l[i],a=n[o],A(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+": ",A(e,t,a,!1,!1)&&(s+=e.dump,c+=s));e.tag=u,e.dump="{"+c+"}"}function x(e,t,n,i){var r,o,a,c,u,l,p="",f=e.tag,h=Object.keys(n);if(e.sortKeys===!0)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new I("sortKeys must be a boolean or a function");for(r=0,o=h.length;o>r;r+=1)l="",i&&0===r||(l+=s(e,t)),a=h[r],c=n[a],A(e,t+1,a,!0,!0,!0)&&(u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024,u&&(l+=e.dump&&T===e.dump.charCodeAt(0)?"?":"? "),l+=e.dump,u&&(l+=s(e,t)),A(e,t+1,c,!0,u)&&(l+=e.dump&&T===e.dump.charCodeAt(0)?":":": ",l+=e.dump,p+=l));e.tag=f,e.dump=p||"{}"}function v(e,t,n){var i,r,o,a,s,c;for(r=n?e.explicitTypes:e.implicitTypes,o=0,a=r.length;a>o;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(e.tag=n?s.tag:"?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===O.call(s.represent))i=s.represent(t,c);else{if(!F.call(s.represent,c))throw new I("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');i=s.represent[c](t,c)}e.dump=i}return!0}return!1}function A(e,t,n,i,r,o){e.tag=null,e.dump=n,v(e,n,!1)||v(e,n,!0);var a=O.call(e.dump);i&&(i=e.flowLevel<0||e.flowLevel>t);var s,c,u="[object Object]"===a||"[object Array]"===a;if(u&&(s=e.duplicates.indexOf(n),c=-1!==s),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(r=!1),c&&e.usedDuplicates[s])e.dump="*ref_"+s;else{if(u&&c&&!e.usedDuplicates[s]&&(e.usedDuplicates[s]=!0),"[object Object]"===a)i&&0!==Object.keys(e.dump).length?(x(e,t,e.dump,r),c&&(e.dump="&ref_"+s+e.dump)):(y(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else if("[object Array]"===a)i&&0!==e.dump.length?(g(e,t,e.dump,r),c&&(e.dump="&ref_"+s+e.dump)):(m(e,t,e.dump),c&&(e.dump="&ref_"+s+" "+e.dump));else{if("[object String]"!==a){if(e.skipInvalid)return!1;throw new I("unacceptable kind of an object to dump "+a)}"?"!==e.tag&&l(e,e.dump,t,o)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function b(e,t){var n,i,r=[],o=[];for(w(e,r,o),n=0,i=o.length;i>n;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function w(e,t,n){var i,r,o;if(null!==e&&"object"==typeof e)if(r=t.indexOf(e),-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,o=e.length;o>r;r+=1)w(e[r],t,n);else for(i=Object.keys(e),r=0,o=i.length;o>r;r+=1)w(e[i[r]],t,n)}function C(e,t){t=t||{};var n=new o(t);return n.noRefs||b(e,n),A(n,0,e,!0,!0)?n.dump+"\n":""}function k(e,t){return C(e,j.extend({schema:E},t))}var j=e("./common"),I=e("./exception"),S=e("./schema/default_full"),E=e("./schema/default_safe"),O=Object.prototype.toString,F=Object.prototype.hasOwnProperty,N=9,T=10,_=13,M=32,L=33,D=34,U=35,q=37,Y=38,R=39,$=42,B=44,P=45,K=58,H=62,W=63,G=64,V=91,Z=93,z=96,J=123,Q=124,X=125,ee={};ee[0]="\\0",ee[7]="\\a",ee[8]="\\b",ee[9]="\\t",ee[10]="\\n",ee[11]="\\v",ee[12]="\\f",ee[13]="\\r",ee[27]="\\e",ee[34]='\\"',ee[92]="\\\\",ee[133]="\\N",ee[160]="\\_",ee[8232]="\\L",ee[8233]="\\P";var te=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];u.prototype.takeUpTo=function(e){var t;if(e checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this},u.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=ee[e]||r(e),this.result+=t,this.checkpoint+=1,this},u.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)},t.exports.dump=C,t.exports.safeDump=k},{"./common":2,"./exception":4,"./schema/default_full":9,"./schema/default_safe":10}],4:[function(e,t,n){"use strict";function i(e,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},t.exports=i},{}],5:[function(e,t,n){"use strict";function i(e){return 10===e||13===e}function r(e){return 9===e||32===e}function o(e){return 9===e||32===e||10===e||13===e}function a(e){return 44===e||91===e||93===e||123===e||125===e}function s(e){var t;return e>=48&&57>=e?e-48:(t=32|e,t>=97&&102>=t?t-97+10:-1)}function c(e){return 120===e?2:117===e?4:85===e?8:0}function u(e){return e>=48&&57>=e?e-48:-1}function l(e){return 48===e?"\x00":97===e?"":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"\x0B":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function p(e){return 65535>=e?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function f(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||K,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function h(e,t){return new $(t,new B(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function d(e,t){throw h(e,t)}function m(e,t){e.onWarning&&e.onWarning.call(null,h(e,t))}function g(e,t,n,i){var r,o,a,s;if(n>t){if(s=e.input.slice(t,n),i)for(r=0,o=s.length;o>r;r+=1)a=s.charCodeAt(r),9===a||a>=32&&1114111>=a||d(e,"expected valid JSON character");else X.test(s)&&d(e,"the stream contains non-printable characters");e.result+=s}}function y(e,t,n,i){var r,o,a,s;for(R.isObject(n)||d(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),a=0,s=r.length;s>a;a+=1)o=r[a],H.call(t,o)||(t[o]=n[o],i[o]=!0)}function x(e,t,n,i,r,o){var a,s;if(r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(a=0,s=o.length;s>a;a+=1)y(e,t,o[a],n);else y(e,t,o,n);else e.json||H.call(n,r)||!H.call(t,r)||d(e,"duplicated mapping key"),t[r]=o,delete n[r];return t}function v(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):d(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function A(e,t,n){for(var o=0,a=e.input.charCodeAt(e.position);0!==a;){for(;r(a);)a=e.input.charCodeAt(++e.position);if(t&&35===a)do a=e.input.charCodeAt(++e.position);while(10!==a&&13!==a&&0!==a);if(!i(a))break;for(v(e),a=e.input.charCodeAt(e.position),o++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position)}return-1!==n&&0!==o&&e.lineIndent1&&(e.result+=R.repeat("\n",t-1))}function C(e,t,n){var s,c,u,l,p,f,h,d,m,y=e.kind,x=e.result;if(m=e.input.charCodeAt(e.position),o(m)||a(m)||35===m||38===m||42===m||33===m||124===m||62===m||39===m||34===m||37===m||64===m||96===m)return!1;if((63===m||45===m)&&(c=e.input.charCodeAt(e.position+1),o(c)||n&&a(c)))return!1;for(e.kind="scalar",e.result="",u=l=e.position,p=!1;0!==m;){if(58===m){if(c=e.input.charCodeAt(e.position+1),o(c)||n&&a(c))break}else if(35===m){if(s=e.input.charCodeAt(e.position-1),o(s))break}else{if(e.position===e.lineStart&&b(e)||n&&a(m))break;if(i(m)){if(f=e.line,h=e.lineStart,d=e.lineIndent,A(e,!1,-1),e.lineIndent>=t){p=!0,m=e.input.charCodeAt(e.position);continue}e.position=l,e.line=f,e.lineStart=h,e.lineIndent=d;break}}p&&(g(e,u,l,!1),w(e,e.line-f),u=l=e.position,p=!1),r(m)||(l=e.position+1),m=e.input.charCodeAt(++e.position)}return g(e,u,l,!1),e.result?!0:(e.kind=y,e.result=x,!1)}function k(e,t){var n,r,o;if(n=e.input.charCodeAt(e.position),39!==n)return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(g(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;r=o=e.position,e.position++}else i(n)?(g(e,r,o,!0),w(e,A(e,!1,t)),r=o=e.position):e.position===e.lineStart&&b(e)?d(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);d(e,"unexpected end of the stream within a single quoted scalar")}function j(e,t){var n,r,o,a,u,l;if(l=e.input.charCodeAt(e.position),34!==l)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(l=e.input.charCodeAt(e.position));){if(34===l)return g(e,n,e.position,!0),e.position++,!0;if(92===l){if(g(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),i(l))A(e,!1,t);else if(256>l&&re[l])e.result+=oe[l],e.position++;else if((u=c(l))>0){for(o=u,a=0;o>0;o--)l=e.input.charCodeAt(++e.position),(u=s(l))>=0?a=(a<<4)+u:d(e,"expected hexadecimal character");e.result+=p(a),e.position++}else d(e,"unknown escape sequence");n=r=e.position}else i(l)?(g(e,n,r,!0),w(e,A(e,!1,t)),n=r=e.position):e.position===e.lineStart&&b(e)?d(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}d(e,"unexpected end of the stream within a double quoted scalar")}function I(e,t){var n,i,r,a,s,c,u,l,p,f,h,m=!0,g=e.tag,y=e.anchor,v={};if(h=e.input.charCodeAt(e.position),91===h)a=93,u=!1,i=[];else{if(123!==h)return!1;a=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);0!==h;){if(A(e,!0,t),h=e.input.charCodeAt(e.position),h===a)return e.position++,e.tag=g,e.anchor=y,e.kind=u?"mapping":"sequence",e.result=i,!0;m||d(e,"missed comma between flow collection entries"),p=l=f=null,s=c=!1,63===h&&(r=e.input.charCodeAt(e.position+1),o(r)&&(s=c=!0,e.position++,A(e,!0,t))),n=e.line,_(e,t,W,!1,!0),p=e.tag,l=e.result,A(e,!0,t),h=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==h||(s=!0,h=e.input.charCodeAt(++e.position),A(e,!0,t),_(e,t,W,!1,!0),f=e.result),u?x(e,i,v,p,l,f):s?i.push(x(e,null,v,p,l,f)):i.push(l),A(e,!0,t),h=e.input.charCodeAt(e.position),44===h?(m=!0,h=e.input.charCodeAt(++e.position)):m=!1}d(e,"unexpected end of the stream within a flow collection")}function S(e,t){var n,o,a,s,c=z,l=!1,p=t,f=0,h=!1;if(s=e.input.charCodeAt(e.position),124===s)o=!1;else{if(62!==s)return!1;o=!0}for(e.kind="scalar",e.result="";0!==s;)if(s=e.input.charCodeAt(++e.position),43===s||45===s)z===c?c=43===s?Q:J:d(e,"repeat of a chomping mode identifier");else{if(!((a=u(s))>=0))break;0===a?d(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?d(e,"repeat of an indentation width identifier"):(p=t+a-1,l=!0)}if(r(s)){do s=e.input.charCodeAt(++e.position);while(r(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!i(s)&&0!==s)}for(;0!==s;){for(v(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!l||e.lineIndentp&&(p=e.lineIndent),i(s))f++;else{if(e.lineIndent
t)&&0!==r)d(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(_(e,t,Z,!0,a)&&(y?m=e.result:g=e.result),y||(x(e,p,f,h,m,g),h=m=g=null),A(e,!0,-1),c=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==c)d(e,"bad indentation of a mapping entry");else if(e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentc;c+=1)if(l=e.implicitTypes[c],l.resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else H.call(e.typeMap,e.tag)?(l=e.typeMap[e.tag],null!==e.result&&l.kind!==e.kind&&d(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result)?(e.result=l.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):d(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):d(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||g}function M(e){var t,n,a,s,c=e.position,u=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(s=e.input.charCodeAt(e.position))&&(A(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(u=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!o(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),a=[],n.length<1&&d(e,"directive name must not be less than one character in length");0!==s;){for(;r(s);)s=e.input.charCodeAt(++e.position);if(35===s){do s=e.input.charCodeAt(++e.position);while(0!==s&&!i(s));break}if(i(s))break;for(t=e.position;0!==s&&!o(s);)s=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}0!==s&&v(e),H.call(se,n)?se[n](e,n,a):m(e,'unknown document directive "'+n+'"')}return A(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,A(e,!0,-1)):u&&d(e,"directives end mark is expected"),_(e,e.lineIndent-1,Z,!1,!0),A(e,!0,-1),e.checkLineBreaks&&ee.test(e.input.slice(c,e.position))&&m(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&b(e)?void(46===e.input.charCodeAt(e.position)&&(e.position+=3,A(e,!0,-1))):void(e.positioni;i+=1)t(o[i])}function U(e,t){var n=L(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new $("expected a single document in the stream, but found more")}}function q(e,t,n){D(e,t,R.extend({schema:P},n))}function Y(e,t){return U(e,R.extend({schema:P},t))}for(var R=e("./common"),$=e("./exception"),B=e("./mark"),P=e("./schema/default_safe"),K=e("./schema/default_full"),H=Object.prototype.hasOwnProperty,W=1,G=2,V=3,Z=4,z=1,J=2,Q=3,X=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ee=/[\x85\u2028\u2029]/,te=/[,\[\]\{\}]/,ne=/^(?:!|!!|![a-z\-]+!)$/i,ie=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,re=new Array(256),oe=new Array(256),ae=0;256>ae;ae++)re[ae]=l(ae)?1:0,oe[ae]=l(ae);var se={YAML:function(e,t,n){var i,r,o;null!==e.version&&d(e,"duplication of %YAML directive"),1!==n.length&&d(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===i&&d(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&d(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=2>o,1!==o&&2!==o&&m(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&d(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],ne.test(i)||d(e,"ill-formed tag handle (first argument) of the TAG directive"),H.call(e.tagMap,i)&&d(e,'there is a previously declared suffix for "'+i+'" tag handle'),ie.test(r)||d(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=r}};t.exports.loadAll=D,t.exports.load=U,t.exports.safeLoadAll=q,t.exports.safeLoad=Y},{"./common":2,"./exception":4,"./mark":6,"./schema/default_full":9,"./schema/default_safe":10}],6:[function(e,t,n){"use strict";function i(e,t,n,i,r){this.name=e,this.buffer=t,this.position=n,this.line=i,this.column=r}var r=e("./common");i.prototype.getSnippet=function(e,t){var n,i,o,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",i=this.position;i>0&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){n=" ... ",i+=5;break}for(o="",a=this.position;at/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(i,a),r.repeat(" ",e)+n+s+o+"\n"+r.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet(),t&&(n+=":\n"+t)),n},t.exports=i},{"./common":2}],7:[function(e,t,n){"use strict";function i(e,t,n){var r=[];return e.include.forEach(function(e){n=i(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return-1===r.indexOf(t)})}function r(){function e(e){i[e.tag]=e}var t,n,i={};for(t=0,n=arguments.length;n>t;t+=1)arguments[t].forEach(e);return i}function o(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new s("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=i(this,"implicit",[]),this.compiledExplicit=i(this,"explicit",[]),this.compiledTypeMap=r(this.compiledImplicit,this.compiledExplicit)}var a=e("./common"),s=e("./exception"),c=e("./type");o.DEFAULT=null,o.create=function(){var e,t;switch(arguments.length){case 1:e=o.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new s("Wrong number of arguments for Schema.create function")}if(e=a.toArray(e),t=a.toArray(t),!e.every(function(e){return e instanceof o}))throw new s("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(e){return e instanceof c}))throw new s("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:e,explicit:t})},t.exports=o},{"./common":2,"./exception":4,"./type":13}],8:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({include:[e("./json")]})},{"../schema":7,"./json":12}],9:[function(e,t,n){"use strict";var i=e("../schema");t.exports=i.DEFAULT=new i({include:[e("./default_safe")],explicit:[e("../type/js/undefined"),e("../type/js/regexp"),e("../type/js/function")]})},{"../schema":7,"../type/js/function":18,"../type/js/regexp":19,"../type/js/undefined":20,"./default_safe":10}],10:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({include:[e("./core")],implicit:[e("../type/timestamp"),e("../type/merge")],explicit:[e("../type/binary"),e("../type/omap"),e("../type/pairs"),e("../type/set")]})},{"../schema":7,"../type/binary":14,"../type/merge":22,"../type/omap":24,"../type/pairs":25,"../type/set":27,"../type/timestamp":29,"./core":8}],11:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({explicit:[e("../type/str"),e("../type/seq"),e("../type/map")]})},{"../schema":7,"../type/map":21,"../type/seq":26,"../type/str":28}],12:[function(e,t,n){"use strict";var i=e("../schema");t.exports=new i({include:[e("./failsafe")],implicit:[e("../type/null"),e("../type/bool"),e("../type/int"),e("../type/float")]})},{"../schema":7,"../type/bool":15,"../type/float":16,"../type/int":17,"../type/null":23,"./failsafe":11}],13:[function(e,t,n){"use strict";function i(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function r(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===a.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=i(t.styleAliases||null),-1===s.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var o=e("./exception"),a=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],s=["scalar","sequence","mapping"];t.exports=r},{"./exception":4}],14:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=u;for(n=0;r>n;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(0>t)return!1;i+=6}return i%8===0}function r(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=u,a=0,c=[];for(t=0;r>t;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return n=r%4*6,0===n?(c.push(a>>16&255),c.push(a>>8&255),c.push(255&a)):18===n?(c.push(a>>10&255),c.push(a>>2&255)):12===n&&c.push(a>>4&255),s?new s(c):c}function o(e){var t,n,i="",r=0,o=e.length,a=u;for(t=0;o>t;t++)t%3===0&&t&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return n=o%3,
+0===n?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}function a(e){return s&&s.isBuffer(e)}var s=e("buffer").Buffer,c=e("../type"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new c("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../type":13,buffer:30}],15:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function r(e){return"true"===e||"True"===e||"TRUE"===e}function o(e){return"[object Boolean]"===Object.prototype.toString.call(e)}var a=e("../type");t.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":13}],16:[function(e,t,n){"use strict";function i(e){return null===e?!1:!!u.test(e)}function r(e){var t,n,i,r;return t=e.replace(/_/g,"").toLowerCase(),n="-"===t[0]?-1:1,r=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){r.unshift(parseFloat(e,10))}),t=0,i=1,r.forEach(function(e){t+=e*i,i*=60}),n*t):n*parseFloat(t,10)}function o(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(e))return"-0.0";return n=e.toString(10),l.test(n)?n.replace("e",".e"):n}function a(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!==0||s.isNegativeZero(e))}var s=e("../common"),c=e("../type"),u=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),l=/^[-+]?[0-9]+e/;t.exports=new c("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o,defaultStyle:"lowercase"})},{"../common":2,"../type":13}],17:[function(e,t,n){"use strict";function i(e){return e>=48&&57>=e||e>=65&&70>=e||e>=97&&102>=e}function r(e){return e>=48&&55>=e}function o(e){return e>=48&&57>=e}function a(e){if(null===e)return!1;var t,n=e.length,a=0,s=!1;if(!n)return!1;if(t=e[a],"-"!==t&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===n)return!0;if(t=e[++a],"b"===t){for(a++;n>a;a++)if(t=e[a],"_"!==t){if("0"!==t&&"1"!==t)return!1;s=!0}return s}if("x"===t){for(a++;n>a;a++)if(t=e[a],"_"!==t){if(!i(e.charCodeAt(a)))return!1;s=!0}return s}for(;n>a;a++)if(t=e[a],"_"!==t){if(!r(e.charCodeAt(a)))return!1;s=!0}return s}for(;n>a;a++)if(t=e[a],"_"!==t){if(":"===t)break;if(!o(e.charCodeAt(a)))return!1;s=!0}return s?":"!==t?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(a)):!1}function s(e){var t,n,i=e,r=1,o=[];return-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),t=i[0],"-"!==t&&"+"!==t||("-"===t&&(r=-1),i=i.slice(1),t=i[0]),"0"===i?0:"0"===t?"b"===i[1]?r*parseInt(i.slice(2),2):"x"===i[1]?r*parseInt(i,16):r*parseInt(i,8):-1!==i.indexOf(":")?(i.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),i=0,n=1,o.forEach(function(e){i+=e*n,n*=60}),r*i):r*parseInt(i,10)}function c(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1===0&&!u.isNegativeZero(e)}var u=e("../common"),l=e("../type");t.exports=new l("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:s,predicate:c,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":2,"../type":13}],18:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;try{var t="("+e+")",n=s.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&"FunctionExpression"===n.body[0].expression.type}catch(i){return!1}}function r(e){var t,n="("+e+")",i=s.parse(n,{range:!0}),r=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){r.push(e.name)}),t=i.body[0].expression.body.range,new Function(r,n.slice(t[0]+1,t[1]-1))}function o(e){return e.toString()}function a(e){return"[object Function]"===Object.prototype.toString.call(e)}var s;try{var c=e;s=c("esprima")}catch(u){"undefined"!=typeof window&&(s=window.esprima)}var l=e("../../type");t.exports=new l("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],19:[function(e,t,n){"use strict";function i(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),i="";if("/"===t[0]){if(n&&(i=n[1]),i.length>3)return!1;if("/"!==t[t.length-i.length-1])return!1}return!0}function r(e){var t=e,n=/\/([gim]*)$/.exec(e),i="";return"/"===t[0]&&(n&&(i=n[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)}function o(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function a(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var s=e("../../type");t.exports=new s("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],20:[function(e,t,n){"use strict";function i(){return!0}function r(){}function o(){return""}function a(e){return"undefined"==typeof e}var s=e("../../type");t.exports=new s("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:i,construct:r,predicate:a,represent:o})},{"../../type":13}],21:[function(e,t,n){"use strict";var i=e("../type");t.exports=new i("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},{"../type":13}],22:[function(e,t,n){"use strict";function i(e){return"<<"===e||null===e}var r=e("../type");t.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:i})},{"../type":13}],23:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function r(){return null}function o(e){return null===e}var a=e("../type");t.exports=new a("tag:yaml.org,2002:null",{kind:"scalar",resolve:i,construct:r,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":13}],24:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n,i,r,o,c=[],u=e;for(t=0,n=u.length;n>t;t+=1){if(i=u[t],o=!1,"[object Object]"!==s.call(i))return!1;for(r in i)if(a.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==c.indexOf(r))return!1;c.push(r)}return!0}function r(e){return null!==e?e:[]}var o=e("../type"),a=Object.prototype.hasOwnProperty,s=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:r})},{"../type":13}],25:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n,i,r,o,s=e;for(o=new Array(s.length),t=0,n=s.length;n>t;t+=1){if(i=s[t],"[object Object]"!==a.call(i))return!1;if(r=Object.keys(i),1!==r.length)return!1;o[t]=[r[0],i[r[0]]]}return!0}function r(e){if(null===e)return[];var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;n>t;t+=1)i=a[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}var o=e("../type"),a=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:r})},{"../type":13}],26:[function(e,t,n){"use strict";var i=e("../type");t.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},{"../type":13}],27:[function(e,t,n){"use strict";function i(e){if(null===e)return!0;var t,n=e;for(t in n)if(a.call(n,t)&&null!==n[t])return!1;return!0}function r(e){return null!==e?e:{}}var o=e("../type"),a=Object.prototype.hasOwnProperty;t.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:r})},{"../type":13}],28:[function(e,t,n){"use strict";var i=e("../type");t.exports=new i("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},{"../type":13}],29:[function(e,t,n){"use strict";function i(e){return null===e?!1:null!==s.exec(e)?!0:null!==c.exec(e)}function r(e){var t,n,i,r,o,a,u,l,p,f,h=0,d=null;if(t=s.exec(e),null===t&&(t=c.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],u=+t[6],t[7]){for(h=t[7].slice(0,3);h.length<3;)h+="0";h=+h}return t[9]&&(l=+t[10],p=+(t[11]||0),d=6e4*(60*l+p),"-"===t[9]&&(d=-d)),f=new Date(Date.UTC(n,i,r,o,a,u,h)),d&&f.setTime(f.getTime()-d),f}function o(e){return e.toISOString()}var a=e("../type"),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),c=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:r,instanceOf:Date,represent:o})},{"../type":13}],30:[function(e,t,n){},{}],"/":[function(e,t,n){"use strict";var i=e("./lib/js-yaml.js");t.exports=i},{"./lib/js-yaml.js":1}]},{},[])("/")});
diff --git a/tools/eslint/node_modules/js-yaml/lib/js-yaml/dumper.js b/tools/eslint/node_modules/js-yaml/lib/js-yaml/dumper.js
index 043d2bb47da7a8..855edfc9e63c3c 100644
--- a/tools/eslint/node_modules/js-yaml/lib/js-yaml/dumper.js
+++ b/tools/eslint/node_modules/js-yaml/lib/js-yaml/dumper.js
@@ -107,14 +107,15 @@ function encodeHex(character) {
}
function State(options) {
- this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
- this.indent = Math.max(1, (options['indent'] || 2));
- this.skipInvalid = options['skipInvalid'] || false;
- this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
- this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
- this.sortKeys = options['sortKeys'] || false;
- this.lineWidth = options['lineWidth'] || 80;
- this.noRefs = options['noRefs'] || false;
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
+ this.indent = Math.max(1, (options['indent'] || 2));
+ this.skipInvalid = options['skipInvalid'] || false;
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
+ this.sortKeys = options['sortKeys'] || false;
+ this.lineWidth = options['lineWidth'] || 80;
+ this.noRefs = options['noRefs'] || false;
+ this.noCompatMode = options['noCompatMode'] || false;
this.implicitTypes = this.schema.compiledImplicit;
this.explicitTypes = this.schema.compiledExplicit;
@@ -219,7 +220,8 @@ function writeScalar(state, object, level, iskey) {
return;
}
- if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(object) !== -1) {
+ if (!state.noCompatMode &&
+ DEPRECATED_BOOLEANS_SYNTAX.indexOf(object) !== -1) {
state.dump = "'" + object + "'";
return;
}
diff --git a/tools/eslint/node_modules/js-yaml/lib/js-yaml/type/timestamp.js b/tools/eslint/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
index a222a449ba3375..8fa9c5865697ed 100644
--- a/tools/eslint/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
+++ b/tools/eslint/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
@@ -2,29 +2,36 @@
var Type = require('../type');
+var YAML_DATE_REGEXP = new RegExp(
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
+ '-([0-9][0-9])' + // [2] month
+ '-([0-9][0-9])$'); // [3] day
+
var YAML_TIMESTAMP_REGEXP = new RegExp(
'^([0-9][0-9][0-9][0-9])' + // [1] year
'-([0-9][0-9]?)' + // [2] month
'-([0-9][0-9]?)' + // [3] day
- '(?:(?:[Tt]|[ \\t]+)' + // ...
+ '(?:[Tt]|[ \\t]+)' + // ...
'([0-9][0-9]?)' + // [4] hour
':([0-9][0-9])' + // [5] minute
':([0-9][0-9])' + // [6] second
'(?:\\.([0-9]*))?' + // [7] fraction
'(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
- '(?::([0-9][0-9]))?))?)?$'); // [11] tz_minute
+ '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
function resolveYamlTimestamp(data) {
if (data === null) return false;
- if (YAML_TIMESTAMP_REGEXP.exec(data) === null) return false;
- return true;
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
+ return false;
}
function constructYamlTimestamp(data) {
var match, year, month, day, hour, minute, second, fraction = 0,
delta = null, tz_hour, tz_minute, date;
- match = YAML_TIMESTAMP_REGEXP.exec(data);
+ match = YAML_DATE_REGEXP.exec(data);
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
if (match === null) throw new Error('Date resolve error');
diff --git a/tools/eslint/node_modules/js-yaml/package.json b/tools/eslint/node_modules/js-yaml/package.json
index 3c1fed557f87af..f55dd462312d24 100644
--- a/tools/eslint/node_modules/js-yaml/package.json
+++ b/tools/eslint/node_modules/js-yaml/package.json
@@ -2,18 +2,18 @@
"_args": [
[
"js-yaml@^3.5.1",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "js-yaml@>=3.5.1 <4.0.0",
- "_id": "js-yaml@3.5.3",
+ "_id": "js-yaml@3.5.5",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/js-yaml",
+ "_location": "/js-yaml",
"_nodeVersion": "4.3.0",
"_npmOperationalInternal": {
- "host": "packages-5-east.internal.npmjs.com",
- "tmp": "tmp/js-yaml-3.5.3.tgz_1455175645225_0.033302413299679756"
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/js-yaml-3.5.5.tgz_1458226126775_0.5821511475369334"
},
"_npmUser": {
"email": "vitaly@rcdesign.ru",
@@ -30,13 +30,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.3.tgz",
- "_shasum": "e9ee6082b0657770e4346dfaf2a58c5992251f76",
+ "_resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz",
+ "_shasum": "0377c38017cabc7322b0d1fbcd25a491641f2fbe",
"_shrinkwrap": null,
"_spec": "js-yaml@^3.5.1",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "dervus.grim@gmail.com",
"name": "Vladimir Zapparov"
@@ -52,18 +52,18 @@
},
"contributors": [
{
- "email": "ixti@member.fsf.org",
"name": "Aleksey V Zapparov",
+ "email": "ixti@member.fsf.org",
"url": "http://www.ixti.net/"
},
{
- "email": "vitaly@rcdesign.ru",
"name": "Vitaly Puzrin",
+ "email": "vitaly@rcdesign.ru",
"url": "https://github.com/puzrin"
},
{
- "email": "martin.grenfell@gmail.com",
"name": "Martin Grenfell",
+ "email": "martin.grenfell@gmail.com",
"url": "http://got-ravings.blogspot.com"
}
],
@@ -84,28 +84,28 @@
},
"directories": {},
"dist": {
- "shasum": "e9ee6082b0657770e4346dfaf2a58c5992251f76",
- "tarball": "http://registry.npmjs.org/js-yaml/-/js-yaml-3.5.3.tgz"
+ "shasum": "0377c38017cabc7322b0d1fbcd25a491641f2fbe",
+ "tarball": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz"
},
"files": [
- "index.js",
- "lib/",
"bin/",
- "dist/"
+ "dist/",
+ "index.js",
+ "lib/"
],
- "gitHead": "4a9e0a258586cff292cab63e0b76044fc1f4cb63",
+ "gitHead": "fdd205e5a1175a62868c0efb28a77493e5e34e3f",
"homepage": "https://github.com/nodeca/js-yaml",
"keywords": [
- "yaml",
"parser",
+ "pyyaml",
"serializer",
- "pyyaml"
+ "yaml"
],
"license": "MIT",
"maintainers": [
{
- "email": "vitaly@rcdesign.ru",
- "name": "vitaly"
+ "name": "vitaly",
+ "email": "vitaly@rcdesign.ru"
}
],
"name": "js-yaml",
@@ -118,5 +118,5 @@
"scripts": {
"test": "make test"
},
- "version": "3.5.3"
+ "version": "3.5.5"
}
diff --git a/tools/eslint/node_modules/json-stable-stringify/.npmignore b/tools/eslint/node_modules/json-stable-stringify/.npmignore
deleted file mode 100644
index 3c3629e647f5dd..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/tools/eslint/node_modules/json-stable-stringify/example/key_cmp.js b/tools/eslint/node_modules/json-stable-stringify/example/key_cmp.js
deleted file mode 100644
index d5f66752d82e15..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/example/key_cmp.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var stringify = require('../');
-
-var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
-var s = stringify(obj, function (a, b) {
- return a.key < b.key ? 1 : -1;
-});
-console.log(s);
diff --git a/tools/eslint/node_modules/json-stable-stringify/example/nested.js b/tools/eslint/node_modules/json-stable-stringify/example/nested.js
deleted file mode 100644
index 9a672fc65fb0fc..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/example/nested.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var stringify = require('../');
-var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
-console.log(stringify(obj));
diff --git a/tools/eslint/node_modules/json-stable-stringify/example/str.js b/tools/eslint/node_modules/json-stable-stringify/example/str.js
deleted file mode 100644
index 9b4b3cd289570e..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/example/str.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var stringify = require('../');
-var obj = { c: 6, b: [4,5], a: 3 };
-console.log(stringify(obj));
diff --git a/tools/eslint/node_modules/json-stable-stringify/example/value_cmp.js b/tools/eslint/node_modules/json-stable-stringify/example/value_cmp.js
deleted file mode 100644
index 09f1c5f79b2167..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/example/value_cmp.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var stringify = require('../');
-
-var obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 };
-var s = stringify(obj, function (a, b) {
- return a.value < b.value ? 1 : -1;
-});
-console.log(s);
diff --git a/tools/eslint/node_modules/json-stable-stringify/package.json b/tools/eslint/node_modules/json-stable-stringify/package.json
index 7f0b68340d0d85..47b386a47e84be 100644
--- a/tools/eslint/node_modules/json-stable-stringify/package.json
+++ b/tools/eslint/node_modules/json-stable-stringify/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"json-stable-stringify@^1.0.0",
- "/Users/trott/test/node_modules/eslint"
+ "/Users/silverwind/git/node/tools/package/package"
]
],
"_from": "json-stable-stringify@>=1.0.0 <2.0.0",
"_id": "json-stable-stringify@1.0.1",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/json-stable-stringify",
+ "_location": "/json-stable-stringify",
"_nodeVersion": "4.2.1",
"_npmOperationalInternal": {
"host": "packages-5-east.internal.npmjs.com",
@@ -30,13 +30,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint"
+ "/"
],
"_resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz",
"_shasum": "9a759d39c5f2ff503fd5300646ed445f88c4f9af",
"_shrinkwrap": null,
"_spec": "json-stable-stringify@^1.0.0",
- "_where": "/Users/trott/test/node_modules/eslint",
+ "_where": "/Users/silverwind/git/node/tools/package/package",
"author": {
"email": "mail@substack.net",
"name": "James Halliday",
@@ -55,24 +55,24 @@
"directories": {},
"dist": {
"shasum": "9a759d39c5f2ff503fd5300646ed445f88c4f9af",
- "tarball": "http://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz"
+ "tarball": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz"
},
"gitHead": "4a3ac9cc006a91e64901f8ebe78d23bf9fc9fbd0",
"homepage": "https://github.com/substack/json-stable-stringify",
"keywords": [
- "json",
- "stringify",
"deterministic",
"hash",
+ "json",
"sort",
- "stable"
+ "stable",
+ "stringify"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
- "email": "mail@substack.net",
- "name": "substack"
+ "name": "substack",
+ "email": "mail@substack.net"
}
],
"name": "json-stable-stringify",
@@ -87,13 +87,13 @@
},
"testling": {
"browsers": [
- "ie/8..latest",
- "ff/5",
- "ff/latest",
"chrome/15",
"chrome/latest",
- "safari/latest",
- "opera/latest"
+ "ff/5",
+ "ff/latest",
+ "ie/8..latest",
+ "opera/latest",
+ "safari/latest"
],
"files": "test/*.js"
},
diff --git a/tools/eslint/node_modules/json-stable-stringify/test/cmp.js b/tools/eslint/node_modules/json-stable-stringify/test/cmp.js
deleted file mode 100644
index 2dbb39355c652b..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/test/cmp.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var test = require('tape');
-var stringify = require('../');
-
-test('custom comparison function', function (t) {
- t.plan(1);
- var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
- var s = stringify(obj, function (a, b) {
- return a.key < b.key ? 1 : -1;
- });
- t.equal(s, '{"c":8,"b":[{"z":6,"y":5,"x":4},7],"a":3}');
-});
diff --git a/tools/eslint/node_modules/json-stable-stringify/test/nested.js b/tools/eslint/node_modules/json-stable-stringify/test/nested.js
deleted file mode 100644
index e7f5a0e65b7648..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/test/nested.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var test = require('tape');
-var stringify = require('../');
-
-test('nested', function (t) {
- t.plan(1);
- var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
- t.equal(stringify(obj), '{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}');
-});
-
-test('cyclic (default)', function (t) {
- t.plan(1);
- var one = { a: 1 };
- var two = { a: 2, one: one };
- one.two = two;
- try {
- stringify(one);
- } catch (ex) {
- t.equal(ex.toString(), 'TypeError: Converting circular structure to JSON');
- }
-});
-
-test('cyclic (specifically allowed)', function (t) {
- t.plan(1);
- var one = { a: 1 };
- var two = { a: 2, one: one };
- one.two = two;
- t.equal(stringify(one, {cycles:true}), '{"a":1,"two":{"a":2,"one":"__cycle__"}}');
-});
-
-test('repeated non-cyclic value', function(t) {
- t.plan(1);
- var one = { x: 1 };
- var two = { a: one, b: one };
- t.equal(stringify(two), '{"a":{"x":1},"b":{"x":1}}');
-});
diff --git a/tools/eslint/node_modules/json-stable-stringify/test/replacer.js b/tools/eslint/node_modules/json-stable-stringify/test/replacer.js
deleted file mode 100644
index 98802a72d65eff..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/test/replacer.js
+++ /dev/null
@@ -1,74 +0,0 @@
-var test = require('tape');
-var stringify = require('../');
-
-test('replace root', function (t) {
- t.plan(1);
-
- var obj = { a: 1, b: 2, c: false };
- var replacer = function(key, value) { return 'one'; };
-
- t.equal(stringify(obj, { replacer: replacer }), '"one"');
-});
-
-test('replace numbers', function (t) {
- t.plan(1);
-
- var obj = { a: 1, b: 2, c: false };
- var replacer = function(key, value) {
- if(value === 1) return 'one';
- if(value === 2) return 'two';
- return value;
- };
-
- t.equal(stringify(obj, { replacer: replacer }), '{"a":"one","b":"two","c":false}');
-});
-
-test('replace with object', function (t) {
- t.plan(1);
-
- var obj = { a: 1, b: 2, c: false };
- var replacer = function(key, value) {
- if(key === 'b') return { d: 1 };
- if(value === 1) return 'one';
- return value;
- };
-
- t.equal(stringify(obj, { replacer: replacer }), '{"a":"one","b":{"d":"one"},"c":false}');
-});
-
-test('replace with undefined', function (t) {
- t.plan(1);
-
- var obj = { a: 1, b: 2, c: false };
- var replacer = function(key, value) {
- if(value === false) return;
- return value;
- };
-
- t.equal(stringify(obj, { replacer: replacer }), '{"a":1,"b":2}');
-});
-
-test('replace with array', function (t) {
- t.plan(1);
-
- var obj = { a: 1, b: 2, c: false };
- var replacer = function(key, value) {
- if(key === 'b') return ['one', 'two'];
- return value;
- };
-
- t.equal(stringify(obj, { replacer: replacer }), '{"a":1,"b":["one","two"],"c":false}');
-});
-
-test('replace array item', function (t) {
- t.plan(1);
-
- var obj = { a: 1, b: 2, c: [1,2] };
- var replacer = function(key, value) {
- if(value === 1) return 'one';
- if(value === 2) return 'two';
- return value;
- };
-
- t.equal(stringify(obj, { replacer: replacer }), '{"a":"one","b":"two","c":["one","two"]}');
-});
diff --git a/tools/eslint/node_modules/json-stable-stringify/test/space.js b/tools/eslint/node_modules/json-stable-stringify/test/space.js
deleted file mode 100644
index 2621122ae3778c..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/test/space.js
+++ /dev/null
@@ -1,59 +0,0 @@
-var test = require('tape');
-var stringify = require('../');
-
-test('space parameter', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2 };
- t.equal(stringify(obj, {space: ' '}), ''
- + '{\n'
- + ' "one": 1,\n'
- + ' "two": 2\n'
- + '}'
- );
-});
-
-test('space parameter (with tabs)', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2 };
- t.equal(stringify(obj, {space: '\t'}), ''
- + '{\n'
- + '\t"one": 1,\n'
- + '\t"two": 2\n'
- + '}'
- );
-});
-
-test('space parameter (with a number)', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2 };
- t.equal(stringify(obj, {space: 3}), ''
- + '{\n'
- + ' "one": 1,\n'
- + ' "two": 2\n'
- + '}'
- );
-});
-
-test('space parameter (nested objects)', function (t) {
- t.plan(1);
- var obj = { one: 1, two: { b: 4, a: [2,3] } };
- t.equal(stringify(obj, {space: ' '}), ''
- + '{\n'
- + ' "one": 1,\n'
- + ' "two": {\n'
- + ' "a": [\n'
- + ' 2,\n'
- + ' 3\n'
- + ' ],\n'
- + ' "b": 4\n'
- + ' }\n'
- + '}'
- );
-});
-
-test('space parameter (same as native)', function (t) {
- t.plan(1);
- // for this test, properties need to be in alphabetical order
- var obj = { one: 1, two: { a: [2,3], b: 4 } };
- t.equal(stringify(obj, {space: ' '}), JSON.stringify(obj, null, ' '));
-});
diff --git a/tools/eslint/node_modules/json-stable-stringify/test/str.js b/tools/eslint/node_modules/json-stable-stringify/test/str.js
deleted file mode 100644
index 67426b99e30b22..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/test/str.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var test = require('tape');
-var stringify = require('../');
-
-test('simple object', function (t) {
- t.plan(1);
- var obj = { c: 6, b: [4,5], a: 3, z: null };
- t.equal(stringify(obj), '{"a":3,"b":[4,5],"c":6,"z":null}');
-});
-
-test('object with undefined', function (t) {
- t.plan(1);
- var obj = { a: 3, z: undefined };
- t.equal(stringify(obj), '{"a":3}');
-});
-
-test('array with undefined', function (t) {
- t.plan(1);
- var obj = [4, undefined, 6];
- t.equal(stringify(obj), '[4,null,6]');
-});
-
-test('object with empty string', function (t) {
- t.plan(1);
- var obj = { a: 3, z: '' };
- t.equal(stringify(obj), '{"a":3,"z":""}');
-});
-
-test('array with empty string', function (t) {
- t.plan(1);
- var obj = [4, '', 6];
- t.equal(stringify(obj), '[4,"",6]');
-});
diff --git a/tools/eslint/node_modules/json-stable-stringify/test/to-json.js b/tools/eslint/node_modules/json-stable-stringify/test/to-json.js
deleted file mode 100644
index ef9a980929ae90..00000000000000
--- a/tools/eslint/node_modules/json-stable-stringify/test/to-json.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var test = require('tape');
-var stringify = require('../');
-
-test('toJSON function', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2, toJSON: function() { return { one: 1 }; } };
- t.equal(stringify(obj), '{"one":1}' );
-});
-
-test('toJSON returns string', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2, toJSON: function() { return 'one'; } };
- t.equal(stringify(obj), '"one"');
-});
-
-test('toJSON returns array', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2, toJSON: function() { return ['one']; } };
- t.equal(stringify(obj), '["one"]');
-});
diff --git a/tools/eslint/node_modules/jsonify/package.json b/tools/eslint/node_modules/jsonify/package.json
index f5f79370bc4e6f..0b4be16988a837 100644
--- a/tools/eslint/node_modules/jsonify/package.json
+++ b/tools/eslint/node_modules/jsonify/package.json
@@ -2,7 +2,7 @@
"_args": [
[
"jsonify@~0.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/json-stable-stringify"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/json-stable-stringify"
]
],
"_defaultsLoaded": true,
@@ -11,7 +11,7 @@
"_id": "jsonify@0.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/jsonify",
+ "_location": "/jsonify",
"_nodeVersion": "v0.5.0-pre",
"_npmVersion": "1.0.10",
"_phantomChildren": {},
@@ -24,13 +24,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/json-stable-stringify"
+ "/json-stable-stringify"
],
"_resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
"_shasum": "2c74b6ee41d93ca51b7b5aaee8f503631d252a73",
"_shrinkwrap": null,
"_spec": "jsonify@~0.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/json-stable-stringify",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/json-stable-stringify",
"author": {
"name": "Douglas Crockford",
"url": "http://crockford.com/"
@@ -57,15 +57,15 @@
},
"homepage": "https://github.com/substack/jsonify#readme",
"keywords": [
- "json",
- "browser"
+ "browser",
+ "json"
],
"license": "Public Domain",
"main": "index.js",
"maintainers": [
{
- "email": "mail@substack.net",
- "name": "substack"
+ "name": "substack",
+ "email": "mail@substack.net"
}
],
"name": "jsonify",
diff --git a/tools/eslint/node_modules/jsonify/test/parse.js b/tools/eslint/node_modules/jsonify/test/parse.js
deleted file mode 100644
index d23de157e198a4..00000000000000
--- a/tools/eslint/node_modules/jsonify/test/parse.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var test = require('tap').test;
-var json = require('../');
-var garbage = require('garbage');
-
-test('parse', function (t) {
- for (var i = 0; i < 50; i++) {
- var s = JSON.stringify(garbage(50));
-
- t.deepEqual(
- json.parse(s),
- JSON.parse(s)
- );
- }
-
- t.end();
-});
diff --git a/tools/eslint/node_modules/jsonify/test/stringify.js b/tools/eslint/node_modules/jsonify/test/stringify.js
deleted file mode 100644
index 72de91f2b6dec6..00000000000000
--- a/tools/eslint/node_modules/jsonify/test/stringify.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var test = require('tap').test;
-var json = require('../');
-var garbage = require('garbage');
-
-test('stringify', function (t) {
- for (var i = 0; i < 50; i++) {
- var obj = garbage(50);
- t.equal(
- json.stringify(obj),
- JSON.stringify(obj)
- );
- }
-
- t.end();
-});
diff --git a/tools/eslint/node_modules/jsonpointer/.travis.yml b/tools/eslint/node_modules/jsonpointer/.travis.yml
deleted file mode 100644
index 9338bf147031df..00000000000000
--- a/tools/eslint/node_modules/jsonpointer/.travis.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-language: "node_js"
-node_js:
- - 0.6
- - 0.8
- - 0.10
- - 0.11
- - 0.12
- - iojs-v1.0
- - iojs-v2.0
- - iojs
diff --git a/tools/eslint/node_modules/jsonpointer/package.json b/tools/eslint/node_modules/jsonpointer/package.json
index 05d6424e2a1527..64f1b24fa9c3dc 100644
--- a/tools/eslint/node_modules/jsonpointer/package.json
+++ b/tools/eslint/node_modules/jsonpointer/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"jsonpointer@2.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/is-my-json-valid"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/is-my-json-valid"
]
],
"_from": "jsonpointer@2.0.0",
"_id": "jsonpointer@2.0.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/jsonpointer",
+ "_location": "/jsonpointer",
"_nodeVersion": "0.10.36",
"_npmUser": {
"email": "marc.brookman@gmail.com",
@@ -26,13 +26,13 @@
"type": "version"
},
"_requiredBy": [
- "/eslint/is-my-json-valid"
+ "/is-my-json-valid"
],
"_resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz",
"_shasum": "3af1dd20fe85463910d469a385e33017d2a030d9",
"_shrinkwrap": null,
"_spec": "jsonpointer@2.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/is-my-json-valid",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/is-my-json-valid",
"author": {
"email": "jan@apache.org",
"name": "Jan Lehnardt"
@@ -42,8 +42,8 @@
},
"contributors": [
{
- "email": "joe-github@cursive.net",
- "name": "Joe Hildebrand"
+ "name": "Joe Hildebrand",
+ "email": "joe-github@cursive.net"
}
],
"dependencies": {},
@@ -63,12 +63,12 @@
"main": "./jsonpointer",
"maintainers": [
{
- "email": "jan@apache.org",
- "name": "jan"
+ "name": "jan",
+ "email": "jan@apache.org"
},
{
- "email": "marc.brookman@gmail.com",
- "name": "marcbachmann"
+ "name": "marcbachmann",
+ "email": "marc.brookman@gmail.com"
}
],
"name": "jsonpointer",
@@ -82,9 +82,9 @@
"test": "node test.js"
},
"tags": [
- "util",
"simple",
"util",
+ "util",
"utility"
],
"version": "2.0.0"
diff --git a/tools/eslint/node_modules/jsonpointer/test.js b/tools/eslint/node_modules/jsonpointer/test.js
deleted file mode 100644
index 1c67d7f7efc898..00000000000000
--- a/tools/eslint/node_modules/jsonpointer/test.js
+++ /dev/null
@@ -1,98 +0,0 @@
-var assert = require("assert");
-var jsonpointer = require("./jsonpointer");
-
-var obj = {
- a: 1,
- b: {
- c: 2
- },
- d: {
- e: [{a:3}, {b:4}, {c:5}]
- }
-};
-
-assert.equal(jsonpointer.get(obj, "/a"), 1);
-assert.equal(jsonpointer.get(obj, "/b/c"), 2);
-assert.equal(jsonpointer.get(obj, "/d/e/0/a"), 3);
-assert.equal(jsonpointer.get(obj, "/d/e/1/b"), 4);
-assert.equal(jsonpointer.get(obj, "/d/e/2/c"), 5);
-
-// set returns old value
-assert.equal(jsonpointer.set(obj, "/a", 2), 1);
-assert.equal(jsonpointer.set(obj, "/b/c", 3), 2);
-assert.equal(jsonpointer.set(obj, "/d/e/0/a", 4), 3);
-assert.equal(jsonpointer.set(obj, "/d/e/1/b", 5), 4);
-assert.equal(jsonpointer.set(obj, "/d/e/2/c", 6), 5);
-
-assert.equal(jsonpointer.get(obj, "/a"), 2);
-assert.equal(jsonpointer.get(obj, "/b/c"), 3);
-assert.equal(jsonpointer.get(obj, "/d/e/0/a"), 4);
-assert.equal(jsonpointer.get(obj, "/d/e/1/b"), 5);
-assert.equal(jsonpointer.get(obj, "/d/e/2/c"), 6);
-
-assert.equal(jsonpointer.get(obj, ""), obj);
-assert.throws(function(){ jsonpointer.get(obj, "a"); }, validateError);
-assert.throws(function(){ jsonpointer.get(obj, "a/"); }, validateError);
-
-function validateError(err) {
- if ( (err instanceof Error) && /Invalid JSON pointer/.test(err.message) ) {
- return true;
- }
-}
-
-var complexKeys = {
- "a/b": {
- c: 1
- },
- d: {
- "e/f": 2
- },
- "~1": 3,
- "01": 4
-}
-
-assert.equal(jsonpointer.get(complexKeys, "/a~1b/c"), 1);
-assert.equal(jsonpointer.get(complexKeys, "/d/e~1f"), 2);
-assert.equal(jsonpointer.get(complexKeys, "/~01"), 3);
-assert.equal(jsonpointer.get(complexKeys, "/01"), 4);
-assert.equal(jsonpointer.get(complexKeys, "/a/b/c"), null);
-assert.equal(jsonpointer.get(complexKeys, "/~1"), null);
-
-// draft-ietf-appsawg-json-pointer-08 has special array rules
-var ary = [ "zero", "one", "two" ];
-assert.equal(jsonpointer.get(ary, "/01"), null);
-
-//assert.equal(jsonpointer.set(ary, "/-", "three"), null);
-//assert.equal(ary[3], "three");
-
-// Examples from the draft:
-var example = {
- "foo": ["bar", "baz"],
- "": 0,
- "a/b": 1,
- "c%d": 2,
- "e^f": 3,
- "g|h": 4,
- "i\\j": 5,
- "k\"l": 6,
- " ": 7,
- "m~n": 8
-};
-
-assert.equal(jsonpointer.get(example, ""), example);
-var ans = jsonpointer.get(example, "/foo");
-assert.equal(ans.length, 2);
-assert.equal(ans[0], "bar");
-assert.equal(ans[1], "baz");
-assert.equal(jsonpointer.get(example, "/foo/0"), "bar");
-assert.equal(jsonpointer.get(example, "/"), 0);
-assert.equal(jsonpointer.get(example, "/a~1b"), 1);
-assert.equal(jsonpointer.get(example, "/c%d"), 2);
-assert.equal(jsonpointer.get(example, "/e^f"), 3);
-assert.equal(jsonpointer.get(example, "/g|h"), 4);
-assert.equal(jsonpointer.get(example, "/i\\j"), 5);
-assert.equal(jsonpointer.get(example, "/k\"l"), 6);
-assert.equal(jsonpointer.get(example, "/ "), 7);
-assert.equal(jsonpointer.get(example, "/m~0n"), 8);
-
-console.log("All tests pass.");
diff --git a/tools/eslint/node_modules/levn/package.json b/tools/eslint/node_modules/levn/package.json
index c6d86622d91c04..f7afdadc63dc0b 100644
--- a/tools/eslint/node_modules/levn/package.json
+++ b/tools/eslint/node_modules/levn/package.json
@@ -2,14 +2,14 @@
"_args": [
[
"levn@~0.3.0",
- "/Users/trott/test/node_modules/eslint/node_modules/optionator"
+ "/Users/silverwind/git/node/tools/package/package/node_modules/optionator"
]
],
"_from": "levn@>=0.3.0 <0.4.0",
"_id": "levn@0.3.0",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/levn",
+ "_location": "/levn",
"_nodeVersion": "4.2.4",
"_npmUser": {
"email": "z@georgezahariev.com",
@@ -26,13 +26,13 @@
"type": "range"
},
"_requiredBy": [
- "/eslint/optionator"
+ "/optionator"
],
"_resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
"_shasum": "3b09924edf9f083c0490fdd4c0bc4421e04764ee",
"_shrinkwrap": null,
"_spec": "levn@~0.3.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/optionator",
+ "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/optionator",
"author": {
"email": "z@georgezahariev.com",
"name": "George Zahariev"
@@ -59,31 +59,31 @@
"node": ">= 0.8.0"
},
"files": [
- "lib",
+ "LICENSE",
"README.md",
- "LICENSE"
+ "lib"
],
"gitHead": "a92b9acf928282ba81134b4ae8e6a5f29e1f5e1e",
"homepage": "https://github.com/gkz/levn",
"keywords": [
+ "concise",
+ "ecmascript",
+ "flexible",
+ "human",
+ "json",
"levn",
"light",
- "ecmascript",
- "value",
"notation",
- "json",
"typed",
- "human",
- "concise",
"typed",
- "flexible"
+ "value"
],
"license": "MIT",
"main": "./lib/",
"maintainers": [
{
- "email": "z@georgezahariev.com",
- "name": "gkz"
+ "name": "gkz",
+ "email": "z@georgezahariev.com"
}
],
"name": "levn",
diff --git a/tools/eslint/node_modules/lodash/LICENSE b/tools/eslint/node_modules/lodash/LICENSE
index bcbe13d67a9621..e0c69d56032d15 100644
--- a/tools/eslint/node_modules/lodash/LICENSE
+++ b/tools/eslint/node_modules/lodash/LICENSE
@@ -1,23 +1,47 @@
-The MIT License (MIT)
+Copyright jQuery Foundation and other contributors
-Copyright 2012-2016 The Dojo Foundation
-Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
+Based on Underscore.js, copyright Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/lodash/lodash
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code displayed within the prose of the
+documentation.
+
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
+
+====
+
+Files located in the node_modules and vendor directories are externally
+maintained libraries used by this software which have their own
+licenses; we recommend you read them, as their terms may differ from the
+terms above.
diff --git a/tools/eslint/node_modules/lodash/README.md b/tools/eslint/node_modules/lodash/README.md
index 33a7ef26ef2e58..ea9313b9564198 100644
--- a/tools/eslint/node_modules/lodash/README.md
+++ b/tools/eslint/node_modules/lodash/README.md
@@ -1,6 +1,6 @@
-# lodash v4.3.0
+# lodash v4.9.0
-The [lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
+The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
## Installation
@@ -12,29 +12,29 @@ $ npm i --save lodash
In Node.js:
```js
-// load the full build
+// Load the full build.
var _ = require('lodash');
-// load the core build
+// Load the core build.
var _ = require('lodash/core');
-// load the fp build for immutable auto-curried iteratee-first data-last methods
-var _ = require('lodash/fp');
+// Load the fp build for immutable auto-curried iteratee-first data-last methods.
+var fp = require('lodash/fp');
-// or a method category
+// Load a method category.
var array = require('lodash/array');
var object = require('lodash/fp/object');
-// or method for smaller builds with browserify/rollup/webpack
+// Load a single method for smaller builds with browserify/rollup/webpack.
var chunk = require('lodash/chunk');
var extend = require('lodash/fp/extend');
```
-See the [package source](https://github.com/lodash/lodash/tree/4.3.0-npm) for more details.
+See the [package source](https://github.com/lodash/lodash/tree/4.9.0-npm) for more details.
**Note:**
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL.
-Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes lodash by default.
+Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes `lodash` by default.
## Support
-Tested in Chrome 47-48, Firefox 43-44, IE 9-11, Edge 13, Safari 8-9, Node.js 0.10, 0.12, 4, & 5, & PhantomJS 1.9.8.
+Tested in Chrome 48-49, Firefox 44-45, IE 9-11, Edge 13, Safari 8-9, Node.js 0.10, 0.12, 4, & 5, & PhantomJS 1.9.8.
Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.
diff --git a/tools/eslint/node_modules/lodash/_DataView.js b/tools/eslint/node_modules/lodash/_DataView.js
new file mode 100644
index 00000000000000..ac2d57ca67c9cb
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_DataView.js
@@ -0,0 +1,7 @@
+var getNative = require('./_getNative'),
+ root = require('./_root');
+
+/* Built-in method references that are verified to be native. */
+var DataView = getNative(root, 'DataView');
+
+module.exports = DataView;
diff --git a/tools/eslint/node_modules/lodash/_Hash.js b/tools/eslint/node_modules/lodash/_Hash.js
index 25108ad7fd7c34..7f4c3ba933a744 100644
--- a/tools/eslint/node_modules/lodash/_Hash.js
+++ b/tools/eslint/node_modules/lodash/_Hash.js
@@ -4,9 +4,10 @@ var nativeCreate = require('./_nativeCreate');
var objectProto = Object.prototype;
/**
- * Creates an hash object.
+ * Creates a hash object.
*
* @private
+ * @constructor
* @returns {Object} Returns the new hash object.
*/
function Hash() {}
diff --git a/tools/eslint/node_modules/lodash/_LazyWrapper.js b/tools/eslint/node_modules/lodash/_LazyWrapper.js
index 3c14d805c925a7..81786c7f1e4940 100644
--- a/tools/eslint/node_modules/lodash/_LazyWrapper.js
+++ b/tools/eslint/node_modules/lodash/_LazyWrapper.js
@@ -8,6 +8,7 @@ var MAX_ARRAY_LENGTH = 4294967295;
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
*
* @private
+ * @constructor
* @param {*} value The value to wrap.
*/
function LazyWrapper(value) {
@@ -20,6 +21,7 @@ function LazyWrapper(value) {
this.__views__ = [];
}
+// Ensure `LazyWrapper` is an instance of `baseLodash`.
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
LazyWrapper.prototype.constructor = LazyWrapper;
diff --git a/tools/eslint/node_modules/lodash/_LodashWrapper.js b/tools/eslint/node_modules/lodash/_LodashWrapper.js
index 7c255b2dd1500c..c1e4d9df762b40 100644
--- a/tools/eslint/node_modules/lodash/_LodashWrapper.js
+++ b/tools/eslint/node_modules/lodash/_LodashWrapper.js
@@ -6,7 +6,7 @@ var baseCreate = require('./_baseCreate'),
*
* @private
* @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable chaining for all wrapper methods.
+ * @param {boolean} [chainAll] Enable explicit method chain sequences.
*/
function LodashWrapper(value, chainAll) {
this.__wrapped__ = value;
diff --git a/tools/eslint/node_modules/lodash/_MapCache.js b/tools/eslint/node_modules/lodash/_MapCache.js
index 734324be552a68..4c6fa99949d0f2 100644
--- a/tools/eslint/node_modules/lodash/_MapCache.js
+++ b/tools/eslint/node_modules/lodash/_MapCache.js
@@ -8,6 +8,7 @@ var mapClear = require('./_mapClear'),
* Creates a map cache object to store key-value pairs.
*
* @private
+ * @constructor
* @param {Array} [values] The values to cache.
*/
function MapCache(values) {
@@ -21,7 +22,7 @@ function MapCache(values) {
}
}
-// Add functions to the `MapCache`.
+// Add methods to `MapCache`.
MapCache.prototype.clear = mapClear;
MapCache.prototype['delete'] = mapDelete;
MapCache.prototype.get = mapGet;
diff --git a/tools/eslint/node_modules/lodash/_Promise.js b/tools/eslint/node_modules/lodash/_Promise.js
new file mode 100644
index 00000000000000..247b9e1bacac64
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_Promise.js
@@ -0,0 +1,7 @@
+var getNative = require('./_getNative'),
+ root = require('./_root');
+
+/* Built-in method references that are verified to be native. */
+var Promise = getNative(root, 'Promise');
+
+module.exports = Promise;
diff --git a/tools/eslint/node_modules/lodash/_SetCache.js b/tools/eslint/node_modules/lodash/_SetCache.js
index 66b8b614b0f3e1..6fd915bdc181a7 100644
--- a/tools/eslint/node_modules/lodash/_SetCache.js
+++ b/tools/eslint/node_modules/lodash/_SetCache.js
@@ -6,6 +6,7 @@ var MapCache = require('./_MapCache'),
* Creates a set cache object to store unique values.
*
* @private
+ * @constructor
* @param {Array} [values] The values to cache.
*/
function SetCache(values) {
@@ -18,7 +19,7 @@ function SetCache(values) {
}
}
-// Add functions to the `SetCache`.
+// Add methods to `SetCache`.
SetCache.prototype.push = cachePush;
module.exports = SetCache;
diff --git a/tools/eslint/node_modules/lodash/_Stack.js b/tools/eslint/node_modules/lodash/_Stack.js
index 7c3c2f318fac53..414cd5295d14b1 100644
--- a/tools/eslint/node_modules/lodash/_Stack.js
+++ b/tools/eslint/node_modules/lodash/_Stack.js
@@ -8,6 +8,7 @@ var stackClear = require('./_stackClear'),
* Creates a stack cache object to store key-value pairs.
*
* @private
+ * @constructor
* @param {Array} [values] The values to cache.
*/
function Stack(values) {
@@ -21,7 +22,7 @@ function Stack(values) {
}
}
-// Add functions to the `Stack` cache.
+// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
diff --git a/tools/eslint/node_modules/lodash/_addMapEntry.js b/tools/eslint/node_modules/lodash/_addMapEntry.js
index c76dc3fddb7384..0112ef74425759 100644
--- a/tools/eslint/node_modules/lodash/_addMapEntry.js
+++ b/tools/eslint/node_modules/lodash/_addMapEntry.js
@@ -7,6 +7,7 @@
* @returns {Object} Returns `map`.
*/
function addMapEntry(map, pair) {
+ // Don't return `Map#set` because it doesn't return the map instance in IE 11.
map.set(pair[0], pair[1]);
return map;
}
diff --git a/tools/eslint/node_modules/lodash/_apply.js b/tools/eslint/node_modules/lodash/_apply.js
index 22d4f8a70315f6..d000f046079f31 100644
--- a/tools/eslint/node_modules/lodash/_apply.js
+++ b/tools/eslint/node_modules/lodash/_apply.js
@@ -5,7 +5,7 @@
* @private
* @param {Function} func The function to invoke.
* @param {*} thisArg The `this` binding of `func`.
- * @param {...*} args The arguments to invoke `func` with.
+ * @param {Array} args The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
diff --git a/tools/eslint/node_modules/lodash/_arrayEvery.js b/tools/eslint/node_modules/lodash/_arrayEvery.js
index d3ba018f66816b..8d89fb102d890c 100644
--- a/tools/eslint/node_modules/lodash/_arrayEvery.js
+++ b/tools/eslint/node_modules/lodash/_arrayEvery.js
@@ -5,7 +5,8 @@
* @private
* @param {Array} array The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`.
*/
function arrayEvery(array, predicate) {
var index = -1,
diff --git a/tools/eslint/node_modules/lodash/_arrayFilter.js b/tools/eslint/node_modules/lodash/_arrayFilter.js
index 297083b4a2aa02..7b61ba6f9eea59 100644
--- a/tools/eslint/node_modules/lodash/_arrayFilter.js
+++ b/tools/eslint/node_modules/lodash/_arrayFilter.js
@@ -10,13 +10,13 @@
function arrayFilter(array, predicate) {
var index = -1,
length = array.length,
- resIndex = -1,
+ resIndex = 0,
result = [];
while (++index < length) {
var value = array[index];
if (predicate(value, index, array)) {
- result[++resIndex] = value;
+ result[resIndex++] = value;
}
}
return result;
diff --git a/tools/eslint/node_modules/lodash/_arrayIncludesWith.js b/tools/eslint/node_modules/lodash/_arrayIncludesWith.js
index a360d3a75ceb9d..88ea23719b4c99 100644
--- a/tools/eslint/node_modules/lodash/_arrayIncludesWith.js
+++ b/tools/eslint/node_modules/lodash/_arrayIncludesWith.js
@@ -1,6 +1,5 @@
/**
- * A specialized version of `_.includesWith` for arrays without support for
- * specifying an index to search from.
+ * This function is like `arrayIncludes` except that it accepts a comparator.
*
* @private
* @param {Array} array The array to search.
diff --git a/tools/eslint/node_modules/lodash/_arrayReduce.js b/tools/eslint/node_modules/lodash/_arrayReduce.js
index 6a355bce82f77c..41bea2cf07a5fb 100644
--- a/tools/eslint/node_modules/lodash/_arrayReduce.js
+++ b/tools/eslint/node_modules/lodash/_arrayReduce.js
@@ -6,7 +6,8 @@
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as the initial value.
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
+ * the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduce(array, iteratee, accumulator, initAccum) {
diff --git a/tools/eslint/node_modules/lodash/_arrayReduceRight.js b/tools/eslint/node_modules/lodash/_arrayReduceRight.js
index b33a2d086cf365..038e0fa7890e5d 100644
--- a/tools/eslint/node_modules/lodash/_arrayReduceRight.js
+++ b/tools/eslint/node_modules/lodash/_arrayReduceRight.js
@@ -6,7 +6,8 @@
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the last element of `array` as the initial value.
+ * @param {boolean} [initAccum] Specify using the last element of `array` as
+ * the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
diff --git a/tools/eslint/node_modules/lodash/_arraySome.js b/tools/eslint/node_modules/lodash/_arraySome.js
index b93d53129867f3..e6e657b8f9b9de 100644
--- a/tools/eslint/node_modules/lodash/_arraySome.js
+++ b/tools/eslint/node_modules/lodash/_arraySome.js
@@ -5,7 +5,8 @@
* @private
* @param {Array} array The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
function arraySome(array, predicate) {
var index = -1,
diff --git a/tools/eslint/node_modules/lodash/_assignMergeValue.js b/tools/eslint/node_modules/lodash/_assignMergeValue.js
index 1c493b0651af22..61dd5832905f16 100644
--- a/tools/eslint/node_modules/lodash/_assignMergeValue.js
+++ b/tools/eslint/node_modules/lodash/_assignMergeValue.js
@@ -1,7 +1,8 @@
var eq = require('./eq');
/**
- * This function is like `assignValue` except that it doesn't assign `undefined` values.
+ * This function is like `assignValue` except that it doesn't assign
+ * `undefined` values.
*
* @private
* @param {Object} object The object to modify.
diff --git a/tools/eslint/node_modules/lodash/_assignValue.js b/tools/eslint/node_modules/lodash/_assignValue.js
index 7563b604e957d5..35d49f04e88c40 100644
--- a/tools/eslint/node_modules/lodash/_assignValue.js
+++ b/tools/eslint/node_modules/lodash/_assignValue.js
@@ -18,8 +18,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
*/
function assignValue(object, key, value) {
var objValue = object[key];
- if ((!eq(objValue, value) ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) ||
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
object[key] = value;
}
diff --git a/tools/eslint/node_modules/lodash/_assocDelete.js b/tools/eslint/node_modules/lodash/_assocDelete.js
index 709a04a9c69cb3..49f61e830f10be 100644
--- a/tools/eslint/node_modules/lodash/_assocDelete.js
+++ b/tools/eslint/node_modules/lodash/_assocDelete.js
@@ -10,7 +10,7 @@ var splice = arrayProto.splice;
* Removes `key` and its value from the associative array.
*
* @private
- * @param {Array} array The array to query.
+ * @param {Array} array The array to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
diff --git a/tools/eslint/node_modules/lodash/_assocIndexOf.js b/tools/eslint/node_modules/lodash/_assocIndexOf.js
index 958c8d8f58f830..8f2c41fbcda558 100644
--- a/tools/eslint/node_modules/lodash/_assocIndexOf.js
+++ b/tools/eslint/node_modules/lodash/_assocIndexOf.js
@@ -1,8 +1,7 @@
var eq = require('./eq');
/**
- * Gets the index at which the first occurrence of `key` is found in `array`
- * of key-value pairs.
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to search.
diff --git a/tools/eslint/node_modules/lodash/_baseCastArrayLikeObject.js b/tools/eslint/node_modules/lodash/_baseCastArrayLikeObject.js
new file mode 100644
index 00000000000000..b9156ef1cfc2e9
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseCastArrayLikeObject.js
@@ -0,0 +1,14 @@
+var isArrayLikeObject = require('./isArrayLikeObject');
+
+/**
+ * Casts `value` to an empty array if it's not an array like object.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Array|Object} Returns the cast array-like object.
+ */
+function baseCastArrayLikeObject(value) {
+ return isArrayLikeObject(value) ? value : [];
+}
+
+module.exports = baseCastArrayLikeObject;
diff --git a/tools/eslint/node_modules/lodash/_baseCastFunction.js b/tools/eslint/node_modules/lodash/_baseCastFunction.js
new file mode 100644
index 00000000000000..ca118b6baa5afd
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseCastFunction.js
@@ -0,0 +1,14 @@
+var identity = require('./identity');
+
+/**
+ * Casts `value` to `identity` if it's not a function.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Function} Returns cast function.
+ */
+function baseCastFunction(value) {
+ return typeof value == 'function' ? value : identity;
+}
+
+module.exports = baseCastFunction;
diff --git a/tools/eslint/node_modules/lodash/_baseCastKey.js b/tools/eslint/node_modules/lodash/_baseCastKey.js
new file mode 100644
index 00000000000000..0259e6239d3172
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseCastKey.js
@@ -0,0 +1,14 @@
+var isSymbol = require('./isSymbol');
+
+/**
+ * Casts `value` to a string if it's not a string or symbol.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {string|symbol} Returns the cast key.
+ */
+function baseCastKey(key) {
+ return (typeof key == 'string' || isSymbol(key)) ? key : (key + '');
+}
+
+module.exports = baseCastKey;
diff --git a/tools/eslint/node_modules/lodash/_baseCastPath.js b/tools/eslint/node_modules/lodash/_baseCastPath.js
new file mode 100644
index 00000000000000..7634e5ba2b1d4d
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseCastPath.js
@@ -0,0 +1,15 @@
+var isArray = require('./isArray'),
+ stringToPath = require('./_stringToPath');
+
+/**
+ * Casts `value` to a path array if it's not one.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast property path array.
+ */
+function baseCastPath(value) {
+ return isArray(value) ? value : stringToPath(value);
+}
+
+module.exports = baseCastPath;
diff --git a/tools/eslint/node_modules/lodash/_baseClone.js b/tools/eslint/node_modules/lodash/_baseClone.js
index 42d90a95c62915..b1079edd8be28c 100644
--- a/tools/eslint/node_modules/lodash/_baseClone.js
+++ b/tools/eslint/node_modules/lodash/_baseClone.js
@@ -2,10 +2,10 @@ var Stack = require('./_Stack'),
arrayEach = require('./_arrayEach'),
assignValue = require('./_assignValue'),
baseAssign = require('./_baseAssign'),
- baseForOwn = require('./_baseForOwn'),
cloneBuffer = require('./_cloneBuffer'),
copyArray = require('./_copyArray'),
copySymbols = require('./_copySymbols'),
+ getAllKeys = require('./_getAllKeys'),
getTag = require('./_getTag'),
initCloneArray = require('./_initCloneArray'),
initCloneByTag = require('./_initCloneByTag'),
@@ -13,7 +13,8 @@ var Stack = require('./_Stack'),
isArray = require('./isArray'),
isBuffer = require('./isBuffer'),
isHostObject = require('./_isHostObject'),
- isObject = require('./isObject');
+ isObject = require('./isObject'),
+ keys = require('./keys');
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
@@ -33,6 +34,7 @@ var argsTag = '[object Arguments]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
@@ -46,16 +48,16 @@ var arrayBufferTag = '[object ArrayBuffer]',
/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
-cloneableTags[arrayBufferTag] = cloneableTags[boolTag] =
-cloneableTags[dateTag] = cloneableTags[float32Tag] =
-cloneableTags[float64Tag] = cloneableTags[int8Tag] =
-cloneableTags[int16Tag] = cloneableTags[int32Tag] =
-cloneableTags[mapTag] = cloneableTags[numberTag] =
-cloneableTags[objectTag] = cloneableTags[regexpTag] =
-cloneableTags[setTag] = cloneableTags[stringTag] =
-cloneableTags[symbolTag] = cloneableTags[uint8Tag] =
-cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] =
-cloneableTags[uint32Tag] = true;
+cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
+cloneableTags[boolTag] = cloneableTags[dateTag] =
+cloneableTags[float32Tag] = cloneableTags[float64Tag] =
+cloneableTags[int8Tag] = cloneableTags[int16Tag] =
+cloneableTags[int32Tag] = cloneableTags[mapTag] =
+cloneableTags[numberTag] = cloneableTags[objectTag] =
+cloneableTags[regexpTag] = cloneableTags[setTag] =
+cloneableTags[stringTag] = cloneableTags[symbolTag] =
+cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
+cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;
@@ -66,13 +68,14 @@ cloneableTags[weakMapTag] = false;
* @private
* @param {*} value The value to clone.
* @param {boolean} [isDeep] Specify a deep clone.
+ * @param {boolean} [isFull] Specify a clone including symbols.
* @param {Function} [customizer] The function to customize cloning.
* @param {string} [key] The key of `value`.
* @param {Object} [object] The parent object of `value`.
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
* @returns {*} Returns the cloned value.
*/
-function baseClone(value, isDeep, customizer, key, object, stack) {
+function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
var result;
if (customizer) {
result = object ? customizer(value, key, object, stack) : customizer(value);
@@ -105,9 +108,10 @@ function baseClone(value, isDeep, customizer, key, object, stack) {
return copySymbols(value, baseAssign(result, value));
}
} else {
- return cloneableTags[tag]
- ? initCloneByTag(value, tag, isDeep)
- : (object ? value : {});
+ if (!cloneableTags[tag]) {
+ return object ? value : {};
+ }
+ result = initCloneByTag(value, tag, baseClone, isDeep);
}
}
// Check for circular references and return its corresponding clone.
@@ -118,11 +122,18 @@ function baseClone(value, isDeep, customizer, key, object, stack) {
}
stack.set(value, result);
+ if (!isArr) {
+ var props = isFull ? getAllKeys(value) : keys(value);
+ }
// Recursively populate clone (susceptible to call stack limits).
- (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
- assignValue(result, key, baseClone(subValue, isDeep, customizer, key, value, stack));
+ arrayEach(props || value, function(subValue, key) {
+ if (props) {
+ key = subValue;
+ subValue = value[key];
+ }
+ assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
});
- return isArr ? result : copySymbols(value, result);
+ return result;
}
module.exports = baseClone;
diff --git a/tools/eslint/node_modules/lodash/_baseConforms.js b/tools/eslint/node_modules/lodash/_baseConforms.js
index 888434d620e203..973aa6d4397af9 100644
--- a/tools/eslint/node_modules/lodash/_baseConforms.js
+++ b/tools/eslint/node_modules/lodash/_baseConforms.js
@@ -21,7 +21,8 @@ function baseConforms(source) {
predicate = source[key],
value = object[key];
- if ((value === undefined && !(key in Object(object))) || !predicate(value)) {
+ if ((value === undefined &&
+ !(key in Object(object))) || !predicate(value)) {
return false;
}
}
diff --git a/tools/eslint/node_modules/lodash/_baseCreate.js b/tools/eslint/node_modules/lodash/_baseCreate.js
index 64d53eccca290c..4372cad2b2aaef 100644
--- a/tools/eslint/node_modules/lodash/_baseCreate.js
+++ b/tools/eslint/node_modules/lodash/_baseCreate.js
@@ -1,5 +1,8 @@
var isObject = require('./isObject');
+/** Built-in value references. */
+var objectCreate = Object.create;
+
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
@@ -8,16 +11,8 @@ var isObject = require('./isObject');
* @param {Object} prototype The object to inherit from.
* @returns {Object} Returns the new object.
*/
-var baseCreate = (function() {
- function object() {}
- return function(prototype) {
- if (isObject(prototype)) {
- object.prototype = prototype;
- var result = new object;
- object.prototype = undefined;
- }
- return result || {};
- };
-}());
+function baseCreate(proto) {
+ return isObject(proto) ? objectCreate(proto) : {};
+}
module.exports = baseCreate;
diff --git a/tools/eslint/node_modules/lodash/_baseDifference.js b/tools/eslint/node_modules/lodash/_baseDifference.js
index b266d7e3bea457..a49bdffa5a620f 100644
--- a/tools/eslint/node_modules/lodash/_baseDifference.js
+++ b/tools/eslint/node_modules/lodash/_baseDifference.js
@@ -9,8 +9,8 @@ var SetCache = require('./_SetCache'),
var LARGE_ARRAY_SIZE = 200;
/**
- * The base implementation of methods like `_.difference` without support for
- * excluding multiple arrays or iteratee shorthands.
+ * The base implementation of methods like `_.difference` without support
+ * for excluding multiple arrays or iteratee shorthands.
*
* @private
* @param {Array} array The array to inspect.
diff --git a/tools/eslint/node_modules/lodash/_baseEvery.js b/tools/eslint/node_modules/lodash/_baseEvery.js
index aafa00dade230a..fa52f7bc7d6b77 100644
--- a/tools/eslint/node_modules/lodash/_baseEvery.js
+++ b/tools/eslint/node_modules/lodash/_baseEvery.js
@@ -6,7 +6,8 @@ var baseEach = require('./_baseEach');
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`
*/
function baseEvery(collection, predicate) {
var result = true;
diff --git a/tools/eslint/node_modules/lodash/_baseFind.js b/tools/eslint/node_modules/lodash/_baseFind.js
index 535f7f35379b23..338f932c443b07 100644
--- a/tools/eslint/node_modules/lodash/_baseFind.js
+++ b/tools/eslint/node_modules/lodash/_baseFind.js
@@ -7,7 +7,8 @@
* @param {Array|Object} collection The collection to search.
* @param {Function} predicate The function invoked per iteration.
* @param {Function} eachFunc The function to iterate over `collection`.
- * @param {boolean} [retKey] Specify returning the key of the found element instead of the element itself.
+ * @param {boolean} [retKey] Specify returning the key of the found element
+ * instead of the element itself.
* @returns {*} Returns the found element or its key, else `undefined`.
*/
function baseFind(collection, predicate, eachFunc, retKey) {
diff --git a/tools/eslint/node_modules/lodash/_baseFlatten.js b/tools/eslint/node_modules/lodash/_baseFlatten.js
index 8a4cb460d71195..4b1e009b150cbf 100644
--- a/tools/eslint/node_modules/lodash/_baseFlatten.js
+++ b/tools/eslint/node_modules/lodash/_baseFlatten.js
@@ -1,31 +1,30 @@
var arrayPush = require('./_arrayPush'),
- isArguments = require('./isArguments'),
- isArray = require('./isArray'),
- isArrayLikeObject = require('./isArrayLikeObject');
+ isFlattenable = require('./_isFlattenable');
/**
* The base implementation of `_.flatten` with support for restricting flattening.
*
* @private
* @param {Array} array The array to flatten.
- * @param {boolean} [isDeep] Specify a deep flatten.
- * @param {boolean} [isStrict] Restrict flattening to arrays-like objects.
+ * @param {number} depth The maximum recursion depth.
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
* @param {Array} [result=[]] The initial result value.
* @returns {Array} Returns the new flattened array.
*/
-function baseFlatten(array, isDeep, isStrict, result) {
- result || (result = []);
-
+function baseFlatten(array, depth, predicate, isStrict, result) {
var index = -1,
length = array.length;
+ predicate || (predicate = isFlattenable);
+ result || (result = []);
+
while (++index < length) {
var value = array[index];
- if (isArrayLikeObject(value) &&
- (isStrict || isArray(value) || isArguments(value))) {
- if (isDeep) {
+ if (depth > 0 && predicate(value)) {
+ if (depth > 1) {
// Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, isDeep, isStrict, result);
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
} else {
arrayPush(result, value);
}
diff --git a/tools/eslint/node_modules/lodash/_baseFor.js b/tools/eslint/node_modules/lodash/_baseFor.js
index 97b70c9e0db71c..a90460386d86ad 100644
--- a/tools/eslint/node_modules/lodash/_baseFor.js
+++ b/tools/eslint/node_modules/lodash/_baseFor.js
@@ -1,10 +1,9 @@
var createBaseFor = require('./_createBaseFor');
/**
- * The base implementation of `baseForIn` and `baseForOwn` which iterates
- * over `object` properties returned by `keysFunc` invoking `iteratee` for
- * each property. Iteratee functions may exit iteration early by explicitly
- * returning `false`.
+ * The base implementation of `baseForOwn` which iterates over `object`
+ * properties returned by `keysFunc` invoking `iteratee` for each property.
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
diff --git a/tools/eslint/node_modules/lodash/_baseForIn.js b/tools/eslint/node_modules/lodash/_baseForIn.js
deleted file mode 100644
index 4dcfdaf1e36974..00000000000000
--- a/tools/eslint/node_modules/lodash/_baseForIn.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var baseFor = require('./_baseFor'),
- keysIn = require('./keysIn');
-
-/**
- * The base implementation of `_.forIn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
-function baseForIn(object, iteratee) {
- return object == null ? object : baseFor(object, iteratee, keysIn);
-}
-
-module.exports = baseForIn;
diff --git a/tools/eslint/node_modules/lodash/_baseGet.js b/tools/eslint/node_modules/lodash/_baseGet.js
index d11de17bf3aa6c..0956af551a3117 100644
--- a/tools/eslint/node_modules/lodash/_baseGet.js
+++ b/tools/eslint/node_modules/lodash/_baseGet.js
@@ -1,4 +1,4 @@
-var baseToPath = require('./_baseToPath'),
+var baseCastPath = require('./_baseCastPath'),
isKey = require('./_isKey');
/**
@@ -10,7 +10,7 @@ var baseToPath = require('./_baseToPath'),
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
- path = isKey(path, object) ? [path + ''] : baseToPath(path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
var index = 0,
length = path.length;
diff --git a/tools/eslint/node_modules/lodash/_baseGetAllKeys.js b/tools/eslint/node_modules/lodash/_baseGetAllKeys.js
new file mode 100644
index 00000000000000..7f8b38bd4c1f94
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseGetAllKeys.js
@@ -0,0 +1,22 @@
+var arrayPush = require('./_arrayPush'),
+ isArray = require('./isArray');
+
+/**
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Function} keysFunc The function to get the keys of `object`.
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+function baseGetAllKeys(object, keysFunc, symbolsFunc) {
+ var result = keysFunc(object);
+ return isArray(object)
+ ? result
+ : arrayPush(result, symbolsFunc(object));
+}
+
+module.exports = baseGetAllKeys;
diff --git a/tools/eslint/node_modules/lodash/_baseHas.js b/tools/eslint/node_modules/lodash/_baseHas.js
index b3932069d8b341..1de5d841c2938d 100644
--- a/tools/eslint/node_modules/lodash/_baseHas.js
+++ b/tools/eslint/node_modules/lodash/_baseHas.js
@@ -1,12 +1,11 @@
+var getPrototype = require('./_getPrototype');
+
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
-/** Built-in value references. */
-var getPrototypeOf = Object.getPrototypeOf;
-
/**
* The base implementation of `_.has` without support for deep paths.
*
@@ -20,7 +19,7 @@ function baseHas(object, key) {
// that are composed entirely of index properties, return `false` for
// `hasOwnProperty` checks of them.
return hasOwnProperty.call(object, key) ||
- (typeof object == 'object' && key in object && getPrototypeOf(object) === null);
+ (typeof object == 'object' && key in object && getPrototype(object) === null);
}
module.exports = baseHas;
diff --git a/tools/eslint/node_modules/lodash/_baseIndexOfWith.js b/tools/eslint/node_modules/lodash/_baseIndexOfWith.js
new file mode 100644
index 00000000000000..8be568af269323
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseIndexOfWith.js
@@ -0,0 +1,23 @@
+/**
+ * This function is like `baseIndexOf` except that it accepts a comparator.
+ *
+ * @private
+ * @param {Array} array The array to search.
+ * @param {*} value The value to search for.
+ * @param {number} fromIndex The index to search from.
+ * @param {Function} comparator The comparator invoked per element.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+function baseIndexOfWith(array, value, fromIndex, comparator) {
+ var index = fromIndex - 1,
+ length = array.length;
+
+ while (++index < length) {
+ if (comparator(array[index], value)) {
+ return index;
+ }
+ }
+ return -1;
+}
+
+module.exports = baseIndexOfWith;
diff --git a/tools/eslint/node_modules/lodash/_baseIntersection.js b/tools/eslint/node_modules/lodash/_baseIntersection.js
index 77e463f85ef8aa..7d129267ed355d 100644
--- a/tools/eslint/node_modules/lodash/_baseIntersection.js
+++ b/tools/eslint/node_modules/lodash/_baseIntersection.js
@@ -5,6 +5,9 @@ var SetCache = require('./_SetCache'),
baseUnary = require('./_baseUnary'),
cacheHas = require('./_cacheHas');
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeMin = Math.min;
+
/**
* The base implementation of methods like `_.intersection`, without support
* for iteratee shorthands, that accepts an array of arrays to inspect.
@@ -17,9 +20,11 @@ var SetCache = require('./_SetCache'),
*/
function baseIntersection(arrays, iteratee, comparator) {
var includes = comparator ? arrayIncludesWith : arrayIncludes,
+ length = arrays[0].length,
othLength = arrays.length,
othIndex = othLength,
caches = Array(othLength),
+ maxLength = Infinity,
result = [];
while (othIndex--) {
@@ -27,26 +32,32 @@ function baseIntersection(arrays, iteratee, comparator) {
if (othIndex && iteratee) {
array = arrayMap(array, baseUnary(iteratee));
}
- caches[othIndex] = !comparator && (iteratee || array.length >= 120)
+ maxLength = nativeMin(array.length, maxLength);
+ caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
? new SetCache(othIndex && array)
: undefined;
}
array = arrays[0];
var index = -1,
- length = array.length,
seen = caches[0];
outer:
- while (++index < length) {
+ while (++index < length && result.length < maxLength) {
var value = array[index],
computed = iteratee ? iteratee(value) : value;
- if (!(seen ? cacheHas(seen, computed) : includes(result, computed, comparator))) {
- var othIndex = othLength;
+ if (!(seen
+ ? cacheHas(seen, computed)
+ : includes(result, computed, comparator)
+ )) {
+ othIndex = othLength;
while (--othIndex) {
var cache = caches[othIndex];
- if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator))) {
+ if (!(cache
+ ? cacheHas(cache, computed)
+ : includes(arrays[othIndex], computed, comparator))
+ ) {
continue outer;
}
}
diff --git a/tools/eslint/node_modules/lodash/_baseInvoke.js b/tools/eslint/node_modules/lodash/_baseInvoke.js
index a19a5f8f8ac378..7a94a3f3a9fb48 100644
--- a/tools/eslint/node_modules/lodash/_baseInvoke.js
+++ b/tools/eslint/node_modules/lodash/_baseInvoke.js
@@ -1,5 +1,5 @@
var apply = require('./_apply'),
- baseToPath = require('./_baseToPath'),
+ baseCastPath = require('./_baseCastPath'),
isKey = require('./_isKey'),
last = require('./last'),
parent = require('./_parent');
@@ -16,7 +16,7 @@ var apply = require('./_apply'),
*/
function baseInvoke(object, path, args) {
if (!isKey(path, object)) {
- path = baseToPath(path);
+ path = baseCastPath(path);
object = parent(object, path);
path = last(path);
}
diff --git a/tools/eslint/node_modules/lodash/_baseIsEqualDeep.js b/tools/eslint/node_modules/lodash/_baseIsEqualDeep.js
index 54eca35069a223..c18d6d1fcdbb5b 100644
--- a/tools/eslint/node_modules/lodash/_baseIsEqualDeep.js
+++ b/tools/eslint/node_modules/lodash/_baseIsEqualDeep.js
@@ -31,7 +31,8 @@ var hasOwnProperty = objectProto.hasOwnProperty;
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
+ * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
@@ -43,41 +44,39 @@ function baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {
if (!objIsArr) {
objTag = getTag(object);
- if (objTag == argsTag) {
- objTag = objectTag;
- } else if (objTag != objectTag) {
- objIsArr = isTypedArray(object);
- }
+ objTag = objTag == argsTag ? objectTag : objTag;
}
if (!othIsArr) {
othTag = getTag(other);
- if (othTag == argsTag) {
- othTag = objectTag;
- } else if (othTag != objectTag) {
- othIsArr = isTypedArray(other);
- }
+ othTag = othTag == argsTag ? objectTag : othTag;
}
var objIsObj = objTag == objectTag && !isHostObject(object),
othIsObj = othTag == objectTag && !isHostObject(other),
isSameTag = objTag == othTag;
- if (isSameTag && !(objIsArr || objIsObj)) {
- return equalByTag(object, other, objTag, equalFunc, customizer, bitmask);
+ if (isSameTag && !objIsObj) {
+ stack || (stack = new Stack);
+ return (objIsArr || isTypedArray(object))
+ ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
+ : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
}
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
- if (!isPartial) {
+ if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
if (objIsWrapped || othIsWrapped) {
- return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, bitmask, stack);
+ var objUnwrapped = objIsWrapped ? object.value() : object,
+ othUnwrapped = othIsWrapped ? other.value() : other;
+
+ stack || (stack = new Stack);
+ return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
}
}
if (!isSameTag) {
return false;
}
stack || (stack = new Stack);
- return (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, bitmask, stack);
+ return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
}
module.exports = baseIsEqualDeep;
diff --git a/tools/eslint/node_modules/lodash/_baseIsMatch.js b/tools/eslint/node_modules/lodash/_baseIsMatch.js
index c1dcafc89c1d2a..d36c8785191183 100644
--- a/tools/eslint/node_modules/lodash/_baseIsMatch.js
+++ b/tools/eslint/node_modules/lodash/_baseIsMatch.js
@@ -44,9 +44,10 @@ function baseIsMatch(object, source, matchData, customizer) {
return false;
}
} else {
- var stack = new Stack,
- result = customizer ? customizer(objValue, srcValue, key, object, source, stack) : undefined;
-
+ var stack = new Stack;
+ if (customizer) {
+ var result = customizer(objValue, srcValue, key, object, source, stack);
+ }
if (!(result === undefined
? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)
: result
diff --git a/tools/eslint/node_modules/lodash/_baseIteratee.js b/tools/eslint/node_modules/lodash/_baseIteratee.js
index 19531af3b9ae8c..995c2575672c85 100644
--- a/tools/eslint/node_modules/lodash/_baseIteratee.js
+++ b/tools/eslint/node_modules/lodash/_baseIteratee.js
@@ -12,14 +12,15 @@ var baseMatches = require('./_baseMatches'),
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(value) {
- var type = typeof value;
- if (type == 'function') {
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
+ if (typeof value == 'function') {
return value;
}
if (value == null) {
return identity;
}
- if (type == 'object') {
+ if (typeof value == 'object') {
return isArray(value)
? baseMatchesProperty(value[0], value[1])
: baseMatches(value);
diff --git a/tools/eslint/node_modules/lodash/_baseKeys.js b/tools/eslint/node_modules/lodash/_baseKeys.js
index 4b747d50fa2b74..2c8ccb912ce9ed 100644
--- a/tools/eslint/node_modules/lodash/_baseKeys.js
+++ b/tools/eslint/node_modules/lodash/_baseKeys.js
@@ -6,7 +6,6 @@ var nativeKeys = Object.keys;
* property of prototypes or treat sparse arrays as dense.
*
* @private
- * @type Function
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
diff --git a/tools/eslint/node_modules/lodash/_baseLodash.js b/tools/eslint/node_modules/lodash/_baseLodash.js
index 15b79d3f7b9a70..f76c790e2e1196 100644
--- a/tools/eslint/node_modules/lodash/_baseLodash.js
+++ b/tools/eslint/node_modules/lodash/_baseLodash.js
@@ -1,5 +1,5 @@
/**
- * The function whose prototype all chaining wrappers inherit from.
+ * The function whose prototype chain sequence wrappers inherit from.
*
* @private
*/
diff --git a/tools/eslint/node_modules/lodash/_baseMatches.js b/tools/eslint/node_modules/lodash/_baseMatches.js
index 56c72e6ca2467d..ba9012f946c21c 100644
--- a/tools/eslint/node_modules/lodash/_baseMatches.js
+++ b/tools/eslint/node_modules/lodash/_baseMatches.js
@@ -1,5 +1,6 @@
var baseIsMatch = require('./_baseIsMatch'),
- getMatchData = require('./_getMatchData');
+ getMatchData = require('./_getMatchData'),
+ matchesStrictComparable = require('./_matchesStrictComparable');
/**
* The base implementation of `_.matches` which doesn't clone `source`.
@@ -11,16 +12,7 @@ var baseIsMatch = require('./_baseIsMatch'),
function baseMatches(source) {
var matchData = getMatchData(source);
if (matchData.length == 1 && matchData[0][2]) {
- var key = matchData[0][0],
- value = matchData[0][1];
-
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === value &&
- (value !== undefined || (key in Object(object)));
- };
+ return matchesStrictComparable(matchData[0][0], matchData[0][1]);
}
return function(object) {
return object === source || baseIsMatch(object, source, matchData);
diff --git a/tools/eslint/node_modules/lodash/_baseMatchesProperty.js b/tools/eslint/node_modules/lodash/_baseMatchesProperty.js
index 256ad65f3f1f7b..88afd67e141708 100644
--- a/tools/eslint/node_modules/lodash/_baseMatchesProperty.js
+++ b/tools/eslint/node_modules/lodash/_baseMatchesProperty.js
@@ -1,6 +1,9 @@
var baseIsEqual = require('./_baseIsEqual'),
get = require('./get'),
- hasIn = require('./hasIn');
+ hasIn = require('./hasIn'),
+ isKey = require('./_isKey'),
+ isStrictComparable = require('./_isStrictComparable'),
+ matchesStrictComparable = require('./_matchesStrictComparable');
/** Used to compose bitmasks for comparison styles. */
var UNORDERED_COMPARE_FLAG = 1,
@@ -15,6 +18,9 @@ var UNORDERED_COMPARE_FLAG = 1,
* @returns {Function} Returns the new function.
*/
function baseMatchesProperty(path, srcValue) {
+ if (isKey(path) && isStrictComparable(srcValue)) {
+ return matchesStrictComparable(path, srcValue);
+ }
return function(object) {
var objValue = get(object, path);
return (objValue === undefined && objValue === srcValue)
diff --git a/tools/eslint/node_modules/lodash/_baseMean.js b/tools/eslint/node_modules/lodash/_baseMean.js
new file mode 100644
index 00000000000000..ac99a42317d70f
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseMean.js
@@ -0,0 +1,20 @@
+var baseSum = require('./_baseSum');
+
+/** Used as references for various `Number` constants. */
+var NAN = 0 / 0;
+
+/**
+ * The base implementation of `_.mean` and `_.meanBy` without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {number} Returns the mean.
+ */
+function baseMean(array, iteratee) {
+ var length = array ? array.length : 0;
+ return length ? (baseSum(array, iteratee) / length) : NAN;
+}
+
+module.exports = baseMean;
diff --git a/tools/eslint/node_modules/lodash/_baseMerge.js b/tools/eslint/node_modules/lodash/_baseMerge.js
index 97784648496820..e18d3bf750a3ac 100644
--- a/tools/eslint/node_modules/lodash/_baseMerge.js
+++ b/tools/eslint/node_modules/lodash/_baseMerge.js
@@ -15,13 +15,16 @@ var Stack = require('./_Stack'),
* @param {Object} source The source object.
* @param {number} srcIndex The index of `source`.
* @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged counterparts.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ * counterparts.
*/
function baseMerge(object, source, srcIndex, customizer, stack) {
if (object === source) {
return;
}
- var props = (isArray(source) || isTypedArray(source)) ? undefined : keysIn(source);
+ if (!(isArray(source) || isTypedArray(source))) {
+ var props = keysIn(source);
+ }
arrayEach(props || source, function(srcValue, key) {
if (props) {
key = srcValue;
@@ -32,7 +35,10 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
}
else {
- var newValue = customizer ? customizer(object[key], srcValue, (key + ''), object, source, stack) : undefined;
+ var newValue = customizer
+ ? customizer(object[key], srcValue, (key + ''), object, source, stack)
+ : undefined;
+
if (newValue === undefined) {
newValue = srcValue;
}
diff --git a/tools/eslint/node_modules/lodash/_baseMergeDeep.js b/tools/eslint/node_modules/lodash/_baseMergeDeep.js
index d5caf3fffe720b..062f004c23ac93 100644
--- a/tools/eslint/node_modules/lodash/_baseMergeDeep.js
+++ b/tools/eslint/node_modules/lodash/_baseMergeDeep.js
@@ -22,7 +22,8 @@ var assignMergeValue = require('./_assignMergeValue'),
* @param {number} srcIndex The index of `source`.
* @param {Function} mergeFunc The function to merge values.
* @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged counterparts.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ * counterparts.
*/
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
var objValue = object[key],
@@ -33,21 +34,24 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
assignMergeValue(object, key, stacked);
return;
}
- var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined,
- isCommon = newValue === undefined;
+ var newValue = customizer
+ ? customizer(objValue, srcValue, (key + ''), object, source, stack)
+ : undefined;
+
+ var isCommon = newValue === undefined;
if (isCommon) {
newValue = srcValue;
if (isArray(srcValue) || isTypedArray(srcValue)) {
if (isArray(objValue)) {
- newValue = srcIndex ? copyArray(objValue) : objValue;
+ newValue = objValue;
}
else if (isArrayLikeObject(objValue)) {
newValue = copyArray(objValue);
}
else {
isCommon = false;
- newValue = baseClone(srcValue);
+ newValue = baseClone(srcValue, true);
}
}
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
@@ -56,10 +60,10 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
}
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
isCommon = false;
- newValue = baseClone(srcValue);
+ newValue = baseClone(srcValue, true);
}
else {
- newValue = srcIndex ? baseClone(objValue) : objValue;
+ newValue = objValue;
}
}
else {
@@ -72,6 +76,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
// Recursively merge objects and arrays (susceptible to call stack limits).
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
}
+ stack['delete'](srcValue);
assignMergeValue(object, key, newValue);
}
diff --git a/tools/eslint/node_modules/lodash/_baseOrderBy.js b/tools/eslint/node_modules/lodash/_baseOrderBy.js
index 46186806407a75..319f77a986f196 100644
--- a/tools/eslint/node_modules/lodash/_baseOrderBy.js
+++ b/tools/eslint/node_modules/lodash/_baseOrderBy.js
@@ -2,7 +2,8 @@ var arrayMap = require('./_arrayMap'),
baseIteratee = require('./_baseIteratee'),
baseMap = require('./_baseMap'),
baseSortBy = require('./_baseSortBy'),
- compareMultiple = require('./_compareMultiple');
+ compareMultiple = require('./_compareMultiple'),
+ identity = require('./identity');
/**
* The base implementation of `_.orderBy` without param guards.
@@ -14,12 +15,8 @@ var arrayMap = require('./_arrayMap'),
* @returns {Array} Returns the new sorted array.
*/
function baseOrderBy(collection, iteratees, orders) {
- var index = -1,
- toIteratee = baseIteratee;
-
- iteratees = arrayMap(iteratees.length ? iteratees : Array(1), function(iteratee) {
- return toIteratee(iteratee);
- });
+ var index = -1;
+ iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseIteratee);
var result = baseMap(collection, function(value, key, collection) {
var criteria = arrayMap(iteratees, function(iteratee) {
diff --git a/tools/eslint/node_modules/lodash/_basePick.js b/tools/eslint/node_modules/lodash/_basePick.js
index e2ce7229f83731..7272548307c101 100644
--- a/tools/eslint/node_modules/lodash/_basePick.js
+++ b/tools/eslint/node_modules/lodash/_basePick.js
@@ -2,11 +2,11 @@ var arrayReduce = require('./_arrayReduce');
/**
* The base implementation of `_.pick` without support for individual
- * property names.
+ * property identifiers.
*
* @private
* @param {Object} object The source object.
- * @param {string[]} props The property names to pick.
+ * @param {string[]} props The property identifiers to pick.
* @returns {Object} Returns the new object.
*/
function basePick(object, props) {
diff --git a/tools/eslint/node_modules/lodash/_basePickBy.js b/tools/eslint/node_modules/lodash/_basePickBy.js
index 37c4943ba19f45..56ffa5f5d7f60d 100644
--- a/tools/eslint/node_modules/lodash/_basePickBy.js
+++ b/tools/eslint/node_modules/lodash/_basePickBy.js
@@ -1,4 +1,4 @@
-var baseForIn = require('./_baseForIn');
+var getAllKeysIn = require('./_getAllKeysIn');
/**
* The base implementation of `_.pickBy` without support for iteratee shorthands.
@@ -9,12 +9,19 @@ var baseForIn = require('./_baseForIn');
* @returns {Object} Returns the new object.
*/
function basePickBy(object, predicate) {
- var result = {};
- baseForIn(object, function(value, key) {
+ var index = -1,
+ props = getAllKeysIn(object),
+ length = props.length,
+ result = {};
+
+ while (++index < length) {
+ var key = props[index],
+ value = object[key];
+
if (predicate(value, key)) {
result[key] = value;
}
- });
+ }
return result;
}
diff --git a/tools/eslint/node_modules/lodash/_basePullAll.js b/tools/eslint/node_modules/lodash/_basePullAll.js
index d54d2b130d1e5f..3c07c994cfd426 100644
--- a/tools/eslint/node_modules/lodash/_basePullAll.js
+++ b/tools/eslint/node_modules/lodash/_basePullAll.js
@@ -1,15 +1,47 @@
-var basePullAllBy = require('./_basePullAllBy');
+var arrayMap = require('./_arrayMap'),
+ baseIndexOf = require('./_baseIndexOf'),
+ baseIndexOfWith = require('./_baseIndexOfWith'),
+ baseUnary = require('./_baseUnary');
+
+/** Used for built-in method references. */
+var arrayProto = Array.prototype;
+
+/** Built-in value references. */
+var splice = arrayProto.splice;
/**
- * The base implementation of `_.pullAll`.
+ * The base implementation of `_.pullAllBy` without support for iteratee
+ * shorthands.
*
* @private
* @param {Array} array The array to modify.
* @param {Array} values The values to remove.
+ * @param {Function} [iteratee] The iteratee invoked per element.
+ * @param {Function} [comparator] The comparator invoked per element.
* @returns {Array} Returns `array`.
*/
-function basePullAll(array, values) {
- return basePullAllBy(array, values);
+function basePullAll(array, values, iteratee, comparator) {
+ var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
+ index = -1,
+ length = values.length,
+ seen = array;
+
+ if (iteratee) {
+ seen = arrayMap(array, baseUnary(iteratee));
+ }
+ while (++index < length) {
+ var fromIndex = 0,
+ value = values[index],
+ computed = iteratee ? iteratee(value) : value;
+
+ while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
+ if (seen !== array) {
+ splice.call(seen, fromIndex, 1);
+ }
+ splice.call(array, fromIndex, 1);
+ }
+ }
+ return array;
}
module.exports = basePullAll;
diff --git a/tools/eslint/node_modules/lodash/_basePullAllBy.js b/tools/eslint/node_modules/lodash/_basePullAllBy.js
deleted file mode 100644
index 00167fad646752..00000000000000
--- a/tools/eslint/node_modules/lodash/_basePullAllBy.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIndexOf = require('./_baseIndexOf');
-
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/** Built-in value references. */
-var splice = arrayProto.splice;
-
-/**
- * The base implementation of `_.pullAllBy` without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns `array`.
- */
-function basePullAllBy(array, values, iteratee) {
- var index = -1,
- length = values.length,
- seen = array;
-
- if (iteratee) {
- seen = arrayMap(array, function(value) { return iteratee(value); });
- }
- while (++index < length) {
- var fromIndex = 0,
- value = values[index],
- computed = iteratee ? iteratee(value) : value;
-
- while ((fromIndex = baseIndexOf(seen, computed, fromIndex)) > -1) {
- if (seen !== array) {
- splice.call(seen, fromIndex, 1);
- }
- splice.call(array, fromIndex, 1);
- }
- }
- return array;
-}
-
-module.exports = basePullAllBy;
diff --git a/tools/eslint/node_modules/lodash/_basePullAt.js b/tools/eslint/node_modules/lodash/_basePullAt.js
index 206b1965f57034..eb9ed21e8a2a07 100644
--- a/tools/eslint/node_modules/lodash/_basePullAt.js
+++ b/tools/eslint/node_modules/lodash/_basePullAt.js
@@ -1,4 +1,4 @@
-var baseToPath = require('./_baseToPath'),
+var baseCastPath = require('./_baseCastPath'),
isIndex = require('./_isIndex'),
isKey = require('./_isKey'),
last = require('./last'),
@@ -31,7 +31,7 @@ function basePullAt(array, indexes) {
splice.call(array, index, 1);
}
else if (!isKey(index, array)) {
- var path = baseToPath(index),
+ var path = baseCastPath(index),
object = parent(array, path);
if (object != null) {
diff --git a/tools/eslint/node_modules/lodash/_baseReduce.js b/tools/eslint/node_modules/lodash/_baseReduce.js
index 6ec544251dbb59..5a1f8b57f1f86a 100644
--- a/tools/eslint/node_modules/lodash/_baseReduce.js
+++ b/tools/eslint/node_modules/lodash/_baseReduce.js
@@ -6,7 +6,8 @@
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of `collection` as the initial value.
+ * @param {boolean} initAccum Specify using the first or last element of
+ * `collection` as the initial value.
* @param {Function} eachFunc The function to iterate over `collection`.
* @returns {*} Returns the accumulated value.
*/
diff --git a/tools/eslint/node_modules/lodash/_baseRepeat.js b/tools/eslint/node_modules/lodash/_baseRepeat.js
new file mode 100644
index 00000000000000..ee44c31ab0c4b1
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseRepeat.js
@@ -0,0 +1,35 @@
+/** Used as references for various `Number` constants. */
+var MAX_SAFE_INTEGER = 9007199254740991;
+
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeFloor = Math.floor;
+
+/**
+ * The base implementation of `_.repeat` which doesn't coerce arguments.
+ *
+ * @private
+ * @param {string} string The string to repeat.
+ * @param {number} n The number of times to repeat the string.
+ * @returns {string} Returns the repeated string.
+ */
+function baseRepeat(string, n) {
+ var result = '';
+ if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
+ return result;
+ }
+ // Leverage the exponentiation by squaring algorithm for a faster repeat.
+ // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
+ do {
+ if (n % 2) {
+ result += string;
+ }
+ n = nativeFloor(n / 2);
+ if (n) {
+ string += string;
+ }
+ } while (n);
+
+ return result;
+}
+
+module.exports = baseRepeat;
diff --git a/tools/eslint/node_modules/lodash/_baseSet.js b/tools/eslint/node_modules/lodash/_baseSet.js
index 07b18406de78e5..c903e41b5b67b9 100644
--- a/tools/eslint/node_modules/lodash/_baseSet.js
+++ b/tools/eslint/node_modules/lodash/_baseSet.js
@@ -1,5 +1,5 @@
var assignValue = require('./_assignValue'),
- baseToPath = require('./_baseToPath'),
+ baseCastPath = require('./_baseCastPath'),
isIndex = require('./_isIndex'),
isKey = require('./_isKey'),
isObject = require('./isObject');
@@ -15,7 +15,7 @@ var assignValue = require('./_assignValue'),
* @returns {Object} Returns `object`.
*/
function baseSet(object, path, value, customizer) {
- path = isKey(path, object) ? [path + ''] : baseToPath(path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
var index = -1,
length = path.length,
@@ -30,7 +30,9 @@ function baseSet(object, path, value, customizer) {
var objValue = nested[key];
newValue = customizer ? customizer(objValue, key, nested) : undefined;
if (newValue === undefined) {
- newValue = objValue == null ? (isIndex(path[index + 1]) ? [] : {}) : objValue;
+ newValue = objValue == null
+ ? (isIndex(path[index + 1]) ? [] : {})
+ : objValue;
}
}
assignValue(nested, key, newValue);
diff --git a/tools/eslint/node_modules/lodash/_baseSome.js b/tools/eslint/node_modules/lodash/_baseSome.js
index 8b6aa0a265eba6..58f3f447a34ecc 100644
--- a/tools/eslint/node_modules/lodash/_baseSome.js
+++ b/tools/eslint/node_modules/lodash/_baseSome.js
@@ -6,7 +6,8 @@ var baseEach = require('./_baseEach');
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
function baseSome(collection, predicate) {
var result;
diff --git a/tools/eslint/node_modules/lodash/_baseSortBy.js b/tools/eslint/node_modules/lodash/_baseSortBy.js
index fec0afeb78f10e..a25c92eda6ebd2 100644
--- a/tools/eslint/node_modules/lodash/_baseSortBy.js
+++ b/tools/eslint/node_modules/lodash/_baseSortBy.js
@@ -1,7 +1,7 @@
/**
- * The base implementation of `_.sortBy` which uses `comparer` to define
- * the sort order of `array` and replaces criteria objects with their
- * corresponding values.
+ * The base implementation of `_.sortBy` which uses `comparer` to define the
+ * sort order of `array` and replaces criteria objects with their corresponding
+ * values.
*
* @private
* @param {Array} array The array to sort.
diff --git a/tools/eslint/node_modules/lodash/_baseSortedIndexBy.js b/tools/eslint/node_modules/lodash/_baseSortedIndexBy.js
index 6e295f92fe7bbe..c0c7d66a2adacf 100644
--- a/tools/eslint/node_modules/lodash/_baseSortedIndexBy.js
+++ b/tools/eslint/node_modules/lodash/_baseSortedIndexBy.js
@@ -16,7 +16,8 @@ var nativeFloor = Math.floor,
* @param {*} value The value to evaluate.
* @param {Function} iteratee The iteratee invoked per element.
* @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
*/
function baseSortedIndexBy(array, value, iteratee, retHighest) {
value = iteratee(value);
diff --git a/tools/eslint/node_modules/lodash/_baseSortedUniqBy.js b/tools/eslint/node_modules/lodash/_baseSortedUniqBy.js
index c95a83f24342f0..81e7ae1bc339b4 100644
--- a/tools/eslint/node_modules/lodash/_baseSortedUniqBy.js
+++ b/tools/eslint/node_modules/lodash/_baseSortedUniqBy.js
@@ -15,7 +15,7 @@ function baseSortedUniqBy(array, iteratee) {
value = array[0],
computed = iteratee ? iteratee(value) : value,
seen = computed,
- resIndex = 0,
+ resIndex = 1,
result = [value];
while (++index < length) {
@@ -24,7 +24,7 @@ function baseSortedUniqBy(array, iteratee) {
if (!eq(computed, seen)) {
seen = computed;
- result[++resIndex] = value;
+ result[resIndex++] = value;
}
}
return result;
diff --git a/tools/eslint/node_modules/lodash/_baseSum.js b/tools/eslint/node_modules/lodash/_baseSum.js
index 348b5e8c0aabac..a9e84c13c9098c 100644
--- a/tools/eslint/node_modules/lodash/_baseSum.js
+++ b/tools/eslint/node_modules/lodash/_baseSum.js
@@ -1,5 +1,6 @@
/**
- * The base implementation of `_.sum` without support for iteratee shorthands.
+ * The base implementation of `_.sum` and `_.sumBy` without support for
+ * iteratee shorthands.
*
* @private
* @param {Array} array The array to iterate over.
diff --git a/tools/eslint/node_modules/lodash/_baseToPath.js b/tools/eslint/node_modules/lodash/_baseToPath.js
deleted file mode 100644
index eb45827cac4142..00000000000000
--- a/tools/eslint/node_modules/lodash/_baseToPath.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var isArray = require('./isArray'),
- stringToPath = require('./_stringToPath');
-
-/**
- * The base implementation of `_.toPath` which only converts `value` to a
- * path if it's not one.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {Array} Returns the property path array.
- */
-function baseToPath(value) {
- return isArray(value) ? value : stringToPath(value);
-}
-
-module.exports = baseToPath;
diff --git a/tools/eslint/node_modules/lodash/_baseUnset.js b/tools/eslint/node_modules/lodash/_baseUnset.js
index 2be1c1270814a0..9100d6fc8cd068 100644
--- a/tools/eslint/node_modules/lodash/_baseUnset.js
+++ b/tools/eslint/node_modules/lodash/_baseUnset.js
@@ -1,4 +1,4 @@
-var baseToPath = require('./_baseToPath'),
+var baseCastPath = require('./_baseCastPath'),
has = require('./has'),
isKey = require('./_isKey'),
last = require('./last'),
@@ -13,7 +13,7 @@ var baseToPath = require('./_baseToPath'),
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
*/
function baseUnset(object, path) {
- path = isKey(path, object) ? [path + ''] : baseToPath(path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
object = parent(object, path);
var key = last(path);
return (object != null && has(object, key)) ? delete object[key] : true;
diff --git a/tools/eslint/node_modules/lodash/_baseUpdate.js b/tools/eslint/node_modules/lodash/_baseUpdate.js
new file mode 100644
index 00000000000000..ec1b338366d8eb
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_baseUpdate.js
@@ -0,0 +1,18 @@
+var baseGet = require('./_baseGet'),
+ baseSet = require('./_baseSet');
+
+/**
+ * The base implementation of `_.update`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to update.
+ * @param {Function} updater The function to produce the updated value.
+ * @param {Function} [customizer] The function to customize path creation.
+ * @returns {Object} Returns `object`.
+ */
+function baseUpdate(object, path, updater, customizer) {
+ return baseSet(object, path, updater(baseGet(object, path)), customizer);
+}
+
+module.exports = baseUpdate;
diff --git a/tools/eslint/node_modules/lodash/_baseZipObject.js b/tools/eslint/node_modules/lodash/_baseZipObject.js
index c8a3e833ed5ac2..401f85be20b458 100644
--- a/tools/eslint/node_modules/lodash/_baseZipObject.js
+++ b/tools/eslint/node_modules/lodash/_baseZipObject.js
@@ -2,7 +2,7 @@
* This base implementation of `_.zipObject` which assigns values using `assignFunc`.
*
* @private
- * @param {Array} props The property names.
+ * @param {Array} props The property identifiers.
* @param {Array} values The property values.
* @param {Function} assignFunc The function to assign values.
* @returns {Object} Returns the new object.
@@ -14,7 +14,8 @@ function baseZipObject(props, values, assignFunc) {
result = {};
while (++index < length) {
- assignFunc(result, props[index], index < valsLength ? values[index] : undefined);
+ var value = index < valsLength ? values[index] : undefined;
+ assignFunc(result, props[index], value);
}
return result;
}
diff --git a/tools/eslint/node_modules/lodash/_cloneArrayBuffer.js b/tools/eslint/node_modules/lodash/_cloneArrayBuffer.js
index a7ed50cddbed20..c3d8f6e39a61ad 100644
--- a/tools/eslint/node_modules/lodash/_cloneArrayBuffer.js
+++ b/tools/eslint/node_modules/lodash/_cloneArrayBuffer.js
@@ -8,11 +8,8 @@ var Uint8Array = require('./_Uint8Array');
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
- var Ctor = arrayBuffer.constructor,
- result = new Ctor(arrayBuffer.byteLength),
- view = new Uint8Array(result);
-
- view.set(new Uint8Array(arrayBuffer));
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
return result;
}
diff --git a/tools/eslint/node_modules/lodash/_cloneBuffer.js b/tools/eslint/node_modules/lodash/_cloneBuffer.js
index 58a4e2bdd857ee..247d4106f7f3c1 100644
--- a/tools/eslint/node_modules/lodash/_cloneBuffer.js
+++ b/tools/eslint/node_modules/lodash/_cloneBuffer.js
@@ -10,9 +10,7 @@ function cloneBuffer(buffer, isDeep) {
if (isDeep) {
return buffer.slice();
}
- var Ctor = buffer.constructor,
- result = new Ctor(buffer.length);
-
+ var result = new buffer.constructor(buffer.length);
buffer.copy(result);
return result;
}
diff --git a/tools/eslint/node_modules/lodash/_cloneDataView.js b/tools/eslint/node_modules/lodash/_cloneDataView.js
new file mode 100644
index 00000000000000..9c9b7b054d5e2c
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_cloneDataView.js
@@ -0,0 +1,16 @@
+var cloneArrayBuffer = require('./_cloneArrayBuffer');
+
+/**
+ * Creates a clone of `dataView`.
+ *
+ * @private
+ * @param {Object} dataView The data view to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @returns {Object} Returns the cloned data view.
+ */
+function cloneDataView(dataView, isDeep) {
+ var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
+}
+
+module.exports = cloneDataView;
diff --git a/tools/eslint/node_modules/lodash/_cloneMap.js b/tools/eslint/node_modules/lodash/_cloneMap.js
index 1b5af07f8b3453..b51983d24c7bec 100644
--- a/tools/eslint/node_modules/lodash/_cloneMap.js
+++ b/tools/eslint/node_modules/lodash/_cloneMap.js
@@ -7,11 +7,13 @@ var addMapEntry = require('./_addMapEntry'),
*
* @private
* @param {Object} map The map to clone.
+ * @param {Function} cloneFunc The function to clone values.
+ * @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned map.
*/
-function cloneMap(map) {
- var Ctor = map.constructor;
- return arrayReduce(mapToArray(map), addMapEntry, new Ctor);
+function cloneMap(map, isDeep, cloneFunc) {
+ var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
+ return arrayReduce(array, addMapEntry, new map.constructor);
}
module.exports = cloneMap;
diff --git a/tools/eslint/node_modules/lodash/_cloneRegExp.js b/tools/eslint/node_modules/lodash/_cloneRegExp.js
index f36fd5730aa4c4..64a30dfb4ac39a 100644
--- a/tools/eslint/node_modules/lodash/_cloneRegExp.js
+++ b/tools/eslint/node_modules/lodash/_cloneRegExp.js
@@ -9,9 +9,7 @@ var reFlags = /\w*$/;
* @returns {Object} Returns the cloned regexp.
*/
function cloneRegExp(regexp) {
- var Ctor = regexp.constructor,
- result = new Ctor(regexp.source, reFlags.exec(regexp));
-
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
result.lastIndex = regexp.lastIndex;
return result;
}
diff --git a/tools/eslint/node_modules/lodash/_cloneSet.js b/tools/eslint/node_modules/lodash/_cloneSet.js
index a6fa4a2f86e9db..dc1db95c618d3d 100644
--- a/tools/eslint/node_modules/lodash/_cloneSet.js
+++ b/tools/eslint/node_modules/lodash/_cloneSet.js
@@ -7,11 +7,13 @@ var addSetEntry = require('./_addSetEntry'),
*
* @private
* @param {Object} set The set to clone.
+ * @param {Function} cloneFunc The function to clone values.
+ * @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned set.
*/
-function cloneSet(set) {
- var Ctor = set.constructor;
- return arrayReduce(setToArray(set), addSetEntry, new Ctor);
+function cloneSet(set, isDeep, cloneFunc) {
+ var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
+ return arrayReduce(array, addSetEntry, new set.constructor);
}
module.exports = cloneSet;
diff --git a/tools/eslint/node_modules/lodash/_cloneSymbol.js b/tools/eslint/node_modules/lodash/_cloneSymbol.js
index ac0217d74e056b..bede39f50a6fcd 100644
--- a/tools/eslint/node_modules/lodash/_cloneSymbol.js
+++ b/tools/eslint/node_modules/lodash/_cloneSymbol.js
@@ -2,7 +2,7 @@ var Symbol = require('./_Symbol');
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = Symbol ? symbolProto.valueOf : undefined;
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
* Creates a clone of the `symbol` object.
@@ -12,7 +12,7 @@ var symbolProto = Symbol ? Symbol.prototype : undefined,
* @returns {Object} Returns the cloned symbol object.
*/
function cloneSymbol(symbol) {
- return Symbol ? Object(symbolValueOf.call(symbol)) : {};
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}
module.exports = cloneSymbol;
diff --git a/tools/eslint/node_modules/lodash/_cloneTypedArray.js b/tools/eslint/node_modules/lodash/_cloneTypedArray.js
index 8a2d0f7e65810b..7aad84d4fec4bc 100644
--- a/tools/eslint/node_modules/lodash/_cloneTypedArray.js
+++ b/tools/eslint/node_modules/lodash/_cloneTypedArray.js
@@ -9,10 +9,8 @@ var cloneArrayBuffer = require('./_cloneArrayBuffer');
* @returns {Object} Returns the cloned typed array.
*/
function cloneTypedArray(typedArray, isDeep) {
- var buffer = typedArray.buffer,
- Ctor = typedArray.constructor;
-
- return new Ctor(isDeep ? cloneArrayBuffer(buffer) : buffer, typedArray.byteOffset, typedArray.length);
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}
module.exports = cloneTypedArray;
diff --git a/tools/eslint/node_modules/lodash/_compareMultiple.js b/tools/eslint/node_modules/lodash/_compareMultiple.js
index a3f2d8b9a3e065..ad61f0fbcaa404 100644
--- a/tools/eslint/node_modules/lodash/_compareMultiple.js
+++ b/tools/eslint/node_modules/lodash/_compareMultiple.js
@@ -37,7 +37,7 @@ function compareMultiple(object, other, orders) {
// for more details.
//
// This also ensures a stable sort in V8 and other engines.
- // See https://code.google.com/p/v8/issues/detail?id=90 for more details.
+ // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
return object.index - other.index;
}
diff --git a/tools/eslint/node_modules/lodash/_composeArgs.js b/tools/eslint/node_modules/lodash/_composeArgs.js
index 863f71f7e09a9b..07398e78409486 100644
--- a/tools/eslint/node_modules/lodash/_composeArgs.js
+++ b/tools/eslint/node_modules/lodash/_composeArgs.js
@@ -9,23 +9,28 @@ var nativeMax = Math.max;
* @param {Array|Object} args The provided arguments.
* @param {Array} partials The arguments to prepend to those provided.
* @param {Array} holders The `partials` placeholder indexes.
+ * @params {boolean} [isCurried] Specify composing for a curried function.
* @returns {Array} Returns the new array of composed arguments.
*/
-function composeArgs(args, partials, holders) {
- var holdersLength = holders.length,
- argsIndex = -1,
- argsLength = nativeMax(args.length - holdersLength, 0),
+function composeArgs(args, partials, holders, isCurried) {
+ var argsIndex = -1,
+ argsLength = args.length,
+ holdersLength = holders.length,
leftIndex = -1,
leftLength = partials.length,
- result = Array(leftLength + argsLength);
+ rangeLength = nativeMax(argsLength - holdersLength, 0),
+ result = Array(leftLength + rangeLength),
+ isUncurried = !isCurried;
while (++leftIndex < leftLength) {
result[leftIndex] = partials[leftIndex];
}
while (++argsIndex < holdersLength) {
- result[holders[argsIndex]] = args[argsIndex];
+ if (isUncurried || argsIndex < argsLength) {
+ result[holders[argsIndex]] = args[argsIndex];
+ }
}
- while (argsLength--) {
+ while (rangeLength--) {
result[leftIndex++] = args[argsIndex++];
}
return result;
diff --git a/tools/eslint/node_modules/lodash/_composeArgsRight.js b/tools/eslint/node_modules/lodash/_composeArgsRight.js
index 4bb639b86c4689..18cfae0340efdc 100644
--- a/tools/eslint/node_modules/lodash/_composeArgsRight.js
+++ b/tools/eslint/node_modules/lodash/_composeArgsRight.js
@@ -9,18 +9,21 @@ var nativeMax = Math.max;
* @param {Array|Object} args The provided arguments.
* @param {Array} partials The arguments to append to those provided.
* @param {Array} holders The `partials` placeholder indexes.
+ * @params {boolean} [isCurried] Specify composing for a curried function.
* @returns {Array} Returns the new array of composed arguments.
*/
-function composeArgsRight(args, partials, holders) {
- var holdersIndex = -1,
+function composeArgsRight(args, partials, holders, isCurried) {
+ var argsIndex = -1,
+ argsLength = args.length,
+ holdersIndex = -1,
holdersLength = holders.length,
- argsIndex = -1,
- argsLength = nativeMax(args.length - holdersLength, 0),
rightIndex = -1,
rightLength = partials.length,
- result = Array(argsLength + rightLength);
+ rangeLength = nativeMax(argsLength - holdersLength, 0),
+ result = Array(rangeLength + rightLength),
+ isUncurried = !isCurried;
- while (++argsIndex < argsLength) {
+ while (++argsIndex < rangeLength) {
result[argsIndex] = args[argsIndex];
}
var offset = argsIndex;
@@ -28,7 +31,9 @@ function composeArgsRight(args, partials, holders) {
result[offset + rightIndex] = partials[rightIndex];
}
while (++holdersIndex < holdersLength) {
- result[offset + holders[holdersIndex]] = args[argsIndex++];
+ if (isUncurried || argsIndex < argsLength) {
+ result[offset + holders[holdersIndex]] = args[argsIndex++];
+ }
}
return result;
}
diff --git a/tools/eslint/node_modules/lodash/_copyObject.js b/tools/eslint/node_modules/lodash/_copyObject.js
index f8406b6547b62d..d95a4cbdc559a2 100644
--- a/tools/eslint/node_modules/lodash/_copyObject.js
+++ b/tools/eslint/node_modules/lodash/_copyObject.js
@@ -5,7 +5,7 @@ var copyObjectWith = require('./_copyObjectWith');
*
* @private
* @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
+ * @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @returns {Object} Returns `object`.
*/
diff --git a/tools/eslint/node_modules/lodash/_copyObjectWith.js b/tools/eslint/node_modules/lodash/_copyObjectWith.js
index ac5b9d3be81e37..11240c60699c96 100644
--- a/tools/eslint/node_modules/lodash/_copyObjectWith.js
+++ b/tools/eslint/node_modules/lodash/_copyObjectWith.js
@@ -6,7 +6,7 @@ var assignValue = require('./_assignValue');
*
* @private
* @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
+ * @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @param {Function} [customizer] The function to customize copied values.
* @returns {Object} Returns `object`.
@@ -18,8 +18,11 @@ function copyObjectWith(source, props, object, customizer) {
length = props.length;
while (++index < length) {
- var key = props[index],
- newValue = customizer ? customizer(object[key], source[key], key, object, source) : source[key];
+ var key = props[index];
+
+ var newValue = customizer
+ ? customizer(object[key], source[key], key, object, source)
+ : source[key];
assignValue(object, key, newValue);
}
diff --git a/tools/eslint/node_modules/lodash/_countHolders.js b/tools/eslint/node_modules/lodash/_countHolders.js
new file mode 100644
index 00000000000000..8cc95e6e0e6d6f
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_countHolders.js
@@ -0,0 +1,21 @@
+/**
+ * Gets the number of `placeholder` occurrences in `array`.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} placeholder The placeholder to search for.
+ * @returns {number} Returns the placeholder count.
+ */
+function countHolders(array, placeholder) {
+ var length = array.length,
+ result = 0;
+
+ while (length--) {
+ if (array[length] === placeholder) {
+ result++;
+ }
+ }
+ return result;
+}
+
+module.exports = countHolders;
diff --git a/tools/eslint/node_modules/lodash/_createAssigner.js b/tools/eslint/node_modules/lodash/_createAssigner.js
index 72c3039e5a3067..1e81db9319a10d 100644
--- a/tools/eslint/node_modules/lodash/_createAssigner.js
+++ b/tools/eslint/node_modules/lodash/_createAssigner.js
@@ -15,7 +15,10 @@ function createAssigner(assigner) {
customizer = length > 1 ? sources[length - 1] : undefined,
guard = length > 2 ? sources[2] : undefined;
- customizer = typeof customizer == 'function' ? (length--, customizer) : undefined;
+ customizer = typeof customizer == 'function'
+ ? (length--, customizer)
+ : undefined;
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
customizer = length < 3 ? undefined : customizer;
length = 1;
diff --git a/tools/eslint/node_modules/lodash/_createBaseFor.js b/tools/eslint/node_modules/lodash/_createBaseFor.js
index bc84c037a5b819..94cbf297aa2031 100644
--- a/tools/eslint/node_modules/lodash/_createBaseFor.js
+++ b/tools/eslint/node_modules/lodash/_createBaseFor.js
@@ -1,5 +1,5 @@
/**
- * Creates a base function for methods like `_.forIn`.
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
diff --git a/tools/eslint/node_modules/lodash/_createBaseWrapper.js b/tools/eslint/node_modules/lodash/_createBaseWrapper.js
index fd3bb9a695ee39..c365621bd747e3 100644
--- a/tools/eslint/node_modules/lodash/_createBaseWrapper.js
+++ b/tools/eslint/node_modules/lodash/_createBaseWrapper.js
@@ -10,7 +10,8 @@ var BIND_FLAG = 1;
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {*} [thisArg] The `this` binding of `func`.
* @returns {Function} Returns the new wrapped function.
*/
diff --git a/tools/eslint/node_modules/lodash/_createCaseFirst.js b/tools/eslint/node_modules/lodash/_createCaseFirst.js
index 5718f6f4aa8ef3..a6f70543eb659b 100644
--- a/tools/eslint/node_modules/lodash/_createCaseFirst.js
+++ b/tools/eslint/node_modules/lodash/_createCaseFirst.js
@@ -24,8 +24,11 @@ function createCaseFirst(methodName) {
return function(string) {
string = toString(string);
- var strSymbols = reHasComplexSymbol.test(string) ? stringToArray(string) : undefined,
- chr = strSymbols ? strSymbols[0] : string.charAt(0),
+ var strSymbols = reHasComplexSymbol.test(string)
+ ? stringToArray(string)
+ : undefined;
+
+ var chr = strSymbols ? strSymbols[0] : string.charAt(0),
trailing = strSymbols ? strSymbols.slice(1).join('') : string.slice(1);
return chr[methodName]() + trailing;
diff --git a/tools/eslint/node_modules/lodash/_createCtorWrapper.js b/tools/eslint/node_modules/lodash/_createCtorWrapper.js
index a0a7f83d70e760..17e1bd8314f420 100644
--- a/tools/eslint/node_modules/lodash/_createCtorWrapper.js
+++ b/tools/eslint/node_modules/lodash/_createCtorWrapper.js
@@ -11,8 +11,8 @@ var baseCreate = require('./_baseCreate'),
*/
function createCtorWrapper(Ctor) {
return function() {
- // Use a `switch` statement to work with class constructors.
- // See http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
+ // Use a `switch` statement to work with class constructors. See
+ // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
// for more details.
var args = arguments;
switch (args.length) {
diff --git a/tools/eslint/node_modules/lodash/_createCurryWrapper.js b/tools/eslint/node_modules/lodash/_createCurryWrapper.js
index 2fc9f7e6c9716c..c48ba62402ab3d 100644
--- a/tools/eslint/node_modules/lodash/_createCurryWrapper.js
+++ b/tools/eslint/node_modules/lodash/_createCurryWrapper.js
@@ -2,6 +2,7 @@ var apply = require('./_apply'),
createCtorWrapper = require('./_createCtorWrapper'),
createHybridWrapper = require('./_createHybridWrapper'),
createRecurryWrapper = require('./_createRecurryWrapper'),
+ getPlaceholder = require('./_getPlaceholder'),
replaceHolders = require('./_replaceHolders'),
root = require('./_root');
@@ -10,7 +11,8 @@ var apply = require('./_apply'),
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {number} arity The arity of `func`.
* @returns {Function} Returns the new wrapped function.
*/
@@ -19,10 +21,9 @@ function createCurryWrapper(func, bitmask, arity) {
function wrapper() {
var length = arguments.length,
- index = length,
args = Array(length),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func,
- placeholder = wrapper.placeholder;
+ index = length,
+ placeholder = getPlaceholder(wrapper);
while (index--) {
args[index] = arguments[index];
@@ -32,9 +33,13 @@ function createCurryWrapper(func, bitmask, arity) {
: replaceHolders(args, placeholder);
length -= holders.length;
- return length < arity
- ? createRecurryWrapper(func, bitmask, createHybridWrapper, placeholder, undefined, args, holders, undefined, undefined, arity - length)
- : apply(fn, this, args);
+ if (length < arity) {
+ return createRecurryWrapper(
+ func, bitmask, createHybridWrapper, wrapper.placeholder, undefined,
+ args, holders, undefined, undefined, arity - length);
+ }
+ var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
+ return apply(fn, this, args);
}
return wrapper;
}
diff --git a/tools/eslint/node_modules/lodash/_createFlow.js b/tools/eslint/node_modules/lodash/_createFlow.js
index 1d5e5f18137b9f..6b5ee54be1ef50 100644
--- a/tools/eslint/node_modules/lodash/_createFlow.js
+++ b/tools/eslint/node_modules/lodash/_createFlow.js
@@ -6,18 +6,18 @@ var LodashWrapper = require('./_LodashWrapper'),
isLaziable = require('./_isLaziable'),
rest = require('./rest');
-/** Used to compose bitmasks for wrapper metadata. */
-var CURRY_FLAG = 8,
- PARTIAL_FLAG = 32,
- ARY_FLAG = 128,
- REARG_FLAG = 256;
-
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
+/** Used to compose bitmasks for wrapper metadata. */
+var CURRY_FLAG = 8,
+ PARTIAL_FLAG = 32,
+ ARY_FLAG = 128,
+ REARG_FLAG = 256;
+
/**
* Creates a `_.flow` or `_.flowRight` function.
*
@@ -27,7 +27,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
*/
function createFlow(fromRight) {
return rest(function(funcs) {
- funcs = baseFlatten(funcs);
+ funcs = baseFlatten(funcs, 1);
var length = funcs.length,
index = length,
@@ -52,17 +52,23 @@ function createFlow(fromRight) {
var funcName = getFuncName(func),
data = funcName == 'wrapper' ? getData(func) : undefined;
- if (data && isLaziable(data[0]) && data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && !data[4].length && data[9] == 1) {
+ if (data && isLaziable(data[0]) &&
+ data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) &&
+ !data[4].length && data[9] == 1
+ ) {
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
} else {
- wrapper = (func.length == 1 && isLaziable(func)) ? wrapper[funcName]() : wrapper.thru(func);
+ wrapper = (func.length == 1 && isLaziable(func))
+ ? wrapper[funcName]()
+ : wrapper.thru(func);
}
}
return function() {
var args = arguments,
value = args[0];
- if (wrapper && args.length == 1 && isArray(value) && value.length >= LARGE_ARRAY_SIZE) {
+ if (wrapper && args.length == 1 &&
+ isArray(value) && value.length >= LARGE_ARRAY_SIZE) {
return wrapper.plant(value).value();
}
var index = 0,
diff --git a/tools/eslint/node_modules/lodash/_createHybridWrapper.js b/tools/eslint/node_modules/lodash/_createHybridWrapper.js
index 7d34c74916548f..144a90d7931b40 100644
--- a/tools/eslint/node_modules/lodash/_createHybridWrapper.js
+++ b/tools/eslint/node_modules/lodash/_createHybridWrapper.js
@@ -1,7 +1,9 @@
var composeArgs = require('./_composeArgs'),
composeArgsRight = require('./_composeArgsRight'),
+ countHolders = require('./_countHolders'),
createCtorWrapper = require('./_createCtorWrapper'),
createRecurryWrapper = require('./_createRecurryWrapper'),
+ getPlaceholder = require('./_getPlaceholder'),
reorder = require('./_reorder'),
replaceHolders = require('./_replaceHolders'),
root = require('./_root');
@@ -20,11 +22,14 @@ var BIND_FLAG = 1,
*
* @private
* @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to the new function.
+ * @param {Array} [partials] The arguments to prepend to those provided to
+ * the new function.
* @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [partialsRight] The arguments to append to those provided to the new function.
+ * @param {Array} [partialsRight] The arguments to append to those provided
+ * to the new function.
* @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
* @param {Array} [argPos] The argument positions of the new function.
* @param {number} [ary] The arity cap of `func`.
@@ -35,8 +40,7 @@ function createHybridWrapper(func, bitmask, thisArg, partials, holders, partials
var isAry = bitmask & ARY_FLAG,
isBind = bitmask & BIND_FLAG,
isBindKey = bitmask & BIND_KEY_FLAG,
- isCurry = bitmask & CURRY_FLAG,
- isCurryRight = bitmask & CURRY_RIGHT_FLAG,
+ isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG),
isFlip = bitmask & FLIP_FLAG,
Ctor = isBindKey ? undefined : createCtorWrapper(func);
@@ -48,30 +52,34 @@ function createHybridWrapper(func, bitmask, thisArg, partials, holders, partials
while (index--) {
args[index] = arguments[index];
}
+ if (isCurried) {
+ var placeholder = getPlaceholder(wrapper),
+ holdersCount = countHolders(args, placeholder);
+ }
if (partials) {
- args = composeArgs(args, partials, holders);
+ args = composeArgs(args, partials, holders, isCurried);
}
if (partialsRight) {
- args = composeArgsRight(args, partialsRight, holdersRight);
+ args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
}
- if (isCurry || isCurryRight) {
- var placeholder = wrapper.placeholder,
- argsHolders = replaceHolders(args, placeholder);
-
- length -= argsHolders.length;
- if (length < arity) {
- return createRecurryWrapper(func, bitmask, createHybridWrapper, placeholder, thisArg, args, argsHolders, argPos, ary, arity - length);
- }
+ length -= holdersCount;
+ if (isCurried && length < arity) {
+ var newHolders = replaceHolders(args, placeholder);
+ return createRecurryWrapper(
+ func, bitmask, createHybridWrapper, wrapper.placeholder, thisArg,
+ args, newHolders, argPos, ary, arity - length
+ );
}
var thisBinding = isBind ? thisArg : this,
fn = isBindKey ? thisBinding[func] : func;
+ length = args.length;
if (argPos) {
args = reorder(args, argPos);
- } else if (isFlip && args.length > 1) {
+ } else if (isFlip && length > 1) {
args.reverse();
}
- if (isAry && ary < args.length) {
+ if (isAry && ary < length) {
args.length = ary;
}
if (this && this !== root && this instanceof wrapper) {
diff --git a/tools/eslint/node_modules/lodash/_createMathOperation.js b/tools/eslint/node_modules/lodash/_createMathOperation.js
new file mode 100644
index 00000000000000..56a4d447d0b367
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_createMathOperation.js
@@ -0,0 +1,24 @@
+/**
+ * Creates a function that performs a mathematical operation on two values.
+ *
+ * @private
+ * @param {Function} operator The function to perform the operation.
+ * @returns {Function} Returns the new mathematical operation function.
+ */
+function createMathOperation(operator) {
+ return function(value, other) {
+ var result;
+ if (value === undefined && other === undefined) {
+ return 0;
+ }
+ if (value !== undefined) {
+ result = value;
+ }
+ if (other !== undefined) {
+ result = result === undefined ? other : operator(result, other);
+ }
+ return result;
+ };
+}
+
+module.exports = createMathOperation;
diff --git a/tools/eslint/node_modules/lodash/_createOver.js b/tools/eslint/node_modules/lodash/_createOver.js
index 62fed02167cfcd..b34ca964c21748 100644
--- a/tools/eslint/node_modules/lodash/_createOver.js
+++ b/tools/eslint/node_modules/lodash/_createOver.js
@@ -2,6 +2,7 @@ var apply = require('./_apply'),
arrayMap = require('./_arrayMap'),
baseFlatten = require('./_baseFlatten'),
baseIteratee = require('./_baseIteratee'),
+ isFlattenableIteratee = require('./_isFlattenableIteratee'),
rest = require('./rest');
/**
@@ -13,7 +14,7 @@ var apply = require('./_apply'),
*/
function createOver(arrayFunc) {
return rest(function(iteratees) {
- iteratees = arrayMap(baseFlatten(iteratees), baseIteratee);
+ iteratees = arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), baseIteratee);
return rest(function(args) {
var thisArg = this;
return arrayFunc(iteratees, function(iteratee) {
diff --git a/tools/eslint/node_modules/lodash/_createPadding.js b/tools/eslint/node_modules/lodash/_createPadding.js
index e59cc5212e748e..2626376aeaecbb 100644
--- a/tools/eslint/node_modules/lodash/_createPadding.js
+++ b/tools/eslint/node_modules/lodash/_createPadding.js
@@ -1,7 +1,6 @@
-var repeat = require('./repeat'),
+var baseRepeat = require('./_baseRepeat'),
stringSize = require('./_stringSize'),
- stringToArray = require('./_stringToArray'),
- toInteger = require('./toInteger');
+ stringToArray = require('./_stringToArray');
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
@@ -23,25 +22,21 @@ var nativeCeil = Math.ceil;
* is truncated if the number of characters exceeds `length`.
*
* @private
- * @param {string} string The string to create padding for.
- * @param {number} [length=0] The padding length.
+ * @param {number} length The padding length.
* @param {string} [chars=' '] The string used as padding.
* @returns {string} Returns the padding for `string`.
*/
-function createPadding(string, length, chars) {
- length = toInteger(length);
-
- var strLength = stringSize(string);
- if (!length || strLength >= length) {
- return '';
- }
- var padLength = length - strLength;
+function createPadding(length, chars) {
chars = chars === undefined ? ' ' : (chars + '');
- var result = repeat(chars, nativeCeil(padLength / stringSize(chars)));
+ var charsLength = chars.length;
+ if (charsLength < 2) {
+ return charsLength ? baseRepeat(chars, length) : chars;
+ }
+ var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
return reHasComplexSymbol.test(chars)
- ? stringToArray(result).slice(0, padLength).join('')
- : result.slice(0, padLength);
+ ? stringToArray(result).slice(0, length).join('')
+ : result.slice(0, length);
}
module.exports = createPadding;
diff --git a/tools/eslint/node_modules/lodash/_createPartialWrapper.js b/tools/eslint/node_modules/lodash/_createPartialWrapper.js
index 1fc3a9b01eb783..cc4314ef9f5db1 100644
--- a/tools/eslint/node_modules/lodash/_createPartialWrapper.js
+++ b/tools/eslint/node_modules/lodash/_createPartialWrapper.js
@@ -6,15 +6,16 @@ var apply = require('./_apply'),
var BIND_FLAG = 1;
/**
- * Creates a function that wraps `func` to invoke it with the optional `this`
- * binding of `thisArg` and the `partials` prepended to those provided to
- * the wrapper.
+ * Creates a function that wraps `func` to invoke it with the `this` binding
+ * of `thisArg` and `partials` prepended to the arguments it receives.
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to the new function.
+ * @param {Array} partials The arguments to prepend to those provided to
+ * the new function.
* @returns {Function} Returns the new wrapped function.
*/
function createPartialWrapper(func, bitmask, thisArg, partials) {
diff --git a/tools/eslint/node_modules/lodash/_createRecurryWrapper.js b/tools/eslint/node_modules/lodash/_createRecurryWrapper.js
index 2e3f10a89e9438..47e5e3a740c80b 100644
--- a/tools/eslint/node_modules/lodash/_createRecurryWrapper.js
+++ b/tools/eslint/node_modules/lodash/_createRecurryWrapper.js
@@ -15,11 +15,13 @@ var BIND_FLAG = 1,
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {Function} wrapFunc The function to create the `func` wrapper.
- * @param {*} placeholder The placeholder to replace.
+ * @param {*} placeholder The placeholder value.
* @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to the new function.
+ * @param {Array} [partials] The arguments to prepend to those provided to
+ * the new function.
* @param {Array} [holders] The `partials` placeholder indexes.
* @param {Array} [argPos] The argument positions of the new function.
* @param {number} [ary] The arity cap of `func`.
@@ -29,7 +31,7 @@ var BIND_FLAG = 1,
function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
var isCurry = bitmask & CURRY_FLAG,
newArgPos = argPos ? copyArray(argPos) : undefined,
- newsHolders = isCurry ? holders : undefined,
+ newHolders = isCurry ? holders : undefined,
newHoldersRight = isCurry ? undefined : holders,
newPartials = isCurry ? partials : undefined,
newPartialsRight = isCurry ? undefined : partials;
@@ -40,9 +42,12 @@ function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, par
if (!(bitmask & CURRY_BOUND_FLAG)) {
bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
}
- var newData = [func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, arity],
- result = wrapFunc.apply(undefined, newData);
+ var newData = [
+ func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
+ newHoldersRight, newArgPos, ary, arity
+ ];
+ var result = wrapFunc.apply(undefined, newData);
if (isLaziable(func)) {
setData(result, newData);
}
diff --git a/tools/eslint/node_modules/lodash/_createWrapper.js b/tools/eslint/node_modules/lodash/_createWrapper.js
index f391c1a359940c..7b573b2f133f64 100644
--- a/tools/eslint/node_modules/lodash/_createWrapper.js
+++ b/tools/eslint/node_modules/lodash/_createWrapper.js
@@ -8,6 +8,9 @@ var baseSetData = require('./_baseSetData'),
setData = require('./_setData'),
toInteger = require('./toInteger');
+/** Used as the `TypeError` message for "Functions" methods. */
+var FUNC_ERROR_TEXT = 'Expected a function';
+
/** Used to compose bitmasks for wrapper metadata. */
var BIND_FLAG = 1,
BIND_KEY_FLAG = 2,
@@ -16,9 +19,6 @@ var BIND_FLAG = 1,
PARTIAL_FLAG = 32,
PARTIAL_RIGHT_FLAG = 64;
-/** Used as the `TypeError` message for "Functions" methods. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;
@@ -67,8 +67,12 @@ function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, a
partials = holders = undefined;
}
- var data = isBindKey ? undefined : getData(func),
- newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity];
+ var data = isBindKey ? undefined : getData(func);
+
+ var newData = [
+ func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
+ argPos, ary, arity
+ ];
if (data) {
mergeData(newData, data);
diff --git a/tools/eslint/node_modules/lodash/_equalArrays.js b/tools/eslint/node_modules/lodash/_equalArrays.js
index f789ee5887cead..323c67cc8d4335 100644
--- a/tools/eslint/node_modules/lodash/_equalArrays.js
+++ b/tools/eslint/node_modules/lodash/_equalArrays.js
@@ -12,9 +12,10 @@ var UNORDERED_COMPARE_FLAG = 1,
* @param {Array} array The array to compare.
* @param {Array} other The other array to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `array` and `other` objects.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
@@ -55,12 +56,16 @@ function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
// Recursively compare arrays (susceptible to call stack limits).
if (isUnordered) {
if (!arraySome(other, function(othValue) {
- return arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack);
+ return arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack);
})) {
result = false;
break;
}
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
+ } else if (!(
+ arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack)
+ )) {
result = false;
break;
}
diff --git a/tools/eslint/node_modules/lodash/_equalByTag.js b/tools/eslint/node_modules/lodash/_equalByTag.js
index bc503f3f5c2cf2..b3e37bd8a5f322 100644
--- a/tools/eslint/node_modules/lodash/_equalByTag.js
+++ b/tools/eslint/node_modules/lodash/_equalByTag.js
@@ -1,5 +1,6 @@
var Symbol = require('./_Symbol'),
Uint8Array = require('./_Uint8Array'),
+ equalArrays = require('./_equalArrays'),
mapToArray = require('./_mapToArray'),
setToArray = require('./_setToArray');
@@ -18,11 +19,12 @@ var boolTag = '[object Boolean]',
stringTag = '[object String]',
symbolTag = '[object Symbol]';
-var arrayBufferTag = '[object ArrayBuffer]';
+var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]';
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = Symbol ? symbolProto.valueOf : undefined;
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
* A specialized version of `baseIsEqualDeep` for comparing objects of
@@ -36,12 +38,22 @@ var symbolProto = Symbol ? Symbol.prototype : undefined,
* @param {Object} other The other object to compare.
* @param {string} tag The `toStringTag` of the objects to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
-function equalByTag(object, other, tag, equalFunc, customizer, bitmask) {
+function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
switch (tag) {
+ case dataViewTag:
+ if ((object.byteLength != other.byteLength) ||
+ (object.byteOffset != other.byteOffset)) {
+ return false;
+ }
+ object = object.buffer;
+ other = other.buffer;
+
case arrayBufferTag:
if ((object.byteLength != other.byteLength) ||
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
@@ -51,8 +63,9 @@ function equalByTag(object, other, tag, equalFunc, customizer, bitmask) {
case boolTag:
case dateTag:
- // Coerce dates and booleans to numbers, dates to milliseconds and booleans
- // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.
+ // Coerce dates and booleans to numbers, dates to milliseconds and
+ // booleans to `1` or `0` treating invalid dates coerced to `NaN` as
+ // not equal.
return +object == +other;
case errorTag:
@@ -64,8 +77,9 @@ function equalByTag(object, other, tag, equalFunc, customizer, bitmask) {
case regexpTag:
case stringTag:
- // Coerce regexes to strings and treat strings primitives and string
- // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
+ // Coerce regexes to strings and treat strings, primitives and objects,
+ // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
+ // for more details.
return object == (other + '');
case mapTag:
@@ -75,12 +89,24 @@ function equalByTag(object, other, tag, equalFunc, customizer, bitmask) {
var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
convert || (convert = setToArray);
+ if (object.size != other.size && !isPartial) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked) {
+ return stacked == other;
+ }
+ bitmask |= UNORDERED_COMPARE_FLAG;
+ stack.set(object, other);
+
// Recursively compare objects (susceptible to call stack limits).
- return (isPartial || object.size == other.size) &&
- equalFunc(convert(object), convert(other), customizer, bitmask | UNORDERED_COMPARE_FLAG);
+ return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
case symbolTag:
- return !!Symbol && (symbolValueOf.call(object) == symbolValueOf.call(other));
+ if (symbolValueOf) {
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
+ }
}
return false;
}
diff --git a/tools/eslint/node_modules/lodash/_equalObjects.js b/tools/eslint/node_modules/lodash/_equalObjects.js
index 8e4a8547b05c57..9a5d17fac1bed0 100644
--- a/tools/eslint/node_modules/lodash/_equalObjects.js
+++ b/tools/eslint/node_modules/lodash/_equalObjects.js
@@ -12,9 +12,10 @@ var PARTIAL_COMPARE_FLAG = 2;
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
diff --git a/tools/eslint/node_modules/lodash/_getAllKeys.js b/tools/eslint/node_modules/lodash/_getAllKeys.js
new file mode 100644
index 00000000000000..a9ce6995a6ad27
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_getAllKeys.js
@@ -0,0 +1,16 @@
+var baseGetAllKeys = require('./_baseGetAllKeys'),
+ getSymbols = require('./_getSymbols'),
+ keys = require('./keys');
+
+/**
+ * Creates an array of own enumerable property names and symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+function getAllKeys(object) {
+ return baseGetAllKeys(object, keys, getSymbols);
+}
+
+module.exports = getAllKeys;
diff --git a/tools/eslint/node_modules/lodash/_getAllKeysIn.js b/tools/eslint/node_modules/lodash/_getAllKeysIn.js
new file mode 100644
index 00000000000000..1b4667841db49a
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_getAllKeysIn.js
@@ -0,0 +1,17 @@
+var baseGetAllKeys = require('./_baseGetAllKeys'),
+ getSymbolsIn = require('./_getSymbolsIn'),
+ keysIn = require('./keysIn');
+
+/**
+ * Creates an array of own and inherited enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+function getAllKeysIn(object) {
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
+}
+
+module.exports = getAllKeysIn;
diff --git a/tools/eslint/node_modules/lodash/_getLength.js b/tools/eslint/node_modules/lodash/_getLength.js
index 1848d490183617..54071653aadbe9 100644
--- a/tools/eslint/node_modules/lodash/_getLength.js
+++ b/tools/eslint/node_modules/lodash/_getLength.js
@@ -3,8 +3,9 @@ var baseProperty = require('./_baseProperty');
/**
* Gets the "length" property value of `object`.
*
- * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
- * that affects Safari on at least iOS 8.1-8.3 ARM64.
+ * **Note:** This function is used to avoid a
+ * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
+ * Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
diff --git a/tools/eslint/node_modules/lodash/_getNative.js b/tools/eslint/node_modules/lodash/_getNative.js
index b85007aee81dac..f6ff7f19b97122 100644
--- a/tools/eslint/node_modules/lodash/_getNative.js
+++ b/tools/eslint/node_modules/lodash/_getNative.js
@@ -9,7 +9,7 @@ var isNative = require('./isNative');
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
- var value = object == null ? undefined : object[key];
+ var value = object[key];
return isNative(value) ? value : undefined;
}
diff --git a/tools/eslint/node_modules/lodash/_getPlaceholder.js b/tools/eslint/node_modules/lodash/_getPlaceholder.js
new file mode 100644
index 00000000000000..4bbcda25ecb6db
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_getPlaceholder.js
@@ -0,0 +1,13 @@
+/**
+ * Gets the argument placeholder value for `func`.
+ *
+ * @private
+ * @param {Function} func The function to inspect.
+ * @returns {*} Returns the placeholder value.
+ */
+function getPlaceholder(func) {
+ var object = func;
+ return object.placeholder;
+}
+
+module.exports = getPlaceholder;
diff --git a/tools/eslint/node_modules/lodash/_getPrototype.js b/tools/eslint/node_modules/lodash/_getPrototype.js
new file mode 100644
index 00000000000000..1ef6d927e31c09
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_getPrototype.js
@@ -0,0 +1,15 @@
+/* Built-in method references for those with the same name as other `lodash` methods. */
+var nativeGetPrototype = Object.getPrototypeOf;
+
+/**
+ * Gets the `[[Prototype]]` of `value`.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {null|Object} Returns the `[[Prototype]]`.
+ */
+function getPrototype(value) {
+ return nativeGetPrototype(Object(value));
+}
+
+module.exports = getPrototype;
diff --git a/tools/eslint/node_modules/lodash/_getSymbols.js b/tools/eslint/node_modules/lodash/_getSymbols.js
index 266906a027fe3a..63df71742d6a50 100644
--- a/tools/eslint/node_modules/lodash/_getSymbols.js
+++ b/tools/eslint/node_modules/lodash/_getSymbols.js
@@ -2,14 +2,23 @@
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
/**
- * Creates an array of the own symbol properties of `object`.
+ * Creates an array of the own enumerable symbol properties of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
-var getSymbols = getOwnPropertySymbols || function() {
- return [];
-};
+function getSymbols(object) {
+ // Coerce `object` to an object to avoid non-object errors in V8.
+ // See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details.
+ return getOwnPropertySymbols(Object(object));
+}
+
+// Fallback for IE < 11.
+if (!getOwnPropertySymbols) {
+ getSymbols = function() {
+ return [];
+ };
+}
module.exports = getSymbols;
diff --git a/tools/eslint/node_modules/lodash/_getSymbolsIn.js b/tools/eslint/node_modules/lodash/_getSymbolsIn.js
new file mode 100644
index 00000000000000..3a3729f05b78c1
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_getSymbolsIn.js
@@ -0,0 +1,25 @@
+var arrayPush = require('./_arrayPush'),
+ getPrototype = require('./_getPrototype'),
+ getSymbols = require('./_getSymbols');
+
+/** Built-in value references. */
+var getOwnPropertySymbols = Object.getOwnPropertySymbols;
+
+/**
+ * Creates an array of the own and inherited enumerable symbol properties
+ * of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of symbols.
+ */
+var getSymbolsIn = !getOwnPropertySymbols ? getSymbols : function(object) {
+ var result = [];
+ while (object) {
+ arrayPush(result, getSymbols(object));
+ object = getPrototype(object);
+ }
+ return result;
+};
+
+module.exports = getSymbolsIn;
diff --git a/tools/eslint/node_modules/lodash/_getTag.js b/tools/eslint/node_modules/lodash/_getTag.js
index 1516eca3923a1e..0d1a455c1bd33f 100644
--- a/tools/eslint/node_modules/lodash/_getTag.js
+++ b/tools/eslint/node_modules/lodash/_getTag.js
@@ -1,29 +1,35 @@
-var Map = require('./_Map'),
+var DataView = require('./_DataView'),
+ Map = require('./_Map'),
+ Promise = require('./_Promise'),
Set = require('./_Set'),
- WeakMap = require('./_WeakMap');
+ WeakMap = require('./_WeakMap'),
+ toSource = require('./_toSource');
/** `Object#toString` result references. */
var mapTag = '[object Map]',
objectTag = '[object Object]',
+ promiseTag = '[object Promise]',
setTag = '[object Set]',
weakMapTag = '[object WeakMap]';
+var dataViewTag = '[object DataView]';
+
/** Used for built-in method references. */
var objectProto = Object.prototype;
-/** Used to resolve the decompiled source of functions. */
-var funcToString = Function.prototype.toString;
-
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/** Used to detect maps, sets, and weakmaps. */
-var mapCtorString = Map ? funcToString.call(Map) : '',
- setCtorString = Set ? funcToString.call(Set) : '',
- weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : '';
+var dataViewCtorString = toSource(DataView),
+ mapCtorString = toSource(Map),
+ promiseCtorString = toSource(Promise),
+ setCtorString = toSource(Set),
+ weakMapCtorString = toSource(WeakMap);
/**
* Gets the `toStringTag` of `value`.
@@ -36,18 +42,23 @@ function getTag(value) {
return objectToString.call(value);
}
-// Fallback for IE 11 providing `toStringTag` values for maps, sets, and weakmaps.
-if ((Map && getTag(new Map) != mapTag) ||
+// Fallback for data views, maps, sets, and weak maps in IE 11,
+// for data views in Edge, and promises in Node.js.
+if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
+ (Map && getTag(new Map) != mapTag) ||
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
(Set && getTag(new Set) != setTag) ||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
getTag = function(value) {
var result = objectToString.call(value),
- Ctor = result == objectTag ? value.constructor : null,
- ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
+ Ctor = result == objectTag ? value.constructor : undefined,
+ ctorString = Ctor ? toSource(Ctor) : undefined;
if (ctorString) {
switch (ctorString) {
+ case dataViewCtorString: return dataViewTag;
case mapCtorString: return mapTag;
+ case promiseCtorString: return promiseTag;
case setCtorString: return setTag;
case weakMapCtorString: return weakMapTag;
}
diff --git a/tools/eslint/node_modules/lodash/_hasPath.js b/tools/eslint/node_modules/lodash/_hasPath.js
index c063592ce9a5fc..eea7e72ab16454 100644
--- a/tools/eslint/node_modules/lodash/_hasPath.js
+++ b/tools/eslint/node_modules/lodash/_hasPath.js
@@ -1,12 +1,10 @@
-var baseToPath = require('./_baseToPath'),
+var baseCastPath = require('./_baseCastPath'),
isArguments = require('./isArguments'),
isArray = require('./isArray'),
isIndex = require('./_isIndex'),
isKey = require('./_isKey'),
isLength = require('./isLength'),
- isString = require('./isString'),
- last = require('./last'),
- parent = require('./_parent');
+ isString = require('./isString');
/**
* Checks if `path` exists on `object`.
@@ -18,23 +16,25 @@ var baseToPath = require('./_baseToPath'),
* @returns {boolean} Returns `true` if `path` exists, else `false`.
*/
function hasPath(object, path, hasFunc) {
- if (object == null) {
- return false;
- }
- var result = hasFunc(object, path);
- if (!result && !isKey(path)) {
- path = baseToPath(path);
- object = parent(object, path);
- if (object != null) {
- path = last(path);
- result = hasFunc(object, path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
+
+ var result,
+ index = -1,
+ length = path.length;
+
+ while (++index < length) {
+ var key = path[index];
+ if (!(result = object != null && hasFunc(object, key))) {
+ break;
}
+ object = object[key];
+ }
+ if (result) {
+ return result;
}
- var length = object ? object.length : undefined;
- return result || (
- !!length && isLength(length) && isIndex(path, length) &&
- (isArray(object) || isString(object) || isArguments(object))
- );
+ var length = object ? object.length : 0;
+ return !!length && isLength(length) && isIndex(key, length) &&
+ (isArray(object) || isString(object) || isArguments(object));
}
module.exports = hasPath;
diff --git a/tools/eslint/node_modules/lodash/_initCloneByTag.js b/tools/eslint/node_modules/lodash/_initCloneByTag.js
index 5d21cda7f6ca25..e7b77edc696e4a 100644
--- a/tools/eslint/node_modules/lodash/_initCloneByTag.js
+++ b/tools/eslint/node_modules/lodash/_initCloneByTag.js
@@ -1,4 +1,5 @@
var cloneArrayBuffer = require('./_cloneArrayBuffer'),
+ cloneDataView = require('./_cloneDataView'),
cloneMap = require('./_cloneMap'),
cloneRegExp = require('./_cloneRegExp'),
cloneSet = require('./_cloneSet'),
@@ -16,6 +17,7 @@ var boolTag = '[object Boolean]',
symbolTag = '[object Symbol]';
var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
@@ -35,10 +37,11 @@ var arrayBufferTag = '[object ArrayBuffer]',
* @private
* @param {Object} object The object to clone.
* @param {string} tag The `toStringTag` of the object to clone.
+ * @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the initialized clone.
*/
-function initCloneByTag(object, tag, isDeep) {
+function initCloneByTag(object, tag, cloneFunc, isDeep) {
var Ctor = object.constructor;
switch (tag) {
case arrayBufferTag:
@@ -48,13 +51,16 @@ function initCloneByTag(object, tag, isDeep) {
case dateTag:
return new Ctor(+object);
+ case dataViewTag:
+ return cloneDataView(object, isDeep);
+
case float32Tag: case float64Tag:
case int8Tag: case int16Tag: case int32Tag:
case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
return cloneTypedArray(object, isDeep);
case mapTag:
- return cloneMap(object);
+ return cloneMap(object, isDeep, cloneFunc);
case numberTag:
case stringTag:
@@ -64,7 +70,7 @@ function initCloneByTag(object, tag, isDeep) {
return cloneRegExp(object);
case setTag:
- return cloneSet(object);
+ return cloneSet(object, isDeep, cloneFunc);
case symbolTag:
return cloneSymbol(object);
diff --git a/tools/eslint/node_modules/lodash/_initCloneObject.js b/tools/eslint/node_modules/lodash/_initCloneObject.js
index b1da6cb7a747aa..5a13e64a5266d7 100644
--- a/tools/eslint/node_modules/lodash/_initCloneObject.js
+++ b/tools/eslint/node_modules/lodash/_initCloneObject.js
@@ -1,5 +1,5 @@
var baseCreate = require('./_baseCreate'),
- isFunction = require('./isFunction'),
+ getPrototype = require('./_getPrototype'),
isPrototype = require('./_isPrototype');
/**
@@ -10,11 +10,9 @@ var baseCreate = require('./_baseCreate'),
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
- if (isPrototype(object)) {
- return {};
- }
- var Ctor = object.constructor;
- return baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
+ return (typeof object.constructor == 'function' && !isPrototype(object))
+ ? baseCreate(getPrototype(object))
+ : {};
}
module.exports = initCloneObject;
diff --git a/tools/eslint/node_modules/lodash/_isFlattenable.js b/tools/eslint/node_modules/lodash/_isFlattenable.js
new file mode 100644
index 00000000000000..847ad1fa0e046d
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_isFlattenable.js
@@ -0,0 +1,16 @@
+var isArguments = require('./isArguments'),
+ isArray = require('./isArray'),
+ isArrayLikeObject = require('./isArrayLikeObject');
+
+/**
+ * Checks if `value` is a flattenable `arguments` object or array.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
+ */
+function isFlattenable(value) {
+ return isArrayLikeObject(value) && (isArray(value) || isArguments(value));
+}
+
+module.exports = isFlattenable;
diff --git a/tools/eslint/node_modules/lodash/_isFlattenableIteratee.js b/tools/eslint/node_modules/lodash/_isFlattenableIteratee.js
new file mode 100644
index 00000000000000..f7ede3e22a12cd
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_isFlattenableIteratee.js
@@ -0,0 +1,16 @@
+var isArray = require('./isArray'),
+ isFunction = require('./isFunction');
+
+/**
+ * Checks if `value` is a flattenable array and not a `_.matchesProperty`
+ * iteratee shorthand.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
+ */
+function isFlattenableIteratee(value) {
+ return isArray(value) && !(value.length == 2 && !isFunction(value[0]));
+}
+
+module.exports = isFlattenableIteratee;
diff --git a/tools/eslint/node_modules/lodash/_isIterateeCall.js b/tools/eslint/node_modules/lodash/_isIterateeCall.js
index b422b486942ea7..a0bb5a9cf60533 100644
--- a/tools/eslint/node_modules/lodash/_isIterateeCall.js
+++ b/tools/eslint/node_modules/lodash/_isIterateeCall.js
@@ -10,7 +10,8 @@ var eq = require('./eq'),
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
+ * else `false`.
*/
function isIterateeCall(value, index, object) {
if (!isObject(object)) {
@@ -18,8 +19,9 @@ function isIterateeCall(value, index, object) {
}
var type = typeof index;
if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)) {
+ ? (isArrayLike(object) && isIndex(index, object.length))
+ : (type == 'string' && index in object)
+ ) {
return eq(object[index], value);
}
return false;
diff --git a/tools/eslint/node_modules/lodash/_isKey.js b/tools/eslint/node_modules/lodash/_isKey.js
index 0e34576fa5e6db..a907950add8048 100644
--- a/tools/eslint/node_modules/lodash/_isKey.js
+++ b/tools/eslint/node_modules/lodash/_isKey.js
@@ -1,4 +1,5 @@
-var isArray = require('./isArray');
+var isArray = require('./isArray'),
+ isSymbol = require('./isSymbol');
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
@@ -13,11 +14,12 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
- if (typeof value == 'number') {
+ var type = typeof value;
+ if (type == 'number' || type == 'symbol') {
return true;
}
return !isArray(value) &&
- (reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+ (isSymbol(value) || reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
(object != null && value in Object(object)));
}
diff --git a/tools/eslint/node_modules/lodash/_isKeyable.js b/tools/eslint/node_modules/lodash/_isKeyable.js
index a2521b2da94299..5df83c0e97226e 100644
--- a/tools/eslint/node_modules/lodash/_isKeyable.js
+++ b/tools/eslint/node_modules/lodash/_isKeyable.js
@@ -8,7 +8,7 @@
function isKeyable(value) {
var type = typeof value;
return type == 'number' || type == 'boolean' ||
- (type == 'string' && value !== '__proto__') || value == null;
+ (type == 'string' && value != '__proto__') || value == null;
}
module.exports = isKeyable;
diff --git a/tools/eslint/node_modules/lodash/_isLaziable.js b/tools/eslint/node_modules/lodash/_isLaziable.js
index faa17b9fbd8453..a57c4f2dc72b57 100644
--- a/tools/eslint/node_modules/lodash/_isLaziable.js
+++ b/tools/eslint/node_modules/lodash/_isLaziable.js
@@ -8,7 +8,8 @@ var LazyWrapper = require('./_LazyWrapper'),
*
* @private
* @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
+ * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
+ * else `false`.
*/
function isLaziable(func) {
var funcName = getFuncName(func),
diff --git a/tools/eslint/node_modules/lodash/_lazyValue.js b/tools/eslint/node_modules/lodash/_lazyValue.js
index cc6ebcff1269ef..09bf14b43a7737 100644
--- a/tools/eslint/node_modules/lodash/_lazyValue.js
+++ b/tools/eslint/node_modules/lodash/_lazyValue.js
@@ -36,7 +36,8 @@ function lazyValue() {
resIndex = 0,
takeCount = nativeMin(length, this.__takeCount__);
- if (!isArr || arrLength < LARGE_ARRAY_SIZE || (arrLength == length && takeCount == length)) {
+ if (!isArr || arrLength < LARGE_ARRAY_SIZE ||
+ (arrLength == length && takeCount == length)) {
return baseWrapperValue(array, this.__actions__);
}
var result = [];
diff --git a/tools/eslint/node_modules/lodash/_mapClear.js b/tools/eslint/node_modules/lodash/_mapClear.js
index c8ca3ef7c4346e..296f41794d6cfb 100644
--- a/tools/eslint/node_modules/lodash/_mapClear.js
+++ b/tools/eslint/node_modules/lodash/_mapClear.js
@@ -9,7 +9,11 @@ var Hash = require('./_Hash'),
* @memberOf MapCache
*/
function mapClear() {
- this.__data__ = { 'hash': new Hash, 'map': Map ? new Map : [], 'string': new Hash };
+ this.__data__ = {
+ 'hash': new Hash,
+ 'map': Map ? new Map : [],
+ 'string': new Hash
+ };
}
module.exports = mapClear;
diff --git a/tools/eslint/node_modules/lodash/_mapSet.js b/tools/eslint/node_modules/lodash/_mapSet.js
index 7a587861eae6f0..23b075fc6e96e4 100644
--- a/tools/eslint/node_modules/lodash/_mapSet.js
+++ b/tools/eslint/node_modules/lodash/_mapSet.js
@@ -11,7 +11,7 @@ var Map = require('./_Map'),
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
- * @returns {Object} Returns the map cache object.
+ * @returns {Object} Returns the map cache instance.
*/
function mapSet(key, value) {
var data = this.__data__;
diff --git a/tools/eslint/node_modules/lodash/_matchesStrictComparable.js b/tools/eslint/node_modules/lodash/_matchesStrictComparable.js
new file mode 100644
index 00000000000000..70375e0e5dcfc3
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_matchesStrictComparable.js
@@ -0,0 +1,20 @@
+/**
+ * A specialized version of `matchesProperty` for source values suitable
+ * for strict equality comparisons, i.e. `===`.
+ *
+ * @private
+ * @param {string} key The key of the property to get.
+ * @param {*} srcValue The value to match.
+ * @returns {Function} Returns the new function.
+ */
+function matchesStrictComparable(key, srcValue) {
+ return function(object) {
+ if (object == null) {
+ return false;
+ }
+ return object[key] === srcValue &&
+ (srcValue !== undefined || (key in Object(object)));
+ };
+}
+
+module.exports = matchesStrictComparable;
diff --git a/tools/eslint/node_modules/lodash/_mergeData.js b/tools/eslint/node_modules/lodash/_mergeData.js
index 3be23cefa199ac..55fd5ee031b720 100644
--- a/tools/eslint/node_modules/lodash/_mergeData.js
+++ b/tools/eslint/node_modules/lodash/_mergeData.js
@@ -3,6 +3,9 @@ var composeArgs = require('./_composeArgs'),
copyArray = require('./_copyArray'),
replaceHolders = require('./_replaceHolders');
+/** Used as the internal argument placeholder. */
+var PLACEHOLDER = '__lodash_placeholder__';
+
/** Used to compose bitmasks for wrapper metadata. */
var BIND_FLAG = 1,
BIND_KEY_FLAG = 2,
@@ -11,9 +14,6 @@ var BIND_FLAG = 1,
ARY_FLAG = 128,
REARG_FLAG = 256;
-/** Used as the internal argument placeholder. */
-var PLACEHOLDER = '__lodash_placeholder__';
-
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMin = Math.min;
@@ -22,10 +22,11 @@ var nativeMin = Math.min;
*
* Merging metadata reduces the number of wrappers used to invoke a function.
* This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
- * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg`
- * modify function arguments, making the order in which they are executed important,
- * preventing the merging of metadata. However, we make an exception for a safe
- * combined case where curried functions have `_.ary` and or `_.rearg` applied.
+ * may be applied regardless of execution order. Methods like `_.ary` and
+ * `_.rearg` modify function arguments, making the order in which they are
+ * executed important, preventing the merging of metadata. However, we make
+ * an exception for a safe combined case where curried functions have `_.ary`
+ * and or `_.rearg` applied.
*
* @private
* @param {Array} data The destination metadata.
@@ -39,9 +40,9 @@ function mergeData(data, source) {
isCommon = newBitmask < (BIND_FLAG | BIND_KEY_FLAG | ARY_FLAG);
var isCombo =
- (srcBitmask == ARY_FLAG && (bitmask == CURRY_FLAG)) ||
- (srcBitmask == ARY_FLAG && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) ||
- (srcBitmask == (ARY_FLAG | REARG_FLAG) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG));
+ ((srcBitmask == ARY_FLAG) && (bitmask == CURRY_FLAG)) ||
+ ((srcBitmask == ARY_FLAG) && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) ||
+ ((srcBitmask == (ARY_FLAG | REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG));
// Exit early if metadata can't be merged.
if (!(isCommon || isCombo)) {
@@ -51,7 +52,7 @@ function mergeData(data, source) {
if (srcBitmask & BIND_FLAG) {
data[2] = source[2];
// Set when currying a bound function.
- newBitmask |= (bitmask & BIND_FLAG) ? 0 : CURRY_BOUND_FLAG;
+ newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG;
}
// Compose partial arguments.
var value = source[3];
diff --git a/tools/eslint/node_modules/lodash/_mergeDefaults.js b/tools/eslint/node_modules/lodash/_mergeDefaults.js
index b09c66b43d9d37..33375cc5bb42c6 100644
--- a/tools/eslint/node_modules/lodash/_mergeDefaults.js
+++ b/tools/eslint/node_modules/lodash/_mergeDefaults.js
@@ -10,13 +10,13 @@ var baseMerge = require('./_baseMerge'),
* @param {string} key The key of the property to merge.
* @param {Object} object The parent object of `objValue`.
* @param {Object} source The parent object of `srcValue`.
- * @param {Object} [stack] Tracks traversed source values and their merged counterparts.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ * counterparts.
* @returns {*} Returns the value to assign.
*/
function mergeDefaults(objValue, srcValue, key, object, source, stack) {
if (isObject(objValue) && isObject(srcValue)) {
- stack.set(srcValue, objValue);
- baseMerge(objValue, srcValue, undefined, mergeDefaults, stack);
+ baseMerge(objValue, srcValue, undefined, mergeDefaults, stack.set(srcValue, objValue));
}
return objValue;
}
diff --git a/tools/eslint/node_modules/lodash/_parent.js b/tools/eslint/node_modules/lodash/_parent.js
index e04ff6e2a9cb09..81d94d0de08443 100644
--- a/tools/eslint/node_modules/lodash/_parent.js
+++ b/tools/eslint/node_modules/lodash/_parent.js
@@ -1,5 +1,5 @@
-var baseSlice = require('./_baseSlice'),
- get = require('./get');
+var baseGet = require('./_baseGet'),
+ baseSlice = require('./_baseSlice');
/**
* Gets the parent value at `path` of `object`.
@@ -10,7 +10,7 @@ var baseSlice = require('./_baseSlice'),
* @returns {*} Returns the parent value.
*/
function parent(object, path) {
- return path.length == 1 ? object : get(object, baseSlice(path, 0, -1));
+ return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
}
module.exports = parent;
diff --git a/tools/eslint/node_modules/lodash/_replaceHolders.js b/tools/eslint/node_modules/lodash/_replaceHolders.js
index 3089e75e94d339..74360ec4d3bbf8 100644
--- a/tools/eslint/node_modules/lodash/_replaceHolders.js
+++ b/tools/eslint/node_modules/lodash/_replaceHolders.js
@@ -13,13 +13,14 @@ var PLACEHOLDER = '__lodash_placeholder__';
function replaceHolders(array, placeholder) {
var index = -1,
length = array.length,
- resIndex = -1,
+ resIndex = 0,
result = [];
while (++index < length) {
- if (array[index] === placeholder) {
+ var value = array[index];
+ if (value === placeholder || value === PLACEHOLDER) {
array[index] = PLACEHOLDER;
- result[++resIndex] = index;
+ result[resIndex++] = index;
}
}
return result;
diff --git a/tools/eslint/node_modules/lodash/_root.js b/tools/eslint/node_modules/lodash/_root.js
index b491ca4e6c7258..d2cfd311491c5d 100644
--- a/tools/eslint/node_modules/lodash/_root.js
+++ b/tools/eslint/node_modules/lodash/_root.js
@@ -7,10 +7,14 @@ var objectTypes = {
};
/** Detect free variable `exports`. */
-var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType)
+ ? exports
+ : undefined;
/** Detect free variable `module`. */
-var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
+ ? module
+ : undefined;
/** Detect free variable `global` from Node.js. */
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
@@ -30,6 +34,8 @@ var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
* The `this` value is used if it's the global object to avoid Greasemonkey's
* restricted `window` object, otherwise the `window` object is used.
*/
-var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+var root = freeGlobal ||
+ ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) ||
+ freeSelf || thisGlobal || Function('return this')();
module.exports = root;
diff --git a/tools/eslint/node_modules/lodash/_setData.js b/tools/eslint/node_modules/lodash/_setData.js
index 8b2efca0feb93c..d86c61086e5053 100644
--- a/tools/eslint/node_modules/lodash/_setData.js
+++ b/tools/eslint/node_modules/lodash/_setData.js
@@ -9,8 +9,9 @@ var HOT_COUNT = 150,
* Sets metadata for `func`.
*
* **Note:** If this function becomes hot, i.e. is invoked a lot in a short
- * period of time, it will trip its breaker and transition to an identity function
- * to avoid garbage collection pauses in V8. See [V8 issue 2070](https://code.google.com/p/v8/issues/detail?id=2070)
+ * period of time, it will trip its breaker and transition to an identity
+ * function to avoid garbage collection pauses in V8. See
+ * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
* for more details.
*
* @private
diff --git a/tools/eslint/node_modules/lodash/_stackSet.js b/tools/eslint/node_modules/lodash/_stackSet.js
index 0194d100f432de..76ca89a8df2b84 100644
--- a/tools/eslint/node_modules/lodash/_stackSet.js
+++ b/tools/eslint/node_modules/lodash/_stackSet.js
@@ -12,7 +12,7 @@ var LARGE_ARRAY_SIZE = 200;
* @memberOf Stack
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
- * @returns {Object} Returns the stack cache object.
+ * @returns {Object} Returns the stack cache instance.
*/
function stackSet(key, value) {
var data = this.__data__,
diff --git a/tools/eslint/node_modules/lodash/_stringToPath.js b/tools/eslint/node_modules/lodash/_stringToPath.js
index a8fd82ab71e61b..b6a1fc28aceea4 100644
--- a/tools/eslint/node_modules/lodash/_stringToPath.js
+++ b/tools/eslint/node_modules/lodash/_stringToPath.js
@@ -1,4 +1,5 @@
-var toString = require('./toString');
+var memoize = require('./memoize'),
+ toString = require('./toString');
/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g;
@@ -13,12 +14,12 @@ var reEscapeChar = /\\(\\)?/g;
* @param {string} string The string to convert.
* @returns {Array} Returns the property path array.
*/
-function stringToPath(string) {
+var stringToPath = memoize(function(string) {
var result = [];
toString(string).replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
});
return result;
-}
+});
module.exports = stringToPath;
diff --git a/tools/eslint/node_modules/lodash/_toArrayLikeObject.js b/tools/eslint/node_modules/lodash/_toArrayLikeObject.js
deleted file mode 100644
index be01dabc7b11bd..00000000000000
--- a/tools/eslint/node_modules/lodash/_toArrayLikeObject.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var isArrayLikeObject = require('./isArrayLikeObject');
-
-/**
- * Converts `value` to an array-like object if it's not one.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {Array} Returns the array-like object.
- */
-function toArrayLikeObject(value) {
- return isArrayLikeObject(value) ? value : [];
-}
-
-module.exports = toArrayLikeObject;
diff --git a/tools/eslint/node_modules/lodash/_toFunction.js b/tools/eslint/node_modules/lodash/_toFunction.js
deleted file mode 100644
index 4fa85d17165f2f..00000000000000
--- a/tools/eslint/node_modules/lodash/_toFunction.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var identity = require('./identity');
-
-/**
- * Converts `value` to a function if it's not one.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {Function} Returns the function.
- */
-function toFunction(value) {
- return typeof value == 'function' ? value : identity;
-}
-
-module.exports = toFunction;
diff --git a/tools/eslint/node_modules/lodash/_toSource.js b/tools/eslint/node_modules/lodash/_toSource.js
new file mode 100644
index 00000000000000..43f3ff8bf9f583
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_toSource.js
@@ -0,0 +1,23 @@
+/** Used to resolve the decompiled source of functions. */
+var funcToString = Function.prototype.toString;
+
+/**
+ * Converts `func` to its source code.
+ *
+ * @private
+ * @param {Function} func The function to process.
+ * @returns {string} Returns the source code.
+ */
+function toSource(func) {
+ if (func != null) {
+ try {
+ return funcToString.call(func);
+ } catch (e) {}
+ try {
+ return (func + '');
+ } catch (e) {}
+ }
+ return '';
+}
+
+module.exports = toSource;
diff --git a/tools/eslint/node_modules/lodash/add.js b/tools/eslint/node_modules/lodash/add.js
index d09785022c3d6f..d82c6522ae3e15 100644
--- a/tools/eslint/node_modules/lodash/add.js
+++ b/tools/eslint/node_modules/lodash/add.js
@@ -1,8 +1,11 @@
+var createMathOperation = require('./_createMathOperation');
+
/**
* Adds two numbers.
*
* @static
* @memberOf _
+ * @since 3.4.0
* @category Math
* @param {number} augend The first number in an addition.
* @param {number} addend The second number in an addition.
@@ -12,18 +15,8 @@
* _.add(6, 4);
* // => 10
*/
-function add(augend, addend) {
- var result;
- if (augend === undefined && addend === undefined) {
- return 0;
- }
- if (augend !== undefined) {
- result = augend;
- }
- if (addend !== undefined) {
- result = result === undefined ? addend : (result + addend);
- }
- return result;
-}
+var add = createMathOperation(function(augend, addend) {
+ return augend + addend;
+});
module.exports = add;
diff --git a/tools/eslint/node_modules/lodash/after.js b/tools/eslint/node_modules/lodash/after.js
index 41b01461423218..910923a9a61317 100644
--- a/tools/eslint/node_modules/lodash/after.js
+++ b/tools/eslint/node_modules/lodash/after.js
@@ -9,6 +9,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {number} n The number of calls before `func` is invoked.
* @param {Function} func The function to restrict.
@@ -24,7 +25,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* _.forEach(saves, function(type) {
* asyncSave({ 'type': type, 'complete': done });
* });
- * // => logs 'done saving!' after the two async saves have completed
+ * // => Logs 'done saving!' after the two async saves have completed.
*/
function after(n, func) {
if (typeof func != 'function') {
diff --git a/tools/eslint/node_modules/lodash/array.js b/tools/eslint/node_modules/lodash/array.js
index 01c121671791cd..bfded5ccee4e16 100644
--- a/tools/eslint/node_modules/lodash/array.js
+++ b/tools/eslint/node_modules/lodash/array.js
@@ -14,6 +14,7 @@ module.exports = {
'findLastIndex': require('./findLastIndex'),
'flatten': require('./flatten'),
'flattenDeep': require('./flattenDeep'),
+ 'flattenDepth': require('./flattenDepth'),
'fromPairs': require('./fromPairs'),
'head': require('./head'),
'indexOf': require('./indexOf'),
@@ -27,6 +28,7 @@ module.exports = {
'pull': require('./pull'),
'pullAll': require('./pullAll'),
'pullAllBy': require('./pullAllBy'),
+ 'pullAllWith': require('./pullAllWith'),
'pullAt': require('./pullAt'),
'remove': require('./remove'),
'reverse': require('./reverse'),
diff --git a/tools/eslint/node_modules/lodash/ary.js b/tools/eslint/node_modules/lodash/ary.js
index b3906acb3c77bd..e901f1b9db0db5 100644
--- a/tools/eslint/node_modules/lodash/ary.js
+++ b/tools/eslint/node_modules/lodash/ary.js
@@ -4,15 +4,16 @@ var createWrapper = require('./_createWrapper');
var ARY_FLAG = 128;
/**
- * Creates a function that accepts up to `n` arguments, ignoring any
- * additional arguments.
+ * Creates a function that invokes `func`, with up to `n` arguments,
+ * ignoring any additional arguments.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {Function} func The function to cap arguments for.
* @param {number} [n=func.length] The arity cap.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Function} Returns the new function.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/assign.js b/tools/eslint/node_modules/lodash/assign.js
index d766dd0c4a5a89..281e8acf1453b9 100644
--- a/tools/eslint/node_modules/lodash/assign.js
+++ b/tools/eslint/node_modules/lodash/assign.js
@@ -1,17 +1,33 @@
-var copyObject = require('./_copyObject'),
+var assignValue = require('./_assignValue'),
+ copyObject = require('./_copyObject'),
createAssigner = require('./_createAssigner'),
+ isArrayLike = require('./isArrayLike'),
+ isPrototype = require('./_isPrototype'),
keys = require('./keys');
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
+
+/** Built-in value references. */
+var propertyIsEnumerable = objectProto.propertyIsEnumerable;
+
+/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
+var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
+
/**
- * Assigns own enumerable properties of source objects to the destination
- * object. Source objects are applied from left to right. Subsequent sources
- * overwrite property assignments of previous sources.
+ * Assigns own enumerable string keyed properties of source objects to the
+ * destination object. Source objects are applied from left to right.
+ * Subsequent sources overwrite property assignments of previous sources.
*
* **Note:** This method mutates `object` and is loosely based on
* [`Object.assign`](https://mdn.io/Object/assign).
*
* @static
* @memberOf _
+ * @since 0.10.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
@@ -33,7 +49,15 @@ var copyObject = require('./_copyObject'),
* // => { 'a': 1, 'c': 3, 'e': 5 }
*/
var assign = createAssigner(function(object, source) {
- copyObject(source, keys(source), object);
+ if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
+ copyObject(source, keys(source), object);
+ return;
+ }
+ for (var key in source) {
+ if (hasOwnProperty.call(source, key)) {
+ assignValue(object, key, source[key]);
+ }
+ }
});
module.exports = assign;
diff --git a/tools/eslint/node_modules/lodash/assignIn.js b/tools/eslint/node_modules/lodash/assignIn.js
index b4177e6ab9372e..f48e92558f756f 100644
--- a/tools/eslint/node_modules/lodash/assignIn.js
+++ b/tools/eslint/node_modules/lodash/assignIn.js
@@ -1,7 +1,19 @@
-var copyObject = require('./_copyObject'),
+var assignValue = require('./_assignValue'),
+ copyObject = require('./_copyObject'),
createAssigner = require('./_createAssigner'),
+ isArrayLike = require('./isArrayLike'),
+ isPrototype = require('./_isPrototype'),
keysIn = require('./keysIn');
+/** Used for built-in method references. */
+var objectProto = Object.prototype;
+
+/** Built-in value references. */
+var propertyIsEnumerable = objectProto.propertyIsEnumerable;
+
+/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
+var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
+
/**
* This method is like `_.assign` except that it iterates over own and
* inherited source properties.
@@ -10,6 +22,7 @@ var copyObject = require('./_copyObject'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @alias extend
* @category Object
* @param {Object} object The destination object.
@@ -32,7 +45,13 @@ var copyObject = require('./_copyObject'),
* // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
*/
var assignIn = createAssigner(function(object, source) {
- copyObject(source, keysIn(source), object);
+ if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
+ copyObject(source, keysIn(source), object);
+ return;
+ }
+ for (var key in source) {
+ assignValue(object, key, source[key]);
+ }
});
module.exports = assignIn;
diff --git a/tools/eslint/node_modules/lodash/assignInWith.js b/tools/eslint/node_modules/lodash/assignInWith.js
index da73ef7c017264..9a24e4f0a8d6f0 100644
--- a/tools/eslint/node_modules/lodash/assignInWith.js
+++ b/tools/eslint/node_modules/lodash/assignInWith.js
@@ -3,15 +3,16 @@ var copyObjectWith = require('./_copyObjectWith'),
keysIn = require('./keysIn');
/**
- * This method is like `_.assignIn` except that it accepts `customizer` which
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
- * assignment is handled by the method instead. The `customizer` is invoked
- * with five arguments: (objValue, srcValue, key, object, source).
+ * This method is like `_.assignIn` except that it accepts `customizer`
+ * which is invoked to produce the assigned values. If `customizer` returns
+ * `undefined`, assignment is handled by the method instead. The `customizer`
+ * is invoked with five arguments: (objValue, srcValue, key, object, source).
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @alias extendWith
* @category Object
* @param {Object} object The destination object.
diff --git a/tools/eslint/node_modules/lodash/assignWith.js b/tools/eslint/node_modules/lodash/assignWith.js
index eb7915b508d45a..1f573fbc4b24da 100644
--- a/tools/eslint/node_modules/lodash/assignWith.js
+++ b/tools/eslint/node_modules/lodash/assignWith.js
@@ -3,15 +3,16 @@ var copyObjectWith = require('./_copyObjectWith'),
keys = require('./keys');
/**
- * This method is like `_.assign` except that it accepts `customizer` which
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
- * assignment is handled by the method instead. The `customizer` is invoked
- * with five arguments: (objValue, srcValue, key, object, source).
+ * This method is like `_.assign` except that it accepts `customizer`
+ * which is invoked to produce the assigned values. If `customizer` returns
+ * `undefined`, assignment is handled by the method instead. The `customizer`
+ * is invoked with five arguments: (objValue, srcValue, key, object, source).
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} sources The source objects.
diff --git a/tools/eslint/node_modules/lodash/at.js b/tools/eslint/node_modules/lodash/at.js
index cc361883543c1c..82ba3433db415f 100644
--- a/tools/eslint/node_modules/lodash/at.js
+++ b/tools/eslint/node_modules/lodash/at.js
@@ -7,6 +7,7 @@ var baseAt = require('./_baseAt'),
*
* @static
* @memberOf _
+ * @since 1.0.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {...(string|string[])} [paths] The property paths of elements to pick,
@@ -23,7 +24,7 @@ var baseAt = require('./_baseAt'),
* // => ['a', 'c']
*/
var at = rest(function(object, paths) {
- return baseAt(object, baseFlatten(paths));
+ return baseAt(object, baseFlatten(paths, 1));
});
module.exports = at;
diff --git a/tools/eslint/node_modules/lodash/attempt.js b/tools/eslint/node_modules/lodash/attempt.js
index 322bf2fd10e6c7..e65b2e6f5ff105 100644
--- a/tools/eslint/node_modules/lodash/attempt.js
+++ b/tools/eslint/node_modules/lodash/attempt.js
@@ -1,5 +1,5 @@
var apply = require('./_apply'),
- isObject = require('./isObject'),
+ isError = require('./isError'),
rest = require('./rest');
/**
@@ -8,8 +8,10 @@ var apply = require('./_apply'),
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Util
* @param {Function} func The function to attempt.
+ * @param {...*} [args] The arguments to invoke `func` with.
* @returns {*} Returns the `func` result or error object.
* @example
*
@@ -26,7 +28,7 @@ var attempt = rest(function(func, args) {
try {
return apply(func, undefined, args);
} catch (e) {
- return isObject(e) ? e : new Error(e);
+ return isError(e) ? e : new Error(e);
}
});
diff --git a/tools/eslint/node_modules/lodash/before.js b/tools/eslint/node_modules/lodash/before.js
index 47148b1fe09af4..a495adcbdc2cdd 100644
--- a/tools/eslint/node_modules/lodash/before.js
+++ b/tools/eslint/node_modules/lodash/before.js
@@ -10,6 +10,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {number} n The number of calls at which `func` is no longer invoked.
* @param {Function} func The function to restrict.
diff --git a/tools/eslint/node_modules/lodash/bind.js b/tools/eslint/node_modules/lodash/bind.js
index bd89d1f03b12f0..a41b94619ca6fb 100644
--- a/tools/eslint/node_modules/lodash/bind.js
+++ b/tools/eslint/node_modules/lodash/bind.js
@@ -1,4 +1,5 @@
var createWrapper = require('./_createWrapper'),
+ getPlaceholder = require('./_getPlaceholder'),
replaceHolders = require('./_replaceHolders'),
rest = require('./rest');
@@ -8,8 +9,7 @@ var BIND_FLAG = 1,
/**
* Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and prepends any additional `_.bind` arguments to those provided to the
- * bound function.
+ * and `partials` prepended to the arguments it receives.
*
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
* may be used as a placeholder for partially applied arguments.
@@ -19,6 +19,7 @@ var BIND_FLAG = 1,
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to bind.
* @param {*} thisArg The `this` binding of `func`.
@@ -44,9 +45,7 @@ var BIND_FLAG = 1,
var bind = rest(function(func, thisArg, partials) {
var bitmask = BIND_FLAG;
if (partials.length) {
- var placeholder = bind.placeholder,
- holders = replaceHolders(partials, placeholder);
-
+ var holders = replaceHolders(partials, getPlaceholder(bind));
bitmask |= PARTIAL_FLAG;
}
return createWrapper(func, bitmask, thisArg, partials, holders);
diff --git a/tools/eslint/node_modules/lodash/bindAll.js b/tools/eslint/node_modules/lodash/bindAll.js
index d5bde424951662..0d158803ee1260 100644
--- a/tools/eslint/node_modules/lodash/bindAll.js
+++ b/tools/eslint/node_modules/lodash/bindAll.js
@@ -10,6 +10,7 @@ var arrayEach = require('./_arrayEach'),
* **Note:** This method doesn't set the "length" property of bound functions.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {Object} object The object to bind and assign the bound methods to.
@@ -27,10 +28,10 @@ var arrayEach = require('./_arrayEach'),
*
* _.bindAll(view, 'onClick');
* jQuery(element).on('click', view.onClick);
- * // => logs 'clicked docs' when clicked
+ * // => Logs 'clicked docs' when clicked.
*/
var bindAll = rest(function(object, methodNames) {
- arrayEach(baseFlatten(methodNames), function(key) {
+ arrayEach(baseFlatten(methodNames, 1), function(key) {
object[key] = bind(object[key], object);
});
return object;
diff --git a/tools/eslint/node_modules/lodash/bindKey.js b/tools/eslint/node_modules/lodash/bindKey.js
index 5cefad3ed80e61..364dd698122c9b 100644
--- a/tools/eslint/node_modules/lodash/bindKey.js
+++ b/tools/eslint/node_modules/lodash/bindKey.js
@@ -1,4 +1,5 @@
var createWrapper = require('./_createWrapper'),
+ getPlaceholder = require('./_getPlaceholder'),
replaceHolders = require('./_replaceHolders'),
rest = require('./rest');
@@ -8,12 +9,12 @@ var BIND_FLAG = 1,
PARTIAL_FLAG = 32;
/**
- * Creates a function that invokes the method at `object[key]` and prepends
- * any additional `_.bindKey` arguments to those provided to the bound function.
+ * Creates a function that invokes the method at `object[key]` with `partials`
+ * prepended to the arguments it receives.
*
* This method differs from `_.bind` by allowing bound functions to reference
- * methods that may be redefined or don't yet exist.
- * See [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
+ * methods that may be redefined or don't yet exist. See
+ * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
* for more details.
*
* The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
@@ -21,6 +22,7 @@ var BIND_FLAG = 1,
*
* @static
* @memberOf _
+ * @since 0.10.0
* @category Function
* @param {Object} object The object to invoke the method on.
* @param {string} key The key of the method.
@@ -54,9 +56,7 @@ var BIND_FLAG = 1,
var bindKey = rest(function(object, key, partials) {
var bitmask = BIND_FLAG | BIND_KEY_FLAG;
if (partials.length) {
- var placeholder = bindKey.placeholder,
- holders = replaceHolders(partials, placeholder);
-
+ var holders = replaceHolders(partials, getPlaceholder(bindKey));
bitmask |= PARTIAL_FLAG;
}
return createWrapper(key, bitmask, object, partials, holders);
diff --git a/tools/eslint/node_modules/lodash/camelCase.js b/tools/eslint/node_modules/lodash/camelCase.js
index 00239e3c816afc..d7390def558f67 100644
--- a/tools/eslint/node_modules/lodash/camelCase.js
+++ b/tools/eslint/node_modules/lodash/camelCase.js
@@ -6,6 +6,7 @@ var capitalize = require('./capitalize'),
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the camel cased string.
@@ -14,10 +15,10 @@ var capitalize = require('./capitalize'),
* _.camelCase('Foo Bar');
* // => 'fooBar'
*
- * _.camelCase('--foo-bar');
+ * _.camelCase('--foo-bar--');
* // => 'fooBar'
*
- * _.camelCase('__foo_bar__');
+ * _.camelCase('__FOO_BAR__');
* // => 'fooBar'
*/
var camelCase = createCompounder(function(result, word, index) {
diff --git a/tools/eslint/node_modules/lodash/capitalize.js b/tools/eslint/node_modules/lodash/capitalize.js
index 4daec0354c1941..3e1600e7d9e919 100644
--- a/tools/eslint/node_modules/lodash/capitalize.js
+++ b/tools/eslint/node_modules/lodash/capitalize.js
@@ -7,6 +7,7 @@ var toString = require('./toString'),
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to capitalize.
* @returns {string} Returns the capitalized string.
diff --git a/tools/eslint/node_modules/lodash/castArray.js b/tools/eslint/node_modules/lodash/castArray.js
new file mode 100644
index 00000000000000..e470bdb9b9156a
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/castArray.js
@@ -0,0 +1,44 @@
+var isArray = require('./isArray');
+
+/**
+ * Casts `value` as an array if it's not one.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.4.0
+ * @category Lang
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast array.
+ * @example
+ *
+ * _.castArray(1);
+ * // => [1]
+ *
+ * _.castArray({ 'a': 1 });
+ * // => [{ 'a': 1 }]
+ *
+ * _.castArray('abc');
+ * // => ['abc']
+ *
+ * _.castArray(null);
+ * // => [null]
+ *
+ * _.castArray(undefined);
+ * // => [undefined]
+ *
+ * _.castArray();
+ * // => []
+ *
+ * var array = [1, 2, 3];
+ * console.log(_.castArray(array) === array);
+ * // => true
+ */
+function castArray() {
+ if (!arguments.length) {
+ return [];
+ }
+ var value = arguments[0];
+ return isArray(value) ? value : [value];
+}
+
+module.exports = castArray;
diff --git a/tools/eslint/node_modules/lodash/ceil.js b/tools/eslint/node_modules/lodash/ceil.js
index ecf2f12321b223..56c8722cfc7cec 100644
--- a/tools/eslint/node_modules/lodash/ceil.js
+++ b/tools/eslint/node_modules/lodash/ceil.js
@@ -5,6 +5,7 @@ var createRound = require('./_createRound');
*
* @static
* @memberOf _
+ * @since 3.10.0
* @category Math
* @param {number} number The number to round up.
* @param {number} [precision=0] The precision to round up to.
diff --git a/tools/eslint/node_modules/lodash/chain.js b/tools/eslint/node_modules/lodash/chain.js
index 3300933e09bf94..f6cd6475ffdf17 100644
--- a/tools/eslint/node_modules/lodash/chain.js
+++ b/tools/eslint/node_modules/lodash/chain.js
@@ -1,11 +1,13 @@
var lodash = require('./wrapperLodash');
/**
- * Creates a `lodash` object that wraps `value` with explicit method chaining enabled.
- * The result of such method chaining must be unwrapped with `_#value`.
+ * Creates a `lodash` wrapper instance that wraps `value` with explicit method
+ * chain sequences enabled. The result of such sequences must be unwrapped
+ * with `_#value`.
*
* @static
* @memberOf _
+ * @since 1.3.0
* @category Seq
* @param {*} value The value to wrap.
* @returns {Object} Returns the new `lodash` wrapper instance.
diff --git a/tools/eslint/node_modules/lodash/chunk.js b/tools/eslint/node_modules/lodash/chunk.js
index b4bbc7bef16f6e..f2094743700775 100644
--- a/tools/eslint/node_modules/lodash/chunk.js
+++ b/tools/eslint/node_modules/lodash/chunk.js
@@ -1,4 +1,5 @@
var baseSlice = require('./_baseSlice'),
+ isIterateeCall = require('./_isIterateeCall'),
toInteger = require('./toInteger');
/* Built-in method references for those with the same name as other `lodash` methods. */
@@ -12,9 +13,11 @@ var nativeCeil = Math.ceil,
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to process.
- * @param {number} [size=0] The length of each chunk.
+ * @param {number} [size=1] The length of each chunk
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the new array containing chunks.
* @example
*
@@ -24,19 +27,22 @@ var nativeCeil = Math.ceil,
* _.chunk(['a', 'b', 'c', 'd'], 3);
* // => [['a', 'b', 'c'], ['d']]
*/
-function chunk(array, size) {
- size = nativeMax(toInteger(size), 0);
-
+function chunk(array, size, guard) {
+ if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
+ size = 1;
+ } else {
+ size = nativeMax(toInteger(size), 0);
+ }
var length = array ? array.length : 0;
if (!length || size < 1) {
return [];
}
var index = 0,
- resIndex = -1,
+ resIndex = 0,
result = Array(nativeCeil(length / size));
while (index < length) {
- result[++resIndex] = baseSlice(array, index, (index += size));
+ result[resIndex++] = baseSlice(array, index, (index += size));
}
return result;
}
diff --git a/tools/eslint/node_modules/lodash/clamp.js b/tools/eslint/node_modules/lodash/clamp.js
index 9e186d8182a5d3..91a72c9782dc92 100644
--- a/tools/eslint/node_modules/lodash/clamp.js
+++ b/tools/eslint/node_modules/lodash/clamp.js
@@ -6,6 +6,7 @@ var baseClamp = require('./_baseClamp'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Number
* @param {number} number The number to clamp.
* @param {number} [lower] The lower bound.
diff --git a/tools/eslint/node_modules/lodash/clone.js b/tools/eslint/node_modules/lodash/clone.js
index 08e9744f2df73e..d33799250abdd1 100644
--- a/tools/eslint/node_modules/lodash/clone.js
+++ b/tools/eslint/node_modules/lodash/clone.js
@@ -13,6 +13,7 @@ var baseClone = require('./_baseClone');
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to clone.
* @returns {*} Returns the cloned value.
@@ -25,7 +26,7 @@ var baseClone = require('./_baseClone');
* // => true
*/
function clone(value) {
- return baseClone(value);
+ return baseClone(value, false, true);
}
module.exports = clone;
diff --git a/tools/eslint/node_modules/lodash/cloneDeep.js b/tools/eslint/node_modules/lodash/cloneDeep.js
index 9fbf338b3452e1..037002eef5f7d3 100644
--- a/tools/eslint/node_modules/lodash/cloneDeep.js
+++ b/tools/eslint/node_modules/lodash/cloneDeep.js
@@ -5,6 +5,7 @@ var baseClone = require('./_baseClone');
*
* @static
* @memberOf _
+ * @since 1.0.0
* @category Lang
* @param {*} value The value to recursively clone.
* @returns {*} Returns the deep cloned value.
@@ -17,7 +18,7 @@ var baseClone = require('./_baseClone');
* // => false
*/
function cloneDeep(value) {
- return baseClone(value, true);
+ return baseClone(value, true, true);
}
module.exports = cloneDeep;
diff --git a/tools/eslint/node_modules/lodash/cloneDeepWith.js b/tools/eslint/node_modules/lodash/cloneDeepWith.js
index be5bb57296d1f6..581ab9fa83b96f 100644
--- a/tools/eslint/node_modules/lodash/cloneDeepWith.js
+++ b/tools/eslint/node_modules/lodash/cloneDeepWith.js
@@ -5,6 +5,7 @@ var baseClone = require('./_baseClone');
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to recursively clone.
* @param {Function} [customizer] The function to customize cloning.
@@ -27,7 +28,7 @@ var baseClone = require('./_baseClone');
* // => 20
*/
function cloneDeepWith(value, customizer) {
- return baseClone(value, true, customizer);
+ return baseClone(value, true, true, customizer);
}
module.exports = cloneDeepWith;
diff --git a/tools/eslint/node_modules/lodash/cloneWith.js b/tools/eslint/node_modules/lodash/cloneWith.js
index 1bc6035a211de8..df731c7af62661 100644
--- a/tools/eslint/node_modules/lodash/cloneWith.js
+++ b/tools/eslint/node_modules/lodash/cloneWith.js
@@ -2,12 +2,13 @@ var baseClone = require('./_baseClone');
/**
* This method is like `_.clone` except that it accepts `customizer` which
- * is invoked to produce the cloned value. If `customizer` returns `undefined`
+ * is invoked to produce the cloned value. If `customizer` returns `undefined`,
* cloning is handled by the method instead. The `customizer` is invoked with
* up to four arguments; (value [, index|key, object, stack]).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to clone.
* @param {Function} [customizer] The function to customize cloning.
@@ -30,7 +31,7 @@ var baseClone = require('./_baseClone');
* // => 0
*/
function cloneWith(value, customizer) {
- return baseClone(value, false, customizer);
+ return baseClone(value, false, true, customizer);
}
module.exports = cloneWith;
diff --git a/tools/eslint/node_modules/lodash/collection.js b/tools/eslint/node_modules/lodash/collection.js
index 6d37b3fd12bbe3..22b0c8bce7a097 100644
--- a/tools/eslint/node_modules/lodash/collection.js
+++ b/tools/eslint/node_modules/lodash/collection.js
@@ -8,6 +8,8 @@ module.exports = {
'find': require('./find'),
'findLast': require('./findLast'),
'flatMap': require('./flatMap'),
+ 'flatMapDeep': require('./flatMapDeep'),
+ 'flatMapDepth': require('./flatMapDepth'),
'forEach': require('./forEach'),
'forEachRight': require('./forEachRight'),
'groupBy': require('./groupBy'),
diff --git a/tools/eslint/node_modules/lodash/commit.js b/tools/eslint/node_modules/lodash/commit.js
index 1f87f505250338..fe4db71783bd99 100644
--- a/tools/eslint/node_modules/lodash/commit.js
+++ b/tools/eslint/node_modules/lodash/commit.js
@@ -1,10 +1,11 @@
var LodashWrapper = require('./_LodashWrapper');
/**
- * Executes the chained sequence and returns the wrapped result.
+ * Executes the chain sequence and returns the wrapped result.
*
* @name commit
* @memberOf _
+ * @since 3.2.0
* @category Seq
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
diff --git a/tools/eslint/node_modules/lodash/compact.js b/tools/eslint/node_modules/lodash/compact.js
index 1dc1c55e8f1efb..790f31199ba101 100644
--- a/tools/eslint/node_modules/lodash/compact.js
+++ b/tools/eslint/node_modules/lodash/compact.js
@@ -4,6 +4,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to compact.
* @returns {Array} Returns the new array of filtered values.
@@ -15,13 +16,13 @@
function compact(array) {
var index = -1,
length = array ? array.length : 0,
- resIndex = -1,
+ resIndex = 0,
result = [];
while (++index < length) {
var value = array[index];
if (value) {
- result[++resIndex] = value;
+ result[resIndex++] = value;
}
}
return result;
diff --git a/tools/eslint/node_modules/lodash/concat.js b/tools/eslint/node_modules/lodash/concat.js
index a3a78df0ec7a5b..de9270b4828954 100644
--- a/tools/eslint/node_modules/lodash/concat.js
+++ b/tools/eslint/node_modules/lodash/concat.js
@@ -1,7 +1,7 @@
var arrayConcat = require('./_arrayConcat'),
baseFlatten = require('./_baseFlatten'),
- isArray = require('./isArray'),
- rest = require('./rest');
+ castArray = require('./castArray'),
+ copyArray = require('./_copyArray');
/**
* Creates a new array concatenating `array` with any additional arrays
@@ -9,6 +9,7 @@ var arrayConcat = require('./_arrayConcat'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to concatenate.
* @param {...*} [values] The values to concatenate.
@@ -24,12 +25,18 @@ var arrayConcat = require('./_arrayConcat'),
* console.log(array);
* // => [1]
*/
-var concat = rest(function(array, values) {
- if (!isArray(array)) {
- array = array == null ? [] : [Object(array)];
+function concat() {
+ var length = arguments.length,
+ array = castArray(arguments[0]);
+
+ if (length < 2) {
+ return length ? copyArray(array) : [];
+ }
+ var args = Array(length - 1);
+ while (length--) {
+ args[length - 1] = arguments[length];
}
- values = baseFlatten(values);
- return arrayConcat(array, values);
-});
+ return arrayConcat(array, baseFlatten(args, 1));
+}
module.exports = concat;
diff --git a/tools/eslint/node_modules/lodash/cond.js b/tools/eslint/node_modules/lodash/cond.js
index 593ac9e2e1c483..d851d07414b873 100644
--- a/tools/eslint/node_modules/lodash/cond.js
+++ b/tools/eslint/node_modules/lodash/cond.js
@@ -14,6 +14,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {Array} pairs The predicate-function pairs.
* @returns {Function} Returns the new function.
@@ -35,13 +36,14 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* // => 'no match'
*/
function cond(pairs) {
- var length = pairs ? pairs.length : 0;
+ var length = pairs ? pairs.length : 0,
+ toIteratee = baseIteratee;
pairs = !length ? [] : arrayMap(pairs, function(pair) {
if (typeof pair[1] != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
- return [baseIteratee(pair[0]), pair[1]];
+ return [toIteratee(pair[0]), pair[1]];
});
return rest(function(args) {
diff --git a/tools/eslint/node_modules/lodash/conforms.js b/tools/eslint/node_modules/lodash/conforms.js
index 2bfeca2502fa4d..6ec590f30b7d20 100644
--- a/tools/eslint/node_modules/lodash/conforms.js
+++ b/tools/eslint/node_modules/lodash/conforms.js
@@ -8,6 +8,7 @@ var baseClone = require('./_baseClone'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {Object} source The object of property predicates to conform to.
* @returns {Function} Returns the new function.
diff --git a/tools/eslint/node_modules/lodash/constant.js b/tools/eslint/node_modules/lodash/constant.js
index 584480451a7722..59bcb420263b8d 100644
--- a/tools/eslint/node_modules/lodash/constant.js
+++ b/tools/eslint/node_modules/lodash/constant.js
@@ -3,6 +3,7 @@
*
* @static
* @memberOf _
+ * @since 2.4.0
* @category Util
* @param {*} value The value to return from the new function.
* @returns {Function} Returns the new function.
diff --git a/tools/eslint/node_modules/lodash/core.js b/tools/eslint/node_modules/lodash/core.js
index ee2a004e74702d..b6e5b3244565a4 100644
--- a/tools/eslint/node_modules/lodash/core.js
+++ b/tools/eslint/node_modules/lodash/core.js
@@ -1,11 +1,11 @@
/**
* @license
- * lodash 4.3.0 (Custom Build)
+ * lodash 4.9.0 (Custom Build)
* Build: `lodash core -o ./dist/lodash.core.js`
- * Copyright 2012-2016 The Dojo Foundation
+ * Copyright jQuery Foundation and other contributors
+ * Released under MIT license
* Based on Underscore.js 1.8.3
- * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- * Available under MIT license
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
;(function() {
@@ -13,7 +13,10 @@
var undefined;
/** Used as the semantic version number. */
- var VERSION = '4.3.0';
+ var VERSION = '4.9.0';
+
+ /** Used as the `TypeError` message for "Functions" methods. */
+ var FUNC_ERROR_TEXT = 'Expected a function';
/** Used to compose bitmasks for wrapper metadata. */
var BIND_FLAG = 1,
@@ -23,11 +26,9 @@
var UNORDERED_COMPARE_FLAG = 1,
PARTIAL_COMPARE_FLAG = 2;
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT = 'Expected a function';
-
/** Used as references for various `Number` constants. */
- var MAX_SAFE_INTEGER = 9007199254740991;
+ var INFINITY = 1 / 0,
+ MAX_SAFE_INTEGER = 9007199254740991;
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
@@ -66,10 +67,19 @@
};
/** Detect free variable `exports`. */
- var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+ var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType)
+ ? exports
+ : undefined;
/** Detect free variable `module`. */
- var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+ var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
+ ? module
+ : undefined;
+
+ /** Detect the popular CommonJS extension `module.exports`. */
+ var moduleExports = (freeModule && freeModule.exports === freeExports)
+ ? freeExports
+ : undefined;
/** Detect free variable `global` from Node.js. */
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
@@ -80,9 +90,6 @@
/** Detect free variable `window`. */
var freeWindow = checkGlobal(objectTypes[typeof window] && window);
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = (freeModule && freeModule.exports === freeExports) ? freeExports : null;
-
/** Detect `this` as the global object. */
var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
@@ -92,7 +99,9 @@
* The `this` value is used if it's the global object to avoid Greasemonkey's
* restricted `window` object, otherwise the `window` object is used.
*/
- var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+ var root = freeGlobal ||
+ ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) ||
+ freeSelf || thisGlobal || Function('return this')();
/*--------------------------------------------------------------------------*/
@@ -117,13 +126,7 @@
* @returns {Array} Returns `array`.
*/
function arrayPush(array, values) {
- var index = -1,
- length = values.length,
- offset = array.length;
-
- while (++index < length) {
- array[offset + index] = values[index];
- }
+ array.push.apply(array, values);
return array;
}
@@ -165,7 +168,8 @@
* @param {Array|Object} collection The collection to search.
* @param {Function} predicate The function invoked per iteration.
* @param {Function} eachFunc The function to iterate over `collection`.
- * @param {boolean} [retKey] Specify returning the key of the found element instead of the element itself.
+ * @param {boolean} [retKey] Specify returning the key of the found element
+ * instead of the element itself.
* @returns {*} Returns the found element or its key, else `undefined`.
*/
function baseFind(collection, predicate, eachFunc, retKey) {
@@ -187,7 +191,8 @@
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of `collection` as the initial value.
+ * @param {boolean} initAccum Specify using the first or last element of
+ * `collection` as the initial value.
* @param {Function} eachFunc The function to iterate over `collection`.
* @returns {*} Returns the accumulated value.
*/
@@ -352,7 +357,8 @@
var idCounter = 0;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -365,6 +371,7 @@
Symbol = root.Symbol,
Uint8Array = root.Uint8Array,
enumerate = Reflect ? Reflect.enumerate : undefined,
+ objectCreate = Object.create,
propertyIsEnumerable = objectProto.propertyIsEnumerable;
/* Built-in method references for those with the same name as other `lodash` methods. */
@@ -372,29 +379,32 @@
nativeKeys = Object.keys,
nativeMax = Math.max;
+ /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
+ var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
+
/*------------------------------------------------------------------------*/
/**
* Creates a `lodash` object which wraps `value` to enable implicit method
- * chaining. Methods that operate on and return arrays, collections, and
- * functions can be chained together. Methods that retrieve a single value or
- * may return a primitive value will automatically end the chain sequence and
- * return the unwrapped value. Otherwise, the value must be unwrapped with
- * `_#value`.
+ * chain sequences. Methods that operate on and return arrays, collections,
+ * and functions can be chained together. Methods that retrieve a single value
+ * or may return a primitive value will automatically end the chain sequence
+ * and return the unwrapped value. Otherwise, the value must be unwrapped
+ * with `_#value`.
*
- * Explicit chaining, which must be unwrapped with `_#value` in all cases,
- * may be enabled using `_.chain`.
+ * Explicit chain sequences, which must be unwrapped with `_#value`, may be
+ * enabled using `_.chain`.
*
* The execution of chained methods is lazy, that is, it's deferred until
* `_#value` is implicitly or explicitly called.
*
- * Lazy evaluation allows several methods to support shortcut fusion. Shortcut
- * fusion is an optimization to merge iteratee calls; this avoids the creation
- * of intermediate arrays and can greatly reduce the number of iteratee executions.
- * Sections of a chain sequence qualify for shortcut fusion if the section is
- * applied to an array of at least two hundred elements and any iteratees
- * accept only one argument. The heuristic for whether a section qualifies
- * for shortcut fusion is subject to change.
+ * Lazy evaluation allows several methods to support shortcut fusion.
+ * Shortcut fusion is an optimization to merge iteratee calls; this avoids
+ * the creation of intermediate arrays and can greatly reduce the number of
+ * iteratee executions. Sections of a chain sequence qualify for shortcut
+ * fusion if the section is applied to an array of at least `200` elements
+ * and any iteratees accept only one argument. The heuristic for whether a
+ * section qualifies for shortcut fusion is subject to change.
*
* Chaining is supported in custom builds as long as the `_#value` method is
* directly or indirectly included in the build.
@@ -413,51 +423,55 @@
* `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
*
* The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`,
- * `at`, `before`, `bind`, `bindAll`, `bindKey`, `chain`, `chunk`, `commit`,
- * `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, `curry`,
- * `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, `difference`,
- * `differenceBy`, `differenceWith`, `drop`, `dropRight`, `dropRightWhile`,
- * `dropWhile`, `fill`, `filter`, `flatten`, `flattenDeep`, `flip`, `flow`,
- * `flowRight`, `fromPairs`, `functions`, `functionsIn`, `groupBy`, `initial`,
- * `intersection`, `intersectionBy`, `intersectionWith`, `invert`, `invertBy`,
- * `invokeMap`, `iteratee`, `keyBy`, `keys`, `keysIn`, `map`, `mapKeys`,
- * `mapValues`, `matches`, `matchesProperty`, `memoize`, `merge`, `mergeWith`,
- * `method`, `methodOf`, `mixin`, `negate`, `nthArg`, `omit`, `omitBy`, `once`,
- * `orderBy`, `over`, `overArgs`, `overEvery`, `overSome`, `partial`,
- * `partialRight`, `partition`, `pick`, `pickBy`, `plant`, `property`,
- * `propertyOf`, `pull`, `pullAll`, `pullAllBy`, `pullAt`, `push`, `range`,
- * `rangeRight`, `rearg`, `reject`, `remove`, `rest`, `reverse`, `sampleSize`,
- * `set`, `setWith`, `shuffle`, `slice`, `sort`, `sortBy`, `splice`, `spread`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `tap`, `throttle`,
- * `thru`, `toArray`, `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`,
- * `transform`, `unary`, `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`,
- * `uniqWith`, `unset`, `unshift`, `unzip`, `unzipWith`, `values`, `valuesIn`,
- * `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`, `zipObject`,
- * `zipObjectDeep`, and `zipWith`
+ * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
+ * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
+ * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
+ * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
+ * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
+ * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
+ * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
+ * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
+ * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
+ * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
+ * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
+ * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
+ * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
+ * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
+ * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
+ * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
+ * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
+ * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
+ * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
+ * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
+ * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
+ * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
+ * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
+ * `zipObject`, `zipObjectDeep`, and `zipWith`
*
* The wrapper methods that are **not** chainable by default are:
* `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `endsWith`, `eq`,
- * `escape`, `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`,
- * `findLast`, `findLastIndex`, `findLastKey`, `floor`, `forEach`, `forEachRight`,
- * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
- * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
- * `isArguments`, `isArray`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`,
+ * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`,
+ * `eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`,
+ * `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`,
+ * `floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`,
+ * `forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`,
+ * `includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`,
+ * `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`, `isBuffer`,
* `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`, `isError`,
- * `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMatch`, `isMatchWith`,
- * `isNaN`, `isNative`, `isNil`, `isNull`, `isNumber`, `isObject`, `isObjectLike`,
- * `isPlainObject`, `isRegExp`, `isSafeInteger`, `isString`, `isUndefined`,
- * `isTypedArray`, `join`, `kebabCase`, `last`, `lastIndexOf`, `lowerCase`,
- * `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `min`, `minBy`,
+ * `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`, `isMatch`,
+ * `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, `isNumber`,
+ * `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, `isSafeInteger`,
+ * `isSet`, `isString`, `isUndefined`, `isTypedArray`, `isWeakMap`, `isWeakSet`,
+ * `join`, `kebabCase`, `last`, `lastIndexOf`, `lowerCase`, `lowerFirst`,
+ * `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`, `min`, `minBy`, `multiply`,
* `noConflict`, `noop`, `now`, `pad`, `padEnd`, `padStart`, `parseInt`,
* `pop`, `random`, `reduce`, `reduceRight`, `repeat`, `result`, `round`,
* `runInContext`, `sample`, `shift`, `size`, `snakeCase`, `some`, `sortedIndex`,
* `sortedIndexBy`, `sortedLastIndex`, `sortedLastIndexBy`, `startCase`,
- * `startsWith`, `subtract`, `sum`, `sumBy`, `template`, `times`, `toLower`,
- * `toInteger`, `toLength`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`,
- * `trim`, `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`,
- * `upperCase`, `upperFirst`, `value`, and `words`
+ * `startsWith`, `subtract`, `sum`, `sumBy`, `template`, `times`, `toInteger`,
+ * `toJSON`, `toLength`, `toLower`, `toNumber`, `toSafeInteger`, `toString`,
+ * `toUpper`, `trim`, `trimEnd`, `trimStart`, `truncate`, `unescape`,
+ * `uniqueId`, `upperCase`, `upperFirst`, `value`, and `words`
*
* @name _
* @constructor
@@ -486,15 +500,9 @@
* // => true
*/
function lodash(value) {
- if (isObjectLike(value) && !isArray(value)) {
- if (value instanceof LodashWrapper) {
- return value;
- }
- if (hasOwnProperty.call(value, '__wrapped__')) {
- return wrapperClone(value);
- }
- }
- return new LodashWrapper(value);
+ return value instanceof LodashWrapper
+ ? value
+ : new LodashWrapper(value);
}
/**
@@ -502,7 +510,7 @@
*
* @private
* @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable chaining for all wrapper methods.
+ * @param {boolean} [chainAll] Enable explicit method chain sequences.
*/
function LodashWrapper(value, chainAll) {
this.__wrapped__ = value;
@@ -510,6 +518,9 @@
this.__chain__ = !!chainAll;
}
+ LodashWrapper.prototype = baseCreate(lodash.prototype);
+ LodashWrapper.prototype.constructor = LodashWrapper;
+
/*------------------------------------------------------------------------*/
/**
@@ -542,8 +553,7 @@
*/
function assignValue(object, key, value) {
var objValue = object[key];
- if ((!eq(objValue, value) ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) ||
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
object[key] = value;
}
@@ -557,17 +567,9 @@
* @param {Object} prototype The object to inherit from.
* @returns {Object} Returns the new object.
*/
- var baseCreate = (function() {
- function object() {}
- return function(prototype) {
- if (isObject(prototype)) {
- object.prototype = prototype;
- var result = new object;
- object.prototype = undefined;
- }
- return result || {};
- };
- }());
+ function baseCreate(proto) {
+ return isObject(proto) ? objectCreate(proto) : {};
+ }
/**
* The base implementation of `_.delay` and `_.defer` which accepts an array
@@ -602,7 +604,8 @@
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`
*/
function baseEvery(collection, predicate) {
var result = true;
@@ -636,24 +639,25 @@
*
* @private
* @param {Array} array The array to flatten.
- * @param {boolean} [isDeep] Specify a deep flatten.
- * @param {boolean} [isStrict] Restrict flattening to arrays-like objects.
+ * @param {number} depth The maximum recursion depth.
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
* @param {Array} [result=[]] The initial result value.
* @returns {Array} Returns the new flattened array.
*/
- function baseFlatten(array, isDeep, isStrict, result) {
- result || (result = []);
-
+ function baseFlatten(array, depth, predicate, isStrict, result) {
var index = -1,
length = array.length;
+ predicate || (predicate = isFlattenable);
+ result || (result = []);
+
while (++index < length) {
var value = array[index];
- if (isArrayLikeObject(value) &&
- (isStrict || isArray(value) || isArguments(value))) {
- if (isDeep) {
+ if (depth > 0 && predicate(value)) {
+ if (depth > 1) {
// Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, isDeep, isStrict, result);
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
} else {
arrayPush(result, value);
}
@@ -665,10 +669,9 @@
}
/**
- * The base implementation of `baseForIn` and `baseForOwn` which iterates
- * over `object` properties returned by `keysFunc` invoking `iteratee` for
- * each property. Iteratee functions may exit iteration early by explicitly
- * returning `false`.
+ * The base implementation of `baseForOwn` which iterates over `object`
+ * properties returned by `keysFunc` invoking `iteratee` for each property.
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
@@ -740,7 +743,8 @@
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
+ * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
@@ -752,44 +756,48 @@
if (!objIsArr) {
objTag = objectToString.call(object);
- if (objTag == argsTag) {
- objTag = objectTag;
- }
+ objTag = objTag == argsTag ? objectTag : objTag;
}
if (!othIsArr) {
othTag = objectToString.call(other);
- if (othTag == argsTag) {
- othTag = objectTag;
- }
+ othTag = othTag == argsTag ? objectTag : othTag;
}
var objIsObj = objTag == objectTag && !isHostObject(object),
othIsObj = othTag == objectTag && !isHostObject(other),
isSameTag = objTag == othTag;
- if (isSameTag && !(objIsArr || objIsObj)) {
- return equalByTag(object, other, objTag, equalFunc, customizer, bitmask);
+ stack || (stack = []);
+ var stacked = find(stack, function(entry) {
+ return entry[0] === object;
+ });
+ if (stacked && stacked[1]) {
+ return stacked[1] == other;
}
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
- if (!isPartial) {
+ stack.push([object, other]);
+ if (isSameTag && !objIsObj) {
+ var result = (objIsArr || isTypedArray(object))
+ ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
+ : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
+ stack.pop();
+ return result;
+ }
+ if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
if (objIsWrapped || othIsWrapped) {
- return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, bitmask, stack);
+ var objUnwrapped = objIsWrapped ? object.value() : object,
+ othUnwrapped = othIsWrapped ? other.value() : other;
+
+ var result = equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
+ stack.pop();
+ return result;
}
}
if (!isSameTag) {
return false;
}
- stack || (stack = []);
- var stacked = find(stack, function(entry) {
- return entry[0] === object;
- });
- if (stacked && stacked[1]) {
- return stacked[1] == other;
- }
- stack.push([object, other]);
- var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, bitmask, stack);
+ var result = equalObjects(object, other, equalFunc, customizer, bitmask, stack);
stack.pop();
return result;
}
@@ -802,13 +810,13 @@
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(func) {
- var type = typeof func;
- if (type == 'function') {
+ if (typeof func == 'function') {
return func;
}
- return func == null
- ? identity
- : (type == 'object' ? baseMatches : baseProperty)(func);
+ if (func == null) {
+ return identity;
+ }
+ return (typeof func == 'object' ? baseMatches : baseProperty)(func);
}
/**
@@ -816,7 +824,6 @@
* property of prototypes or treat sparse arrays as dense.
*
* @private
- * @type Function
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
@@ -896,11 +903,11 @@
/**
* The base implementation of `_.pick` without support for individual
- * property names.
+ * property identifiers.
*
* @private
* @param {Object} object The source object.
- * @param {string[]} props The property names to pick.
+ * @param {string[]} props The property identifiers to pick.
* @returns {Object} Returns the new object.
*/
function basePick(object, props) {
@@ -974,7 +981,8 @@
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
function baseSome(collection, predicate) {
var result;
@@ -1008,7 +1016,7 @@
*
* @private
* @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
+ * @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @returns {Object} Returns `object`.
*/
@@ -1020,7 +1028,7 @@
*
* @private
* @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
+ * @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @param {Function} [customizer] The function to customize copied values.
* @returns {Object} Returns `object`.
@@ -1032,8 +1040,11 @@
length = props.length;
while (++index < length) {
- var key = props[index],
- newValue = customizer ? customizer(object[key], source[key], key, object, source) : source[key];
+ var key = props[index];
+
+ var newValue = customizer
+ ? customizer(object[key], source[key], key, object, source)
+ : source[key];
assignValue(object, key, newValue);
}
@@ -1053,7 +1064,10 @@
length = sources.length,
customizer = length > 1 ? sources[length - 1] : undefined;
- customizer = typeof customizer == 'function' ? (length--, customizer) : undefined;
+ customizer = typeof customizer == 'function'
+ ? (length--, customizer)
+ : undefined;
+
object = Object(object);
while (++index < length) {
var source = sources[index];
@@ -1095,7 +1109,7 @@
}
/**
- * Creates a base function for methods like `_.forIn`.
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
@@ -1128,8 +1142,8 @@
*/
function createCtorWrapper(Ctor) {
return function() {
- // Use a `switch` statement to work with class constructors.
- // See http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
+ // Use a `switch` statement to work with class constructors. See
+ // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
// for more details.
var args = arguments;
var thisBinding = baseCreate(Ctor.prototype),
@@ -1142,15 +1156,16 @@
}
/**
- * Creates a function that wraps `func` to invoke it with the optional `this`
- * binding of `thisArg` and the `partials` prepended to those provided to
- * the wrapper.
+ * Creates a function that wraps `func` to invoke it with the `this` binding
+ * of `thisArg` and `partials` prepended to the arguments it receives.
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to the new function.
+ * @param {Array} partials The arguments to prepend to those provided to
+ * the new function.
* @returns {Function} Returns the new wrapped function.
*/
function createPartialWrapper(func, bitmask, thisArg, partials) {
@@ -1187,9 +1202,10 @@
* @param {Array} array The array to compare.
* @param {Array} other The other array to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `array` and `other` objects.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
@@ -1220,12 +1236,16 @@
// Recursively compare arrays (susceptible to call stack limits).
if (isUnordered) {
if (!baseSome(other, function(othValue) {
- return arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack);
+ return arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack);
})) {
result = false;
break;
}
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
+ } else if (!(
+ arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack)
+ )) {
result = false;
break;
}
@@ -1245,17 +1265,20 @@
* @param {Object} other The other object to compare.
* @param {string} tag The `toStringTag` of the objects to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- function equalByTag(object, other, tag, equalFunc, customizer, bitmask) {
+ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
switch (tag) {
case boolTag:
case dateTag:
- // Coerce dates and booleans to numbers, dates to milliseconds and booleans
- // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.
+ // Coerce dates and booleans to numbers, dates to milliseconds and
+ // booleans to `1` or `0` treating invalid dates coerced to `NaN` as
+ // not equal.
return +object == +other;
case errorTag:
@@ -1267,8 +1290,9 @@
case regexpTag:
case stringTag:
- // Coerce regexes to strings and treat strings primitives and string
- // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
+ // Coerce regexes to strings and treat strings, primitives and objects,
+ // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
+ // for more details.
return object == (other + '');
}
@@ -1283,9 +1307,10 @@
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
@@ -1342,8 +1367,9 @@
/**
* Gets the "length" property value of `object`.
*
- * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
- * that affects Safari on at least iOS 8.1-8.3 ARM64.
+ * **Note:** This function is used to avoid a
+ * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
+ * Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
@@ -1369,41 +1395,28 @@
}
/**
- * Checks if `value` is likely a prototype object.
+ * Checks if `value` is a flattenable `arguments` object or array.
*
* @private
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
*/
- function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
- return value === proto;
+ function isFlattenable(value) {
+ return isArrayLikeObject(value) && (isArray(value) || isArguments(value));
}
/**
- * Converts `value` to a function if it's not one.
+ * Checks if `value` is likely a prototype object.
*
* @private
- * @param {*} value The value to process.
- * @returns {Function} Returns the function.
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
- function toFunction(value) {
- return typeof value == 'function' ? value : identity;
- }
+ function isPrototype(value) {
+ var Ctor = value && value.constructor,
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
- /**
- * Creates a clone of `wrapper`.
- *
- * @private
- * @param {Object} wrapper The wrapper to clone.
- * @returns {Object} Returns the cloned wrapper.
- */
- function wrapperClone(wrapper) {
- var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
- result.__actions__ = copyArray(wrapper.__actions__);
- return result;
+ return value === proto;
}
/*------------------------------------------------------------------------*/
@@ -1414,6 +1427,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to compact.
* @returns {Array} Returns the new array of filtered values.
@@ -1432,6 +1446,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to concatenate.
* @param {...*} [values] The values to concatenate.
@@ -1447,48 +1462,56 @@
* console.log(array);
* // => [1]
*/
- var concat = rest(function(array, values) {
- if (!isArray(array)) {
- array = array == null ? [] : [Object(array)];
+ function concat() {
+ var length = arguments.length,
+ array = castArray(arguments[0]);
+
+ if (length < 2) {
+ return length ? copyArray(array) : [];
}
- values = baseFlatten(values);
- return arrayConcat(array, values);
- });
+ var args = Array(length - 1);
+ while (length--) {
+ args[length - 1] = arguments[length];
+ }
+ return arrayConcat(array, baseFlatten(args, 1));
+ }
/**
- * Flattens `array` a single level.
+ * Flattens `array` a single level deep.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
- * _.flatten([1, [2, 3, [4]]]);
- * // => [1, 2, 3, [4]]
+ * _.flatten([1, [2, [3, [4]], 5]]);
+ * // => [1, 2, [3, [4]], 5]
*/
function flatten(array) {
var length = array ? array.length : 0;
- return length ? baseFlatten(array) : [];
+ return length ? baseFlatten(array, 1) : [];
}
/**
- * This method is like `_.flatten` except that it recursively flattens `array`.
+ * Recursively flattens `array`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
- * @param {Array} array The array to recursively flatten.
+ * @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
- * _.flattenDeep([1, [2, 3, [4]]]);
- * // => [1, 2, 3, 4]
+ * _.flattenDeep([1, [2, [3, [4]], 5]]);
+ * // => [1, 2, 3, 4, 5]
*/
function flattenDeep(array) {
var length = array ? array.length : 0;
- return length ? baseFlatten(array, true) : [];
+ return length ? baseFlatten(array, INFINITY) : [];
}
/**
@@ -1496,6 +1519,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @alias first
* @category Array
* @param {Array} array The array to query.
@@ -1515,11 +1539,12 @@
/**
* Gets the index at which the first occurrence of `value` is found in `array`
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the offset
- * from the end of `array`.
+ * for equality comparisons. If `fromIndex` is negative, it's used as the
+ * offset from the end of `array`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value to search for.
@@ -1558,6 +1583,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {*} Returns the last element of `array`.
@@ -1574,11 +1600,13 @@
/**
* Creates a slice of `array` from `start` up to, but not including, `end`.
*
- * **Note:** This method is used instead of [`Array#slice`](https://mdn.io/Array/slice)
- * to ensure dense arrays are returned.
+ * **Note:** This method is used instead of
+ * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
+ * returned.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to slice.
* @param {number} [start=0] The start position.
@@ -1595,11 +1623,13 @@
/*------------------------------------------------------------------------*/
/**
- * Creates a `lodash` object that wraps `value` with explicit method chaining enabled.
- * The result of such method chaining must be unwrapped with `_#value`.
+ * Creates a `lodash` wrapper instance that wraps `value` with explicit method
+ * chain sequences enabled. The result of such sequences must be unwrapped
+ * with `_#value`.
*
* @static
* @memberOf _
+ * @since 1.3.0
* @category Seq
* @param {*} value The value to wrap.
* @returns {Object} Returns the new `lodash` wrapper instance.
@@ -1630,10 +1660,11 @@
/**
* This method invokes `interceptor` and returns `value`. The interceptor
* is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain in order to modify intermediate results.
+ * "tap into" a method chain sequence in order to modify intermediate results.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Seq
* @param {*} value The value to provide to `interceptor`.
* @param {Function} interceptor The function to invoke.
@@ -1657,10 +1688,11 @@
/**
* This method is like `_.tap` except that it returns the result of `interceptor`.
* The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain.
+ * results in a method chain sequence.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Seq
* @param {*} value The value to provide to `interceptor`.
* @param {Function} interceptor The function to invoke.
@@ -1681,10 +1713,11 @@
}
/**
- * Enables explicit method chaining on the wrapper object.
+ * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
*
* @name chain
* @memberOf _
+ * @since 0.1.0
* @category Seq
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
@@ -1711,10 +1744,11 @@
}
/**
- * Executes the chained sequence to extract the unwrapped value.
+ * Executes the chain sequence to resolve the unwrapped value.
*
* @name value
* @memberOf _
+ * @since 0.1.0
* @alias toJSON, valueOf
* @category Seq
* @returns {*} Returns the resolved unwrapped value.
@@ -1736,19 +1770,22 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`.
* @example
*
* _.every([true, 1, null, 'yes'], Boolean);
* // => false
*
* var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false }
+ * { 'user': 'barney', 'age': 36, 'active': false },
+ * { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
* // The `_.matches` iteratee shorthand.
@@ -1770,14 +1807,16 @@
/**
* Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three arguments:
- * (value, index|key, collection).
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new filtered array.
* @example
*
@@ -1807,14 +1846,16 @@
/**
* Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three arguments:
- * (value, index|key, collection).
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {*} Returns the matched element, else `undefined`.
* @example
*
@@ -1848,12 +1889,13 @@
* The iteratee is invoked with three arguments: (value, index|key, collection).
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
- * **Note:** As with other "Collections" methods, objects with a "length" property
- * are iterated like arrays. To avoid this behavior use `_.forIn` or `_.forOwn`
- * for object iteration.
+ * **Note:** As with other "Collections" methods, objects with a "length"
+ * property are iterated like arrays. To avoid this behavior use `_.forIn`
+ * or `_.forOwn` for object iteration.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @alias each
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
@@ -1864,19 +1906,19 @@
* _([1, 2]).forEach(function(value) {
* console.log(value);
* });
- * // => logs `1` then `2`
+ * // => Logs `1` then `2`.
*
* _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
* console.log(key);
* });
- * // => logs 'a' then 'b' (iteration order is not guaranteed)
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forEach(collection, iteratee) {
- return baseEach(collection, toFunction(iteratee));
+ return baseEach(collection, baseIteratee(iteratee));
}
/**
- * Creates an array of values by running each element in `collection` through
+ * Creates an array of values by running each element in `collection` thru
* `iteratee`. The iteratee is invoked with three arguments:
* (value, index|key, collection).
*
@@ -1884,16 +1926,18 @@
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
*
* The guarded methods are:
- * `ary`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, `fill`,
- * `invert`, `parseInt`, `random`, `range`, `rangeRight`, `slice`, `some`,
- * `sortBy`, `take`, `takeRight`, `template`, `trim`, `trimEnd`, `trimStart`,
- * and `words`
+ * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
+ * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
+ * `sampleSize`, `slice`, `some`, `sortBy`, `take`, `takeRight`, `template`,
+ * `trim`, `trimEnd`, `trimStart`, and `words`
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new mapped array.
* @example
*
@@ -1922,9 +1966,9 @@
/**
* Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` through `iteratee`, where each successive
+ * each element in `collection` thru `iteratee`, where each successive
* invocation is supplied the return value of the previous. If `accumulator`
- * is not given the first element of `collection` is used as the initial
+ * is not given, the first element of `collection` is used as the initial
* value. The iteratee is invoked with four arguments:
* (accumulator, value, index|key, collection).
*
@@ -1937,6 +1981,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -1961,10 +2006,11 @@
/**
* Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable properties for objects.
+ * values or the number of own enumerable string keyed properties for objects.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to inspect.
* @returns {number} Returns the collection size.
@@ -1994,11 +2040,14 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
* @example
*
* _.some([null, 0, 'yes', false], Boolean);
@@ -2028,36 +2077,38 @@
/**
* Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection through each iteratee. This method
+ * running each element in a collection thru each iteratee. This method
* performs a stable sort, that is, it preserves the original sort order of
* equal elements. The iteratees are invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {...(Function|Function[]|Object|Object[]|string|string[])} [iteratees=[_.identity]]
- * The iteratees to sort by, specified individually or in arrays.
+ * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
+ * [iteratees=[_.identity]] The iteratees to sort by, specified individually
+ * or in arrays.
* @returns {Array} Returns the new sorted array.
* @example
*
* var users = [
* { 'user': 'fred', 'age': 48 },
* { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 42 },
+ * { 'user': 'fred', 'age': 40 },
* { 'user': 'barney', 'age': 34 }
* ];
*
* _.sortBy(users, function(o) { return o.user; });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
*
* _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 42], ['fred', 48]]
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
*
* _.sortBy(users, 'user', function(o) {
* return Math.floor(o.age / 10);
* });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
*/
function sortBy(collection, iteratee) {
var index = 0;
@@ -2079,6 +2130,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {number} n The number of calls at which `func` is no longer invoked.
* @param {Function} func The function to restrict.
@@ -2107,8 +2159,7 @@
/**
* Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and prepends any additional `_.bind` arguments to those provided to the
- * bound function.
+ * and `partials` prepended to the arguments it receives.
*
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
* may be used as a placeholder for partially applied arguments.
@@ -2118,6 +2169,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to bind.
* @param {*} thisArg The `this` binding of `func`.
@@ -2150,6 +2202,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to defer.
* @param {...*} [args] The arguments to invoke `func` with.
@@ -2159,7 +2212,7 @@
* _.defer(function(text) {
* console.log(text);
* }, 'deferred');
- * // => logs 'deferred' after one or more milliseconds
+ * // => Logs 'deferred' after one or more milliseconds.
*/
var defer = rest(function(func, args) {
return baseDelay(func, 1, args);
@@ -2171,6 +2224,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to delay.
* @param {number} wait The number of milliseconds to delay invocation.
@@ -2181,7 +2235,7 @@
* _.delay(function(text) {
* console.log(text);
* }, 1000, 'later');
- * // => logs 'later' after one second
+ * // => Logs 'later' after one second.
*/
var delay = rest(function(func, wait, args) {
return baseDelay(func, toNumber(wait) || 0, args);
@@ -2194,6 +2248,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {Function} predicate The predicate to negate.
* @returns {Function} Returns the new function.
@@ -2222,6 +2277,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to restrict.
* @returns {Function} Returns the new restricted function.
@@ -2238,12 +2294,15 @@
/**
* Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as an array.
+ * created function and arguments from `start` and beyond provided as
+ * an array.
*
- * **Note:** This method is based on the [rest parameter](https://mdn.io/rest_parameters).
+ * **Note:** This method is based on the
+ * [rest parameter](https://mdn.io/rest_parameters).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Function
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
@@ -2284,6 +2343,47 @@
/*------------------------------------------------------------------------*/
+ /**
+ * Casts `value` as an array if it's not one.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.4.0
+ * @category Lang
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast array.
+ * @example
+ *
+ * _.castArray(1);
+ * // => [1]
+ *
+ * _.castArray({ 'a': 1 });
+ * // => [{ 'a': 1 }]
+ *
+ * _.castArray('abc');
+ * // => ['abc']
+ *
+ * _.castArray(null);
+ * // => [null]
+ *
+ * _.castArray(undefined);
+ * // => [undefined]
+ *
+ * _.castArray();
+ * // => []
+ *
+ * var array = [1, 2, 3];
+ * console.log(_.castArray(array) === array);
+ * // => true
+ */
+ function castArray() {
+ if (!arguments.length) {
+ return [];
+ }
+ var value = arguments[0];
+ return isArray(value) ? value : [value];
+ }
+
/**
* Creates a shallow clone of `value`.
*
@@ -2297,6 +2397,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to clone.
* @returns {*} Returns the cloned value.
@@ -2316,11 +2417,13 @@
}
/**
- * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * Performs a
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
@@ -2354,10 +2457,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is greater than `other`,
+ * else `false`.
* @example
*
* _.gt(3, 1);
@@ -2378,9 +2483,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
@@ -2400,10 +2507,12 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 0.1.0
+ * @type {Function}
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArray([1, 2, 3]);
@@ -2427,7 +2536,7 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
@@ -2446,8 +2555,7 @@
* // => false
*/
function isArrayLike(value) {
- return value != null &&
- !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));
+ return value != null && isLength(getLength(value)) && !isFunction(value);
}
/**
@@ -2456,10 +2564,11 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
+ * else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
@@ -2483,9 +2592,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isBoolean(false);
@@ -2504,9 +2615,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isDate(new Date);
@@ -2520,14 +2633,20 @@
}
/**
- * Checks if `value` is empty. A value is considered empty unless it's an
- * `arguments` object, array, string, or jQuery-like collection with a length
- * greater than `0` or an object with own enumerable properties.
+ * Checks if `value` is an empty object, collection, map, or set.
+ *
+ * Objects are considered empty if they have no own enumerable string keyed
+ * properties.
+ *
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
- * @param {Array|Object|string} value The value to inspect.
+ * @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
* @example
*
@@ -2548,7 +2667,8 @@
*/
function isEmpty(value) {
if (isArrayLike(value) &&
- (isArray(value) || isString(value) || isFunction(value.splice) || isArguments(value))) {
+ (isArray(value) || isString(value) ||
+ isFunction(value.splice) || isArguments(value))) {
return !value.length;
}
for (var key in value) {
@@ -2556,7 +2676,7 @@
return false;
}
}
- return true;
+ return !(nonEnumShadows && keys(value).length);
}
/**
@@ -2571,10 +2691,12 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @returns {boolean} Returns `true` if the values are equivalent,
+ * else `false`.
* @example
*
* var object = { 'user': 'fred' };
@@ -2593,13 +2715,16 @@
/**
* Checks if `value` is a finite primitive number.
*
- * **Note:** This method is based on [`Number.isFinite`](https://mdn.io/Number/isFinite).
+ * **Note:** This method is based on
+ * [`Number.isFinite`](https://mdn.io/Number/isFinite).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a finite number,
+ * else `false`.
* @example
*
* _.isFinite(3);
@@ -2623,9 +2748,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isFunction(_);
@@ -2636,8 +2763,8 @@
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 8 which returns 'object' for typed array constructors, and
- // PhantomJS 1.9 which returns 'function' for `NodeList` instances.
+ // in Safari 8 which returns 'object' for typed array and weak map constructors,
+ // and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
@@ -2645,13 +2772,16 @@
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ * **Note:** This function is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a valid length,
+ * else `false`.
* @example
*
* _.isLength(3);
@@ -2667,15 +2797,18 @@
* // => false
*/
function isLength(value) {
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/**
- * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
- * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ * Checks if `value` is the
+ * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
@@ -2704,6 +2837,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
@@ -2728,11 +2862,14 @@
/**
* Checks if `value` is `NaN`.
*
- * **Note:** This method is not the same as [`isNaN`](https://es5.github.io/#x15.1.2.4)
- * which returns `true` for `undefined` and other non-numeric values.
+ * **Note:** This method is based on
+ * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
+ * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
+ * `undefined` and other non-number values.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
@@ -2752,7 +2889,8 @@
*/
function isNaN(value) {
// An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some ActiveX objects in IE.
+ // Perform the `toStringTag` check first to avoid errors with some
+ // ActiveX objects in IE.
return isNumber(value) && value != +value;
}
@@ -2761,6 +2899,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `null`, else `false`.
@@ -2779,14 +2918,16 @@
/**
* Checks if `value` is classified as a `Number` primitive or object.
*
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified
- * as numbers, use the `_.isFinite` method.
+ * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
+ * classified as numbers, use the `_.isFinite` method.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isNumber(3);
@@ -2811,9 +2952,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isRegExp(/abc/);
@@ -2830,10 +2973,12 @@
* Checks if `value` is classified as a `String` primitive or object.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isString('abc');
@@ -2851,6 +2996,7 @@
* Checks if `value` is `undefined`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
@@ -2872,10 +3018,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is less than `other`,
+ * else `false`.
* @example
*
* _.lt(1, 3);
@@ -2895,6 +3043,7 @@
* Converts `value` to an array.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to convert.
@@ -2923,10 +3072,12 @@
/**
* Converts `value` to an integer.
*
- * **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
+ * **Note:** This function is loosely based on
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
@@ -2951,6 +3102,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
@@ -2976,6 +3128,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {string} Returns the string.
@@ -3000,15 +3153,16 @@
/*------------------------------------------------------------------------*/
/**
- * Assigns own enumerable properties of source objects to the destination
- * object. Source objects are applied from left to right. Subsequent sources
- * overwrite property assignments of previous sources.
+ * Assigns own enumerable string keyed properties of source objects to the
+ * destination object. Source objects are applied from left to right.
+ * Subsequent sources overwrite property assignments of previous sources.
*
* **Note:** This method mutates `object` and is loosely based on
* [`Object.assign`](https://mdn.io/Object/assign).
*
* @static
* @memberOf _
+ * @since 0.10.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
@@ -3041,6 +3195,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @alias extend
* @category Object
* @param {Object} object The destination object.
@@ -3067,15 +3222,16 @@
});
/**
- * This method is like `_.assignIn` except that it accepts `customizer` which
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
- * assignment is handled by the method instead. The `customizer` is invoked
- * with five arguments: (objValue, srcValue, key, object, source).
+ * This method is like `_.assignIn` except that it accepts `customizer`
+ * which is invoked to produce the assigned values. If `customizer` returns
+ * `undefined`, assignment is handled by the method instead. The `customizer`
+ * is invoked with five arguments: (objValue, srcValue, key, object, source).
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @alias extendWith
* @category Object
* @param {Object} object The destination object.
@@ -3098,11 +3254,13 @@
});
/**
- * Creates an object that inherits from the `prototype` object. If a `properties`
- * object is given its own enumerable properties are assigned to the created object.
+ * Creates an object that inherits from the `prototype` object. If a
+ * `properties` object is given, its own enumerable string keyed properties
+ * are assigned to the created object.
*
* @static
* @memberOf _
+ * @since 2.3.0
* @category Object
* @param {Object} prototype The object to inherit from.
* @param {Object} [properties] The properties to assign to the object.
@@ -3135,14 +3293,15 @@
}
/**
- * Assigns own and inherited enumerable properties of source objects to the
- * destination object for all destination properties that resolve to `undefined`.
- * Source objects are applied from left to right. Once a property is set,
- * additional values of the same property are ignored.
+ * Assigns own and inherited enumerable string keyed properties of source
+ * objects to the destination object for all destination properties that
+ * resolve to `undefined`. Source objects are applied from left to right.
+ * Once a property is set, additional values of the same property are ignored.
*
* **Note:** This method mutates `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The destination object.
@@ -3162,6 +3321,7 @@
* Checks if `path` is a direct property of `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -3169,16 +3329,16 @@
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
- * var object = { 'a': { 'b': { 'c': 3 } } };
- * var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ * var object = { 'a': { 'b': 2 } };
+ * var other = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.has(object, 'a');
* // => true
*
- * _.has(object, 'a.b.c');
+ * _.has(object, 'a.b');
* // => true
*
- * _.has(object, ['a', 'b', 'c']);
+ * _.has(object, ['a', 'b']);
* // => true
*
* _.has(other, 'a');
@@ -3196,6 +3356,7 @@
* for more details.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -3242,6 +3403,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
@@ -3281,11 +3443,12 @@
* Creates an object composed of the picked `object` properties.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property names to pick, specified
- * individually or in arrays.
+ * @param {...(string|string[])} [props] The property identifiers to pick,
+ * specified individually or in arrays.
* @returns {Object} Returns the new object.
* @example
*
@@ -3295,20 +3458,21 @@
* // => { 'a': 1, 'c': 3 }
*/
var pick = rest(function(object, props) {
- return object == null ? {} : basePick(object, baseFlatten(props));
+ return object == null ? {} : basePick(object, baseFlatten(props, 1));
});
/**
- * This method is like `_.get` except that if the resolved value is a function
- * it's invoked with the `this` binding of its parent object and its result
- * is returned.
+ * This method is like `_.get` except that if the resolved value is a
+ * function it's invoked with the `this` binding of its parent object and
+ * its result is returned.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
@@ -3335,11 +3499,12 @@
}
/**
- * Creates an array of the own enumerable property values of `object`.
+ * Creates an array of the own enumerable string keyed property values of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -3374,20 +3539,22 @@
*
* Though the ">" character is escaped for symmetry, characters like
* ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value.
- * See [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
+ * unless they're part of a tag or unquoted attribute value. See
+ * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
* (under "semi-related fun fact") for more details.
*
* Backticks are escaped because in IE < 9, they can break out of
* attribute values or HTML comments. See [#59](https://html5sec.org/#59),
* [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
- * [#133](https://html5sec.org/#133) of the [HTML5 Security Cheatsheet](https://html5sec.org/)
- * for more details.
+ * [#133](https://html5sec.org/#133) of the
+ * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
*
- * When working with HTML you should always [quote attribute values](http://wonko.com/post/html-escaping)
- * to reduce XSS vectors.
+ * When working with HTML you should always
+ * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
+ * XSS vectors.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category String
* @param {string} [string=''] The string to escape.
@@ -3410,6 +3577,7 @@
* This method returns the first argument given to it.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
@@ -3427,11 +3595,13 @@
/**
* Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name the created callback returns the
- * property value for a given element. If `func` is an object the created
- * callback returns `true` for elements that contain the equivalent object properties, otherwise it returns `false`.
+ * function. If `func` is a property name, the created function returns the
+ * property value for a given element. If `func` is an array or object, the
+ * created function returns `true` for elements that contain the equivalent
+ * source properties, otherwise it returns `false`.
*
* @static
+ * @since 4.0.0
* @memberOf _
* @category Util
* @param {*} [func=_.identity] The value to convert to a callback.
@@ -3439,32 +3609,45 @@
* @example
*
* var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
+ * { 'user': 'barney', 'age': 36, 'active': true },
+ * { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
+ * // The `_.matches` iteratee shorthand.
+ * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
+ * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
+ *
+ * // The `_.matchesProperty` iteratee shorthand.
+ * _.filter(users, _.iteratee(['user', 'fred']));
+ * // => [{ 'user': 'fred', 'age': 40 }]
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.map(users, _.iteratee('user'));
+ * // => ['barney', 'fred']
+ *
* // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(callback, func) {
- * var p = /^(\S+)\s*([<>])\s*(\S+)$/.exec(func);
- * return !p ? callback(func) : function(object) {
- * return (p[2] == '>' ? object[p[1]] > p[3] : object[p[1]] < p[3]);
+ * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
+ * return !_.isRegExp(func) ? iteratee(func) : function(string) {
+ * return func.test(string);
* };
* });
*
- * _.filter(users, 'age > 36');
- * // => [{ 'user': 'fred', 'age': 40 }]
+ * _.filter(['abc', 'def'], /ef/);
+ * // => ['def']
*/
var iteratee = baseIteratee;
/**
- * Creates a function that performs a deep partial comparison between a given
+ * Creates a function that performs a partial deep comparison between a given
* object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`.
+ * property values, else `false`. The created function is equivalent to
+ * `_.isMatch` with a `source` partially applied.
*
* **Note:** This method supports comparing the same values as `_.isEqual`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Util
* @param {Object} source The object of property values to match.
* @returns {Function} Returns the new function.
@@ -3483,21 +3666,21 @@
}
/**
- * Adds all own enumerable function properties of a source object to the
- * destination object. If `object` is a function then methods are added to
- * its prototype as well.
+ * Adds all own enumerable string keyed function properties of a source
+ * object to the destination object. If `object` is a function, then methods
+ * are added to its prototype as well.
*
* **Note:** Use `_.runInContext` to create a pristine `lodash` function to
* avoid conflicts caused by modifying the original.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {Function|Object} [object=lodash] The destination object.
* @param {Object} source The object of functions to add.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.chain=true] Specify whether the functions added
- * are chainable.
+ * @param {Object} [options={}] The options object.
+ * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
* @returns {Function|Object} Returns `object`.
* @example
*
@@ -3559,6 +3742,7 @@
* the `lodash` function.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @returns {Function} Returns the `lodash` function.
@@ -3579,6 +3763,7 @@
*
* @static
* @memberOf _
+ * @since 2.3.0
* @category Util
* @example
*
@@ -3592,12 +3777,13 @@
}
/**
- * Generates a unique ID. If `prefix` is given the ID is appended to it.
+ * Generates a unique ID. If `prefix` is given, the ID is appended to it.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
- * @param {string} [prefix] The value to prefix the ID with.
+ * @param {string} [prefix=''] The value to prefix the ID with.
* @returns {string} Returns the unique ID.
* @example
*
@@ -3615,10 +3801,11 @@
/*------------------------------------------------------------------------*/
/**
- * Computes the maximum value of `array`. If `array` is empty or falsey
+ * Computes the maximum value of `array`. If `array` is empty or falsey,
* `undefined` is returned.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Math
* @param {Array} array The array to iterate over.
@@ -3638,10 +3825,11 @@
}
/**
- * Computes the minimum value of `array`. If `array` is empty or falsey
+ * Computes the minimum value of `array`. If `array` is empty or falsey,
* `undefined` is returned.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Math
* @param {Array} array The array to iterate over.
@@ -3662,10 +3850,7 @@
/*------------------------------------------------------------------------*/
- LodashWrapper.prototype = baseCreate(lodash.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
-
- // Add functions that return wrapped values when chaining.
+ // Add methods that return wrapped values in chain sequences.
lodash.assignIn = assignIn;
lodash.before = before;
lodash.bind = bind;
@@ -3697,12 +3882,12 @@
// Add aliases.
lodash.extend = assignIn;
- // Add functions to `lodash.prototype`.
+ // Add methods to `lodash.prototype`.
mixin(lodash, lodash);
/*------------------------------------------------------------------------*/
- // Add functions that return unwrapped values when chaining.
+ // Add methods that return unwrapped values in chain sequences.
lodash.clone = clone;
lodash.escape = escape;
lodash.every = every;
@@ -3759,11 +3944,11 @@
*
* @static
* @memberOf _
- * @type string
+ * @type {string}
*/
lodash.VERSION = VERSION;
- // Add `Array` and `String` methods to `lodash.prototype`.
+ // Add `Array` methods to `lodash.prototype`.
baseEach(['pop', 'join', 'replace', 'reverse', 'split', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
var func = (/^(?:replace|split)$/.test(methodName) ? String.prototype : arrayProto)[methodName],
chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
@@ -3772,15 +3957,16 @@
lodash.prototype[methodName] = function() {
var args = arguments;
if (retUnwrapped && !this.__chain__) {
- return func.apply(this.value(), args);
+ var value = this.value();
+ return func.apply(isArray(value) ? value : [], args);
}
return this[chainName](function(value) {
- return func.apply(value, args);
+ return func.apply(isArray(value) ? value : [], args);
});
};
});
- // Add chaining functions to the `lodash` wrapper.
+ // Add chain sequence methods to the `lodash` wrapper.
lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
/*--------------------------------------------------------------------------*/
diff --git a/tools/eslint/node_modules/lodash/core.min.js b/tools/eslint/node_modules/lodash/core.min.js
new file mode 100644
index 00000000000000..37cd8bddabac28
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/core.min.js
@@ -0,0 +1,30 @@
+/**
+ * @license
+ * lodash 4.9.0 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
+ * Build: `lodash core -o ./dist/lodash.core.js`
+ */
+;(function(){function n(n,t){return n.push.apply(n,t),n}function t(n,t,r){for(var e=-1,u=n.length;++e-1&&0==n%1&&(null==t?9007199254740991:t)>n}function a(n){return n instanceof l?n:new l(n)}function l(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function p(n,t,r,e){var u;return(u=n===pn)||(u=En[r],u=(n===u||n!==n&&u!==u)&&!kn.call(e,r)),u?t:n}function s(n){return Z(n)?Bn(n):{}}function h(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");return setTimeout(function(){
+n.apply(pn,r)},t)}function v(n,t){var r=true;return Cn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function y(n,t){var r=[];return Cn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function g(t,r,e,u,o){var i=-1,c=t.length;for(e||(e=C),o||(o=[]);++i0&&e(f)?r>1?g(f,r-1,e,u,o):n(o,f):u||(o[o.length]=f)}return o}function b(n,t){return n&&Gn(n,t,on)}function _(n,t){return y(t,function(t){return X(n[t])})}function j(n,t,r,e,u){return n===t?true:null==n||null==t||!Z(n)&&!nn(t)?n!==n&&t!==t:d(n,t,j,r,e,u);
+}function d(n,t,r,e,u,o){var i=Vn(n),f=Vn(t),a="[object Array]",l="[object Array]";i||(a=Sn.call(n),a="[object Arguments]"==a?"[object Object]":a),f||(l=Sn.call(t),l="[object Arguments]"==l?"[object Object]":l);var p="[object Object]"==a&&!c(n),f="[object Object]"==l&&!c(t),l=a==l;o||(o=[]);var s=M(o,function(t){return t[0]===n});return s&&s[1]?s[1]==t:(o.push([n,t]),l&&!p?(r=i||isTypedArray(n)?I(n,t,r,e,u,o):$(n,t,a),o.pop(),r):2&u||(i=p&&kn.call(n,"__wrapped__"),a=f&&kn.call(t,"__wrapped__"),!i&&!a)?l?(r=q(n,t,r,e,u,o),
+o.pop(),r):false:(i=i?n.value():n,t=a?t.value():t,r=r(i,t,e,u,o),o.pop(),r))}function m(n){return typeof n=="function"?n:null==n?an:(typeof n=="object"?x:E)(n)}function O(n){n=null==n?n:Object(n);var t,r=[];for(t in n)r.push(t);return r}function w(n,t){var r=-1,e=W(n)?Array(n.length):[];return Cn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function x(n){var t=on(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&j(n[u],r[u],pn,3)))return false}return true}}function A(n,t){
+return n=Object(n),U(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function E(n){return function(t){return null==t?pn:t[n]}}function k(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e1?r[u-1]:pn,o=typeof o=="function"?(u--,o):pn;for(t=Object(t);++ef))return false;for(a=true;++iarguments.length,Cn)}function V(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");
+return n=Hn(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=pn),r}}function H(n){var t;if(typeof n!="function")throw new TypeError("Expected a function");return t=qn(t===pn?n.length-1:Hn(t),0),function(){for(var r=arguments,e=-1,u=qn(r.length-t,0),o=Array(u);++et}function Q(n){return nn(n)&&W(n)&&kn.call(n,"callee")&&(!Dn.call(n,"callee")||"[object Arguments]"==Sn.call(n));
+}function W(n){return null!=n&&Y(Jn(n))&&!X(n)}function X(n){return n=Z(n)?Sn.call(n):"","[object Function]"==n||"[object GeneratorFunction]"==n}function Y(n){return typeof n=="number"&&n>-1&&0==n%1&&9007199254740991>=n}function Z(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function nn(n){return!!n&&typeof n=="object"}function tn(n){return typeof n=="number"||nn(n)&&"[object Number]"==Sn.call(n)}function rn(n){return typeof n=="string"||!Vn(n)&&nn(n)&&"[object String]"==Sn.call(n)}function en(n,t){
+return t>n}function un(n){return typeof n=="string"?n:null==n?"":n+""}function on(n){var t=G(n);if(!t&&!W(n))return $n(Object(n));var r,e=z(n),u=!!e,e=e||[],o=e.length;for(r in n)!kn.call(n,r)||u&&("length"==r||f(r,o))||t&&"constructor"==r||e.push(r);return e}function cn(n){for(var t=-1,r=G(n),e=O(n),u=e.length,o=z(n),i=!!o,o=o||[],c=o.length;++t"'`]/g,vn=RegExp(hn.source),yn=/^(?:0|[1-9]\d*)$/,gn={
+"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},bn={"function":true,object:true},_n=bn[typeof exports]&&exports&&!exports.nodeType?exports:pn,jn=bn[typeof module]&&module&&!module.nodeType?module:pn,dn=jn&&jn.exports===_n?_n:pn,mn=o(bn[typeof self]&&self),On=o(bn[typeof window]&&window),wn=o(bn[typeof this]&&this),xn=o(_n&&jn&&typeof global=="object"&&global)||On!==(wn&&wn.window)&&On||mn||wn||Function("return this")(),An=Array.prototype,En=Object.prototype,kn=En.hasOwnProperty,Nn=0,Sn=En.toString,Tn=xn._,Fn=xn.Reflect,Rn=Fn?Fn.f:pn,Bn=Object.create,Dn=En.propertyIsEnumerable,In=xn.isFinite,$n=Object.keys,qn=Math.max,zn=!Dn.call({
+valueOf:1},"valueOf");l.prototype=s(a.prototype),l.prototype.constructor=l;var Cn=function(n,t){return function(r,e){if(null==r)return r;if(!W(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++ot)return t?N(r):[];for(var e=Array(t-1);t--;)e[t-1]=arguments[t];return g(e,1),n(N(r),fn)},a.create=function(n,t){var r=s(n);return t?Ln(r,t):r},a.defaults=Xn,a.defer=Pn,a.delay=Un,a.filter=function(n,t){return y(n,m(t))},a.flatten=function(n){return n&&n.length?g(n,1):[]},a.flattenDeep=function(n){return n&&n.length?g(n,sn):[]},a.iteratee=Zn,a.keys=on,a.map=function(n,t){return w(n,m(t))},a.matches=function(n){
+return x(Ln({},n))},a.mixin=ln,a.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},a.once=function(n){return V(2,n)},a.pick=Yn,a.slice=function(n,t,r){var e=n?n.length:0;return r=r===pn?e:+r,e?k(n,null==t?0:+t,r):[]},a.sortBy=function(n,t){var r=0;return t=m(t),w(w(n,function(n,e,u){return{c:n,b:r++,a:t(n,e,u)}}).sort(function(n,t){var r;n:{r=n.a;var e=t.a;if(r!==e){var u=null===r,o=r===pn,i=r===r,c=null===e,f=e===pn,a=e===e;
+if(r>e&&!c||!i||u&&!f&&a||o&&a){r=1;break n}if(e>r&&!u||!a||c&&!o&&i||f&&i){r=-1;break n}}r=0}return r||n.b-t.b}),E("c"))},a.tap=function(n,t){return t(n),n},a.thru=function(n,t){return t(n)},a.toArray=function(n){return W(n)?n.length?N(n):[]:fn(n)},a.values=fn,a.extend=Qn,ln(a,a),a.clone=function(n){return Z(n)?Vn(n)?N(n):F(n,on(n)):n},a.escape=function(n){return(n=un(n))&&vn.test(n)?n.replace(hn,i):n},a.every=function(n,t,r){return t=r?pn:t,v(n,m(t))},a.find=M,a.forEach=P,a.has=function(n,t){return null!=n&&kn.call(n,t);
+},a.head=J,a.identity=an,a.indexOf=function(n,t,r){var e=n?n.length:0;r=typeof r=="number"?0>r?qn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r wait) {
- complete(trailingCall, maxTimeoutId);
- } else {
- timeoutId = setTimeout(delayed, remaining);
+ function remainingWait(time) {
+ var timeSinceLastCall = time - lastCallTime,
+ timeSinceLastInvoke = time - lastInvokeTime,
+ result = wait - timeSinceLastCall;
+
+ return maxWait === false ? result : nativeMin(result, maxWait - timeSinceLastInvoke);
+ }
+
+ function shouldInvoke(time) {
+ var timeSinceLastCall = time - lastCallTime,
+ timeSinceLastInvoke = time - lastInvokeTime;
+
+ // Either this is the first call, activity has stopped and we're at the
+ // trailing edge, the system time has gone backwards and we're treating
+ // it as the trailing edge, or we've hit the `maxWait` limit.
+ return (!lastCallTime || (timeSinceLastCall >= wait) ||
+ (timeSinceLastCall < 0) || (maxWait !== false && timeSinceLastInvoke >= maxWait));
+ }
+
+ function timerExpired() {
+ var time = now();
+ if (shouldInvoke(time)) {
+ return trailingEdge(time);
}
+ // Restart the timer.
+ timerId = setTimeout(timerExpired, remainingWait(time));
}
- function flush() {
- if ((timeoutId && trailingCall) || (maxTimeoutId && trailing)) {
- result = func.apply(thisArg, args);
+ function trailingEdge(time) {
+ clearTimeout(timerId);
+ timerId = undefined;
+
+ // Only invoke if we have `lastArgs` which means `func` has been
+ // debounced at least once.
+ if (trailing && lastArgs) {
+ return invokeFunc(time);
}
- cancel();
+ lastArgs = lastThis = undefined;
return result;
}
- function maxDelayed() {
- complete(trailing, timeoutId);
+ function cancel() {
+ if (timerId !== undefined) {
+ clearTimeout(timerId);
+ }
+ lastCallTime = lastInvokeTime = 0;
+ lastArgs = lastThis = timerId = undefined;
+ }
+
+ function flush() {
+ return timerId === undefined ? result : trailingEdge(now());
}
function debounced() {
- args = arguments;
- stamp = now();
- thisArg = this;
- trailingCall = trailing && (timeoutId || !leading);
-
- if (maxWait === false) {
- var leadingCall = leading && !timeoutId;
- } else {
- if (!lastCalled && !maxTimeoutId && !leading) {
- lastCalled = stamp;
- }
- var remaining = maxWait - (stamp - lastCalled),
- isCalled = remaining <= 0 || remaining > maxWait;
-
- if (isCalled) {
- if (maxTimeoutId) {
- maxTimeoutId = clearTimeout(maxTimeoutId);
- }
- lastCalled = stamp;
- result = func.apply(thisArg, args);
- }
- else if (!maxTimeoutId) {
- maxTimeoutId = setTimeout(maxDelayed, remaining);
+ var time = now(),
+ isInvoking = shouldInvoke(time);
+
+ lastArgs = arguments;
+ lastThis = this;
+ lastCallTime = time;
+
+ if (isInvoking) {
+ if (timerId === undefined) {
+ return leadingEdge(lastCallTime);
}
- }
- if (isCalled && timeoutId) {
- timeoutId = clearTimeout(timeoutId);
- }
- else if (!timeoutId && wait !== maxWait) {
- timeoutId = setTimeout(delayed, wait);
- }
- if (leadingCall) {
- isCalled = true;
- result = func.apply(thisArg, args);
- }
- if (isCalled && !timeoutId && !maxTimeoutId) {
- args = thisArg = undefined;
+ // Handle invocations in a tight loop.
+ clearTimeout(timerId);
+ timerId = setTimeout(timerExpired, wait);
+ return invokeFunc(lastCallTime);
}
return result;
}
diff --git a/tools/eslint/node_modules/lodash/deburr.js b/tools/eslint/node_modules/lodash/deburr.js
index 7e75034716cb71..6862072121b676 100644
--- a/tools/eslint/node_modules/lodash/deburr.js
+++ b/tools/eslint/node_modules/lodash/deburr.js
@@ -18,11 +18,14 @@ var rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']';
var reComboMark = RegExp(rsCombo, 'g');
/**
- * Deburrs `string` by converting [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
- * to basic latin letters and removing [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
+ * Deburrs `string` by converting
+ * [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
+ * to basic latin letters and removing
+ * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to deburr.
* @returns {string} Returns the deburred string.
diff --git a/tools/eslint/node_modules/lodash/defaults.js b/tools/eslint/node_modules/lodash/defaults.js
index eded2845c53c5e..f35301abcf260d 100644
--- a/tools/eslint/node_modules/lodash/defaults.js
+++ b/tools/eslint/node_modules/lodash/defaults.js
@@ -4,14 +4,15 @@ var apply = require('./_apply'),
rest = require('./rest');
/**
- * Assigns own and inherited enumerable properties of source objects to the
- * destination object for all destination properties that resolve to `undefined`.
- * Source objects are applied from left to right. Once a property is set,
- * additional values of the same property are ignored.
+ * Assigns own and inherited enumerable string keyed properties of source
+ * objects to the destination object for all destination properties that
+ * resolve to `undefined`. Source objects are applied from left to right.
+ * Once a property is set, additional values of the same property are ignored.
*
* **Note:** This method mutates `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The destination object.
diff --git a/tools/eslint/node_modules/lodash/defaultsDeep.js b/tools/eslint/node_modules/lodash/defaultsDeep.js
index c495aee4d9e6e6..c12d7293b567c4 100644
--- a/tools/eslint/node_modules/lodash/defaultsDeep.js
+++ b/tools/eslint/node_modules/lodash/defaultsDeep.js
@@ -11,6 +11,7 @@ var apply = require('./_apply'),
*
* @static
* @memberOf _
+ * @since 3.10.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
diff --git a/tools/eslint/node_modules/lodash/defer.js b/tools/eslint/node_modules/lodash/defer.js
index f492b3df7ae851..b096f71b5fa89a 100644
--- a/tools/eslint/node_modules/lodash/defer.js
+++ b/tools/eslint/node_modules/lodash/defer.js
@@ -7,6 +7,7 @@ var baseDelay = require('./_baseDelay'),
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to defer.
* @param {...*} [args] The arguments to invoke `func` with.
@@ -16,7 +17,7 @@ var baseDelay = require('./_baseDelay'),
* _.defer(function(text) {
* console.log(text);
* }, 'deferred');
- * // => logs 'deferred' after one or more milliseconds
+ * // => Logs 'deferred' after one or more milliseconds.
*/
var defer = rest(function(func, args) {
return baseDelay(func, 1, args);
diff --git a/tools/eslint/node_modules/lodash/delay.js b/tools/eslint/node_modules/lodash/delay.js
index 28d070c697f32b..cac90a9bce51ee 100644
--- a/tools/eslint/node_modules/lodash/delay.js
+++ b/tools/eslint/node_modules/lodash/delay.js
@@ -8,6 +8,7 @@ var baseDelay = require('./_baseDelay'),
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to delay.
* @param {number} wait The number of milliseconds to delay invocation.
@@ -18,7 +19,7 @@ var baseDelay = require('./_baseDelay'),
* _.delay(function(text) {
* console.log(text);
* }, 1000, 'later');
- * // => logs 'later' after one second
+ * // => Logs 'later' after one second.
*/
var delay = rest(function(func, wait, args) {
return baseDelay(func, toNumber(wait) || 0, args);
diff --git a/tools/eslint/node_modules/lodash/difference.js b/tools/eslint/node_modules/lodash/difference.js
index 5036d8ef7a50b0..ae34b208bb1884 100644
--- a/tools/eslint/node_modules/lodash/difference.js
+++ b/tools/eslint/node_modules/lodash/difference.js
@@ -4,12 +4,14 @@ var baseDifference = require('./_baseDifference'),
rest = require('./rest');
/**
- * Creates an array of unique `array` values not included in the other
- * given arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
+ * Creates an array of unique `array` values not included in the other given
+ * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * for equality comparisons. The order of result values is determined by the
+ * order they occur in the first array.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to inspect.
* @param {...Array} [values] The values to exclude.
@@ -21,7 +23,7 @@ var baseDifference = require('./_baseDifference'),
*/
var difference = rest(function(array, values) {
return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, false, true))
+ ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
: [];
});
diff --git a/tools/eslint/node_modules/lodash/differenceBy.js b/tools/eslint/node_modules/lodash/differenceBy.js
index 550ccfa0f9d5ba..7ec2ae8a21c8ec 100644
--- a/tools/eslint/node_modules/lodash/differenceBy.js
+++ b/tools/eslint/node_modules/lodash/differenceBy.js
@@ -8,14 +8,17 @@ var baseDifference = require('./_baseDifference'),
/**
* This method is like `_.difference` except that it accepts `iteratee` which
* is invoked for each element of `array` and `values` to generate the criterion
- * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
+ * by which they're compared. Result values are chosen from the first array.
+ * The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {...Array} [values] The values to exclude.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Array} Returns the new array of filtered values.
* @example
*
@@ -32,7 +35,7 @@ var differenceBy = rest(function(array, values) {
iteratee = undefined;
}
return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, false, true), baseIteratee(iteratee))
+ ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), baseIteratee(iteratee))
: [];
});
diff --git a/tools/eslint/node_modules/lodash/differenceWith.js b/tools/eslint/node_modules/lodash/differenceWith.js
index b60f3a06811559..6ae89865e82f3f 100644
--- a/tools/eslint/node_modules/lodash/differenceWith.js
+++ b/tools/eslint/node_modules/lodash/differenceWith.js
@@ -6,11 +6,13 @@ var baseDifference = require('./_baseDifference'),
/**
* This method is like `_.difference` except that it accepts `comparator`
- * which is invoked to compare elements of `array` to `values`. The comparator
- * is invoked with two arguments: (arrVal, othVal).
+ * which is invoked to compare elements of `array` to `values`. Result values
+ * are chosen from the first array. The comparator is invoked with two arguments:
+ * (arrVal, othVal).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {...Array} [values] The values to exclude.
@@ -29,7 +31,7 @@ var differenceWith = rest(function(array, values) {
comparator = undefined;
}
return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, false, true), undefined, comparator)
+ ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
: [];
});
diff --git a/tools/eslint/node_modules/lodash/divide.js b/tools/eslint/node_modules/lodash/divide.js
new file mode 100644
index 00000000000000..2889d79928ede4
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/divide.js
@@ -0,0 +1,22 @@
+var createMathOperation = require('./_createMathOperation');
+
+/**
+ * Divide two numbers.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Math
+ * @param {number} dividend The first number in a division.
+ * @param {number} divisor The second number in a division.
+ * @returns {number} Returns the quotient.
+ * @example
+ *
+ * _.divide(6, 4);
+ * // => 1.5
+ */
+var divide = createMathOperation(function(dividend, divisor) {
+ return dividend / divisor;
+});
+
+module.exports = divide;
diff --git a/tools/eslint/node_modules/lodash/drop.js b/tools/eslint/node_modules/lodash/drop.js
index 3094995c945f58..6124ef76933fa0 100644
--- a/tools/eslint/node_modules/lodash/drop.js
+++ b/tools/eslint/node_modules/lodash/drop.js
@@ -6,10 +6,11 @@ var baseSlice = require('./_baseSlice'),
*
* @static
* @memberOf _
+ * @since 0.5.0
* @category Array
* @param {Array} array The array to query.
* @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the slice of `array`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/dropRight.js b/tools/eslint/node_modules/lodash/dropRight.js
index 61e12682bc4934..8aa3576e3fb4d0 100644
--- a/tools/eslint/node_modules/lodash/dropRight.js
+++ b/tools/eslint/node_modules/lodash/dropRight.js
@@ -6,10 +6,11 @@ var baseSlice = require('./_baseSlice'),
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
* @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the slice of `array`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/dropRightWhile.js b/tools/eslint/node_modules/lodash/dropRightWhile.js
index 0c04ed25af50c0..98f457b8112a62 100644
--- a/tools/eslint/node_modules/lodash/dropRightWhile.js
+++ b/tools/eslint/node_modules/lodash/dropRightWhile.js
@@ -8,9 +8,11 @@ var baseIteratee = require('./_baseIteratee'),
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/dropWhile.js b/tools/eslint/node_modules/lodash/dropWhile.js
index 72f94484cee278..94f76e01924549 100644
--- a/tools/eslint/node_modules/lodash/dropWhile.js
+++ b/tools/eslint/node_modules/lodash/dropWhile.js
@@ -8,9 +8,11 @@ var baseIteratee = require('./_baseIteratee'),
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/endsWith.js b/tools/eslint/node_modules/lodash/endsWith.js
index 5da6b5e3072a57..204d61e9d4baee 100644
--- a/tools/eslint/node_modules/lodash/endsWith.js
+++ b/tools/eslint/node_modules/lodash/endsWith.js
@@ -7,11 +7,13 @@ var baseClamp = require('./_baseClamp'),
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to search.
* @param {string} [target] The string to search for.
* @param {number} [position=string.length] The position to search from.
- * @returns {boolean} Returns `true` if `string` ends with `target`, else `false`.
+ * @returns {boolean} Returns `true` if `string` ends with `target`,
+ * else `false`.
* @example
*
* _.endsWith('abc', 'c');
diff --git a/tools/eslint/node_modules/lodash/entries.js b/tools/eslint/node_modules/lodash/entries.js
new file mode 100644
index 00000000000000..7a88df2044638c
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/entries.js
@@ -0,0 +1 @@
+module.exports = require('./toPairs');
diff --git a/tools/eslint/node_modules/lodash/entriesIn.js b/tools/eslint/node_modules/lodash/entriesIn.js
new file mode 100644
index 00000000000000..f6c6331c1de93f
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/entriesIn.js
@@ -0,0 +1 @@
+module.exports = require('./toPairsIn');
diff --git a/tools/eslint/node_modules/lodash/eq.js b/tools/eslint/node_modules/lodash/eq.js
index 5df222d844d26f..e9445d4fa32237 100644
--- a/tools/eslint/node_modules/lodash/eq.js
+++ b/tools/eslint/node_modules/lodash/eq.js
@@ -1,9 +1,11 @@
/**
- * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * Performs a
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
diff --git a/tools/eslint/node_modules/lodash/escape.js b/tools/eslint/node_modules/lodash/escape.js
index 62857ed2e5916f..176417c4c1e930 100644
--- a/tools/eslint/node_modules/lodash/escape.js
+++ b/tools/eslint/node_modules/lodash/escape.js
@@ -14,20 +14,22 @@ var reUnescapedHtml = /[&<>"'`]/g,
*
* Though the ">" character is escaped for symmetry, characters like
* ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value.
- * See [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
+ * unless they're part of a tag or unquoted attribute value. See
+ * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
* (under "semi-related fun fact") for more details.
*
* Backticks are escaped because in IE < 9, they can break out of
* attribute values or HTML comments. See [#59](https://html5sec.org/#59),
* [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
- * [#133](https://html5sec.org/#133) of the [HTML5 Security Cheatsheet](https://html5sec.org/)
- * for more details.
+ * [#133](https://html5sec.org/#133) of the
+ * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
*
- * When working with HTML you should always [quote attribute values](http://wonko.com/post/html-escaping)
- * to reduce XSS vectors.
+ * When working with HTML you should always
+ * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
+ * XSS vectors.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category String
* @param {string} [string=''] The string to escape.
diff --git a/tools/eslint/node_modules/lodash/escapeRegExp.js b/tools/eslint/node_modules/lodash/escapeRegExp.js
index 52878c1d84738e..fe5196046bf19f 100644
--- a/tools/eslint/node_modules/lodash/escapeRegExp.js
+++ b/tools/eslint/node_modules/lodash/escapeRegExp.js
@@ -1,6 +1,9 @@
var toString = require('./toString');
-/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
+/**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
+ */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
reHasRegExpChar = RegExp(reRegExpChar.source);
@@ -10,6 +13,7 @@ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to escape.
* @returns {string} Returns the escaped string.
diff --git a/tools/eslint/node_modules/lodash/every.js b/tools/eslint/node_modules/lodash/every.js
index d100d0dbe670a8..14f68e744ff0a8 100644
--- a/tools/eslint/node_modules/lodash/every.js
+++ b/tools/eslint/node_modules/lodash/every.js
@@ -11,19 +11,22 @@ var arrayEvery = require('./_arrayEvery'),
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`.
* @example
*
* _.every([true, 1, null, 'yes'], Boolean);
* // => false
*
* var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false }
+ * { 'user': 'barney', 'age': 36, 'active': false },
+ * { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
* // The `_.matches` iteratee shorthand.
diff --git a/tools/eslint/node_modules/lodash/fill.js b/tools/eslint/node_modules/lodash/fill.js
index 4c0119fed30f94..5730b7d1296df4 100644
--- a/tools/eslint/node_modules/lodash/fill.js
+++ b/tools/eslint/node_modules/lodash/fill.js
@@ -9,6 +9,7 @@ var baseFill = require('./_baseFill'),
*
* @static
* @memberOf _
+ * @since 3.2.0
* @category Array
* @param {Array} array The array to fill.
* @param {*} value The value to fill `array` with.
diff --git a/tools/eslint/node_modules/lodash/filter.js b/tools/eslint/node_modules/lodash/filter.js
index 1df81c4cc7a295..f6a71a58f484fa 100644
--- a/tools/eslint/node_modules/lodash/filter.js
+++ b/tools/eslint/node_modules/lodash/filter.js
@@ -5,14 +5,16 @@ var arrayFilter = require('./_arrayFilter'),
/**
* Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three arguments:
- * (value, index|key, collection).
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new filtered array.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/find.js b/tools/eslint/node_modules/lodash/find.js
index c2ba356a0e97c4..83f0dbad0d9f11 100644
--- a/tools/eslint/node_modules/lodash/find.js
+++ b/tools/eslint/node_modules/lodash/find.js
@@ -6,14 +6,16 @@ var baseEach = require('./_baseEach'),
/**
* Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three arguments:
- * (value, index|key, collection).
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {*} Returns the matched element, else `undefined`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/findIndex.js b/tools/eslint/node_modules/lodash/findIndex.js
index 5343fd124d38c9..84acc7464282ea 100644
--- a/tools/eslint/node_modules/lodash/findIndex.js
+++ b/tools/eslint/node_modules/lodash/findIndex.js
@@ -7,9 +7,11 @@ var baseFindIndex = require('./_baseFindIndex'),
*
* @static
* @memberOf _
+ * @since 1.1.0
* @category Array
* @param {Array} array The array to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {number} Returns the index of the found element, else `-1`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/findKey.js b/tools/eslint/node_modules/lodash/findKey.js
index 95d01f392507de..16a9fd9ae8ef54 100644
--- a/tools/eslint/node_modules/lodash/findKey.js
+++ b/tools/eslint/node_modules/lodash/findKey.js
@@ -8,10 +8,13 @@ var baseFind = require('./_baseFind'),
*
* @static
* @memberOf _
+ * @since 1.1.0
* @category Object
* @param {Object} object The object to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @returns {string|undefined} Returns the key of the matched element,
+ * else `undefined`.
* @example
*
* var users = {
diff --git a/tools/eslint/node_modules/lodash/findLast.js b/tools/eslint/node_modules/lodash/findLast.js
index 0e5d5932badf58..d222a5588fab46 100644
--- a/tools/eslint/node_modules/lodash/findLast.js
+++ b/tools/eslint/node_modules/lodash/findLast.js
@@ -10,9 +10,11 @@ var baseEachRight = require('./_baseEachRight'),
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Collection
* @param {Array|Object} collection The collection to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {*} Returns the matched element, else `undefined`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/findLastIndex.js b/tools/eslint/node_modules/lodash/findLastIndex.js
index 2e62b367687b95..bf397d8fff559c 100644
--- a/tools/eslint/node_modules/lodash/findLastIndex.js
+++ b/tools/eslint/node_modules/lodash/findLastIndex.js
@@ -7,9 +7,11 @@ var baseFindIndex = require('./_baseFindIndex'),
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Array
* @param {Array} array The array to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {number} Returns the index of the found element, else `-1`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/findLastKey.js b/tools/eslint/node_modules/lodash/findLastKey.js
index 0380b07ce4cd00..fb915df4644b03 100644
--- a/tools/eslint/node_modules/lodash/findLastKey.js
+++ b/tools/eslint/node_modules/lodash/findLastKey.js
@@ -8,10 +8,13 @@ var baseFind = require('./_baseFind'),
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Object
* @param {Object} object The object to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @returns {string|undefined} Returns the key of the matched element,
+ * else `undefined`.
* @example
*
* var users = {
diff --git a/tools/eslint/node_modules/lodash/flatMap.js b/tools/eslint/node_modules/lodash/flatMap.js
index 1aaf28c4bc793e..f8307495f8cde3 100644
--- a/tools/eslint/node_modules/lodash/flatMap.js
+++ b/tools/eslint/node_modules/lodash/flatMap.js
@@ -2,15 +2,17 @@ var baseFlatten = require('./_baseFlatten'),
map = require('./map');
/**
- * Creates an array of flattened values by running each element in `collection`
- * through `iteratee` and concating its result to the other mapped values.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
+ * Creates a flattened array of values by running each element in `collection`
+ * thru `iteratee` and flattening the mapped results. The iteratee is invoked
+ * with three arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new flattened array.
* @example
*
@@ -22,7 +24,7 @@ var baseFlatten = require('./_baseFlatten'),
* // => [1, 1, 2, 2]
*/
function flatMap(collection, iteratee) {
- return baseFlatten(map(collection, iteratee));
+ return baseFlatten(map(collection, iteratee), 1);
}
module.exports = flatMap;
diff --git a/tools/eslint/node_modules/lodash/flatMapDeep.js b/tools/eslint/node_modules/lodash/flatMapDeep.js
new file mode 100644
index 00000000000000..3808262aab0f80
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/flatMapDeep.js
@@ -0,0 +1,32 @@
+var baseFlatten = require('./_baseFlatten'),
+ map = require('./map');
+
+/** Used as references for various `Number` constants. */
+var INFINITY = 1 / 0;
+
+/**
+ * This method is like `_.flatMap` except that it recursively flattens the
+ * mapped results.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
+ * @returns {Array} Returns the new flattened array.
+ * @example
+ *
+ * function duplicate(n) {
+ * return [[[n, n]]];
+ * }
+ *
+ * _.flatMapDeep([1, 2], duplicate);
+ * // => [1, 1, 2, 2]
+ */
+function flatMapDeep(collection, iteratee) {
+ return baseFlatten(map(collection, iteratee), INFINITY);
+}
+
+module.exports = flatMapDeep;
diff --git a/tools/eslint/node_modules/lodash/flatMapDepth.js b/tools/eslint/node_modules/lodash/flatMapDepth.js
new file mode 100644
index 00000000000000..d528bff265c493
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/flatMapDepth.js
@@ -0,0 +1,32 @@
+var baseFlatten = require('./_baseFlatten'),
+ map = require('./map'),
+ toInteger = require('./toInteger');
+
+/**
+ * This method is like `_.flatMap` except that it recursively flattens the
+ * mapped results up to `depth` times.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
+ * @param {number} [depth=1] The maximum recursion depth.
+ * @returns {Array} Returns the new flattened array.
+ * @example
+ *
+ * function duplicate(n) {
+ * return [[[n, n]]];
+ * }
+ *
+ * _.flatMapDepth([1, 2], duplicate, 2);
+ * // => [[1, 1], [2, 2]]
+ */
+function flatMapDepth(collection, iteratee, depth) {
+ depth = depth === undefined ? 1 : toInteger(depth);
+ return baseFlatten(map(collection, iteratee), depth);
+}
+
+module.exports = flatMapDepth;
diff --git a/tools/eslint/node_modules/lodash/flatten.js b/tools/eslint/node_modules/lodash/flatten.js
index 6a6b8cf7c69698..bd4f439789ac2a 100644
--- a/tools/eslint/node_modules/lodash/flatten.js
+++ b/tools/eslint/node_modules/lodash/flatten.js
@@ -1,21 +1,22 @@
var baseFlatten = require('./_baseFlatten');
/**
- * Flattens `array` a single level.
+ * Flattens `array` a single level deep.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
- * _.flatten([1, [2, 3, [4]]]);
- * // => [1, 2, 3, [4]]
+ * _.flatten([1, [2, [3, [4]], 5]]);
+ * // => [1, 2, [3, [4]], 5]
*/
function flatten(array) {
var length = array ? array.length : 0;
- return length ? baseFlatten(array) : [];
+ return length ? baseFlatten(array, 1) : [];
}
module.exports = flatten;
diff --git a/tools/eslint/node_modules/lodash/flattenDeep.js b/tools/eslint/node_modules/lodash/flattenDeep.js
index 3daab79e14009e..c20c781a84b6a5 100644
--- a/tools/eslint/node_modules/lodash/flattenDeep.js
+++ b/tools/eslint/node_modules/lodash/flattenDeep.js
@@ -1,21 +1,25 @@
var baseFlatten = require('./_baseFlatten');
+/** Used as references for various `Number` constants. */
+var INFINITY = 1 / 0;
+
/**
- * This method is like `_.flatten` except that it recursively flattens `array`.
+ * Recursively flattens `array`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
- * @param {Array} array The array to recursively flatten.
+ * @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
- * _.flattenDeep([1, [2, 3, [4]]]);
- * // => [1, 2, 3, 4]
+ * _.flattenDeep([1, [2, [3, [4]], 5]]);
+ * // => [1, 2, 3, 4, 5]
*/
function flattenDeep(array) {
var length = array ? array.length : 0;
- return length ? baseFlatten(array, true) : [];
+ return length ? baseFlatten(array, INFINITY) : [];
}
module.exports = flattenDeep;
diff --git a/tools/eslint/node_modules/lodash/flattenDepth.js b/tools/eslint/node_modules/lodash/flattenDepth.js
new file mode 100644
index 00000000000000..a0f4b5259a556d
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/flattenDepth.js
@@ -0,0 +1,33 @@
+var baseFlatten = require('./_baseFlatten'),
+ toInteger = require('./toInteger');
+
+/**
+ * Recursively flatten `array` up to `depth` times.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.4.0
+ * @category Array
+ * @param {Array} array The array to flatten.
+ * @param {number} [depth=1] The maximum recursion depth.
+ * @returns {Array} Returns the new flattened array.
+ * @example
+ *
+ * var array = [1, [2, [3, [4]], 5]];
+ *
+ * _.flattenDepth(array, 1);
+ * // => [1, 2, [3, [4]], 5]
+ *
+ * _.flattenDepth(array, 2);
+ * // => [1, 2, 3, [4], 5]
+ */
+function flattenDepth(array, depth) {
+ var length = array ? array.length : 0;
+ if (!length) {
+ return [];
+ }
+ depth = depth === undefined ? 1 : toInteger(depth);
+ return baseFlatten(array, depth);
+}
+
+module.exports = flattenDepth;
diff --git a/tools/eslint/node_modules/lodash/flip.js b/tools/eslint/node_modules/lodash/flip.js
index 6e14896fa8395e..82f796c240aed9 100644
--- a/tools/eslint/node_modules/lodash/flip.js
+++ b/tools/eslint/node_modules/lodash/flip.js
@@ -8,6 +8,7 @@ var FLIP_FLAG = 512;
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Function
* @param {Function} func The function to flip arguments for.
* @returns {Function} Returns the new function.
diff --git a/tools/eslint/node_modules/lodash/floor.js b/tools/eslint/node_modules/lodash/floor.js
index 9bbf097b43e69d..ab6dfa28a4c591 100644
--- a/tools/eslint/node_modules/lodash/floor.js
+++ b/tools/eslint/node_modules/lodash/floor.js
@@ -5,6 +5,7 @@ var createRound = require('./_createRound');
*
* @static
* @memberOf _
+ * @since 3.10.0
* @category Math
* @param {number} number The number to round down.
* @param {number} [precision=0] The precision to round down to.
diff --git a/tools/eslint/node_modules/lodash/flow.js b/tools/eslint/node_modules/lodash/flow.js
index b773405f6a9b6b..004cda01a495c8 100644
--- a/tools/eslint/node_modules/lodash/flow.js
+++ b/tools/eslint/node_modules/lodash/flow.js
@@ -7,6 +7,7 @@ var createFlow = require('./_createFlow');
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Util
* @param {...(Function|Function[])} [funcs] Functions to invoke.
* @returns {Function} Returns the new function.
diff --git a/tools/eslint/node_modules/lodash/flowRight.js b/tools/eslint/node_modules/lodash/flowRight.js
index e844822bdac2cc..f543f252f1a908 100644
--- a/tools/eslint/node_modules/lodash/flowRight.js
+++ b/tools/eslint/node_modules/lodash/flowRight.js
@@ -5,6 +5,7 @@ var createFlow = require('./_createFlow');
* invokes the given functions from right to left.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {...(Function|Function[])} [funcs] Functions to invoke.
diff --git a/tools/eslint/node_modules/lodash/forEach.js b/tools/eslint/node_modules/lodash/forEach.js
index e7bde6dee8b915..5f8d9b015cda87 100644
--- a/tools/eslint/node_modules/lodash/forEach.js
+++ b/tools/eslint/node_modules/lodash/forEach.js
@@ -1,19 +1,20 @@
var arrayEach = require('./_arrayEach'),
baseEach = require('./_baseEach'),
- isArray = require('./isArray'),
- toFunction = require('./_toFunction');
+ baseIteratee = require('./_baseIteratee'),
+ isArray = require('./isArray');
/**
* Iterates over elements of `collection` invoking `iteratee` for each element.
* The iteratee is invoked with three arguments: (value, index|key, collection).
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
- * **Note:** As with other "Collections" methods, objects with a "length" property
- * are iterated like arrays. To avoid this behavior use `_.forIn` or `_.forOwn`
- * for object iteration.
+ * **Note:** As with other "Collections" methods, objects with a "length"
+ * property are iterated like arrays. To avoid this behavior use `_.forIn`
+ * or `_.forOwn` for object iteration.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @alias each
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
@@ -24,17 +25,17 @@ var arrayEach = require('./_arrayEach'),
* _([1, 2]).forEach(function(value) {
* console.log(value);
* });
- * // => logs `1` then `2`
+ * // => Logs `1` then `2`.
*
* _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
* console.log(key);
* });
- * // => logs 'a' then 'b' (iteration order is not guaranteed)
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forEach(collection, iteratee) {
return (typeof iteratee == 'function' && isArray(collection))
? arrayEach(collection, iteratee)
- : baseEach(collection, toFunction(iteratee));
+ : baseEach(collection, baseIteratee(iteratee));
}
module.exports = forEach;
diff --git a/tools/eslint/node_modules/lodash/forEachRight.js b/tools/eslint/node_modules/lodash/forEachRight.js
index 68f2e2f2c5cc6e..17a7137cbd1256 100644
--- a/tools/eslint/node_modules/lodash/forEachRight.js
+++ b/tools/eslint/node_modules/lodash/forEachRight.js
@@ -1,7 +1,7 @@
var arrayEachRight = require('./_arrayEachRight'),
baseEachRight = require('./_baseEachRight'),
- isArray = require('./isArray'),
- toFunction = require('./_toFunction');
+ baseIteratee = require('./_baseIteratee'),
+ isArray = require('./isArray');
/**
* This method is like `_.forEach` except that it iterates over elements of
@@ -9,6 +9,7 @@ var arrayEachRight = require('./_arrayEachRight'),
*
* @static
* @memberOf _
+ * @since 2.0.0
* @alias eachRight
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
@@ -19,12 +20,12 @@ var arrayEachRight = require('./_arrayEachRight'),
* _.forEachRight([1, 2], function(value) {
* console.log(value);
* });
- * // => logs `2` then `1`
+ * // => Logs `2` then `1`.
*/
function forEachRight(collection, iteratee) {
return (typeof iteratee == 'function' && isArray(collection))
? arrayEachRight(collection, iteratee)
- : baseEachRight(collection, toFunction(iteratee));
+ : baseEachRight(collection, baseIteratee(iteratee));
}
module.exports = forEachRight;
diff --git a/tools/eslint/node_modules/lodash/forIn.js b/tools/eslint/node_modules/lodash/forIn.js
index d68dd3ada05bfe..811237f6572471 100644
--- a/tools/eslint/node_modules/lodash/forIn.js
+++ b/tools/eslint/node_modules/lodash/forIn.js
@@ -1,15 +1,16 @@
var baseFor = require('./_baseFor'),
- keysIn = require('./keysIn'),
- toFunction = require('./_toFunction');
+ baseIteratee = require('./_baseIteratee'),
+ keysIn = require('./keysIn');
/**
- * Iterates over own and inherited enumerable properties of an object invoking
- * `iteratee` for each property. The iteratee is invoked with three arguments:
- * (value, key, object). Iteratee functions may exit iteration early by explicitly
- * returning `false`.
+ * Iterates over own and inherited enumerable string keyed properties of an
+ * object invoking `iteratee` for each property. The iteratee is invoked with
+ * three arguments: (value, key, object). Iteratee functions may exit iteration
+ * early by explicitly returning `false`.
*
* @static
* @memberOf _
+ * @since 0.3.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -26,10 +27,12 @@ var baseFor = require('./_baseFor'),
* _.forIn(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'a', 'b', then 'c' (iteration order is not guaranteed)
+ * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
*/
function forIn(object, iteratee) {
- return object == null ? object : baseFor(object, toFunction(iteratee), keysIn);
+ return object == null
+ ? object
+ : baseFor(object, baseIteratee(iteratee), keysIn);
}
module.exports = forIn;
diff --git a/tools/eslint/node_modules/lodash/forInRight.js b/tools/eslint/node_modules/lodash/forInRight.js
index 9dedc259de2753..00b73a7c1a9440 100644
--- a/tools/eslint/node_modules/lodash/forInRight.js
+++ b/tools/eslint/node_modules/lodash/forInRight.js
@@ -1,6 +1,6 @@
var baseForRight = require('./_baseForRight'),
- keysIn = require('./keysIn'),
- toFunction = require('./_toFunction');
+ baseIteratee = require('./_baseIteratee'),
+ keysIn = require('./keysIn');
/**
* This method is like `_.forIn` except that it iterates over properties of
@@ -8,6 +8,7 @@ var baseForRight = require('./_baseForRight'),
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -24,10 +25,12 @@ var baseForRight = require('./_baseForRight'),
* _.forInRight(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'
+ * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
*/
function forInRight(object, iteratee) {
- return object == null ? object : baseForRight(object, toFunction(iteratee), keysIn);
+ return object == null
+ ? object
+ : baseForRight(object, baseIteratee(iteratee), keysIn);
}
module.exports = forInRight;
diff --git a/tools/eslint/node_modules/lodash/forOwn.js b/tools/eslint/node_modules/lodash/forOwn.js
index ee066cc7c8416b..a680e53a004bcb 100644
--- a/tools/eslint/node_modules/lodash/forOwn.js
+++ b/tools/eslint/node_modules/lodash/forOwn.js
@@ -1,14 +1,15 @@
var baseForOwn = require('./_baseForOwn'),
- toFunction = require('./_toFunction');
+ baseIteratee = require('./_baseIteratee');
/**
- * Iterates over own enumerable properties of an object invoking `iteratee`
- * for each property. The iteratee is invoked with three arguments:
+ * Iterates over own enumerable string keyed properties of an object invoking
+ * `iteratee` for each property. The iteratee is invoked with three arguments:
* (value, key, object). Iteratee functions may exit iteration early by
* explicitly returning `false`.
*
* @static
* @memberOf _
+ * @since 0.3.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -25,10 +26,10 @@ var baseForOwn = require('./_baseForOwn'),
* _.forOwn(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'a' then 'b' (iteration order is not guaranteed)
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forOwn(object, iteratee) {
- return object && baseForOwn(object, toFunction(iteratee));
+ return object && baseForOwn(object, baseIteratee(iteratee));
}
module.exports = forOwn;
diff --git a/tools/eslint/node_modules/lodash/forOwnRight.js b/tools/eslint/node_modules/lodash/forOwnRight.js
index 1016195b97b123..5605475f48465b 100644
--- a/tools/eslint/node_modules/lodash/forOwnRight.js
+++ b/tools/eslint/node_modules/lodash/forOwnRight.js
@@ -1,5 +1,5 @@
var baseForOwnRight = require('./_baseForOwnRight'),
- toFunction = require('./_toFunction');
+ baseIteratee = require('./_baseIteratee');
/**
* This method is like `_.forOwn` except that it iterates over properties of
@@ -7,6 +7,7 @@ var baseForOwnRight = require('./_baseForOwnRight'),
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -23,10 +24,10 @@ var baseForOwnRight = require('./_baseForOwnRight'),
* _.forOwnRight(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'
+ * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
*/
function forOwnRight(object, iteratee) {
- return object && baseForOwnRight(object, toFunction(iteratee));
+ return object && baseForOwnRight(object, baseIteratee(iteratee));
}
module.exports = forOwnRight;
diff --git a/tools/eslint/node_modules/lodash/fp.js b/tools/eslint/node_modules/lodash/fp.js
index d8887e0fe778ae..e372dbbdf6d539 100644
--- a/tools/eslint/node_modules/lodash/fp.js
+++ b/tools/eslint/node_modules/lodash/fp.js
@@ -1,2 +1,2 @@
-var _ = require('./lodash').noConflict().runInContext();
-module.exports = require('./fp/convert')(_);
+var _ = require('./lodash.min').runInContext();
+module.exports = require('./fp/_baseConvert')(_, _);
diff --git a/tools/eslint/node_modules/lodash/fp/__.js b/tools/eslint/node_modules/lodash/fp/__.js
new file mode 100644
index 00000000000000..4af98deb4e9cca
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/__.js
@@ -0,0 +1 @@
+module.exports = require('./placeholder');
diff --git a/tools/eslint/node_modules/lodash/fp/_baseConvert.js b/tools/eslint/node_modules/lodash/fp/_baseConvert.js
index 76cc02ce86388b..e7e631ce4bbb01 100644
--- a/tools/eslint/node_modules/lodash/fp/_baseConvert.js
+++ b/tools/eslint/node_modules/lodash/fp/_baseConvert.js
@@ -1,14 +1,99 @@
var mapping = require('./_mapping'),
mutateMap = mapping.mutate,
- placeholder = {};
+ fallbackHolder = require('./placeholder');
+
+/**
+ * Creates a function, with an arity of `n`, that invokes `func` with the
+ * arguments it receives.
+ *
+ * @private
+ * @param {Function} func The function to wrap.
+ * @param {number} n The arity of the new function.
+ * @returns {Function} Returns the new function.
+ */
+function baseArity(func, n) {
+ return n == 2
+ ? function(a, b) { return func.apply(undefined, arguments); }
+ : function(a) { return func.apply(undefined, arguments); };
+}
+
+/**
+ * Creates a function that invokes `func`, with up to `n` arguments, ignoring
+ * any additional arguments.
+ *
+ * @private
+ * @param {Function} func The function to cap arguments for.
+ * @param {number} n The arity cap.
+ * @returns {Function} Returns the new function.
+ */
+function baseAry(func, n) {
+ return n == 2
+ ? function(a, b) { return func(a, b); }
+ : function(a) { return func(a); };
+}
+
+/**
+ * Creates a clone of `array`.
+ *
+ * @private
+ * @param {Array} array The array to clone.
+ * @returns {Array} Returns the cloned array.
+ */
+function cloneArray(array) {
+ var length = array ? array.length : 0,
+ result = Array(length);
+
+ while (length--) {
+ result[length] = array[length];
+ }
+ return result;
+}
+
+/**
+ * Creates a function that clones a given object using the assignment `func`.
+ *
+ * @private
+ * @param {Function} func The assignment function.
+ * @returns {Function} Returns the new cloner function.
+ */
+function createCloner(func) {
+ return function(object) {
+ return func({}, object);
+ };
+}
+
+/**
+ * Creates a function that wraps `func` and uses `cloner` to clone the first
+ * argument it receives.
+ *
+ * @private
+ * @param {Function} func The function to wrap.
+ * @param {Function} cloner The function to clone arguments.
+ * @returns {Function} Returns the new immutable function.
+ */
+function immutWrap(func, cloner) {
+ return function() {
+ var length = arguments.length;
+ if (!length) {
+ return result;
+ }
+ var args = Array(length);
+ while (length--) {
+ args[length] = arguments[length];
+ }
+ var result = args[0] = cloner.apply(undefined, args);
+ func.apply(undefined, args);
+ return result;
+ };
+}
/**
* The base implementation of `convert` which accepts a `util` object of methods
* required to perform conversions.
*
* @param {Object} util The util object.
- * @param {string} name The name of the function to wrap.
- * @param {Function} func The function to wrap.
+ * @param {string} name The name of the function to convert.
+ * @param {Function} func The function to convert.
* @param {Object} [options] The options object.
* @param {boolean} [options.cap=true] Specify capping iteratee arguments.
* @param {boolean} [options.curry=true] Specify currying.
@@ -18,15 +103,20 @@ var mapping = require('./_mapping'),
* @returns {Function|Object} Returns the converted function or object.
*/
function baseConvert(util, name, func, options) {
- options || (options = {});
+ var setPlaceholder,
+ isLib = typeof name == 'function',
+ isObj = name === Object(name);
- if (typeof func != 'function') {
+ if (isObj) {
+ options = func;
func = name;
name = undefined;
}
if (func == null) {
throw new TypeError;
}
+ options || (options = {});
+
var config = {
'cap': 'cap' in options ? options.cap : true,
'curry': 'curry' in options ? options.curry : true,
@@ -35,103 +125,62 @@ function baseConvert(util, name, func, options) {
'rearg': 'rearg' in options ? options.rearg : true
};
- var forceRearg = ('rearg' in options) && options.rearg;
+ var forceCurry = ('curry' in options) && options.curry,
+ forceFixed = ('fixed' in options) && options.fixed,
+ forceRearg = ('rearg' in options) && options.rearg,
+ placeholder = isLib ? func : fallbackHolder,
+ pristine = isLib ? func.runInContext() : undefined;
- var isLib = name === undefined && typeof func.VERSION == 'string';
-
- var _ = isLib ? func : {
+ var helpers = isLib ? func : {
'ary': util.ary,
- 'cloneDeep': util.cloneDeep,
+ 'assign': util.assign,
+ 'clone': util.clone,
'curry': util.curry,
'forEach': util.forEach,
+ 'isArray': util.isArray,
'isFunction': util.isFunction,
'iteratee': util.iteratee,
'keys': util.keys,
'rearg': util.rearg,
- 'spread': util.spread
- };
-
- var ary = _.ary,
- cloneDeep = _.cloneDeep,
- curry = _.curry,
- each = _.forEach,
- isFunction = _.isFunction,
- keys = _.keys,
- rearg = _.rearg,
- spread = _.spread;
-
- var baseArity = function(func, n) {
- return n == 2
- ? function(a, b) { return func.apply(undefined, arguments); }
- : function(a) { return func.apply(undefined, arguments); };
- };
-
- var baseAry = function(func, n) {
- return n == 2
- ? function(a, b) { return func(a, b); }
- : function(a) { return func(a); };
- };
-
- var cloneArray = function(array) {
- var length = array ? array.length : 0,
- result = Array(length);
-
- while (length--) {
- result[length] = array[length];
- }
- return result;
- };
-
- var createCloner = function(func) {
- return function(object) {
- return func({}, object);
- };
- };
-
- var immutWrap = function(func, cloner) {
- return overArg(func, cloner, true);
- };
-
- var iterateeAry = function(func, n) {
- return overArg(func, function(func) {
- return baseAry(func, n);
- });
- };
-
- var iterateeRearg = function(func, indexes) {
- return overArg(func, function(func) {
- var n = indexes.length;
- return baseArity(rearg(baseAry(func, n), indexes), n);
- });
+ 'spread': util.spread,
+ 'toPath': util.toPath
};
- var overArg = function(func, iteratee, retArg) {
- return function() {
- var length = arguments.length,
- args = Array(length);
+ var ary = helpers.ary,
+ assign = helpers.assign,
+ clone = helpers.clone,
+ curry = helpers.curry,
+ each = helpers.forEach,
+ isArray = helpers.isArray,
+ isFunction = helpers.isFunction,
+ keys = helpers.keys,
+ rearg = helpers.rearg,
+ spread = helpers.spread,
+ toPath = helpers.toPath;
- while (length--) {
- args[length] = arguments[length];
- }
- args[0] = iteratee(args[0]);
- var result = func.apply(undefined, args);
- return retArg ? args[0] : result;
- };
- };
+ var aryMethodKeys = keys(mapping.aryMethod);
var wrappers = {
+ 'castArray': function(castArray) {
+ return function() {
+ var value = arguments[0];
+ return isArray(value)
+ ? castArray(cloneArray(value))
+ : castArray.apply(undefined, arguments);
+ };
+ },
'iteratee': function(iteratee) {
return function() {
var func = arguments[0],
- arity = arguments[1];
+ arity = arguments[1],
+ result = iteratee(func, arity),
+ length = result.length;
- if (!config.cap) {
- return iteratee(func, arity);
+ if (config.cap && typeof arity == 'number') {
+ arity = arity > 2 ? (arity - 2) : 1;
+ return (length && length <= arity) ? result : baseAry(result, arity);
}
- arity = arity > 2 ? (arity - 2) : 1;
- func = iteratee(func);
- var length = func.length;
- return (length && length <= arity) ? func : baseAry(func, arity);
+ return result;
};
},
'mixin': function(mixin) {
@@ -166,19 +215,148 @@ function baseConvert(util, name, func, options) {
},
'runInContext': function(runInContext) {
return function(context) {
- return baseConvert(util, runInContext(context), undefined, options);
+ return baseConvert(util, runInContext(context), options);
};
}
};
- var wrap = function(name, func) {
+ /*--------------------------------------------------------------------------*/
+
+ /**
+ * Creates a clone of `object` by `path`.
+ *
+ * @private
+ * @param {Object} object The object to clone.
+ * @param {Array|string} path The path to clone by.
+ * @returns {Object} Returns the cloned object.
+ */
+ function cloneByPath(object, path) {
+ path = toPath(path);
+
+ var index = -1,
+ length = path.length,
+ result = clone(Object(object)),
+ nested = result;
+
+ while (nested != null && ++index < length) {
+ var key = path[index],
+ value = nested[key];
+
+ if (value != null) {
+ nested[key] = clone(Object(value));
+ }
+ nested = nested[key];
+ }
+ return result;
+ }
+
+ /**
+ * Converts `lodash` to an immutable auto-curried iteratee-first data-last
+ * version with conversion `options` applied.
+ *
+ * @param {Object} [options] The options object. See `baseConvert` for more details.
+ * @returns {Function} Returns the converted `lodash`.
+ */
+ function convertLib(options) {
+ return _.runInContext.convert(options)(undefined);
+ }
+
+ /**
+ * Create a converter function for `func` of `name`.
+ *
+ * @param {string} name The name of the function to convert.
+ * @param {Function} func The function to convert.
+ * @returns {Function} Returns the new converter function.
+ */
+ function createConverter(name, func) {
+ var oldOptions = options;
+ return function(options) {
+ var newUtil = isLib ? pristine : helpers,
+ newFunc = isLib ? pristine[name] : func,
+ newOptions = assign(assign({}, oldOptions), options);
+
+ return baseConvert(newUtil, name, newFunc, newOptions);
+ };
+ }
+
+ /**
+ * Creates a function that wraps `func` to invoke its iteratee, with up to `n`
+ * arguments, ignoring any additional arguments.
+ *
+ * @private
+ * @param {Function} func The function to cap iteratee arguments for.
+ * @param {number} n The arity cap.
+ * @returns {Function} Returns the new function.
+ */
+ function iterateeAry(func, n) {
+ return overArg(func, function(func) {
+ return typeof func == 'function' ? baseAry(func, n) : func;
+ });
+ }
+
+ /**
+ * Creates a function that wraps `func` to invoke its iteratee with arguments
+ * arranged according to the specified `indexes` where the argument value at
+ * the first index is provided as the first argument, the argument value at
+ * the second index is provided as the second argument, and so on.
+ *
+ * @private
+ * @param {Function} func The function to rearrange iteratee arguments for.
+ * @param {number[]} indexes The arranged argument indexes.
+ * @returns {Function} Returns the new function.
+ */
+ function iterateeRearg(func, indexes) {
+ return overArg(func, function(func) {
+ var n = indexes.length;
+ return baseArity(rearg(baseAry(func, n), indexes), n);
+ });
+ }
+
+ /**
+ * Creates a function that invokes `func` with its first argument passed
+ * thru `transform`.
+ *
+ * @private
+ * @param {Function} func The function to wrap.
+ * @param {...Function} transform The functions to transform the first argument.
+ * @returns {Function} Returns the new function.
+ */
+ function overArg(func, transform) {
+ return function() {
+ var length = arguments.length;
+ if (!length) {
+ return func();
+ }
+ var args = Array(length);
+ while (length--) {
+ args[length] = arguments[length];
+ }
+ var index = config.rearg ? 0 : (length - 1);
+ args[index] = transform(args[index]);
+ return func.apply(undefined, args);
+ };
+ }
+
+ /**
+ * Creates a function that wraps `func` and applys the conversions
+ * rules by `name`.
+ *
+ * @private
+ * @param {string} name The name of the function to wrap.
+ * @param {Function} func The function to wrap.
+ * @returns {Function} Returns the converted function.
+ */
+ function wrap(name, func) {
name = mapping.aliasToReal[name] || name;
- var wrapper = wrappers[name];
+
+ var result,
+ wrapped = func,
+ wrapper = wrappers[name];
+
if (wrapper) {
- return wrapper(func);
+ wrapped = wrapper(func);
}
- var wrapped = func;
- if (config.immutable) {
+ else if (config.immutable) {
if (mutateMap.array[name]) {
wrapped = immutWrap(func, cloneArray);
}
@@ -186,24 +364,24 @@ function baseConvert(util, name, func, options) {
wrapped = immutWrap(func, createCloner(func));
}
else if (mutateMap.set[name]) {
- wrapped = immutWrap(func, cloneDeep);
+ wrapped = immutWrap(func, cloneByPath);
}
}
- var result;
- each(mapping.caps, function(cap) {
- each(mapping.aryMethod[cap], function(otherName) {
+ each(aryMethodKeys, function(aryKey) {
+ each(mapping.aryMethod[aryKey], function(otherName) {
if (name == otherName) {
var aryN = !isLib && mapping.iterateeAry[name],
reargIndexes = mapping.iterateeRearg[name],
spreadStart = mapping.methodSpread[name];
- if (config.fixed) {
+ result = wrapped;
+ if (config.fixed && (forceFixed || !mapping.skipFixed[name])) {
result = spreadStart === undefined
- ? ary(wrapped, cap)
- : spread(wrapped, spreadStart);
+ ? ary(result, aryKey)
+ : spread(result, spreadStart);
}
- if (config.rearg && cap > 1 && (forceRearg || !mapping.skipRearg[name])) {
- result = rearg(result, mapping.methodRearg[name] || mapping.aryRearg[cap]);
+ if (config.rearg && aryKey > 1 && (forceRearg || !mapping.skipRearg[name])) {
+ result = rearg(result, mapping.methodRearg[name] || mapping.aryRearg[aryKey]);
}
if (config.cap) {
if (reargIndexes) {
@@ -212,8 +390,9 @@ function baseConvert(util, name, func, options) {
result = iterateeAry(result, aryN);
}
}
- if (config.curry && cap > 1) {
- result = curry(result, cap);
+ if (forceCurry || (config.curry && aryKey > 1)) {
+ forceCurry && console.log(forceCurry, name);
+ result = curry(result, aryKey);
}
return false;
}
@@ -221,36 +400,63 @@ function baseConvert(util, name, func, options) {
return !result;
});
- result || (result = func);
+ result || (result = wrapped);
+ if (result == func) {
+ result = forceCurry ? curry(result, 1) : function() {
+ return func.apply(this, arguments);
+ };
+ }
+ result.convert = createConverter(name, func);
if (mapping.placeholder[name]) {
- func.placeholder = result.placeholder = placeholder;
+ setPlaceholder = true;
+ result.placeholder = func.placeholder = placeholder;
}
return result;
- };
+ }
- if (!isLib) {
+ /*--------------------------------------------------------------------------*/
+
+ if (!isObj) {
return wrap(name, func);
}
- // Add placeholder.
- _.placeholder = placeholder;
+ var _ = func;
- // Iterate over methods for the current ary cap.
+ // Convert methods by ary cap.
var pairs = [];
- each(mapping.caps, function(cap) {
- each(mapping.aryMethod[cap], function(key) {
- var func = _[mapping.rename[key] || key];
+ each(aryMethodKeys, function(aryKey) {
+ each(mapping.aryMethod[aryKey], function(key) {
+ var func = _[mapping.remap[key] || key];
if (func) {
pairs.push([key, wrap(key, func)]);
}
});
});
+ // Convert remaining methods.
+ each(keys(_), function(key) {
+ var func = _[key];
+ if (typeof func == 'function') {
+ var length = pairs.length;
+ while (length--) {
+ if (pairs[length][0] == key) {
+ return;
+ }
+ }
+ func.convert = createConverter(key, func);
+ pairs.push([key, func]);
+ }
+ });
+
// Assign to `_` leaving `_.prototype` unchanged to allow chaining.
each(pairs, function(pair) {
_[pair[0]] = pair[1];
});
- // Wrap the lodash method and its aliases.
+ _.convert = convertLib;
+ if (setPlaceholder) {
+ _.placeholder = placeholder;
+ }
+ // Assign aliases.
each(keys(_), function(key) {
each(mapping.realToAlias[key] || [], function(alias) {
_[alias] = _[key];
diff --git a/tools/eslint/node_modules/lodash/fp/_convertBrowser.js b/tools/eslint/node_modules/lodash/fp/_convertBrowser.js
index 0e69e66cda6c94..1874a5423cccb5 100644
--- a/tools/eslint/node_modules/lodash/fp/_convertBrowser.js
+++ b/tools/eslint/node_modules/lodash/fp/_convertBrowser.js
@@ -1,14 +1,18 @@
var baseConvert = require('./_baseConvert');
/**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last version.
+ * Converts `lodash` to an immutable auto-curried iteratee-first data-last
+ * version with conversion `options` applied.
*
- * @param {Function} lodash The lodash function.
+ * @param {Function} lodash The lodash function to convert.
* @param {Object} [options] The options object. See `baseConvert` for more details.
* @returns {Function} Returns the converted `lodash`.
*/
function browserConvert(lodash, options) {
- return baseConvert(lodash, lodash, undefined, options);
+ return baseConvert(lodash, lodash, options);
}
+if (typeof _ == 'function') {
+ _ = browserConvert(_.runInContext());
+}
module.exports = browserConvert;
diff --git a/tools/eslint/node_modules/lodash/fp/_falseOptions.js b/tools/eslint/node_modules/lodash/fp/_falseOptions.js
new file mode 100644
index 00000000000000..773235e3437296
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/_falseOptions.js
@@ -0,0 +1,7 @@
+module.exports = {
+ 'cap': false,
+ 'curry': false,
+ 'fixed': false,
+ 'immutable': false,
+ 'rearg': false
+};
diff --git a/tools/eslint/node_modules/lodash/fp/_mapping.js b/tools/eslint/node_modules/lodash/fp/_mapping.js
index 75f0babaa65b9a..d9d43fd93805e7 100644
--- a/tools/eslint/node_modules/lodash/fp/_mapping.js
+++ b/tools/eslint/node_modules/lodash/fp/_mapping.js
@@ -1,22 +1,35 @@
/** Used to map aliases to their real names. */
exports.aliasToReal = {
+
+ // Lodash aliases.
+ 'each': 'forEach',
+ 'eachRight': 'forEachRight',
+ 'entries': 'toPairs',
+ 'entriesIn': 'toPairsIn',
+ 'extend': 'assignIn',
+ 'extendWith': 'assignInWith',
+ 'first': 'head',
+
+ // Ramda aliases.
'__': 'placeholder',
- 'all': 'some',
+ 'all': 'every',
'allPass': 'overEvery',
+ 'always': 'constant',
+ 'any': 'some',
+ 'anyPass': 'overSome',
'apply': 'spread',
'assoc': 'set',
'assocPath': 'set',
+ 'complement': 'negate',
'compose': 'flowRight',
'contains': 'includes',
'dissoc': 'unset',
'dissocPath': 'unset',
- 'each': 'forEach',
- 'eachRight': 'forEachRight',
'equals': 'isEqual',
- 'extend': 'assignIn',
- 'extendWith': 'assignInWith',
- 'first': 'head',
+ 'identical': 'eq',
'init': 'initial',
+ 'invertObj': 'invert',
+ 'juxt': 'over',
'mapObj': 'mapValues',
'omitAll': 'omit',
'nAry': 'ary',
@@ -28,7 +41,6 @@ exports.aliasToReal = {
'prop': 'get',
'propOf': 'propertyOf',
'propOr': 'getOr',
- 'somePass': 'overSome',
'unapply': 'rest',
'unnest': 'flatten',
'useWith': 'overArgs',
@@ -38,61 +50,58 @@ exports.aliasToReal = {
/** Used to map ary to method names. */
exports.aryMethod = {
- 1: [
- 'attempt', 'ceil', 'create', 'curry', 'curryRight', 'floor', 'fromPairs',
- 'invert', 'iteratee', 'memoize', 'method', 'methodOf', 'mixin', 'over',
- 'overEvery', 'overSome', 'rest', 'reverse', 'round', 'runInContext',
- 'spread', 'template', 'trim', 'trimEnd', 'trimStart', 'uniqueId', 'words'
- ],
- 2: [
- 'add', 'after', 'ary', 'assign', 'assignIn', 'at', 'before', 'bind', 'bindKey',
- 'chunk', 'cloneDeepWith', 'cloneWith', 'concat', 'countBy', 'curryN',
- 'curryRightN', 'debounce', 'defaults', 'defaultsDeep', 'delay', 'difference',
- 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq', 'every',
- 'filter', 'find', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex',
- 'findLastKey', 'flatMap', 'forEach', 'forEachRight', 'forIn', 'forInRight',
- 'forOwn', 'forOwnRight', 'get', 'groupBy', 'gt', 'gte', 'has', 'hasIn',
- 'includes', 'indexOf', 'intersection', 'invertBy', 'invoke', 'invokeMap',
- 'isEqual', 'isMatch', 'join', 'keyBy', 'lastIndexOf', 'lt', 'lte', 'map',
- 'mapKeys', 'mapValues', 'matchesProperty', 'maxBy', 'merge', 'minBy', 'omit',
- 'omitBy', 'orderBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt',
- 'partial', 'partialRight', 'partition', 'pick', 'pickBy', 'pull', 'pullAll',
- 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
- 'repeat', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
- 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
- 'split', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight', 'takeRightWhile',
- 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars', 'trimCharsEnd',
- 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith', 'unset',
- 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject', 'zipObjectDeep'
- ],
- 3: [
- 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
- 'getOr', 'inRange', 'intersectionBy', 'intersectionWith', 'isEqualWith',
- 'isMatchWith', 'mergeWith', 'pullAllBy', 'reduce', 'reduceRight', 'replace',
- 'set', 'slice', 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy',
- 'unionWith', 'xorBy', 'xorWith', 'zipWith'
- ],
- 4: [
- 'fill', 'setWith'
- ]
+ '1': [
+ 'attempt', 'castArray', 'ceil', 'create', 'curry', 'curryRight', 'floor',
+ 'flow', 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method',
+ 'methodOf', 'mixin', 'over', 'overEvery', 'overSome', 'rest', 'reverse',
+ 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
+ 'uniqueId', 'words'
+ ],
+ '2': [
+ 'add', 'after', 'ary', 'assign', 'assignIn', 'at', 'before', 'bind', 'bindAll',
+ 'bindKey', 'chunk', 'cloneDeepWith', 'cloneWith', 'concat', 'countBy', 'curryN',
+ 'curryRightN', 'debounce', 'defaults', 'defaultsDeep', 'delay', 'difference',
+ 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith',
+ 'eq', 'every', 'filter', 'find', 'find', 'findIndex', 'findKey', 'findLast',
+ 'findLastIndex', 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth',
+ 'forEach', 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight',
+ 'get', 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf',
+ 'intersection', 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch',
+ 'join', 'keyBy', 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues',
+ 'matchesProperty', 'maxBy', 'meanBy', 'merge', 'minBy', 'multiply', 'omit', 'omitBy',
+ 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial', 'partialRight',
+ 'partition', 'pick', 'pickBy', 'pull', 'pullAll', 'pullAt', 'random', 'range',
+ 'rangeRight', 'rearg', 'reject', 'remove', 'repeat', 'restFrom', 'result',
+ 'sampleSize', 'some', 'sortBy', 'sortedIndex', 'sortedIndexOf', 'sortedLastIndex',
+ 'sortedLastIndexOf', 'sortedUniqBy', 'split', 'spreadFrom', 'startsWith',
+ 'subtract', 'sumBy', 'take', 'takeRight', 'takeRightWhile', 'takeWhile', 'tap',
+ 'throttle', 'thru', 'times', 'trimChars', 'trimCharsEnd', 'trimCharsStart',
+ 'truncate', 'union', 'uniqBy', 'uniqWith', 'unset', 'unzipWith', 'without',
+ 'wrap', 'xor', 'zip', 'zipObject', 'zipObjectDeep'
+ ],
+ '3': [
+ 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
+ 'getOr', 'inRange', 'intersectionBy', 'intersectionWith', 'invokeArgs',
+ 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth', 'mergeWith',
+ 'orderBy', 'padChars', 'padCharsEnd', 'padCharsStart', 'pullAllBy',
+ 'pullAllWith', 'reduce', 'reduceRight', 'replace', 'set', 'slice',
+ 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith',
+ 'update', 'xorBy', 'xorWith', 'zipWith'
+ ],
+ '4': [
+ 'fill', 'setWith', 'updateWith'
+ ]
};
/** Used to map ary to rearg configs. */
exports.aryRearg = {
- 2: [1, 0],
- 3: [2, 1, 0],
- 4: [3, 2, 0, 1]
+ '2': [1, 0],
+ '3': [2, 0, 1],
+ '4': [3, 2, 0, 1]
};
-/** Used to iterate `mapping.aryMethod` keys. */
-exports.caps = [1, 2, 3, 4];
-
/** Used to map method names to their iteratee ary. */
exports.iterateeAry = {
- 'assignWith': 2,
- 'assignInWith': 2,
- 'cloneDeepWith': 1,
- 'cloneWith': 1,
'dropRightWhile': 1,
'dropWhile': 1,
'every': 1,
@@ -104,14 +113,14 @@ exports.iterateeAry = {
'findLastIndex': 1,
'findLastKey': 1,
'flatMap': 1,
+ 'flatMapDeep': 1,
+ 'flatMapDepth': 1,
'forEach': 1,
'forEachRight': 1,
'forIn': 1,
'forInRight': 1,
'forOwn': 1,
'forOwnRight': 1,
- 'isEqualWith': 2,
- 'isMatchWith': 2,
'map': 1,
'mapKeys': 1,
'mapValues': 1,
@@ -129,8 +138,6 @@ exports.iterateeAry = {
/** Used to map method names to iteratee rearg configs. */
exports.iterateeRearg = {
- 'findKey': [1],
- 'findLastKey': [1],
'mapKeys': [1]
};
@@ -138,20 +145,29 @@ exports.iterateeRearg = {
exports.methodRearg = {
'assignInWith': [1, 2, 0],
'assignWith': [1, 2, 0],
- 'clamp': [2, 0, 1],
+ 'getOr': [2, 1, 0],
+ 'isEqualWith': [1, 2, 0],
+ 'isMatchWith': [2, 1, 0],
'mergeWith': [1, 2, 0],
- 'reduce': [2, 0, 1],
- 'reduceRight': [2, 0, 1],
- 'set': [2, 0, 1],
+ 'padChars': [2, 1, 0],
+ 'padCharsEnd': [2, 1, 0],
+ 'padCharsStart': [2, 1, 0],
+ 'pullAllBy': [2, 1, 0],
+ 'pullAllWith': [2, 1, 0],
'setWith': [3, 1, 2, 0],
- 'slice': [2, 0, 1],
- 'transform': [2, 0, 1]
+ 'sortedIndexBy': [2, 1, 0],
+ 'sortedLastIndexBy': [2, 1, 0],
+ 'updateWith': [3, 1, 2, 0],
+ 'zipWith': [1, 2, 0]
};
/** Used to map method names to spread configs. */
exports.methodSpread = {
+ 'invokeArgs': 2,
+ 'invokeArgsMap': 2,
'partial': 1,
- 'partialRight': 1
+ 'partialRight': 1,
+ 'without': 1
};
/** Used to identify methods which mutate arrays or objects. */
@@ -161,6 +177,7 @@ exports.mutate = {
'pull': true,
'pullAll': true,
'pullAllBy': true,
+ 'pullAllWith': true,
'pullAt': true,
'remove': true,
'reverse': true
@@ -178,7 +195,9 @@ exports.mutate = {
'set': {
'set': true,
'setWith': true,
- 'unset': true
+ 'unset': true,
+ 'update': true,
+ 'updateWith': true
}
};
@@ -210,34 +229,59 @@ exports.realToAlias = (function() {
}());
/** Used to map method names to other names. */
-exports.rename = {
+exports.remap = {
'curryN': 'curry',
'curryRightN': 'curryRight',
'getOr': 'get',
+ 'invokeArgs': 'invoke',
+ 'invokeArgsMap': 'invokeMap',
+ 'padChars': 'pad',
+ 'padCharsEnd': 'padEnd',
+ 'padCharsStart': 'padStart',
+ 'restFrom': 'rest',
+ 'spreadFrom': 'spread',
'trimChars': 'trim',
'trimCharsEnd': 'trimEnd',
'trimCharsStart': 'trimStart'
};
-/** Used to track methods that skip `_.rearg`. */
+/** Used to track methods that skip fixing their arity. */
+exports.skipFixed = {
+ 'castArray': true,
+ 'flow': true,
+ 'flowRight': true,
+ 'iteratee': true,
+ 'mixin': true,
+ 'runInContext': true
+};
+
+/** Used to track methods that skip rearranging arguments. */
exports.skipRearg = {
'add': true,
'assign': true,
'assignIn': true,
+ 'bind': true,
+ 'bindKey': true,
'concat': true,
'difference': true,
+ 'divide': true,
+ 'eq': true,
'gt': true,
'gte': true,
+ 'isEqual': true,
'lt': true,
'lte': true,
'matchesProperty': true,
'merge': true,
+ 'multiply': true,
+ 'overArgs': true,
'partial': true,
'partialRight': true,
'random': true,
'range': true,
'rangeRight': true,
'subtract': true,
+ 'without': true,
'zip': true,
'zipObject': true
};
diff --git a/tools/eslint/node_modules/lodash/fp/_util.js b/tools/eslint/node_modules/lodash/fp/_util.js
index e1baf3b0a05caa..d450396fc44804 100644
--- a/tools/eslint/node_modules/lodash/fp/_util.js
+++ b/tools/eslint/node_modules/lodash/fp/_util.js
@@ -1,11 +1,14 @@
module.exports = {
'ary': require('../ary'),
- 'cloneDeep': require('../cloneDeep'),
+ 'assign': require('../_baseAssign'),
+ 'clone': require('../clone'),
'curry': require('../curry'),
'forEach': require('../_arrayEach'),
+ 'isArray': require('../isArray'),
'isFunction': require('../isFunction'),
'iteratee': require('../iteratee'),
'keys': require('../_baseKeys'),
'rearg': require('../rearg'),
- 'spread': require('../spread')
+ 'spread': require('../spread'),
+ 'toPath': require('../toPath')
};
diff --git a/tools/eslint/node_modules/lodash/fp/add.js b/tools/eslint/node_modules/lodash/fp/add.js
index c51b8fa6a6f434..816eeece34bf25 100644
--- a/tools/eslint/node_modules/lodash/fp/add.js
+++ b/tools/eslint/node_modules/lodash/fp/add.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('add', require('../add'));
+var convert = require('./convert'),
+ func = convert('add', require('../add'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/after.js b/tools/eslint/node_modules/lodash/fp/after.js
index 83691b7a59aecc..21a0167ab2dba5 100644
--- a/tools/eslint/node_modules/lodash/fp/after.js
+++ b/tools/eslint/node_modules/lodash/fp/after.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('after', require('../after'));
+var convert = require('./convert'),
+ func = convert('after', require('../after'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/all.js b/tools/eslint/node_modules/lodash/fp/all.js
index 900ac25e836b2c..d0839f77ed712b 100644
--- a/tools/eslint/node_modules/lodash/fp/all.js
+++ b/tools/eslint/node_modules/lodash/fp/all.js
@@ -1 +1 @@
-module.exports = require('./some');
+module.exports = require('./every');
diff --git a/tools/eslint/node_modules/lodash/fp/always.js b/tools/eslint/node_modules/lodash/fp/always.js
new file mode 100644
index 00000000000000..988770307bc639
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/always.js
@@ -0,0 +1 @@
+module.exports = require('./constant');
diff --git a/tools/eslint/node_modules/lodash/fp/any.js b/tools/eslint/node_modules/lodash/fp/any.js
new file mode 100644
index 00000000000000..900ac25e836b2c
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/any.js
@@ -0,0 +1 @@
+module.exports = require('./some');
diff --git a/tools/eslint/node_modules/lodash/fp/somePass.js b/tools/eslint/node_modules/lodash/fp/anyPass.js
similarity index 100%
rename from tools/eslint/node_modules/lodash/fp/somePass.js
rename to tools/eslint/node_modules/lodash/fp/anyPass.js
diff --git a/tools/eslint/node_modules/lodash/fp/ary.js b/tools/eslint/node_modules/lodash/fp/ary.js
index 0f75d18a316d79..8edf18778da3da 100644
--- a/tools/eslint/node_modules/lodash/fp/ary.js
+++ b/tools/eslint/node_modules/lodash/fp/ary.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('ary', require('../ary'));
+var convert = require('./convert'),
+ func = convert('ary', require('../ary'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/assign.js b/tools/eslint/node_modules/lodash/fp/assign.js
index ad02bcb84ed5bd..23f47af17e13f9 100644
--- a/tools/eslint/node_modules/lodash/fp/assign.js
+++ b/tools/eslint/node_modules/lodash/fp/assign.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('assign', require('../assign'));
+var convert = require('./convert'),
+ func = convert('assign', require('../assign'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/assignIn.js b/tools/eslint/node_modules/lodash/fp/assignIn.js
index 1ed4f0d7e6c589..6e7c65fad8e312 100644
--- a/tools/eslint/node_modules/lodash/fp/assignIn.js
+++ b/tools/eslint/node_modules/lodash/fp/assignIn.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('assignIn', require('../assignIn'));
+var convert = require('./convert'),
+ func = convert('assignIn', require('../assignIn'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/assignInWith.js b/tools/eslint/node_modules/lodash/fp/assignInWith.js
index 882145d9146db5..acb5923675eed7 100644
--- a/tools/eslint/node_modules/lodash/fp/assignInWith.js
+++ b/tools/eslint/node_modules/lodash/fp/assignInWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('assignInWith', require('../assignInWith'));
+var convert = require('./convert'),
+ func = convert('assignInWith', require('../assignInWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/assignWith.js b/tools/eslint/node_modules/lodash/fp/assignWith.js
index 1ff052782f66b6..eb925212d522b5 100644
--- a/tools/eslint/node_modules/lodash/fp/assignWith.js
+++ b/tools/eslint/node_modules/lodash/fp/assignWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('assignWith', require('../assignWith'));
+var convert = require('./convert'),
+ func = convert('assignWith', require('../assignWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/at.js b/tools/eslint/node_modules/lodash/fp/at.js
index 5da35250e07446..cc39d257c6bf88 100644
--- a/tools/eslint/node_modules/lodash/fp/at.js
+++ b/tools/eslint/node_modules/lodash/fp/at.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('at', require('../at'));
+var convert = require('./convert'),
+ func = convert('at', require('../at'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/attempt.js b/tools/eslint/node_modules/lodash/fp/attempt.js
index d8a3be5234a696..26ca42ea04d354 100644
--- a/tools/eslint/node_modules/lodash/fp/attempt.js
+++ b/tools/eslint/node_modules/lodash/fp/attempt.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('attempt', require('../attempt'));
+var convert = require('./convert'),
+ func = convert('attempt', require('../attempt'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/before.js b/tools/eslint/node_modules/lodash/fp/before.js
index f2954a62e3df89..7a2de65d27ecc1 100644
--- a/tools/eslint/node_modules/lodash/fp/before.js
+++ b/tools/eslint/node_modules/lodash/fp/before.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('before', require('../before'));
+var convert = require('./convert'),
+ func = convert('before', require('../before'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/bind.js b/tools/eslint/node_modules/lodash/fp/bind.js
index e054a486dad6fd..5cbe4f302fed07 100644
--- a/tools/eslint/node_modules/lodash/fp/bind.js
+++ b/tools/eslint/node_modules/lodash/fp/bind.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('bind', require('../bind'));
+var convert = require('./convert'),
+ func = convert('bind', require('../bind'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/bindAll.js b/tools/eslint/node_modules/lodash/fp/bindAll.js
index 495b75c6e4960d..6b4a4a0f270266 100644
--- a/tools/eslint/node_modules/lodash/fp/bindAll.js
+++ b/tools/eslint/node_modules/lodash/fp/bindAll.js
@@ -1 +1,5 @@
-module.exports = require('../bindAll');
+var convert = require('./convert'),
+ func = convert('bindAll', require('../bindAll'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/bindKey.js b/tools/eslint/node_modules/lodash/fp/bindKey.js
index 0b588c7a3ba247..6a46c6b19c5b75 100644
--- a/tools/eslint/node_modules/lodash/fp/bindKey.js
+++ b/tools/eslint/node_modules/lodash/fp/bindKey.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('bindKey', require('../bindKey'));
+var convert = require('./convert'),
+ func = convert('bindKey', require('../bindKey'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/camelCase.js b/tools/eslint/node_modules/lodash/fp/camelCase.js
index 328041ec3b661a..87b77b49376e32 100644
--- a/tools/eslint/node_modules/lodash/fp/camelCase.js
+++ b/tools/eslint/node_modules/lodash/fp/camelCase.js
@@ -1 +1,5 @@
-module.exports = require('../camelCase');
+var convert = require('./convert'),
+ func = convert('camelCase', require('../camelCase'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/capitalize.js b/tools/eslint/node_modules/lodash/fp/capitalize.js
index 186e6d98137e74..cac74e14f8ac58 100644
--- a/tools/eslint/node_modules/lodash/fp/capitalize.js
+++ b/tools/eslint/node_modules/lodash/fp/capitalize.js
@@ -1 +1,5 @@
-module.exports = require('../capitalize');
+var convert = require('./convert'),
+ func = convert('capitalize', require('../capitalize'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/castArray.js b/tools/eslint/node_modules/lodash/fp/castArray.js
new file mode 100644
index 00000000000000..8681c099eaded1
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/castArray.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('castArray', require('../castArray'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/ceil.js b/tools/eslint/node_modules/lodash/fp/ceil.js
index 7c3774bb506c70..f416b7294c453c 100644
--- a/tools/eslint/node_modules/lodash/fp/ceil.js
+++ b/tools/eslint/node_modules/lodash/fp/ceil.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('ceil', require('../ceil'));
+var convert = require('./convert'),
+ func = convert('ceil', require('../ceil'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/chain.js b/tools/eslint/node_modules/lodash/fp/chain.js
index 2f139cc00ba0ca..604fe398b100c6 100644
--- a/tools/eslint/node_modules/lodash/fp/chain.js
+++ b/tools/eslint/node_modules/lodash/fp/chain.js
@@ -1 +1,5 @@
-module.exports = require('../chain');
+var convert = require('./convert'),
+ func = convert('chain', require('../chain'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/chunk.js b/tools/eslint/node_modules/lodash/fp/chunk.js
index 9d32b8a31226fd..871ab08580b35e 100644
--- a/tools/eslint/node_modules/lodash/fp/chunk.js
+++ b/tools/eslint/node_modules/lodash/fp/chunk.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('chunk', require('../chunk'));
+var convert = require('./convert'),
+ func = convert('chunk', require('../chunk'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/clamp.js b/tools/eslint/node_modules/lodash/fp/clamp.js
index 8ec3d9de54dd75..3b06c01ce139aa 100644
--- a/tools/eslint/node_modules/lodash/fp/clamp.js
+++ b/tools/eslint/node_modules/lodash/fp/clamp.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('clamp', require('../clamp'));
+var convert = require('./convert'),
+ func = convert('clamp', require('../clamp'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/clone.js b/tools/eslint/node_modules/lodash/fp/clone.js
index afd2c156e6bea7..cadb59c917f86c 100644
--- a/tools/eslint/node_modules/lodash/fp/clone.js
+++ b/tools/eslint/node_modules/lodash/fp/clone.js
@@ -1 +1,5 @@
-module.exports = require('../clone');
+var convert = require('./convert'),
+ func = convert('clone', require('../clone'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/cloneDeep.js b/tools/eslint/node_modules/lodash/fp/cloneDeep.js
index a17a6f801dde7c..a6107aac9480c3 100644
--- a/tools/eslint/node_modules/lodash/fp/cloneDeep.js
+++ b/tools/eslint/node_modules/lodash/fp/cloneDeep.js
@@ -1 +1,5 @@
-module.exports = require('../cloneDeep');
+var convert = require('./convert'),
+ func = convert('cloneDeep', require('../cloneDeep'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/cloneDeepWith.js b/tools/eslint/node_modules/lodash/fp/cloneDeepWith.js
index 01c7fefdd53439..6f01e44a346d70 100644
--- a/tools/eslint/node_modules/lodash/fp/cloneDeepWith.js
+++ b/tools/eslint/node_modules/lodash/fp/cloneDeepWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('cloneDeepWith', require('../cloneDeepWith'));
+var convert = require('./convert'),
+ func = convert('cloneDeepWith', require('../cloneDeepWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/cloneWith.js b/tools/eslint/node_modules/lodash/fp/cloneWith.js
index 9e9d7838ef2320..aa8857810e783d 100644
--- a/tools/eslint/node_modules/lodash/fp/cloneWith.js
+++ b/tools/eslint/node_modules/lodash/fp/cloneWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('cloneWith', require('../cloneWith'));
+var convert = require('./convert'),
+ func = convert('cloneWith', require('../cloneWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/commit.js b/tools/eslint/node_modules/lodash/fp/commit.js
index 04e9eb94324ae9..130a894f89412a 100644
--- a/tools/eslint/node_modules/lodash/fp/commit.js
+++ b/tools/eslint/node_modules/lodash/fp/commit.js
@@ -1 +1,5 @@
-module.exports = require('../commit');
+var convert = require('./convert'),
+ func = convert('commit', require('../commit'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/compact.js b/tools/eslint/node_modules/lodash/fp/compact.js
index b2ed9c7d812be8..ce8f7a1ac3e823 100644
--- a/tools/eslint/node_modules/lodash/fp/compact.js
+++ b/tools/eslint/node_modules/lodash/fp/compact.js
@@ -1 +1,5 @@
-module.exports = require('../compact');
+var convert = require('./convert'),
+ func = convert('compact', require('../compact'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/complement.js b/tools/eslint/node_modules/lodash/fp/complement.js
new file mode 100644
index 00000000000000..93eb462b353923
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/complement.js
@@ -0,0 +1 @@
+module.exports = require('./negate');
diff --git a/tools/eslint/node_modules/lodash/fp/concat.js b/tools/eslint/node_modules/lodash/fp/concat.js
index c13a92abd9dcb3..e59346ad9834ff 100644
--- a/tools/eslint/node_modules/lodash/fp/concat.js
+++ b/tools/eslint/node_modules/lodash/fp/concat.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('concat', require('../concat'));
+var convert = require('./convert'),
+ func = convert('concat', require('../concat'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/cond.js b/tools/eslint/node_modules/lodash/fp/cond.js
index a150a89eb99afa..6a0120efd408d0 100644
--- a/tools/eslint/node_modules/lodash/fp/cond.js
+++ b/tools/eslint/node_modules/lodash/fp/cond.js
@@ -1 +1,5 @@
-module.exports = require('../cond');
+var convert = require('./convert'),
+ func = convert('cond', require('../cond'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/conforms.js b/tools/eslint/node_modules/lodash/fp/conforms.js
index 387dde1844d110..e193cd6c1fdec0 100644
--- a/tools/eslint/node_modules/lodash/fp/conforms.js
+++ b/tools/eslint/node_modules/lodash/fp/conforms.js
@@ -1 +1,5 @@
-module.exports = require('../conforms');
+var convert = require('./convert'),
+ func = convert('conforms', require('../conforms'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/constant.js b/tools/eslint/node_modules/lodash/fp/constant.js
index 3bcd276866fec8..9e406fc09c1b10 100644
--- a/tools/eslint/node_modules/lodash/fp/constant.js
+++ b/tools/eslint/node_modules/lodash/fp/constant.js
@@ -1 +1,5 @@
-module.exports = require('../constant');
+var convert = require('./convert'),
+ func = convert('constant', require('../constant'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/convert.js b/tools/eslint/node_modules/lodash/fp/convert.js
index a1d266fa6428c3..4795dc42460855 100644
--- a/tools/eslint/node_modules/lodash/fp/convert.js
+++ b/tools/eslint/node_modules/lodash/fp/convert.js
@@ -3,7 +3,8 @@ var baseConvert = require('./_baseConvert'),
/**
* Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
- * version. If `name` is an object its methods will be converted.
+ * version with conversion `options` applied. If `name` is an object its methods
+ * will be converted.
*
* @param {string} name The name of the function to wrap.
* @param {Function} [func] The function to wrap.
diff --git a/tools/eslint/node_modules/lodash/fp/countBy.js b/tools/eslint/node_modules/lodash/fp/countBy.js
index ee4b942850e27e..dfa464326fe8dc 100644
--- a/tools/eslint/node_modules/lodash/fp/countBy.js
+++ b/tools/eslint/node_modules/lodash/fp/countBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('countBy', require('../countBy'));
+var convert = require('./convert'),
+ func = convert('countBy', require('../countBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/create.js b/tools/eslint/node_modules/lodash/fp/create.js
index bdad77148c6321..752025fb83bb4c 100644
--- a/tools/eslint/node_modules/lodash/fp/create.js
+++ b/tools/eslint/node_modules/lodash/fp/create.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('create', require('../create'));
+var convert = require('./convert'),
+ func = convert('create', require('../create'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/curry.js b/tools/eslint/node_modules/lodash/fp/curry.js
index d64722c1321514..b0b4168c500134 100644
--- a/tools/eslint/node_modules/lodash/fp/curry.js
+++ b/tools/eslint/node_modules/lodash/fp/curry.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('curry', require('../curry'));
+var convert = require('./convert'),
+ func = convert('curry', require('../curry'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/curryN.js b/tools/eslint/node_modules/lodash/fp/curryN.js
index f33f7fc3fe9171..2ae7d00a62a578 100644
--- a/tools/eslint/node_modules/lodash/fp/curryN.js
+++ b/tools/eslint/node_modules/lodash/fp/curryN.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('curryN', require('../curry'));
+var convert = require('./convert'),
+ func = convert('curryN', require('../curry'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/curryRight.js b/tools/eslint/node_modules/lodash/fp/curryRight.js
index 2e0470912cc216..cb619eb5d98b94 100644
--- a/tools/eslint/node_modules/lodash/fp/curryRight.js
+++ b/tools/eslint/node_modules/lodash/fp/curryRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('curryRight', require('../curryRight'));
+var convert = require('./convert'),
+ func = convert('curryRight', require('../curryRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/curryRightN.js b/tools/eslint/node_modules/lodash/fp/curryRightN.js
index 510e4e40336576..2495afc89c3fce 100644
--- a/tools/eslint/node_modules/lodash/fp/curryRightN.js
+++ b/tools/eslint/node_modules/lodash/fp/curryRightN.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('curryRightN', require('../curryRight'));
+var convert = require('./convert'),
+ func = convert('curryRightN', require('../curryRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/debounce.js b/tools/eslint/node_modules/lodash/fp/debounce.js
index a6b0407a2c605e..26122293af3a6f 100644
--- a/tools/eslint/node_modules/lodash/fp/debounce.js
+++ b/tools/eslint/node_modules/lodash/fp/debounce.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('debounce', require('../debounce'));
+var convert = require('./convert'),
+ func = convert('debounce', require('../debounce'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/deburr.js b/tools/eslint/node_modules/lodash/fp/deburr.js
index f8e1a49393677e..96463ab88e7e5a 100644
--- a/tools/eslint/node_modules/lodash/fp/deburr.js
+++ b/tools/eslint/node_modules/lodash/fp/deburr.js
@@ -1 +1,5 @@
-module.exports = require('../deburr');
+var convert = require('./convert'),
+ func = convert('deburr', require('../deburr'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/defaults.js b/tools/eslint/node_modules/lodash/fp/defaults.js
index 7c3b3ab96b430c..e1a8e6e7dbe936 100644
--- a/tools/eslint/node_modules/lodash/fp/defaults.js
+++ b/tools/eslint/node_modules/lodash/fp/defaults.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('defaults', require('../defaults'));
+var convert = require('./convert'),
+ func = convert('defaults', require('../defaults'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/defaultsDeep.js b/tools/eslint/node_modules/lodash/fp/defaultsDeep.js
index c7480e217976dc..1f172ff9442840 100644
--- a/tools/eslint/node_modules/lodash/fp/defaultsDeep.js
+++ b/tools/eslint/node_modules/lodash/fp/defaultsDeep.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('defaultsDeep', require('../defaultsDeep'));
+var convert = require('./convert'),
+ func = convert('defaultsDeep', require('../defaultsDeep'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/defer.js b/tools/eslint/node_modules/lodash/fp/defer.js
index 4126727cd6a405..ec7990fe224281 100644
--- a/tools/eslint/node_modules/lodash/fp/defer.js
+++ b/tools/eslint/node_modules/lodash/fp/defer.js
@@ -1 +1,5 @@
-module.exports = require('../defer');
+var convert = require('./convert'),
+ func = convert('defer', require('../defer'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/delay.js b/tools/eslint/node_modules/lodash/fp/delay.js
index cd3b1c329437fa..556dbd568ee475 100644
--- a/tools/eslint/node_modules/lodash/fp/delay.js
+++ b/tools/eslint/node_modules/lodash/fp/delay.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('delay', require('../delay'));
+var convert = require('./convert'),
+ func = convert('delay', require('../delay'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/difference.js b/tools/eslint/node_modules/lodash/fp/difference.js
index aea9ab8d16568a..2d0376542a7c24 100644
--- a/tools/eslint/node_modules/lodash/fp/difference.js
+++ b/tools/eslint/node_modules/lodash/fp/difference.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('difference', require('../difference'));
+var convert = require('./convert'),
+ func = convert('difference', require('../difference'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/differenceBy.js b/tools/eslint/node_modules/lodash/fp/differenceBy.js
index ab65554afa176e..2f914910a987da 100644
--- a/tools/eslint/node_modules/lodash/fp/differenceBy.js
+++ b/tools/eslint/node_modules/lodash/fp/differenceBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('differenceBy', require('../differenceBy'));
+var convert = require('./convert'),
+ func = convert('differenceBy', require('../differenceBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/differenceWith.js b/tools/eslint/node_modules/lodash/fp/differenceWith.js
index f932a2e478b685..bcf5ad2e1192c8 100644
--- a/tools/eslint/node_modules/lodash/fp/differenceWith.js
+++ b/tools/eslint/node_modules/lodash/fp/differenceWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('differenceWith', require('../differenceWith'));
+var convert = require('./convert'),
+ func = convert('differenceWith', require('../differenceWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/divide.js b/tools/eslint/node_modules/lodash/fp/divide.js
new file mode 100644
index 00000000000000..82048c5e02a2ea
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/divide.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('divide', require('../divide'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/drop.js b/tools/eslint/node_modules/lodash/fp/drop.js
index ccca2d0dad4a95..2fa9b4faa587f0 100644
--- a/tools/eslint/node_modules/lodash/fp/drop.js
+++ b/tools/eslint/node_modules/lodash/fp/drop.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('drop', require('../drop'));
+var convert = require('./convert'),
+ func = convert('drop', require('../drop'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/dropRight.js b/tools/eslint/node_modules/lodash/fp/dropRight.js
index bd9a2bd7bd95b2..e98881fcd4479f 100644
--- a/tools/eslint/node_modules/lodash/fp/dropRight.js
+++ b/tools/eslint/node_modules/lodash/fp/dropRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('dropRight', require('../dropRight'));
+var convert = require('./convert'),
+ func = convert('dropRight', require('../dropRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/dropRightWhile.js b/tools/eslint/node_modules/lodash/fp/dropRightWhile.js
index 2dbb2a3b665cd1..cacaa7019106cb 100644
--- a/tools/eslint/node_modules/lodash/fp/dropRightWhile.js
+++ b/tools/eslint/node_modules/lodash/fp/dropRightWhile.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('dropRightWhile', require('../dropRightWhile'));
+var convert = require('./convert'),
+ func = convert('dropRightWhile', require('../dropRightWhile'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/dropWhile.js b/tools/eslint/node_modules/lodash/fp/dropWhile.js
index 17e46ff4ef429e..285f864d127a25 100644
--- a/tools/eslint/node_modules/lodash/fp/dropWhile.js
+++ b/tools/eslint/node_modules/lodash/fp/dropWhile.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('dropWhile', require('../dropWhile'));
+var convert = require('./convert'),
+ func = convert('dropWhile', require('../dropWhile'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/endsWith.js b/tools/eslint/node_modules/lodash/fp/endsWith.js
index cbe8f8ca2aea07..17dc2a49511b3b 100644
--- a/tools/eslint/node_modules/lodash/fp/endsWith.js
+++ b/tools/eslint/node_modules/lodash/fp/endsWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('endsWith', require('../endsWith'));
+var convert = require('./convert'),
+ func = convert('endsWith', require('../endsWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/entries.js b/tools/eslint/node_modules/lodash/fp/entries.js
new file mode 100644
index 00000000000000..7a88df2044638c
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/entries.js
@@ -0,0 +1 @@
+module.exports = require('./toPairs');
diff --git a/tools/eslint/node_modules/lodash/fp/entriesIn.js b/tools/eslint/node_modules/lodash/fp/entriesIn.js
new file mode 100644
index 00000000000000..f6c6331c1de93f
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/entriesIn.js
@@ -0,0 +1 @@
+module.exports = require('./toPairsIn');
diff --git a/tools/eslint/node_modules/lodash/fp/eq.js b/tools/eslint/node_modules/lodash/fp/eq.js
index 518a54df7d1c89..9a3d21bf1d1114 100644
--- a/tools/eslint/node_modules/lodash/fp/eq.js
+++ b/tools/eslint/node_modules/lodash/fp/eq.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('eq', require('../eq'));
+var convert = require('./convert'),
+ func = convert('eq', require('../eq'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/escape.js b/tools/eslint/node_modules/lodash/fp/escape.js
index e5de9f23100dac..52c1fbba609036 100644
--- a/tools/eslint/node_modules/lodash/fp/escape.js
+++ b/tools/eslint/node_modules/lodash/fp/escape.js
@@ -1 +1,5 @@
-module.exports = require('../escape');
+var convert = require('./convert'),
+ func = convert('escape', require('../escape'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/escapeRegExp.js b/tools/eslint/node_modules/lodash/fp/escapeRegExp.js
index ab18963a16714d..369b2eff6e1216 100644
--- a/tools/eslint/node_modules/lodash/fp/escapeRegExp.js
+++ b/tools/eslint/node_modules/lodash/fp/escapeRegExp.js
@@ -1 +1,5 @@
-module.exports = require('../escapeRegExp');
+var convert = require('./convert'),
+ func = convert('escapeRegExp', require('../escapeRegExp'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/every.js b/tools/eslint/node_modules/lodash/fp/every.js
index 965f889b6b055c..95c2776c33e06c 100644
--- a/tools/eslint/node_modules/lodash/fp/every.js
+++ b/tools/eslint/node_modules/lodash/fp/every.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('every', require('../every'));
+var convert = require('./convert'),
+ func = convert('every', require('../every'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/fill.js b/tools/eslint/node_modules/lodash/fp/fill.js
index e16f8bf336a114..b2d47e84eb159b 100644
--- a/tools/eslint/node_modules/lodash/fp/fill.js
+++ b/tools/eslint/node_modules/lodash/fp/fill.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('fill', require('../fill'));
+var convert = require('./convert'),
+ func = convert('fill', require('../fill'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/filter.js b/tools/eslint/node_modules/lodash/fp/filter.js
index 7191a822380532..796d501ce827ca 100644
--- a/tools/eslint/node_modules/lodash/fp/filter.js
+++ b/tools/eslint/node_modules/lodash/fp/filter.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('filter', require('../filter'));
+var convert = require('./convert'),
+ func = convert('filter', require('../filter'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/find.js b/tools/eslint/node_modules/lodash/fp/find.js
index 5915bbd04d56dc..f805d336aa148e 100644
--- a/tools/eslint/node_modules/lodash/fp/find.js
+++ b/tools/eslint/node_modules/lodash/fp/find.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('find', require('../find'));
+var convert = require('./convert'),
+ func = convert('find', require('../find'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/findIndex.js b/tools/eslint/node_modules/lodash/fp/findIndex.js
index 6bf435c783d7f1..8c15fd11606166 100644
--- a/tools/eslint/node_modules/lodash/fp/findIndex.js
+++ b/tools/eslint/node_modules/lodash/fp/findIndex.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('findIndex', require('../findIndex'));
+var convert = require('./convert'),
+ func = convert('findIndex', require('../findIndex'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/findKey.js b/tools/eslint/node_modules/lodash/fp/findKey.js
index 3ff9844c1eea12..475bcfa8a5bc02 100644
--- a/tools/eslint/node_modules/lodash/fp/findKey.js
+++ b/tools/eslint/node_modules/lodash/fp/findKey.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('findKey', require('../findKey'));
+var convert = require('./convert'),
+ func = convert('findKey', require('../findKey'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/findLast.js b/tools/eslint/node_modules/lodash/fp/findLast.js
index 31e169b382bfe5..093fe94e745e76 100644
--- a/tools/eslint/node_modules/lodash/fp/findLast.js
+++ b/tools/eslint/node_modules/lodash/fp/findLast.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('findLast', require('../findLast'));
+var convert = require('./convert'),
+ func = convert('findLast', require('../findLast'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/findLastIndex.js b/tools/eslint/node_modules/lodash/fp/findLastIndex.js
index db41e8843006da..36986df0b8ae62 100644
--- a/tools/eslint/node_modules/lodash/fp/findLastIndex.js
+++ b/tools/eslint/node_modules/lodash/fp/findLastIndex.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('findLastIndex', require('../findLastIndex'));
+var convert = require('./convert'),
+ func = convert('findLastIndex', require('../findLastIndex'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/findLastKey.js b/tools/eslint/node_modules/lodash/fp/findLastKey.js
index ffe9e2a11e3b3d..5f81b604e8174b 100644
--- a/tools/eslint/node_modules/lodash/fp/findLastKey.js
+++ b/tools/eslint/node_modules/lodash/fp/findLastKey.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('findLastKey', require('../findLastKey'));
+var convert = require('./convert'),
+ func = convert('findLastKey', require('../findLastKey'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flatMap.js b/tools/eslint/node_modules/lodash/fp/flatMap.js
index da249a883f43f4..d01dc4d0481c5b 100644
--- a/tools/eslint/node_modules/lodash/fp/flatMap.js
+++ b/tools/eslint/node_modules/lodash/fp/flatMap.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('flatMap', require('../flatMap'));
+var convert = require('./convert'),
+ func = convert('flatMap', require('../flatMap'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flatMapDeep.js b/tools/eslint/node_modules/lodash/fp/flatMapDeep.js
new file mode 100644
index 00000000000000..569c42eb9fa565
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/flatMapDeep.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('flatMapDeep', require('../flatMapDeep'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flatMapDepth.js b/tools/eslint/node_modules/lodash/fp/flatMapDepth.js
new file mode 100644
index 00000000000000..6eb68fdeed81fe
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/flatMapDepth.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('flatMapDepth', require('../flatMapDepth'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flatten.js b/tools/eslint/node_modules/lodash/fp/flatten.js
index f1c1a6223a567d..30425d896232d7 100644
--- a/tools/eslint/node_modules/lodash/fp/flatten.js
+++ b/tools/eslint/node_modules/lodash/fp/flatten.js
@@ -1 +1,5 @@
-module.exports = require('../flatten');
+var convert = require('./convert'),
+ func = convert('flatten', require('../flatten'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flattenDeep.js b/tools/eslint/node_modules/lodash/fp/flattenDeep.js
index c2ff9879b44681..aed5db27c09f37 100644
--- a/tools/eslint/node_modules/lodash/fp/flattenDeep.js
+++ b/tools/eslint/node_modules/lodash/fp/flattenDeep.js
@@ -1 +1,5 @@
-module.exports = require('../flattenDeep');
+var convert = require('./convert'),
+ func = convert('flattenDeep', require('../flattenDeep'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flattenDepth.js b/tools/eslint/node_modules/lodash/fp/flattenDepth.js
new file mode 100644
index 00000000000000..ad65e378eff98d
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/flattenDepth.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('flattenDepth', require('../flattenDepth'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flip.js b/tools/eslint/node_modules/lodash/fp/flip.js
index 730bbd1bb6b488..0547e7b4eade18 100644
--- a/tools/eslint/node_modules/lodash/fp/flip.js
+++ b/tools/eslint/node_modules/lodash/fp/flip.js
@@ -1 +1,5 @@
-module.exports = require('../flip');
+var convert = require('./convert'),
+ func = convert('flip', require('../flip'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/floor.js b/tools/eslint/node_modules/lodash/fp/floor.js
index f130f8b5941f8f..a6cf3358ed315a 100644
--- a/tools/eslint/node_modules/lodash/fp/floor.js
+++ b/tools/eslint/node_modules/lodash/fp/floor.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('floor', require('../floor'));
+var convert = require('./convert'),
+ func = convert('floor', require('../floor'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flow.js b/tools/eslint/node_modules/lodash/fp/flow.js
index d9943c6d0340ac..cd83677a62ca36 100644
--- a/tools/eslint/node_modules/lodash/fp/flow.js
+++ b/tools/eslint/node_modules/lodash/fp/flow.js
@@ -1 +1,5 @@
-module.exports = require('../flow');
+var convert = require('./convert'),
+ func = convert('flow', require('../flow'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/flowRight.js b/tools/eslint/node_modules/lodash/fp/flowRight.js
index 556dc378fb3965..972a5b9b1c2c06 100644
--- a/tools/eslint/node_modules/lodash/fp/flowRight.js
+++ b/tools/eslint/node_modules/lodash/fp/flowRight.js
@@ -1 +1,5 @@
-module.exports = require('../flowRight');
+var convert = require('./convert'),
+ func = convert('flowRight', require('../flowRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/forEach.js b/tools/eslint/node_modules/lodash/fp/forEach.js
index d715ea662e59a2..2f494521c86f42 100644
--- a/tools/eslint/node_modules/lodash/fp/forEach.js
+++ b/tools/eslint/node_modules/lodash/fp/forEach.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('forEach', require('../forEach'));
+var convert = require('./convert'),
+ func = convert('forEach', require('../forEach'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/forEachRight.js b/tools/eslint/node_modules/lodash/fp/forEachRight.js
index 90dd8dd29aac48..3ff97336bbf2b9 100644
--- a/tools/eslint/node_modules/lodash/fp/forEachRight.js
+++ b/tools/eslint/node_modules/lodash/fp/forEachRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('forEachRight', require('../forEachRight'));
+var convert = require('./convert'),
+ func = convert('forEachRight', require('../forEachRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/forIn.js b/tools/eslint/node_modules/lodash/fp/forIn.js
index 90a8f07bb19e71..9341749b1f7198 100644
--- a/tools/eslint/node_modules/lodash/fp/forIn.js
+++ b/tools/eslint/node_modules/lodash/fp/forIn.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('forIn', require('../forIn'));
+var convert = require('./convert'),
+ func = convert('forIn', require('../forIn'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/forInRight.js b/tools/eslint/node_modules/lodash/fp/forInRight.js
index 505258f4426065..cecf8bbfa6cf82 100644
--- a/tools/eslint/node_modules/lodash/fp/forInRight.js
+++ b/tools/eslint/node_modules/lodash/fp/forInRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('forInRight', require('../forInRight'));
+var convert = require('./convert'),
+ func = convert('forInRight', require('../forInRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/forOwn.js b/tools/eslint/node_modules/lodash/fp/forOwn.js
index 6fef1e3d508439..246449e9a832df 100644
--- a/tools/eslint/node_modules/lodash/fp/forOwn.js
+++ b/tools/eslint/node_modules/lodash/fp/forOwn.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('forOwn', require('../forOwn'));
+var convert = require('./convert'),
+ func = convert('forOwn', require('../forOwn'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/forOwnRight.js b/tools/eslint/node_modules/lodash/fp/forOwnRight.js
index 11ff1fdaf88a98..c5e826e0d7dc8f 100644
--- a/tools/eslint/node_modules/lodash/fp/forOwnRight.js
+++ b/tools/eslint/node_modules/lodash/fp/forOwnRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('forOwnRight', require('../forOwnRight'));
+var convert = require('./convert'),
+ func = convert('forOwnRight', require('../forOwnRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/fromPairs.js b/tools/eslint/node_modules/lodash/fp/fromPairs.js
index f5c3cb8d774763..f8cc5968cd2cff 100644
--- a/tools/eslint/node_modules/lodash/fp/fromPairs.js
+++ b/tools/eslint/node_modules/lodash/fp/fromPairs.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('fromPairs', require('../fromPairs'));
+var convert = require('./convert'),
+ func = convert('fromPairs', require('../fromPairs'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/functions.js b/tools/eslint/node_modules/lodash/fp/functions.js
index bb1cb93b2c0ad0..09d1bb1baaebfe 100644
--- a/tools/eslint/node_modules/lodash/fp/functions.js
+++ b/tools/eslint/node_modules/lodash/fp/functions.js
@@ -1 +1,5 @@
-module.exports = require('../functions');
+var convert = require('./convert'),
+ func = convert('functions', require('../functions'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/functionsIn.js b/tools/eslint/node_modules/lodash/fp/functionsIn.js
index d375213c4f683f..2cfeb83ebbc8e2 100644
--- a/tools/eslint/node_modules/lodash/fp/functionsIn.js
+++ b/tools/eslint/node_modules/lodash/fp/functionsIn.js
@@ -1 +1,5 @@
-module.exports = require('../functionsIn');
+var convert = require('./convert'),
+ func = convert('functionsIn', require('../functionsIn'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/get.js b/tools/eslint/node_modules/lodash/fp/get.js
index a054c9d22cc74c..6d3a32863e72b5 100644
--- a/tools/eslint/node_modules/lodash/fp/get.js
+++ b/tools/eslint/node_modules/lodash/fp/get.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('get', require('../get'));
+var convert = require('./convert'),
+ func = convert('get', require('../get'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/getOr.js b/tools/eslint/node_modules/lodash/fp/getOr.js
index c46f2e9e05791a..7dbf771f0c6b09 100644
--- a/tools/eslint/node_modules/lodash/fp/getOr.js
+++ b/tools/eslint/node_modules/lodash/fp/getOr.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('getOr', require('../get'));
+var convert = require('./convert'),
+ func = convert('getOr', require('../get'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/groupBy.js b/tools/eslint/node_modules/lodash/fp/groupBy.js
index 6588856a9c9cb8..fc0bc78a57b930 100644
--- a/tools/eslint/node_modules/lodash/fp/groupBy.js
+++ b/tools/eslint/node_modules/lodash/fp/groupBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('groupBy', require('../groupBy'));
+var convert = require('./convert'),
+ func = convert('groupBy', require('../groupBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/gt.js b/tools/eslint/node_modules/lodash/fp/gt.js
index 5b92de949d777a..9e57c8085a05e4 100644
--- a/tools/eslint/node_modules/lodash/fp/gt.js
+++ b/tools/eslint/node_modules/lodash/fp/gt.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('gt', require('../gt'));
+var convert = require('./convert'),
+ func = convert('gt', require('../gt'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/gte.js b/tools/eslint/node_modules/lodash/fp/gte.js
index 3a4025067b6725..45847863894a29 100644
--- a/tools/eslint/node_modules/lodash/fp/gte.js
+++ b/tools/eslint/node_modules/lodash/fp/gte.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('gte', require('../gte'));
+var convert = require('./convert'),
+ func = convert('gte', require('../gte'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/has.js b/tools/eslint/node_modules/lodash/fp/has.js
index e37db9ab5e3630..b901298398e4f7 100644
--- a/tools/eslint/node_modules/lodash/fp/has.js
+++ b/tools/eslint/node_modules/lodash/fp/has.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('has', require('../has'));
+var convert = require('./convert'),
+ func = convert('has', require('../has'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/hasIn.js b/tools/eslint/node_modules/lodash/fp/hasIn.js
index 84d7815648228a..b3c3d1a3f3b375 100644
--- a/tools/eslint/node_modules/lodash/fp/hasIn.js
+++ b/tools/eslint/node_modules/lodash/fp/hasIn.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('hasIn', require('../hasIn'));
+var convert = require('./convert'),
+ func = convert('hasIn', require('../hasIn'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/head.js b/tools/eslint/node_modules/lodash/fp/head.js
index bd97a7b2cc5050..2694f0a21d681e 100644
--- a/tools/eslint/node_modules/lodash/fp/head.js
+++ b/tools/eslint/node_modules/lodash/fp/head.js
@@ -1 +1,5 @@
-module.exports = require('../head');
+var convert = require('./convert'),
+ func = convert('head', require('../head'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/identical.js b/tools/eslint/node_modules/lodash/fp/identical.js
new file mode 100644
index 00000000000000..85563f4a469964
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/identical.js
@@ -0,0 +1 @@
+module.exports = require('./eq');
diff --git a/tools/eslint/node_modules/lodash/fp/identity.js b/tools/eslint/node_modules/lodash/fp/identity.js
index 6d007dc10ebd66..096415a5dec4a6 100644
--- a/tools/eslint/node_modules/lodash/fp/identity.js
+++ b/tools/eslint/node_modules/lodash/fp/identity.js
@@ -1 +1,5 @@
-module.exports = require('../identity');
+var convert = require('./convert'),
+ func = convert('identity', require('../identity'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/inRange.js b/tools/eslint/node_modules/lodash/fp/inRange.js
index fc55e1c1ffcde6..202d940bae8d83 100644
--- a/tools/eslint/node_modules/lodash/fp/inRange.js
+++ b/tools/eslint/node_modules/lodash/fp/inRange.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('inRange', require('../inRange'));
+var convert = require('./convert'),
+ func = convert('inRange', require('../inRange'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/includes.js b/tools/eslint/node_modules/lodash/fp/includes.js
index 91f1eec4d95491..11467805ce1e72 100644
--- a/tools/eslint/node_modules/lodash/fp/includes.js
+++ b/tools/eslint/node_modules/lodash/fp/includes.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('includes', require('../includes'));
+var convert = require('./convert'),
+ func = convert('includes', require('../includes'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/indexOf.js b/tools/eslint/node_modules/lodash/fp/indexOf.js
index 65345cedc484ce..524658eb95f983 100644
--- a/tools/eslint/node_modules/lodash/fp/indexOf.js
+++ b/tools/eslint/node_modules/lodash/fp/indexOf.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('indexOf', require('../indexOf'));
+var convert = require('./convert'),
+ func = convert('indexOf', require('../indexOf'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/initial.js b/tools/eslint/node_modules/lodash/fp/initial.js
index 9fc94e060fd4c7..b732ba0bd69f24 100644
--- a/tools/eslint/node_modules/lodash/fp/initial.js
+++ b/tools/eslint/node_modules/lodash/fp/initial.js
@@ -1 +1,5 @@
-module.exports = require('../initial');
+var convert = require('./convert'),
+ func = convert('initial', require('../initial'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/intersection.js b/tools/eslint/node_modules/lodash/fp/intersection.js
index 784f4d1c3657da..52936d560c7cb6 100644
--- a/tools/eslint/node_modules/lodash/fp/intersection.js
+++ b/tools/eslint/node_modules/lodash/fp/intersection.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('intersection', require('../intersection'));
+var convert = require('./convert'),
+ func = convert('intersection', require('../intersection'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/intersectionBy.js b/tools/eslint/node_modules/lodash/fp/intersectionBy.js
index 4aa93b6357205e..72629f277d7f82 100644
--- a/tools/eslint/node_modules/lodash/fp/intersectionBy.js
+++ b/tools/eslint/node_modules/lodash/fp/intersectionBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('intersectionBy', require('../intersectionBy'));
+var convert = require('./convert'),
+ func = convert('intersectionBy', require('../intersectionBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/intersectionWith.js b/tools/eslint/node_modules/lodash/fp/intersectionWith.js
index 879fe9d44be4ff..e064f400f88bcc 100644
--- a/tools/eslint/node_modules/lodash/fp/intersectionWith.js
+++ b/tools/eslint/node_modules/lodash/fp/intersectionWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('intersectionWith', require('../intersectionWith'));
+var convert = require('./convert'),
+ func = convert('intersectionWith', require('../intersectionWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/invert.js b/tools/eslint/node_modules/lodash/fp/invert.js
index 231d5caf8102a1..2d5d1f0d45ba03 100644
--- a/tools/eslint/node_modules/lodash/fp/invert.js
+++ b/tools/eslint/node_modules/lodash/fp/invert.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('invert', require('../invert'));
+var convert = require('./convert'),
+ func = convert('invert', require('../invert'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/invertBy.js b/tools/eslint/node_modules/lodash/fp/invertBy.js
index 90820e6c379f96..63ca97ecb28ab7 100644
--- a/tools/eslint/node_modules/lodash/fp/invertBy.js
+++ b/tools/eslint/node_modules/lodash/fp/invertBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('invertBy', require('../invertBy'));
+var convert = require('./convert'),
+ func = convert('invertBy', require('../invertBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/invertObj.js b/tools/eslint/node_modules/lodash/fp/invertObj.js
new file mode 100644
index 00000000000000..f1d842e49b8eda
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/invertObj.js
@@ -0,0 +1 @@
+module.exports = require('./invert');
diff --git a/tools/eslint/node_modules/lodash/fp/invoke.js b/tools/eslint/node_modules/lodash/fp/invoke.js
index a8635e8c38a9bf..fcf17f0d5721b8 100644
--- a/tools/eslint/node_modules/lodash/fp/invoke.js
+++ b/tools/eslint/node_modules/lodash/fp/invoke.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('invoke', require('../invoke'));
+var convert = require('./convert'),
+ func = convert('invoke', require('../invoke'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/invokeArgs.js b/tools/eslint/node_modules/lodash/fp/invokeArgs.js
new file mode 100644
index 00000000000000..d3f2953fa3b921
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/invokeArgs.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('invokeArgs', require('../invoke'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/invokeArgsMap.js b/tools/eslint/node_modules/lodash/fp/invokeArgsMap.js
new file mode 100644
index 00000000000000..eaa9f84ffbb7f0
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/invokeArgsMap.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('invokeArgsMap', require('../invokeMap'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/invokeMap.js b/tools/eslint/node_modules/lodash/fp/invokeMap.js
index 2691ae36ec80ba..6515fd73f16e75 100644
--- a/tools/eslint/node_modules/lodash/fp/invokeMap.js
+++ b/tools/eslint/node_modules/lodash/fp/invokeMap.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('invokeMap', require('../invokeMap'));
+var convert = require('./convert'),
+ func = convert('invokeMap', require('../invokeMap'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isArguments.js b/tools/eslint/node_modules/lodash/fp/isArguments.js
index 093aa354cf0e75..1d93c9e5994c86 100644
--- a/tools/eslint/node_modules/lodash/fp/isArguments.js
+++ b/tools/eslint/node_modules/lodash/fp/isArguments.js
@@ -1 +1,5 @@
-module.exports = require('../isArguments');
+var convert = require('./convert'),
+ func = convert('isArguments', require('../isArguments'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isArray.js b/tools/eslint/node_modules/lodash/fp/isArray.js
index ec7fad3c36dea5..ba7ade8ddc0a13 100644
--- a/tools/eslint/node_modules/lodash/fp/isArray.js
+++ b/tools/eslint/node_modules/lodash/fp/isArray.js
@@ -1 +1,5 @@
-module.exports = require('../isArray');
+var convert = require('./convert'),
+ func = convert('isArray', require('../isArray'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isArrayBuffer.js b/tools/eslint/node_modules/lodash/fp/isArrayBuffer.js
index 655e85bac7fc51..5088513faf3e83 100644
--- a/tools/eslint/node_modules/lodash/fp/isArrayBuffer.js
+++ b/tools/eslint/node_modules/lodash/fp/isArrayBuffer.js
@@ -1 +1,5 @@
-module.exports = require('../isArrayBuffer');
+var convert = require('./convert'),
+ func = convert('isArrayBuffer', require('../isArrayBuffer'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isArrayLike.js b/tools/eslint/node_modules/lodash/fp/isArrayLike.js
index 1595b2f181891b..8f1856bf6f6b38 100644
--- a/tools/eslint/node_modules/lodash/fp/isArrayLike.js
+++ b/tools/eslint/node_modules/lodash/fp/isArrayLike.js
@@ -1 +1,5 @@
-module.exports = require('../isArrayLike');
+var convert = require('./convert'),
+ func = convert('isArrayLike', require('../isArrayLike'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isArrayLikeObject.js b/tools/eslint/node_modules/lodash/fp/isArrayLikeObject.js
index 4d1d2028933dba..21084984bcecdd 100644
--- a/tools/eslint/node_modules/lodash/fp/isArrayLikeObject.js
+++ b/tools/eslint/node_modules/lodash/fp/isArrayLikeObject.js
@@ -1 +1,5 @@
-module.exports = require('../isArrayLikeObject');
+var convert = require('./convert'),
+ func = convert('isArrayLikeObject', require('../isArrayLikeObject'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isBoolean.js b/tools/eslint/node_modules/lodash/fp/isBoolean.js
index 30d4a4aa02fc28..9339f75b1f198a 100644
--- a/tools/eslint/node_modules/lodash/fp/isBoolean.js
+++ b/tools/eslint/node_modules/lodash/fp/isBoolean.js
@@ -1 +1,5 @@
-module.exports = require('../isBoolean');
+var convert = require('./convert'),
+ func = convert('isBoolean', require('../isBoolean'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isBuffer.js b/tools/eslint/node_modules/lodash/fp/isBuffer.js
index 15af9b634a28e4..e60b123818d12c 100644
--- a/tools/eslint/node_modules/lodash/fp/isBuffer.js
+++ b/tools/eslint/node_modules/lodash/fp/isBuffer.js
@@ -1 +1,5 @@
-module.exports = require('../isBuffer');
+var convert = require('./convert'),
+ func = convert('isBuffer', require('../isBuffer'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isDate.js b/tools/eslint/node_modules/lodash/fp/isDate.js
index ac002f459060f5..dc41d089ec8b84 100644
--- a/tools/eslint/node_modules/lodash/fp/isDate.js
+++ b/tools/eslint/node_modules/lodash/fp/isDate.js
@@ -1 +1,5 @@
-module.exports = require('../isDate');
+var convert = require('./convert'),
+ func = convert('isDate', require('../isDate'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isElement.js b/tools/eslint/node_modules/lodash/fp/isElement.js
index 458a3484d34376..18ee039a2da96f 100644
--- a/tools/eslint/node_modules/lodash/fp/isElement.js
+++ b/tools/eslint/node_modules/lodash/fp/isElement.js
@@ -1 +1,5 @@
-module.exports = require('../isElement');
+var convert = require('./convert'),
+ func = convert('isElement', require('../isElement'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isEmpty.js b/tools/eslint/node_modules/lodash/fp/isEmpty.js
index b1a04cd88324dd..0f4ae841e214f3 100644
--- a/tools/eslint/node_modules/lodash/fp/isEmpty.js
+++ b/tools/eslint/node_modules/lodash/fp/isEmpty.js
@@ -1 +1,5 @@
-module.exports = require('../isEmpty');
+var convert = require('./convert'),
+ func = convert('isEmpty', require('../isEmpty'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isEqual.js b/tools/eslint/node_modules/lodash/fp/isEqual.js
index 91b7d6654e94a2..41383865f28757 100644
--- a/tools/eslint/node_modules/lodash/fp/isEqual.js
+++ b/tools/eslint/node_modules/lodash/fp/isEqual.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('isEqual', require('../isEqual'));
+var convert = require('./convert'),
+ func = convert('isEqual', require('../isEqual'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isEqualWith.js b/tools/eslint/node_modules/lodash/fp/isEqualWith.js
index 37a6e3506c0920..029ff5cdaa0f33 100644
--- a/tools/eslint/node_modules/lodash/fp/isEqualWith.js
+++ b/tools/eslint/node_modules/lodash/fp/isEqualWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('isEqualWith', require('../isEqualWith'));
+var convert = require('./convert'),
+ func = convert('isEqualWith', require('../isEqualWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isError.js b/tools/eslint/node_modules/lodash/fp/isError.js
index da2710c26199de..3dfd81ccc211cb 100644
--- a/tools/eslint/node_modules/lodash/fp/isError.js
+++ b/tools/eslint/node_modules/lodash/fp/isError.js
@@ -1 +1,5 @@
-module.exports = require('../isError');
+var convert = require('./convert'),
+ func = convert('isError', require('../isError'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isFinite.js b/tools/eslint/node_modules/lodash/fp/isFinite.js
index a71e53de45b2e0..0b647b841ecc17 100644
--- a/tools/eslint/node_modules/lodash/fp/isFinite.js
+++ b/tools/eslint/node_modules/lodash/fp/isFinite.js
@@ -1 +1,5 @@
-module.exports = require('../isFinite');
+var convert = require('./convert'),
+ func = convert('isFinite', require('../isFinite'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isFunction.js b/tools/eslint/node_modules/lodash/fp/isFunction.js
index 1fc73f62f00fe9..ff8e5c45853aba 100644
--- a/tools/eslint/node_modules/lodash/fp/isFunction.js
+++ b/tools/eslint/node_modules/lodash/fp/isFunction.js
@@ -1 +1,5 @@
-module.exports = require('../isFunction');
+var convert = require('./convert'),
+ func = convert('isFunction', require('../isFunction'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isInteger.js b/tools/eslint/node_modules/lodash/fp/isInteger.js
index f990b011c53a1c..67af4ff6dbb05e 100644
--- a/tools/eslint/node_modules/lodash/fp/isInteger.js
+++ b/tools/eslint/node_modules/lodash/fp/isInteger.js
@@ -1 +1,5 @@
-module.exports = require('../isInteger');
+var convert = require('./convert'),
+ func = convert('isInteger', require('../isInteger'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isLength.js b/tools/eslint/node_modules/lodash/fp/isLength.js
index f40c36235331d5..fc101c5a64b4e8 100644
--- a/tools/eslint/node_modules/lodash/fp/isLength.js
+++ b/tools/eslint/node_modules/lodash/fp/isLength.js
@@ -1 +1,5 @@
-module.exports = require('../isLength');
+var convert = require('./convert'),
+ func = convert('isLength', require('../isLength'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isMap.js b/tools/eslint/node_modules/lodash/fp/isMap.js
index 51fb7e2e9a1df2..a209aa66fcbae5 100644
--- a/tools/eslint/node_modules/lodash/fp/isMap.js
+++ b/tools/eslint/node_modules/lodash/fp/isMap.js
@@ -1 +1,5 @@
-module.exports = require('../isMap');
+var convert = require('./convert'),
+ func = convert('isMap', require('../isMap'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isMatch.js b/tools/eslint/node_modules/lodash/fp/isMatch.js
index 749c9033197b33..6264ca17fac37a 100644
--- a/tools/eslint/node_modules/lodash/fp/isMatch.js
+++ b/tools/eslint/node_modules/lodash/fp/isMatch.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('isMatch', require('../isMatch'));
+var convert = require('./convert'),
+ func = convert('isMatch', require('../isMatch'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isMatchWith.js b/tools/eslint/node_modules/lodash/fp/isMatchWith.js
index b1311fcf329c61..d95f319353fb80 100644
--- a/tools/eslint/node_modules/lodash/fp/isMatchWith.js
+++ b/tools/eslint/node_modules/lodash/fp/isMatchWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('isMatchWith', require('../isMatchWith'));
+var convert = require('./convert'),
+ func = convert('isMatchWith', require('../isMatchWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isNaN.js b/tools/eslint/node_modules/lodash/fp/isNaN.js
index 74daf0a08c2564..66a978f11194fc 100644
--- a/tools/eslint/node_modules/lodash/fp/isNaN.js
+++ b/tools/eslint/node_modules/lodash/fp/isNaN.js
@@ -1 +1,5 @@
-module.exports = require('../isNaN');
+var convert = require('./convert'),
+ func = convert('isNaN', require('../isNaN'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isNative.js b/tools/eslint/node_modules/lodash/fp/isNative.js
index 9eeded4a886a20..3d775ba953152e 100644
--- a/tools/eslint/node_modules/lodash/fp/isNative.js
+++ b/tools/eslint/node_modules/lodash/fp/isNative.js
@@ -1 +1,5 @@
-module.exports = require('../isNative');
+var convert = require('./convert'),
+ func = convert('isNative', require('../isNative'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isNil.js b/tools/eslint/node_modules/lodash/fp/isNil.js
index beace9db042520..5952c028a9bcdd 100644
--- a/tools/eslint/node_modules/lodash/fp/isNil.js
+++ b/tools/eslint/node_modules/lodash/fp/isNil.js
@@ -1 +1,5 @@
-module.exports = require('../isNil');
+var convert = require('./convert'),
+ func = convert('isNil', require('../isNil'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isNull.js b/tools/eslint/node_modules/lodash/fp/isNull.js
index 44689a783ce419..f201a354b43789 100644
--- a/tools/eslint/node_modules/lodash/fp/isNull.js
+++ b/tools/eslint/node_modules/lodash/fp/isNull.js
@@ -1 +1,5 @@
-module.exports = require('../isNull');
+var convert = require('./convert'),
+ func = convert('isNull', require('../isNull'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isNumber.js b/tools/eslint/node_modules/lodash/fp/isNumber.js
index d7e86155de17de..a2b5fa049fe9f7 100644
--- a/tools/eslint/node_modules/lodash/fp/isNumber.js
+++ b/tools/eslint/node_modules/lodash/fp/isNumber.js
@@ -1 +1,5 @@
-module.exports = require('../isNumber');
+var convert = require('./convert'),
+ func = convert('isNumber', require('../isNumber'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isObject.js b/tools/eslint/node_modules/lodash/fp/isObject.js
index bb486300255110..231ace03bc50ed 100644
--- a/tools/eslint/node_modules/lodash/fp/isObject.js
+++ b/tools/eslint/node_modules/lodash/fp/isObject.js
@@ -1 +1,5 @@
-module.exports = require('../isObject');
+var convert = require('./convert'),
+ func = convert('isObject', require('../isObject'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isObjectLike.js b/tools/eslint/node_modules/lodash/fp/isObjectLike.js
index 5ef6f62b1f5b7e..f16082e6fee9ee 100644
--- a/tools/eslint/node_modules/lodash/fp/isObjectLike.js
+++ b/tools/eslint/node_modules/lodash/fp/isObjectLike.js
@@ -1 +1,5 @@
-module.exports = require('../isObjectLike');
+var convert = require('./convert'),
+ func = convert('isObjectLike', require('../isObjectLike'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isPlainObject.js b/tools/eslint/node_modules/lodash/fp/isPlainObject.js
index 2d34d86a4e3823..b5bea90d3a7f26 100644
--- a/tools/eslint/node_modules/lodash/fp/isPlainObject.js
+++ b/tools/eslint/node_modules/lodash/fp/isPlainObject.js
@@ -1 +1,5 @@
-module.exports = require('../isPlainObject');
+var convert = require('./convert'),
+ func = convert('isPlainObject', require('../isPlainObject'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isRegExp.js b/tools/eslint/node_modules/lodash/fp/isRegExp.js
index 4d0727becd2c4b..12a1a3d71852e9 100644
--- a/tools/eslint/node_modules/lodash/fp/isRegExp.js
+++ b/tools/eslint/node_modules/lodash/fp/isRegExp.js
@@ -1 +1,5 @@
-module.exports = require('../isRegExp');
+var convert = require('./convert'),
+ func = convert('isRegExp', require('../isRegExp'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isSafeInteger.js b/tools/eslint/node_modules/lodash/fp/isSafeInteger.js
index ed08cab6645942..7230f5520aa776 100644
--- a/tools/eslint/node_modules/lodash/fp/isSafeInteger.js
+++ b/tools/eslint/node_modules/lodash/fp/isSafeInteger.js
@@ -1 +1,5 @@
-module.exports = require('../isSafeInteger');
+var convert = require('./convert'),
+ func = convert('isSafeInteger', require('../isSafeInteger'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isSet.js b/tools/eslint/node_modules/lodash/fp/isSet.js
index f8a0a498c23b50..35c01f6fa19338 100644
--- a/tools/eslint/node_modules/lodash/fp/isSet.js
+++ b/tools/eslint/node_modules/lodash/fp/isSet.js
@@ -1 +1,5 @@
-module.exports = require('../isSet');
+var convert = require('./convert'),
+ func = convert('isSet', require('../isSet'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isString.js b/tools/eslint/node_modules/lodash/fp/isString.js
index 2f22d0e44baf98..1fd0679ef865e9 100644
--- a/tools/eslint/node_modules/lodash/fp/isString.js
+++ b/tools/eslint/node_modules/lodash/fp/isString.js
@@ -1 +1,5 @@
-module.exports = require('../isString');
+var convert = require('./convert'),
+ func = convert('isString', require('../isString'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isSymbol.js b/tools/eslint/node_modules/lodash/fp/isSymbol.js
index 9ce6731ec57e7a..38676956dac9dd 100644
--- a/tools/eslint/node_modules/lodash/fp/isSymbol.js
+++ b/tools/eslint/node_modules/lodash/fp/isSymbol.js
@@ -1 +1,5 @@
-module.exports = require('../isSymbol');
+var convert = require('./convert'),
+ func = convert('isSymbol', require('../isSymbol'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isTypedArray.js b/tools/eslint/node_modules/lodash/fp/isTypedArray.js
index 72349c5f08dfbf..8567953875ffc4 100644
--- a/tools/eslint/node_modules/lodash/fp/isTypedArray.js
+++ b/tools/eslint/node_modules/lodash/fp/isTypedArray.js
@@ -1 +1,5 @@
-module.exports = require('../isTypedArray');
+var convert = require('./convert'),
+ func = convert('isTypedArray', require('../isTypedArray'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isUndefined.js b/tools/eslint/node_modules/lodash/fp/isUndefined.js
index a65c5bec9c73fc..ddbca31ca70f09 100644
--- a/tools/eslint/node_modules/lodash/fp/isUndefined.js
+++ b/tools/eslint/node_modules/lodash/fp/isUndefined.js
@@ -1 +1,5 @@
-module.exports = require('../isUndefined');
+var convert = require('./convert'),
+ func = convert('isUndefined', require('../isUndefined'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isWeakMap.js b/tools/eslint/node_modules/lodash/fp/isWeakMap.js
index dc622014ed6037..ef60c613c4bdc9 100644
--- a/tools/eslint/node_modules/lodash/fp/isWeakMap.js
+++ b/tools/eslint/node_modules/lodash/fp/isWeakMap.js
@@ -1 +1,5 @@
-module.exports = require('../isWeakMap');
+var convert = require('./convert'),
+ func = convert('isWeakMap', require('../isWeakMap'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/isWeakSet.js b/tools/eslint/node_modules/lodash/fp/isWeakSet.js
index 7646ca884187b1..c99bfaa6d9d288 100644
--- a/tools/eslint/node_modules/lodash/fp/isWeakSet.js
+++ b/tools/eslint/node_modules/lodash/fp/isWeakSet.js
@@ -1 +1,5 @@
-module.exports = require('../isWeakSet');
+var convert = require('./convert'),
+ func = convert('isWeakSet', require('../isWeakSet'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/iteratee.js b/tools/eslint/node_modules/lodash/fp/iteratee.js
index 2884465d5ac17f..9f0f71738a01ba 100644
--- a/tools/eslint/node_modules/lodash/fp/iteratee.js
+++ b/tools/eslint/node_modules/lodash/fp/iteratee.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('iteratee', require('../iteratee'));
+var convert = require('./convert'),
+ func = convert('iteratee', require('../iteratee'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/join.js b/tools/eslint/node_modules/lodash/fp/join.js
index fdaa488e39268c..a220e003c4009f 100644
--- a/tools/eslint/node_modules/lodash/fp/join.js
+++ b/tools/eslint/node_modules/lodash/fp/join.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('join', require('../join'));
+var convert = require('./convert'),
+ func = convert('join', require('../join'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/juxt.js b/tools/eslint/node_modules/lodash/fp/juxt.js
new file mode 100644
index 00000000000000..f71e04e00028f5
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/juxt.js
@@ -0,0 +1 @@
+module.exports = require('./over');
diff --git a/tools/eslint/node_modules/lodash/fp/kebabCase.js b/tools/eslint/node_modules/lodash/fp/kebabCase.js
index f251a4d4813f35..60737f17cdbc85 100644
--- a/tools/eslint/node_modules/lodash/fp/kebabCase.js
+++ b/tools/eslint/node_modules/lodash/fp/kebabCase.js
@@ -1 +1,5 @@
-module.exports = require('../kebabCase');
+var convert = require('./convert'),
+ func = convert('kebabCase', require('../kebabCase'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/keyBy.js b/tools/eslint/node_modules/lodash/fp/keyBy.js
index ad9abacb1b051b..9a6a85d4226045 100644
--- a/tools/eslint/node_modules/lodash/fp/keyBy.js
+++ b/tools/eslint/node_modules/lodash/fp/keyBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('keyBy', require('../keyBy'));
+var convert = require('./convert'),
+ func = convert('keyBy', require('../keyBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/keys.js b/tools/eslint/node_modules/lodash/fp/keys.js
index 23dc6b7d96c5dd..e12bb07f13022e 100644
--- a/tools/eslint/node_modules/lodash/fp/keys.js
+++ b/tools/eslint/node_modules/lodash/fp/keys.js
@@ -1 +1,5 @@
-module.exports = require('../keys');
+var convert = require('./convert'),
+ func = convert('keys', require('../keys'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/keysIn.js b/tools/eslint/node_modules/lodash/fp/keysIn.js
index 2b738b99f099c0..f3eb36a8d20d6c 100644
--- a/tools/eslint/node_modules/lodash/fp/keysIn.js
+++ b/tools/eslint/node_modules/lodash/fp/keysIn.js
@@ -1 +1,5 @@
-module.exports = require('../keysIn');
+var convert = require('./convert'),
+ func = convert('keysIn', require('../keysIn'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/last.js b/tools/eslint/node_modules/lodash/fp/last.js
index 222be23aaee39d..0f716993fc80d9 100644
--- a/tools/eslint/node_modules/lodash/fp/last.js
+++ b/tools/eslint/node_modules/lodash/fp/last.js
@@ -1 +1,5 @@
-module.exports = require('../last');
+var convert = require('./convert'),
+ func = convert('last', require('../last'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/lastIndexOf.js b/tools/eslint/node_modules/lodash/fp/lastIndexOf.js
index e27480e3739852..ddf39c30135edd 100644
--- a/tools/eslint/node_modules/lodash/fp/lastIndexOf.js
+++ b/tools/eslint/node_modules/lodash/fp/lastIndexOf.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('lastIndexOf', require('../lastIndexOf'));
+var convert = require('./convert'),
+ func = convert('lastIndexOf', require('../lastIndexOf'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/lowerCase.js b/tools/eslint/node_modules/lodash/fp/lowerCase.js
index 4da15cea6f656a..ea64bc15d6f337 100644
--- a/tools/eslint/node_modules/lodash/fp/lowerCase.js
+++ b/tools/eslint/node_modules/lodash/fp/lowerCase.js
@@ -1 +1,5 @@
-module.exports = require('../lowerCase');
+var convert = require('./convert'),
+ func = convert('lowerCase', require('../lowerCase'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/lowerFirst.js b/tools/eslint/node_modules/lodash/fp/lowerFirst.js
index afd1ba5472c80b..539720a3da3e0e 100644
--- a/tools/eslint/node_modules/lodash/fp/lowerFirst.js
+++ b/tools/eslint/node_modules/lodash/fp/lowerFirst.js
@@ -1 +1,5 @@
-module.exports = require('../lowerFirst');
+var convert = require('./convert'),
+ func = convert('lowerFirst', require('../lowerFirst'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/lt.js b/tools/eslint/node_modules/lodash/fp/lt.js
index dd4cba04f6fe11..a31d21ecc660da 100644
--- a/tools/eslint/node_modules/lodash/fp/lt.js
+++ b/tools/eslint/node_modules/lodash/fp/lt.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('lt', require('../lt'));
+var convert = require('./convert'),
+ func = convert('lt', require('../lt'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/lte.js b/tools/eslint/node_modules/lodash/fp/lte.js
index f9bf7254ffd24e..d795d10ee7c78f 100644
--- a/tools/eslint/node_modules/lodash/fp/lte.js
+++ b/tools/eslint/node_modules/lodash/fp/lte.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('lte', require('../lte'));
+var convert = require('./convert'),
+ func = convert('lte', require('../lte'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/map.js b/tools/eslint/node_modules/lodash/fp/map.js
index b74c1a1cea15ba..cf98794362808b 100644
--- a/tools/eslint/node_modules/lodash/fp/map.js
+++ b/tools/eslint/node_modules/lodash/fp/map.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('map', require('../map'));
+var convert = require('./convert'),
+ func = convert('map', require('../map'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/mapKeys.js b/tools/eslint/node_modules/lodash/fp/mapKeys.js
index a8156c104dbd62..1684587099e281 100644
--- a/tools/eslint/node_modules/lodash/fp/mapKeys.js
+++ b/tools/eslint/node_modules/lodash/fp/mapKeys.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('mapKeys', require('../mapKeys'));
+var convert = require('./convert'),
+ func = convert('mapKeys', require('../mapKeys'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/mapValues.js b/tools/eslint/node_modules/lodash/fp/mapValues.js
index 9375d73e34ff4b..4004972751db88 100644
--- a/tools/eslint/node_modules/lodash/fp/mapValues.js
+++ b/tools/eslint/node_modules/lodash/fp/mapValues.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('mapValues', require('../mapValues'));
+var convert = require('./convert'),
+ func = convert('mapValues', require('../mapValues'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/matches.js b/tools/eslint/node_modules/lodash/fp/matches.js
index eea59164369847..629399cb8dc93f 100644
--- a/tools/eslint/node_modules/lodash/fp/matches.js
+++ b/tools/eslint/node_modules/lodash/fp/matches.js
@@ -1 +1,5 @@
-module.exports = require('../matches');
+var convert = require('./convert'),
+ func = convert('matches', require('../matches'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/matchesProperty.js b/tools/eslint/node_modules/lodash/fp/matchesProperty.js
index c4343a1710ba35..4575bd2431b7e4 100644
--- a/tools/eslint/node_modules/lodash/fp/matchesProperty.js
+++ b/tools/eslint/node_modules/lodash/fp/matchesProperty.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('matchesProperty', require('../matchesProperty'));
+var convert = require('./convert'),
+ func = convert('matchesProperty', require('../matchesProperty'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/max.js b/tools/eslint/node_modules/lodash/fp/max.js
index f7258c6ec30ac0..a66acac220717a 100644
--- a/tools/eslint/node_modules/lodash/fp/max.js
+++ b/tools/eslint/node_modules/lodash/fp/max.js
@@ -1 +1,5 @@
-module.exports = require('../max');
+var convert = require('./convert'),
+ func = convert('max', require('../max'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/maxBy.js b/tools/eslint/node_modules/lodash/fp/maxBy.js
index b81243fabcb67c..d083fd64fd2d59 100644
--- a/tools/eslint/node_modules/lodash/fp/maxBy.js
+++ b/tools/eslint/node_modules/lodash/fp/maxBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('maxBy', require('../maxBy'));
+var convert = require('./convert'),
+ func = convert('maxBy', require('../maxBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/mean.js b/tools/eslint/node_modules/lodash/fp/mean.js
index b78e427a9e4217..31172460c3b44a 100644
--- a/tools/eslint/node_modules/lodash/fp/mean.js
+++ b/tools/eslint/node_modules/lodash/fp/mean.js
@@ -1 +1,5 @@
-module.exports = require('../mean');
+var convert = require('./convert'),
+ func = convert('mean', require('../mean'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/meanBy.js b/tools/eslint/node_modules/lodash/fp/meanBy.js
new file mode 100644
index 00000000000000..556f25edfe912f
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/meanBy.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('meanBy', require('../meanBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/memoize.js b/tools/eslint/node_modules/lodash/fp/memoize.js
index 1a45e09eb8ac29..638eec63bad1bb 100644
--- a/tools/eslint/node_modules/lodash/fp/memoize.js
+++ b/tools/eslint/node_modules/lodash/fp/memoize.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('memoize', require('../memoize'));
+var convert = require('./convert'),
+ func = convert('memoize', require('../memoize'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/merge.js b/tools/eslint/node_modules/lodash/fp/merge.js
index 3dca64191add42..ac66adde1221e6 100644
--- a/tools/eslint/node_modules/lodash/fp/merge.js
+++ b/tools/eslint/node_modules/lodash/fp/merge.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('merge', require('../merge'));
+var convert = require('./convert'),
+ func = convert('merge', require('../merge'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/mergeWith.js b/tools/eslint/node_modules/lodash/fp/mergeWith.js
index ba456444d86868..00d44d5e1a2711 100644
--- a/tools/eslint/node_modules/lodash/fp/mergeWith.js
+++ b/tools/eslint/node_modules/lodash/fp/mergeWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('mergeWith', require('../mergeWith'));
+var convert = require('./convert'),
+ func = convert('mergeWith', require('../mergeWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/method.js b/tools/eslint/node_modules/lodash/fp/method.js
index c2f95c3f17281e..f4060c6878e9be 100644
--- a/tools/eslint/node_modules/lodash/fp/method.js
+++ b/tools/eslint/node_modules/lodash/fp/method.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('method', require('../method'));
+var convert = require('./convert'),
+ func = convert('method', require('../method'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/methodOf.js b/tools/eslint/node_modules/lodash/fp/methodOf.js
index 223f6516e266d9..61399056f36858 100644
--- a/tools/eslint/node_modules/lodash/fp/methodOf.js
+++ b/tools/eslint/node_modules/lodash/fp/methodOf.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('methodOf', require('../methodOf'));
+var convert = require('./convert'),
+ func = convert('methodOf', require('../methodOf'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/min.js b/tools/eslint/node_modules/lodash/fp/min.js
index 10db02c0e9665f..d12c6b40d38285 100644
--- a/tools/eslint/node_modules/lodash/fp/min.js
+++ b/tools/eslint/node_modules/lodash/fp/min.js
@@ -1 +1,5 @@
-module.exports = require('../min');
+var convert = require('./convert'),
+ func = convert('min', require('../min'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/minBy.js b/tools/eslint/node_modules/lodash/fp/minBy.js
index 10edfd40d9e715..fdb9e24d8adcf1 100644
--- a/tools/eslint/node_modules/lodash/fp/minBy.js
+++ b/tools/eslint/node_modules/lodash/fp/minBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('minBy', require('../minBy'));
+var convert = require('./convert'),
+ func = convert('minBy', require('../minBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/mixin.js b/tools/eslint/node_modules/lodash/fp/mixin.js
index 965f1808c90111..332e6fbfddadf1 100644
--- a/tools/eslint/node_modules/lodash/fp/mixin.js
+++ b/tools/eslint/node_modules/lodash/fp/mixin.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('mixin', require('../mixin'));
+var convert = require('./convert'),
+ func = convert('mixin', require('../mixin'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/multiply.js b/tools/eslint/node_modules/lodash/fp/multiply.js
new file mode 100644
index 00000000000000..4dcf0b0d4afb64
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/multiply.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('multiply', require('../multiply'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/negate.js b/tools/eslint/node_modules/lodash/fp/negate.js
index 345b4250e6f7a4..8b6dc7c5b882c3 100644
--- a/tools/eslint/node_modules/lodash/fp/negate.js
+++ b/tools/eslint/node_modules/lodash/fp/negate.js
@@ -1 +1,5 @@
-module.exports = require('../negate');
+var convert = require('./convert'),
+ func = convert('negate', require('../negate'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/next.js b/tools/eslint/node_modules/lodash/fp/next.js
index 5cad70e44bd312..140155e2321f8b 100644
--- a/tools/eslint/node_modules/lodash/fp/next.js
+++ b/tools/eslint/node_modules/lodash/fp/next.js
@@ -1 +1,5 @@
-module.exports = require('../next');
+var convert = require('./convert'),
+ func = convert('next', require('../next'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/noop.js b/tools/eslint/node_modules/lodash/fp/noop.js
index ca1005047a3af6..b9e32cc8cd8729 100644
--- a/tools/eslint/node_modules/lodash/fp/noop.js
+++ b/tools/eslint/node_modules/lodash/fp/noop.js
@@ -1 +1,5 @@
-module.exports = require('../noop');
+var convert = require('./convert'),
+ func = convert('noop', require('../noop'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/now.js b/tools/eslint/node_modules/lodash/fp/now.js
index aa5ed67a7bf33d..6de2068aacc53b 100644
--- a/tools/eslint/node_modules/lodash/fp/now.js
+++ b/tools/eslint/node_modules/lodash/fp/now.js
@@ -1 +1,5 @@
-module.exports = require('../now');
+var convert = require('./convert'),
+ func = convert('now', require('../now'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/nthArg.js b/tools/eslint/node_modules/lodash/fp/nthArg.js
index dd47ac66672f60..8ccd8e60b1a812 100644
--- a/tools/eslint/node_modules/lodash/fp/nthArg.js
+++ b/tools/eslint/node_modules/lodash/fp/nthArg.js
@@ -1 +1,5 @@
-module.exports = require('../nthArg');
+var convert = require('./convert'),
+ func = convert('nthArg', require('../nthArg'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/omit.js b/tools/eslint/node_modules/lodash/fp/omit.js
index 404b5516075e56..fd685291e64e29 100644
--- a/tools/eslint/node_modules/lodash/fp/omit.js
+++ b/tools/eslint/node_modules/lodash/fp/omit.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('omit', require('../omit'));
+var convert = require('./convert'),
+ func = convert('omit', require('../omit'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/omitBy.js b/tools/eslint/node_modules/lodash/fp/omitBy.js
index 745efa54f03071..90df7380269d9b 100644
--- a/tools/eslint/node_modules/lodash/fp/omitBy.js
+++ b/tools/eslint/node_modules/lodash/fp/omitBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('omitBy', require('../omitBy'));
+var convert = require('./convert'),
+ func = convert('omitBy', require('../omitBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/once.js b/tools/eslint/node_modules/lodash/fp/once.js
index 6bd0beb20f93ac..f8f0a5c73ecf0c 100644
--- a/tools/eslint/node_modules/lodash/fp/once.js
+++ b/tools/eslint/node_modules/lodash/fp/once.js
@@ -1 +1,5 @@
-module.exports = require('../once');
+var convert = require('./convert'),
+ func = convert('once', require('../once'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/orderBy.js b/tools/eslint/node_modules/lodash/fp/orderBy.js
index b32244f18150ec..848e210754641a 100644
--- a/tools/eslint/node_modules/lodash/fp/orderBy.js
+++ b/tools/eslint/node_modules/lodash/fp/orderBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('orderBy', require('../orderBy'));
+var convert = require('./convert'),
+ func = convert('orderBy', require('../orderBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/over.js b/tools/eslint/node_modules/lodash/fp/over.js
index 0a5a797a74dec0..01eba7b9847805 100644
--- a/tools/eslint/node_modules/lodash/fp/over.js
+++ b/tools/eslint/node_modules/lodash/fp/over.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('over', require('../over'));
+var convert = require('./convert'),
+ func = convert('over', require('../over'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/overArgs.js b/tools/eslint/node_modules/lodash/fp/overArgs.js
index 818838745d21a9..738556f0c0da92 100644
--- a/tools/eslint/node_modules/lodash/fp/overArgs.js
+++ b/tools/eslint/node_modules/lodash/fp/overArgs.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('overArgs', require('../overArgs'));
+var convert = require('./convert'),
+ func = convert('overArgs', require('../overArgs'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/overEvery.js b/tools/eslint/node_modules/lodash/fp/overEvery.js
index 36dc552b370b21..9f5a032dc7782c 100644
--- a/tools/eslint/node_modules/lodash/fp/overEvery.js
+++ b/tools/eslint/node_modules/lodash/fp/overEvery.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('overEvery', require('../overEvery'));
+var convert = require('./convert'),
+ func = convert('overEvery', require('../overEvery'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/overSome.js b/tools/eslint/node_modules/lodash/fp/overSome.js
index b02d464ac5f79d..15939d5865a2b4 100644
--- a/tools/eslint/node_modules/lodash/fp/overSome.js
+++ b/tools/eslint/node_modules/lodash/fp/overSome.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('overSome', require('../overSome'));
+var convert = require('./convert'),
+ func = convert('overSome', require('../overSome'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pad.js b/tools/eslint/node_modules/lodash/fp/pad.js
index e59cfc93577099..f1dea4a98f6447 100644
--- a/tools/eslint/node_modules/lodash/fp/pad.js
+++ b/tools/eslint/node_modules/lodash/fp/pad.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('pad', require('../pad'));
+var convert = require('./convert'),
+ func = convert('pad', require('../pad'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/padChars.js b/tools/eslint/node_modules/lodash/fp/padChars.js
new file mode 100644
index 00000000000000..d6e0804cd6ca96
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/padChars.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('padChars', require('../pad'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/padCharsEnd.js b/tools/eslint/node_modules/lodash/fp/padCharsEnd.js
new file mode 100644
index 00000000000000..d4ab79ad305f58
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/padCharsEnd.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('padCharsEnd', require('../padEnd'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/padCharsStart.js b/tools/eslint/node_modules/lodash/fp/padCharsStart.js
new file mode 100644
index 00000000000000..a08a30000a6617
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/padCharsStart.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('padCharsStart', require('../padStart'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/padEnd.js b/tools/eslint/node_modules/lodash/fp/padEnd.js
index 0b6dbb786f80b7..a8522ec36a5fb6 100644
--- a/tools/eslint/node_modules/lodash/fp/padEnd.js
+++ b/tools/eslint/node_modules/lodash/fp/padEnd.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('padEnd', require('../padEnd'));
+var convert = require('./convert'),
+ func = convert('padEnd', require('../padEnd'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/padStart.js b/tools/eslint/node_modules/lodash/fp/padStart.js
index c97f098976d7d9..f4ca79d4af8ebd 100644
--- a/tools/eslint/node_modules/lodash/fp/padStart.js
+++ b/tools/eslint/node_modules/lodash/fp/padStart.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('padStart', require('../padStart'));
+var convert = require('./convert'),
+ func = convert('padStart', require('../padStart'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/parseInt.js b/tools/eslint/node_modules/lodash/fp/parseInt.js
index 35be7137ea2457..27314ccbca67b4 100644
--- a/tools/eslint/node_modules/lodash/fp/parseInt.js
+++ b/tools/eslint/node_modules/lodash/fp/parseInt.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('parseInt', require('../parseInt'));
+var convert = require('./convert'),
+ func = convert('parseInt', require('../parseInt'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/partial.js b/tools/eslint/node_modules/lodash/fp/partial.js
index a687d0c8c39610..5d4601598bf83c 100644
--- a/tools/eslint/node_modules/lodash/fp/partial.js
+++ b/tools/eslint/node_modules/lodash/fp/partial.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('partial', require('../partial'));
+var convert = require('./convert'),
+ func = convert('partial', require('../partial'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/partialRight.js b/tools/eslint/node_modules/lodash/fp/partialRight.js
index 28428c0339cbc0..7f05fed0ab3bb8 100644
--- a/tools/eslint/node_modules/lodash/fp/partialRight.js
+++ b/tools/eslint/node_modules/lodash/fp/partialRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('partialRight', require('../partialRight'));
+var convert = require('./convert'),
+ func = convert('partialRight', require('../partialRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/partition.js b/tools/eslint/node_modules/lodash/fp/partition.js
index b1495e6760b817..2ebcacc1f4d5f3 100644
--- a/tools/eslint/node_modules/lodash/fp/partition.js
+++ b/tools/eslint/node_modules/lodash/fp/partition.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('partition', require('../partition'));
+var convert = require('./convert'),
+ func = convert('partition', require('../partition'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pick.js b/tools/eslint/node_modules/lodash/fp/pick.js
index e84b366d765ca5..197393de1d2241 100644
--- a/tools/eslint/node_modules/lodash/fp/pick.js
+++ b/tools/eslint/node_modules/lodash/fp/pick.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('pick', require('../pick'));
+var convert = require('./convert'),
+ func = convert('pick', require('../pick'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pickBy.js b/tools/eslint/node_modules/lodash/fp/pickBy.js
index 4d14a0b586c99f..d832d16b6c2b04 100644
--- a/tools/eslint/node_modules/lodash/fp/pickBy.js
+++ b/tools/eslint/node_modules/lodash/fp/pickBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('pickBy', require('../pickBy'));
+var convert = require('./convert'),
+ func = convert('pickBy', require('../pickBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/placeholder.js b/tools/eslint/node_modules/lodash/fp/placeholder.js
new file mode 100644
index 00000000000000..1ce17393b99c34
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/placeholder.js
@@ -0,0 +1,6 @@
+/**
+ * The default argument placeholder value for methods.
+ *
+ * @type {Object}
+ */
+module.exports = {};
diff --git a/tools/eslint/node_modules/lodash/fp/plant.js b/tools/eslint/node_modules/lodash/fp/plant.js
index c85596a0c4618c..eca8f32b4afa9f 100644
--- a/tools/eslint/node_modules/lodash/fp/plant.js
+++ b/tools/eslint/node_modules/lodash/fp/plant.js
@@ -1 +1,5 @@
-module.exports = require('../plant');
+var convert = require('./convert'),
+ func = convert('plant', require('../plant'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/property.js b/tools/eslint/node_modules/lodash/fp/property.js
index fab6f239f83fb3..d832fbba322ad3 100644
--- a/tools/eslint/node_modules/lodash/fp/property.js
+++ b/tools/eslint/node_modules/lodash/fp/property.js
@@ -1 +1,5 @@
-module.exports = require('../property');
+var convert = require('./convert'),
+ func = convert('property', require('../property'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/propertyOf.js b/tools/eslint/node_modules/lodash/fp/propertyOf.js
index d941cdbf55fc78..3cfdef790a9e46 100644
--- a/tools/eslint/node_modules/lodash/fp/propertyOf.js
+++ b/tools/eslint/node_modules/lodash/fp/propertyOf.js
@@ -1 +1,5 @@
-module.exports = require('../propertyOf');
+var convert = require('./convert'),
+ func = convert('propertyOf', require('../propertyOf'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pull.js b/tools/eslint/node_modules/lodash/fp/pull.js
index 47f49aefcd03cd..8d7084f0795aca 100644
--- a/tools/eslint/node_modules/lodash/fp/pull.js
+++ b/tools/eslint/node_modules/lodash/fp/pull.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('pull', require('../pull'));
+var convert = require('./convert'),
+ func = convert('pull', require('../pull'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pullAll.js b/tools/eslint/node_modules/lodash/fp/pullAll.js
index ffb663bc6db55d..98d5c9a73a9c03 100644
--- a/tools/eslint/node_modules/lodash/fp/pullAll.js
+++ b/tools/eslint/node_modules/lodash/fp/pullAll.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('pullAll', require('../pullAll'));
+var convert = require('./convert'),
+ func = convert('pullAll', require('../pullAll'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pullAllBy.js b/tools/eslint/node_modules/lodash/fp/pullAllBy.js
index 23b11b7b3e3ed1..876bc3bf1cda84 100644
--- a/tools/eslint/node_modules/lodash/fp/pullAllBy.js
+++ b/tools/eslint/node_modules/lodash/fp/pullAllBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('pullAllBy', require('../pullAllBy'));
+var convert = require('./convert'),
+ func = convert('pullAllBy', require('../pullAllBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pullAllWith.js b/tools/eslint/node_modules/lodash/fp/pullAllWith.js
new file mode 100644
index 00000000000000..f71ba4d73db312
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/pullAllWith.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('pullAllWith', require('../pullAllWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/pullAt.js b/tools/eslint/node_modules/lodash/fp/pullAt.js
index 5836d2ddac431d..e8b3bb6125965d 100644
--- a/tools/eslint/node_modules/lodash/fp/pullAt.js
+++ b/tools/eslint/node_modules/lodash/fp/pullAt.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('pullAt', require('../pullAt'));
+var convert = require('./convert'),
+ func = convert('pullAt', require('../pullAt'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/random.js b/tools/eslint/node_modules/lodash/fp/random.js
index 607d63a194d6af..99d852e4ab2436 100644
--- a/tools/eslint/node_modules/lodash/fp/random.js
+++ b/tools/eslint/node_modules/lodash/fp/random.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('random', require('../random'));
+var convert = require('./convert'),
+ func = convert('random', require('../random'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/range.js b/tools/eslint/node_modules/lodash/fp/range.js
index 1142304e5f155c..a6bb59118b4490 100644
--- a/tools/eslint/node_modules/lodash/fp/range.js
+++ b/tools/eslint/node_modules/lodash/fp/range.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('range', require('../range'));
+var convert = require('./convert'),
+ func = convert('range', require('../range'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/rangeRight.js b/tools/eslint/node_modules/lodash/fp/rangeRight.js
index 22482877d0d618..fdb712f94e1e9a 100644
--- a/tools/eslint/node_modules/lodash/fp/rangeRight.js
+++ b/tools/eslint/node_modules/lodash/fp/rangeRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('rangeRight', require('../rangeRight'));
+var convert = require('./convert'),
+ func = convert('rangeRight', require('../rangeRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/rearg.js b/tools/eslint/node_modules/lodash/fp/rearg.js
index b2753e9e003456..678e02a32a8941 100644
--- a/tools/eslint/node_modules/lodash/fp/rearg.js
+++ b/tools/eslint/node_modules/lodash/fp/rearg.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('rearg', require('../rearg'));
+var convert = require('./convert'),
+ func = convert('rearg', require('../rearg'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/reduce.js b/tools/eslint/node_modules/lodash/fp/reduce.js
index 2f1b42510217e3..4cef0a0083ca58 100644
--- a/tools/eslint/node_modules/lodash/fp/reduce.js
+++ b/tools/eslint/node_modules/lodash/fp/reduce.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('reduce', require('../reduce'));
+var convert = require('./convert'),
+ func = convert('reduce', require('../reduce'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/reduceRight.js b/tools/eslint/node_modules/lodash/fp/reduceRight.js
index b110e9e9b96a44..caf5bb5155d9f7 100644
--- a/tools/eslint/node_modules/lodash/fp/reduceRight.js
+++ b/tools/eslint/node_modules/lodash/fp/reduceRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('reduceRight', require('../reduceRight'));
+var convert = require('./convert'),
+ func = convert('reduceRight', require('../reduceRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/reject.js b/tools/eslint/node_modules/lodash/fp/reject.js
index 30bd3bc7d2c3c7..c1632738619eae 100644
--- a/tools/eslint/node_modules/lodash/fp/reject.js
+++ b/tools/eslint/node_modules/lodash/fp/reject.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('reject', require('../reject'));
+var convert = require('./convert'),
+ func = convert('reject', require('../reject'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/remove.js b/tools/eslint/node_modules/lodash/fp/remove.js
index 4b67a943159362..e9d13273680413 100644
--- a/tools/eslint/node_modules/lodash/fp/remove.js
+++ b/tools/eslint/node_modules/lodash/fp/remove.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('remove', require('../remove'));
+var convert = require('./convert'),
+ func = convert('remove', require('../remove'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/repeat.js b/tools/eslint/node_modules/lodash/fp/repeat.js
index bc0704b3ab91b3..08470f247a36a3 100644
--- a/tools/eslint/node_modules/lodash/fp/repeat.js
+++ b/tools/eslint/node_modules/lodash/fp/repeat.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('repeat', require('../repeat'));
+var convert = require('./convert'),
+ func = convert('repeat', require('../repeat'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/replace.js b/tools/eslint/node_modules/lodash/fp/replace.js
index a4462e7d858a39..2227db62571126 100644
--- a/tools/eslint/node_modules/lodash/fp/replace.js
+++ b/tools/eslint/node_modules/lodash/fp/replace.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('replace', require('../replace'));
+var convert = require('./convert'),
+ func = convert('replace', require('../replace'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/rest.js b/tools/eslint/node_modules/lodash/fp/rest.js
index 69dfc18a7d5cb5..c1f3d64bdceee0 100644
--- a/tools/eslint/node_modules/lodash/fp/rest.js
+++ b/tools/eslint/node_modules/lodash/fp/rest.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('rest', require('../rest'));
+var convert = require('./convert'),
+ func = convert('rest', require('../rest'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/restFrom.js b/tools/eslint/node_modules/lodash/fp/restFrom.js
new file mode 100644
index 00000000000000..714e42b5d6632a
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/restFrom.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('restFrom', require('../rest'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/result.js b/tools/eslint/node_modules/lodash/fp/result.js
index 1d3fb58ffa0e93..f86ce071264248 100644
--- a/tools/eslint/node_modules/lodash/fp/result.js
+++ b/tools/eslint/node_modules/lodash/fp/result.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('result', require('../result'));
+var convert = require('./convert'),
+ func = convert('result', require('../result'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/reverse.js b/tools/eslint/node_modules/lodash/fp/reverse.js
index a6d960de0d7dab..07c9f5e4933056 100644
--- a/tools/eslint/node_modules/lodash/fp/reverse.js
+++ b/tools/eslint/node_modules/lodash/fp/reverse.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('reverse', require('../reverse'));
+var convert = require('./convert'),
+ func = convert('reverse', require('../reverse'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/round.js b/tools/eslint/node_modules/lodash/fp/round.js
index 9eb69b18ed8ef8..4c0e5c829983d1 100644
--- a/tools/eslint/node_modules/lodash/fp/round.js
+++ b/tools/eslint/node_modules/lodash/fp/round.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('round', require('../round'));
+var convert = require('./convert'),
+ func = convert('round', require('../round'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sample.js b/tools/eslint/node_modules/lodash/fp/sample.js
index 008cb0683151e6..6bea1254de6069 100644
--- a/tools/eslint/node_modules/lodash/fp/sample.js
+++ b/tools/eslint/node_modules/lodash/fp/sample.js
@@ -1 +1,5 @@
-module.exports = require('../sample');
+var convert = require('./convert'),
+ func = convert('sample', require('../sample'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sampleSize.js b/tools/eslint/node_modules/lodash/fp/sampleSize.js
index 920c075ff999fd..359ed6fcda1501 100644
--- a/tools/eslint/node_modules/lodash/fp/sampleSize.js
+++ b/tools/eslint/node_modules/lodash/fp/sampleSize.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sampleSize', require('../sampleSize'));
+var convert = require('./convert'),
+ func = convert('sampleSize', require('../sampleSize'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/set.js b/tools/eslint/node_modules/lodash/fp/set.js
index fc2a75b3665aff..0b56a56c8a8d3c 100644
--- a/tools/eslint/node_modules/lodash/fp/set.js
+++ b/tools/eslint/node_modules/lodash/fp/set.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('set', require('../set'));
+var convert = require('./convert'),
+ func = convert('set', require('../set'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/setWith.js b/tools/eslint/node_modules/lodash/fp/setWith.js
index fd836ea40e7c87..0b584952b6c469 100644
--- a/tools/eslint/node_modules/lodash/fp/setWith.js
+++ b/tools/eslint/node_modules/lodash/fp/setWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('setWith', require('../setWith'));
+var convert = require('./convert'),
+ func = convert('setWith', require('../setWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/shuffle.js b/tools/eslint/node_modules/lodash/fp/shuffle.js
index 85d569921a35dc..aa3a1ca5be95d8 100644
--- a/tools/eslint/node_modules/lodash/fp/shuffle.js
+++ b/tools/eslint/node_modules/lodash/fp/shuffle.js
@@ -1 +1,5 @@
-module.exports = require('../shuffle');
+var convert = require('./convert'),
+ func = convert('shuffle', require('../shuffle'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/size.js b/tools/eslint/node_modules/lodash/fp/size.js
index efba2ca65d473b..7490136e1cb4d8 100644
--- a/tools/eslint/node_modules/lodash/fp/size.js
+++ b/tools/eslint/node_modules/lodash/fp/size.js
@@ -1 +1,5 @@
-module.exports = require('../size');
+var convert = require('./convert'),
+ func = convert('size', require('../size'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/slice.js b/tools/eslint/node_modules/lodash/fp/slice.js
index 6fb1898f94a0f3..15945d321f78d2 100644
--- a/tools/eslint/node_modules/lodash/fp/slice.js
+++ b/tools/eslint/node_modules/lodash/fp/slice.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('slice', require('../slice'));
+var convert = require('./convert'),
+ func = convert('slice', require('../slice'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/snakeCase.js b/tools/eslint/node_modules/lodash/fp/snakeCase.js
index 2893f7bdaa3c46..a0ff7808eb9223 100644
--- a/tools/eslint/node_modules/lodash/fp/snakeCase.js
+++ b/tools/eslint/node_modules/lodash/fp/snakeCase.js
@@ -1 +1,5 @@
-module.exports = require('../snakeCase');
+var convert = require('./convert'),
+ func = convert('snakeCase', require('../snakeCase'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/some.js b/tools/eslint/node_modules/lodash/fp/some.js
index 64727fe3899614..a4fa2d00602861 100644
--- a/tools/eslint/node_modules/lodash/fp/some.js
+++ b/tools/eslint/node_modules/lodash/fp/some.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('some', require('../some'));
+var convert = require('./convert'),
+ func = convert('some', require('../some'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortBy.js b/tools/eslint/node_modules/lodash/fp/sortBy.js
index 80fe4dd37ca72b..e0790ad5b70ff9 100644
--- a/tools/eslint/node_modules/lodash/fp/sortBy.js
+++ b/tools/eslint/node_modules/lodash/fp/sortBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortBy', require('../sortBy'));
+var convert = require('./convert'),
+ func = convert('sortBy', require('../sortBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedIndex.js b/tools/eslint/node_modules/lodash/fp/sortedIndex.js
index 509dcb87917208..364a05435e7714 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedIndex.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedIndex.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortedIndex', require('../sortedIndex'));
+var convert = require('./convert'),
+ func = convert('sortedIndex', require('../sortedIndex'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedIndexBy.js b/tools/eslint/node_modules/lodash/fp/sortedIndexBy.js
index aa2d219695c9c6..9593dbd13d6fd2 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedIndexBy.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedIndexBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortedIndexBy', require('../sortedIndexBy'));
+var convert = require('./convert'),
+ func = convert('sortedIndexBy', require('../sortedIndexBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedIndexOf.js b/tools/eslint/node_modules/lodash/fp/sortedIndexOf.js
index c1274201097cae..c9084cab6a0319 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedIndexOf.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedIndexOf.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortedIndexOf', require('../sortedIndexOf'));
+var convert = require('./convert'),
+ func = convert('sortedIndexOf', require('../sortedIndexOf'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedLastIndex.js b/tools/eslint/node_modules/lodash/fp/sortedLastIndex.js
index 7ec9e335940d48..47fe241af7d989 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedLastIndex.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedLastIndex.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortedLastIndex', require('../sortedLastIndex'));
+var convert = require('./convert'),
+ func = convert('sortedLastIndex', require('../sortedLastIndex'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedLastIndexBy.js b/tools/eslint/node_modules/lodash/fp/sortedLastIndexBy.js
index e03f1853e0da88..0f9a3473267398 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedLastIndexBy.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedLastIndexBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortedLastIndexBy', require('../sortedLastIndexBy'));
+var convert = require('./convert'),
+ func = convert('sortedLastIndexBy', require('../sortedLastIndexBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedLastIndexOf.js b/tools/eslint/node_modules/lodash/fp/sortedLastIndexOf.js
index 0130801e94b782..0d4d93278f906e 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedLastIndexOf.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedLastIndexOf.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortedLastIndexOf', require('../sortedLastIndexOf'));
+var convert = require('./convert'),
+ func = convert('sortedLastIndexOf', require('../sortedLastIndexOf'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedUniq.js b/tools/eslint/node_modules/lodash/fp/sortedUniq.js
index c0df750eec6250..882d283702cd2f 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedUniq.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedUniq.js
@@ -1 +1,5 @@
-module.exports = require('../sortedUniq');
+var convert = require('./convert'),
+ func = convert('sortedUniq', require('../sortedUniq'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sortedUniqBy.js b/tools/eslint/node_modules/lodash/fp/sortedUniqBy.js
index f5c65ad6b086ac..033db91ca9de25 100644
--- a/tools/eslint/node_modules/lodash/fp/sortedUniqBy.js
+++ b/tools/eslint/node_modules/lodash/fp/sortedUniqBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sortedUniqBy', require('../sortedUniqBy'));
+var convert = require('./convert'),
+ func = convert('sortedUniqBy', require('../sortedUniqBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/split.js b/tools/eslint/node_modules/lodash/fp/split.js
index 79f26939318636..14de1a7efda4ed 100644
--- a/tools/eslint/node_modules/lodash/fp/split.js
+++ b/tools/eslint/node_modules/lodash/fp/split.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('split', require('../split'));
+var convert = require('./convert'),
+ func = convert('split', require('../split'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/spread.js b/tools/eslint/node_modules/lodash/fp/spread.js
index 0348df25ce7720..2d11b70722dc83 100644
--- a/tools/eslint/node_modules/lodash/fp/spread.js
+++ b/tools/eslint/node_modules/lodash/fp/spread.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('spread', require('../spread'));
+var convert = require('./convert'),
+ func = convert('spread', require('../spread'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/spreadFrom.js b/tools/eslint/node_modules/lodash/fp/spreadFrom.js
new file mode 100644
index 00000000000000..0b630df1b38bef
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/spreadFrom.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('spreadFrom', require('../spread'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/startCase.js b/tools/eslint/node_modules/lodash/fp/startCase.js
index 2a6a66ef15c2ea..ada98c943dee83 100644
--- a/tools/eslint/node_modules/lodash/fp/startCase.js
+++ b/tools/eslint/node_modules/lodash/fp/startCase.js
@@ -1 +1,5 @@
-module.exports = require('../startCase');
+var convert = require('./convert'),
+ func = convert('startCase', require('../startCase'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/startsWith.js b/tools/eslint/node_modules/lodash/fp/startsWith.js
index 730a141f6d7faa..985e2f2948ca34 100644
--- a/tools/eslint/node_modules/lodash/fp/startsWith.js
+++ b/tools/eslint/node_modules/lodash/fp/startsWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('startsWith', require('../startsWith'));
+var convert = require('./convert'),
+ func = convert('startsWith', require('../startsWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/subtract.js b/tools/eslint/node_modules/lodash/fp/subtract.js
index 46b83db36316e1..d32b16d4797310 100644
--- a/tools/eslint/node_modules/lodash/fp/subtract.js
+++ b/tools/eslint/node_modules/lodash/fp/subtract.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('subtract', require('../subtract'));
+var convert = require('./convert'),
+ func = convert('subtract', require('../subtract'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sum.js b/tools/eslint/node_modules/lodash/fp/sum.js
index e8a59c5d039501..5cce12b325c41c 100644
--- a/tools/eslint/node_modules/lodash/fp/sum.js
+++ b/tools/eslint/node_modules/lodash/fp/sum.js
@@ -1 +1,5 @@
-module.exports = require('../sum');
+var convert = require('./convert'),
+ func = convert('sum', require('../sum'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/sumBy.js b/tools/eslint/node_modules/lodash/fp/sumBy.js
index 2692dc1e4ad2ac..c8826565f988d6 100644
--- a/tools/eslint/node_modules/lodash/fp/sumBy.js
+++ b/tools/eslint/node_modules/lodash/fp/sumBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('sumBy', require('../sumBy'));
+var convert = require('./convert'),
+ func = convert('sumBy', require('../sumBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/tail.js b/tools/eslint/node_modules/lodash/fp/tail.js
index 36c6494a61d693..f122f0ac3476e6 100644
--- a/tools/eslint/node_modules/lodash/fp/tail.js
+++ b/tools/eslint/node_modules/lodash/fp/tail.js
@@ -1 +1,5 @@
-module.exports = require('../tail');
+var convert = require('./convert'),
+ func = convert('tail', require('../tail'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/take.js b/tools/eslint/node_modules/lodash/fp/take.js
index e0984a4d2da6b7..9af98a7bdb6dd9 100644
--- a/tools/eslint/node_modules/lodash/fp/take.js
+++ b/tools/eslint/node_modules/lodash/fp/take.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('take', require('../take'));
+var convert = require('./convert'),
+ func = convert('take', require('../take'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/takeRight.js b/tools/eslint/node_modules/lodash/fp/takeRight.js
index 7b7c3ce70ed971..b82950a696ca12 100644
--- a/tools/eslint/node_modules/lodash/fp/takeRight.js
+++ b/tools/eslint/node_modules/lodash/fp/takeRight.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('takeRight', require('../takeRight'));
+var convert = require('./convert'),
+ func = convert('takeRight', require('../takeRight'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/takeRightWhile.js b/tools/eslint/node_modules/lodash/fp/takeRightWhile.js
index 305b254a163552..8ffb0a285768e0 100644
--- a/tools/eslint/node_modules/lodash/fp/takeRightWhile.js
+++ b/tools/eslint/node_modules/lodash/fp/takeRightWhile.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('takeRightWhile', require('../takeRightWhile'));
+var convert = require('./convert'),
+ func = convert('takeRightWhile', require('../takeRightWhile'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/takeWhile.js b/tools/eslint/node_modules/lodash/fp/takeWhile.js
index a90126db08edda..28136644fe6ac2 100644
--- a/tools/eslint/node_modules/lodash/fp/takeWhile.js
+++ b/tools/eslint/node_modules/lodash/fp/takeWhile.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('takeWhile', require('../takeWhile'));
+var convert = require('./convert'),
+ func = convert('takeWhile', require('../takeWhile'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/tap.js b/tools/eslint/node_modules/lodash/fp/tap.js
index 3bec2bdb2cd5cc..d33ad6ec1e2a4e 100644
--- a/tools/eslint/node_modules/lodash/fp/tap.js
+++ b/tools/eslint/node_modules/lodash/fp/tap.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('tap', require('../tap'));
+var convert = require('./convert'),
+ func = convert('tap', require('../tap'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/template.js b/tools/eslint/node_modules/lodash/fp/template.js
index 0130d14503b23b..74857e1c8411b5 100644
--- a/tools/eslint/node_modules/lodash/fp/template.js
+++ b/tools/eslint/node_modules/lodash/fp/template.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('template', require('../template'));
+var convert = require('./convert'),
+ func = convert('template', require('../template'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/templateSettings.js b/tools/eslint/node_modules/lodash/fp/templateSettings.js
index ddbbb5861c584c..7bcc0a82b908fb 100644
--- a/tools/eslint/node_modules/lodash/fp/templateSettings.js
+++ b/tools/eslint/node_modules/lodash/fp/templateSettings.js
@@ -1 +1,5 @@
-module.exports = require('../templateSettings');
+var convert = require('./convert'),
+ func = convert('templateSettings', require('../templateSettings'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/throttle.js b/tools/eslint/node_modules/lodash/fp/throttle.js
index 36f76d6df03b1e..77fff142840d74 100644
--- a/tools/eslint/node_modules/lodash/fp/throttle.js
+++ b/tools/eslint/node_modules/lodash/fp/throttle.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('throttle', require('../throttle'));
+var convert = require('./convert'),
+ func = convert('throttle', require('../throttle'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/thru.js b/tools/eslint/node_modules/lodash/fp/thru.js
index 05ddaefd8243d5..d42b3b1d8404d9 100644
--- a/tools/eslint/node_modules/lodash/fp/thru.js
+++ b/tools/eslint/node_modules/lodash/fp/thru.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('thru', require('../thru'));
+var convert = require('./convert'),
+ func = convert('thru', require('../thru'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/times.js b/tools/eslint/node_modules/lodash/fp/times.js
index 02fd3b70c6346c..0dab06dad16c86 100644
--- a/tools/eslint/node_modules/lodash/fp/times.js
+++ b/tools/eslint/node_modules/lodash/fp/times.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('times', require('../times'));
+var convert = require('./convert'),
+ func = convert('times', require('../times'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toArray.js b/tools/eslint/node_modules/lodash/fp/toArray.js
index 1ea0b52103e57a..f0c360aca317da 100644
--- a/tools/eslint/node_modules/lodash/fp/toArray.js
+++ b/tools/eslint/node_modules/lodash/fp/toArray.js
@@ -1 +1,5 @@
-module.exports = require('../toArray');
+var convert = require('./convert'),
+ func = convert('toArray', require('../toArray'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toInteger.js b/tools/eslint/node_modules/lodash/fp/toInteger.js
index 17e59a3d916fe4..e0af6a750e3963 100644
--- a/tools/eslint/node_modules/lodash/fp/toInteger.js
+++ b/tools/eslint/node_modules/lodash/fp/toInteger.js
@@ -1 +1,5 @@
-module.exports = require('../toInteger');
+var convert = require('./convert'),
+ func = convert('toInteger', require('../toInteger'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toIterator.js b/tools/eslint/node_modules/lodash/fp/toIterator.js
index 13bf21c2ae5634..65e6baa9ddedf8 100644
--- a/tools/eslint/node_modules/lodash/fp/toIterator.js
+++ b/tools/eslint/node_modules/lodash/fp/toIterator.js
@@ -1 +1,5 @@
-module.exports = require('../toIterator');
+var convert = require('./convert'),
+ func = convert('toIterator', require('../toIterator'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toJSON.js b/tools/eslint/node_modules/lodash/fp/toJSON.js
index 5f6cb9268f9688..2d718d0bc1beae 100644
--- a/tools/eslint/node_modules/lodash/fp/toJSON.js
+++ b/tools/eslint/node_modules/lodash/fp/toJSON.js
@@ -1 +1,5 @@
-module.exports = require('../toJSON');
+var convert = require('./convert'),
+ func = convert('toJSON', require('../toJSON'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toLength.js b/tools/eslint/node_modules/lodash/fp/toLength.js
index 38529fb0a00244..b97cdd935144be 100644
--- a/tools/eslint/node_modules/lodash/fp/toLength.js
+++ b/tools/eslint/node_modules/lodash/fp/toLength.js
@@ -1 +1,5 @@
-module.exports = require('../toLength');
+var convert = require('./convert'),
+ func = convert('toLength', require('../toLength'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toLower.js b/tools/eslint/node_modules/lodash/fp/toLower.js
index 01d343248a1ce1..616ef36ada145a 100644
--- a/tools/eslint/node_modules/lodash/fp/toLower.js
+++ b/tools/eslint/node_modules/lodash/fp/toLower.js
@@ -1 +1,5 @@
-module.exports = require('../toLower');
+var convert = require('./convert'),
+ func = convert('toLower', require('../toLower'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toNumber.js b/tools/eslint/node_modules/lodash/fp/toNumber.js
index 071e320a170f70..d0c6f4d3d6449f 100644
--- a/tools/eslint/node_modules/lodash/fp/toNumber.js
+++ b/tools/eslint/node_modules/lodash/fp/toNumber.js
@@ -1 +1,5 @@
-module.exports = require('../toNumber');
+var convert = require('./convert'),
+ func = convert('toNumber', require('../toNumber'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toPairs.js b/tools/eslint/node_modules/lodash/fp/toPairs.js
index 4b4dcb767a3384..af783786ee1d6d 100644
--- a/tools/eslint/node_modules/lodash/fp/toPairs.js
+++ b/tools/eslint/node_modules/lodash/fp/toPairs.js
@@ -1 +1,5 @@
-module.exports = require('../toPairs');
+var convert = require('./convert'),
+ func = convert('toPairs', require('../toPairs'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toPairsIn.js b/tools/eslint/node_modules/lodash/fp/toPairsIn.js
index 53076cc6a96dfe..66504abf1f196c 100644
--- a/tools/eslint/node_modules/lodash/fp/toPairsIn.js
+++ b/tools/eslint/node_modules/lodash/fp/toPairsIn.js
@@ -1 +1,5 @@
-module.exports = require('../toPairsIn');
+var convert = require('./convert'),
+ func = convert('toPairsIn', require('../toPairsIn'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toPath.js b/tools/eslint/node_modules/lodash/fp/toPath.js
index 62762ecfab14bd..b4d5e50fb70249 100644
--- a/tools/eslint/node_modules/lodash/fp/toPath.js
+++ b/tools/eslint/node_modules/lodash/fp/toPath.js
@@ -1 +1,5 @@
-module.exports = require('../toPath');
+var convert = require('./convert'),
+ func = convert('toPath', require('../toPath'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toPlainObject.js b/tools/eslint/node_modules/lodash/fp/toPlainObject.js
index 6a6aebd042e36b..278bb86398d020 100644
--- a/tools/eslint/node_modules/lodash/fp/toPlainObject.js
+++ b/tools/eslint/node_modules/lodash/fp/toPlainObject.js
@@ -1 +1,5 @@
-module.exports = require('../toPlainObject');
+var convert = require('./convert'),
+ func = convert('toPlainObject', require('../toPlainObject'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toSafeInteger.js b/tools/eslint/node_modules/lodash/fp/toSafeInteger.js
index 3f5b8174d3c3df..367a26fddc7411 100644
--- a/tools/eslint/node_modules/lodash/fp/toSafeInteger.js
+++ b/tools/eslint/node_modules/lodash/fp/toSafeInteger.js
@@ -1 +1,5 @@
-module.exports = require('../toSafeInteger');
+var convert = require('./convert'),
+ func = convert('toSafeInteger', require('../toSafeInteger'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toString.js b/tools/eslint/node_modules/lodash/fp/toString.js
index c309058c0166e1..cec4f8e2233261 100644
--- a/tools/eslint/node_modules/lodash/fp/toString.js
+++ b/tools/eslint/node_modules/lodash/fp/toString.js
@@ -1 +1,5 @@
-module.exports = require('../[object Object]');
+var convert = require('./convert'),
+ func = convert('toString', require('../toString'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/toUpper.js b/tools/eslint/node_modules/lodash/fp/toUpper.js
index 428eb338500ed8..54f9a560585561 100644
--- a/tools/eslint/node_modules/lodash/fp/toUpper.js
+++ b/tools/eslint/node_modules/lodash/fp/toUpper.js
@@ -1 +1,5 @@
-module.exports = require('../toUpper');
+var convert = require('./convert'),
+ func = convert('toUpper', require('../toUpper'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/transform.js b/tools/eslint/node_modules/lodash/fp/transform.js
index 30bed49a92953b..759d088f1a35f0 100644
--- a/tools/eslint/node_modules/lodash/fp/transform.js
+++ b/tools/eslint/node_modules/lodash/fp/transform.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('transform', require('../transform'));
+var convert = require('./convert'),
+ func = convert('transform', require('../transform'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/trim.js b/tools/eslint/node_modules/lodash/fp/trim.js
index b7cafe9679786e..e6319a741c7689 100644
--- a/tools/eslint/node_modules/lodash/fp/trim.js
+++ b/tools/eslint/node_modules/lodash/fp/trim.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('trim', require('../trim'));
+var convert = require('./convert'),
+ func = convert('trim', require('../trim'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/trimChars.js b/tools/eslint/node_modules/lodash/fp/trimChars.js
index 051ea1e6e65772..c9294de48c756f 100644
--- a/tools/eslint/node_modules/lodash/fp/trimChars.js
+++ b/tools/eslint/node_modules/lodash/fp/trimChars.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('trimChars', require('../trim'));
+var convert = require('./convert'),
+ func = convert('trimChars', require('../trim'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/trimCharsEnd.js b/tools/eslint/node_modules/lodash/fp/trimCharsEnd.js
index 54c5cff72a1326..284bc2f813e897 100644
--- a/tools/eslint/node_modules/lodash/fp/trimCharsEnd.js
+++ b/tools/eslint/node_modules/lodash/fp/trimCharsEnd.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('trimCharsEnd', require('../trimEnd'));
+var convert = require('./convert'),
+ func = convert('trimCharsEnd', require('../trimEnd'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/trimCharsStart.js b/tools/eslint/node_modules/lodash/fp/trimCharsStart.js
index 44f986650ce928..ff0ee65dfbadc7 100644
--- a/tools/eslint/node_modules/lodash/fp/trimCharsStart.js
+++ b/tools/eslint/node_modules/lodash/fp/trimCharsStart.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('trimCharsStart', require('../trimStart'));
+var convert = require('./convert'),
+ func = convert('trimCharsStart', require('../trimStart'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/trimEnd.js b/tools/eslint/node_modules/lodash/fp/trimEnd.js
index 166659666158ac..71908805fceeee 100644
--- a/tools/eslint/node_modules/lodash/fp/trimEnd.js
+++ b/tools/eslint/node_modules/lodash/fp/trimEnd.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('trimEnd', require('../trimEnd'));
+var convert = require('./convert'),
+ func = convert('trimEnd', require('../trimEnd'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/trimStart.js b/tools/eslint/node_modules/lodash/fp/trimStart.js
index 4921b0342965a0..fda902c3893a8b 100644
--- a/tools/eslint/node_modules/lodash/fp/trimStart.js
+++ b/tools/eslint/node_modules/lodash/fp/trimStart.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('trimStart', require('../trimStart'));
+var convert = require('./convert'),
+ func = convert('trimStart', require('../trimStart'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/truncate.js b/tools/eslint/node_modules/lodash/fp/truncate.js
index 0c4d158f87bcaf..d265c1decb397d 100644
--- a/tools/eslint/node_modules/lodash/fp/truncate.js
+++ b/tools/eslint/node_modules/lodash/fp/truncate.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('truncate', require('../truncate'));
+var convert = require('./convert'),
+ func = convert('truncate', require('../truncate'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/unary.js b/tools/eslint/node_modules/lodash/fp/unary.js
index 3bc648376a003d..286c945fb638dd 100644
--- a/tools/eslint/node_modules/lodash/fp/unary.js
+++ b/tools/eslint/node_modules/lodash/fp/unary.js
@@ -1 +1,5 @@
-module.exports = require('../unary');
+var convert = require('./convert'),
+ func = convert('unary', require('../unary'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/unescape.js b/tools/eslint/node_modules/lodash/fp/unescape.js
index 4233b155fc20a4..fddcb46e2ddb93 100644
--- a/tools/eslint/node_modules/lodash/fp/unescape.js
+++ b/tools/eslint/node_modules/lodash/fp/unescape.js
@@ -1 +1,5 @@
-module.exports = require('../unescape');
+var convert = require('./convert'),
+ func = convert('unescape', require('../unescape'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/union.js b/tools/eslint/node_modules/lodash/fp/union.js
index 9deef123523dea..ef8228d74c751c 100644
--- a/tools/eslint/node_modules/lodash/fp/union.js
+++ b/tools/eslint/node_modules/lodash/fp/union.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('union', require('../union'));
+var convert = require('./convert'),
+ func = convert('union', require('../union'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/unionBy.js b/tools/eslint/node_modules/lodash/fp/unionBy.js
index 029b359618a7e0..603687a188edb2 100644
--- a/tools/eslint/node_modules/lodash/fp/unionBy.js
+++ b/tools/eslint/node_modules/lodash/fp/unionBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('unionBy', require('../unionBy'));
+var convert = require('./convert'),
+ func = convert('unionBy', require('../unionBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/unionWith.js b/tools/eslint/node_modules/lodash/fp/unionWith.js
index 631eda089086b8..65bb3a79287031 100644
--- a/tools/eslint/node_modules/lodash/fp/unionWith.js
+++ b/tools/eslint/node_modules/lodash/fp/unionWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('unionWith', require('../unionWith'));
+var convert = require('./convert'),
+ func = convert('unionWith', require('../unionWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/uniq.js b/tools/eslint/node_modules/lodash/fp/uniq.js
index c64510f0987d17..bc1852490ba9d1 100644
--- a/tools/eslint/node_modules/lodash/fp/uniq.js
+++ b/tools/eslint/node_modules/lodash/fp/uniq.js
@@ -1 +1,5 @@
-module.exports = require('../uniq');
+var convert = require('./convert'),
+ func = convert('uniq', require('../uniq'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/uniqBy.js b/tools/eslint/node_modules/lodash/fp/uniqBy.js
index 1b6c03ff9e734e..634c6a8bb3d7aa 100644
--- a/tools/eslint/node_modules/lodash/fp/uniqBy.js
+++ b/tools/eslint/node_modules/lodash/fp/uniqBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('uniqBy', require('../uniqBy'));
+var convert = require('./convert'),
+ func = convert('uniqBy', require('../uniqBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/uniqWith.js b/tools/eslint/node_modules/lodash/fp/uniqWith.js
index be4c48def48257..0ec601a910f5f0 100644
--- a/tools/eslint/node_modules/lodash/fp/uniqWith.js
+++ b/tools/eslint/node_modules/lodash/fp/uniqWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('uniqWith', require('../uniqWith'));
+var convert = require('./convert'),
+ func = convert('uniqWith', require('../uniqWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/uniqueId.js b/tools/eslint/node_modules/lodash/fp/uniqueId.js
index daa41cb0983a28..aa8fc2f73980d9 100644
--- a/tools/eslint/node_modules/lodash/fp/uniqueId.js
+++ b/tools/eslint/node_modules/lodash/fp/uniqueId.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('uniqueId', require('../uniqueId'));
+var convert = require('./convert'),
+ func = convert('uniqueId', require('../uniqueId'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/unset.js b/tools/eslint/node_modules/lodash/fp/unset.js
index 0c4c1a690fcf25..ea203a0f39fb59 100644
--- a/tools/eslint/node_modules/lodash/fp/unset.js
+++ b/tools/eslint/node_modules/lodash/fp/unset.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('unset', require('../unset'));
+var convert = require('./convert'),
+ func = convert('unset', require('../unset'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/unzip.js b/tools/eslint/node_modules/lodash/fp/unzip.js
index e0ac2dbf5a8d70..cc364b3c5a40ad 100644
--- a/tools/eslint/node_modules/lodash/fp/unzip.js
+++ b/tools/eslint/node_modules/lodash/fp/unzip.js
@@ -1 +1,5 @@
-module.exports = require('../unzip');
+var convert = require('./convert'),
+ func = convert('unzip', require('../unzip'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/unzipWith.js b/tools/eslint/node_modules/lodash/fp/unzipWith.js
index de25cf7a8c2fcb..182eaa10424f3e 100644
--- a/tools/eslint/node_modules/lodash/fp/unzipWith.js
+++ b/tools/eslint/node_modules/lodash/fp/unzipWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('unzipWith', require('../unzipWith'));
+var convert = require('./convert'),
+ func = convert('unzipWith', require('../unzipWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/update.js b/tools/eslint/node_modules/lodash/fp/update.js
new file mode 100644
index 00000000000000..b8ce2cc9e1fcc4
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/update.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('update', require('../update'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/updateWith.js b/tools/eslint/node_modules/lodash/fp/updateWith.js
new file mode 100644
index 00000000000000..d5e8282d94fdcd
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/fp/updateWith.js
@@ -0,0 +1,5 @@
+var convert = require('./convert'),
+ func = convert('updateWith', require('../updateWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/upperCase.js b/tools/eslint/node_modules/lodash/fp/upperCase.js
index ddcb3695c4e38b..c886f202162a09 100644
--- a/tools/eslint/node_modules/lodash/fp/upperCase.js
+++ b/tools/eslint/node_modules/lodash/fp/upperCase.js
@@ -1 +1,5 @@
-module.exports = require('../upperCase');
+var convert = require('./convert'),
+ func = convert('upperCase', require('../upperCase'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/upperFirst.js b/tools/eslint/node_modules/lodash/fp/upperFirst.js
index 34f1e20f9f6102..d8c04df54bb33b 100644
--- a/tools/eslint/node_modules/lodash/fp/upperFirst.js
+++ b/tools/eslint/node_modules/lodash/fp/upperFirst.js
@@ -1 +1,5 @@
-module.exports = require('../upperFirst');
+var convert = require('./convert'),
+ func = convert('upperFirst', require('../upperFirst'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/value.js b/tools/eslint/node_modules/lodash/fp/value.js
index 4dc0e7e9639912..555eec7a38db21 100644
--- a/tools/eslint/node_modules/lodash/fp/value.js
+++ b/tools/eslint/node_modules/lodash/fp/value.js
@@ -1 +1,5 @@
-module.exports = require('../value');
+var convert = require('./convert'),
+ func = convert('value', require('../value'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/valueOf.js b/tools/eslint/node_modules/lodash/fp/valueOf.js
index c309058c0166e1..f968807d701e97 100644
--- a/tools/eslint/node_modules/lodash/fp/valueOf.js
+++ b/tools/eslint/node_modules/lodash/fp/valueOf.js
@@ -1 +1,5 @@
-module.exports = require('../[object Object]');
+var convert = require('./convert'),
+ func = convert('valueOf', require('../valueOf'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/values.js b/tools/eslint/node_modules/lodash/fp/values.js
index 38431709150748..2dfc56136b6ee1 100644
--- a/tools/eslint/node_modules/lodash/fp/values.js
+++ b/tools/eslint/node_modules/lodash/fp/values.js
@@ -1 +1,5 @@
-module.exports = require('../values');
+var convert = require('./convert'),
+ func = convert('values', require('../values'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/valuesIn.js b/tools/eslint/node_modules/lodash/fp/valuesIn.js
index f81c171c4ee22d..a1b2bb8725e3e9 100644
--- a/tools/eslint/node_modules/lodash/fp/valuesIn.js
+++ b/tools/eslint/node_modules/lodash/fp/valuesIn.js
@@ -1 +1,5 @@
-module.exports = require('../valuesIn');
+var convert = require('./convert'),
+ func = convert('valuesIn', require('../valuesIn'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/without.js b/tools/eslint/node_modules/lodash/fp/without.js
index 5238e940f7038a..bad9e125bc93a2 100644
--- a/tools/eslint/node_modules/lodash/fp/without.js
+++ b/tools/eslint/node_modules/lodash/fp/without.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('without', require('../without'));
+var convert = require('./convert'),
+ func = convert('without', require('../without'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/words.js b/tools/eslint/node_modules/lodash/fp/words.js
index b58a485b9d1ee5..4a901414b8e0ad 100644
--- a/tools/eslint/node_modules/lodash/fp/words.js
+++ b/tools/eslint/node_modules/lodash/fp/words.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('words', require('../words'));
+var convert = require('./convert'),
+ func = convert('words', require('../words'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/wrap.js b/tools/eslint/node_modules/lodash/fp/wrap.js
index 56465a22629120..e93bd8a1de6f41 100644
--- a/tools/eslint/node_modules/lodash/fp/wrap.js
+++ b/tools/eslint/node_modules/lodash/fp/wrap.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('wrap', require('../wrap'));
+var convert = require('./convert'),
+ func = convert('wrap', require('../wrap'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/wrapperAt.js b/tools/eslint/node_modules/lodash/fp/wrapperAt.js
index f8d37a194e108d..8f0a310feacb1f 100644
--- a/tools/eslint/node_modules/lodash/fp/wrapperAt.js
+++ b/tools/eslint/node_modules/lodash/fp/wrapperAt.js
@@ -1 +1,5 @@
-module.exports = require('../wrapperAt');
+var convert = require('./convert'),
+ func = convert('wrapperAt', require('../wrapperAt'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/wrapperChain.js b/tools/eslint/node_modules/lodash/fp/wrapperChain.js
index 964a846c84e58d..2a48ea2b5b7dfa 100644
--- a/tools/eslint/node_modules/lodash/fp/wrapperChain.js
+++ b/tools/eslint/node_modules/lodash/fp/wrapperChain.js
@@ -1 +1,5 @@
-module.exports = require('../wrapperChain');
+var convert = require('./convert'),
+ func = convert('wrapperChain', require('../wrapperChain'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/wrapperFlatMap.js b/tools/eslint/node_modules/lodash/fp/wrapperFlatMap.js
deleted file mode 100644
index fa030c0dace84e..00000000000000
--- a/tools/eslint/node_modules/lodash/fp/wrapperFlatMap.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('../wrapperFlatMap');
diff --git a/tools/eslint/node_modules/lodash/fp/wrapperLodash.js b/tools/eslint/node_modules/lodash/fp/wrapperLodash.js
index d62a9969ffa62a..a7162d084c884f 100644
--- a/tools/eslint/node_modules/lodash/fp/wrapperLodash.js
+++ b/tools/eslint/node_modules/lodash/fp/wrapperLodash.js
@@ -1 +1,5 @@
-module.exports = require('../wrapperLodash');
+var convert = require('./convert'),
+ func = convert('wrapperLodash', require('../wrapperLodash'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/wrapperReverse.js b/tools/eslint/node_modules/lodash/fp/wrapperReverse.js
index cf703886c25c36..e1481aab9171a5 100644
--- a/tools/eslint/node_modules/lodash/fp/wrapperReverse.js
+++ b/tools/eslint/node_modules/lodash/fp/wrapperReverse.js
@@ -1 +1,5 @@
-module.exports = require('../wrapperReverse');
+var convert = require('./convert'),
+ func = convert('wrapperReverse', require('../wrapperReverse'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/wrapperValue.js b/tools/eslint/node_modules/lodash/fp/wrapperValue.js
index 494dfb107f641b..8eb9112f613785 100644
--- a/tools/eslint/node_modules/lodash/fp/wrapperValue.js
+++ b/tools/eslint/node_modules/lodash/fp/wrapperValue.js
@@ -1 +1,5 @@
-module.exports = require('../wrapperValue');
+var convert = require('./convert'),
+ func = convert('wrapperValue', require('../wrapperValue'), require('./_falseOptions'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/xor.js b/tools/eslint/node_modules/lodash/fp/xor.js
index 0f3e025fed4ea1..29e2819489386c 100644
--- a/tools/eslint/node_modules/lodash/fp/xor.js
+++ b/tools/eslint/node_modules/lodash/fp/xor.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('xor', require('../xor'));
+var convert = require('./convert'),
+ func = convert('xor', require('../xor'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/xorBy.js b/tools/eslint/node_modules/lodash/fp/xorBy.js
index e48fc41c70dd52..b355686db652c1 100644
--- a/tools/eslint/node_modules/lodash/fp/xorBy.js
+++ b/tools/eslint/node_modules/lodash/fp/xorBy.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('xorBy', require('../xorBy'));
+var convert = require('./convert'),
+ func = convert('xorBy', require('../xorBy'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/xorWith.js b/tools/eslint/node_modules/lodash/fp/xorWith.js
index 5c2eebe67ef700..8e05739ad36d82 100644
--- a/tools/eslint/node_modules/lodash/fp/xorWith.js
+++ b/tools/eslint/node_modules/lodash/fp/xorWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('xorWith', require('../xorWith'));
+var convert = require('./convert'),
+ func = convert('xorWith', require('../xorWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/zip.js b/tools/eslint/node_modules/lodash/fp/zip.js
index 0cae73b0a0434a..69e147a441da74 100644
--- a/tools/eslint/node_modules/lodash/fp/zip.js
+++ b/tools/eslint/node_modules/lodash/fp/zip.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('zip', require('../zip'));
+var convert = require('./convert'),
+ func = convert('zip', require('../zip'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/zipObject.js b/tools/eslint/node_modules/lodash/fp/zipObject.js
index 8c2ff3bc200c87..462dbb68cb333b 100644
--- a/tools/eslint/node_modules/lodash/fp/zipObject.js
+++ b/tools/eslint/node_modules/lodash/fp/zipObject.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('zipObject', require('../zipObject'));
+var convert = require('./convert'),
+ func = convert('zipObject', require('../zipObject'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/zipObjectDeep.js b/tools/eslint/node_modules/lodash/fp/zipObjectDeep.js
index a0ee4e34ec25ec..53a5d3380735e6 100644
--- a/tools/eslint/node_modules/lodash/fp/zipObjectDeep.js
+++ b/tools/eslint/node_modules/lodash/fp/zipObjectDeep.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('zipObjectDeep', require('../zipObjectDeep'));
+var convert = require('./convert'),
+ func = convert('zipObjectDeep', require('../zipObjectDeep'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fp/zipWith.js b/tools/eslint/node_modules/lodash/fp/zipWith.js
index da75f3de409f63..c5cf9e21282317 100644
--- a/tools/eslint/node_modules/lodash/fp/zipWith.js
+++ b/tools/eslint/node_modules/lodash/fp/zipWith.js
@@ -1,2 +1,5 @@
-var convert = require('./convert');
-module.exports = convert('zipWith', require('../zipWith'));
+var convert = require('./convert'),
+ func = convert('zipWith', require('../zipWith'));
+
+func.placeholder = require('./placeholder');
+module.exports = func;
diff --git a/tools/eslint/node_modules/lodash/fromPairs.js b/tools/eslint/node_modules/lodash/fromPairs.js
index c18c1e38697b4c..a591488ef955a9 100644
--- a/tools/eslint/node_modules/lodash/fromPairs.js
+++ b/tools/eslint/node_modules/lodash/fromPairs.js
@@ -4,6 +4,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} pairs The key-value pairs.
* @returns {Object} Returns the new object.
diff --git a/tools/eslint/node_modules/lodash/functions.js b/tools/eslint/node_modules/lodash/functions.js
index b50a197debb6f4..36a9cad2ea457a 100644
--- a/tools/eslint/node_modules/lodash/functions.js
+++ b/tools/eslint/node_modules/lodash/functions.js
@@ -6,6 +6,7 @@ var baseFunctions = require('./_baseFunctions'),
* of `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to inspect.
diff --git a/tools/eslint/node_modules/lodash/functionsIn.js b/tools/eslint/node_modules/lodash/functionsIn.js
index b48e5a65b5f37b..6bd3b57df91a48 100644
--- a/tools/eslint/node_modules/lodash/functionsIn.js
+++ b/tools/eslint/node_modules/lodash/functionsIn.js
@@ -7,6 +7,7 @@ var baseFunctions = require('./_baseFunctions'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to inspect.
* @returns {Array} Returns the new array of property names.
diff --git a/tools/eslint/node_modules/lodash/get.js b/tools/eslint/node_modules/lodash/get.js
index 755fa05ae2d96f..5a5837b2541884 100644
--- a/tools/eslint/node_modules/lodash/get.js
+++ b/tools/eslint/node_modules/lodash/get.js
@@ -2,14 +2,15 @@ var baseGet = require('./_baseGet');
/**
* Gets the value at `path` of `object`. If the resolved value is
- * `undefined` the `defaultValue` is used in its place.
+ * `undefined`, the `defaultValue` is used in its place.
*
* @static
* @memberOf _
+ * @since 3.7.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/groupBy.js b/tools/eslint/node_modules/lodash/groupBy.js
index 728a6dabac3b9b..ae7db5faa354ae 100644
--- a/tools/eslint/node_modules/lodash/groupBy.js
+++ b/tools/eslint/node_modules/lodash/groupBy.js
@@ -8,15 +8,18 @@ var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Creates an object composed of keys generated from the results of running
- * each element of `collection` through `iteratee`. The corresponding value
- * of each key is an array of elements responsible for generating the key.
- * The iteratee is invoked with one argument: (value).
+ * each element of `collection` thru `iteratee`. The order of grouped values
+ * is determined by the order they occur in `collection`. The corresponding
+ * value of each key is an array of elements responsible for generating the
+ * key. The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee to transform keys.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/gt.js b/tools/eslint/node_modules/lodash/gt.js
index ddaf5ea06712ef..2fc9a206ccd4ca 100644
--- a/tools/eslint/node_modules/lodash/gt.js
+++ b/tools/eslint/node_modules/lodash/gt.js
@@ -3,10 +3,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is greater than `other`,
+ * else `false`.
* @example
*
* _.gt(3, 1);
diff --git a/tools/eslint/node_modules/lodash/gte.js b/tools/eslint/node_modules/lodash/gte.js
index 4a5ffb5cdce2e6..521be993d23f2f 100644
--- a/tools/eslint/node_modules/lodash/gte.js
+++ b/tools/eslint/node_modules/lodash/gte.js
@@ -3,10 +3,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than or equal to `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is greater than or equal to
+ * `other`, else `false`.
* @example
*
* _.gte(3, 1);
diff --git a/tools/eslint/node_modules/lodash/has.js b/tools/eslint/node_modules/lodash/has.js
index d66d2de020ce24..34df55e8e2df61 100644
--- a/tools/eslint/node_modules/lodash/has.js
+++ b/tools/eslint/node_modules/lodash/has.js
@@ -5,6 +5,7 @@ var baseHas = require('./_baseHas'),
* Checks if `path` is a direct property of `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -12,23 +13,23 @@ var baseHas = require('./_baseHas'),
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
- * var object = { 'a': { 'b': { 'c': 3 } } };
- * var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ * var object = { 'a': { 'b': 2 } };
+ * var other = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.has(object, 'a');
* // => true
*
- * _.has(object, 'a.b.c');
+ * _.has(object, 'a.b');
* // => true
*
- * _.has(object, ['a', 'b', 'c']);
+ * _.has(object, ['a', 'b']);
* // => true
*
* _.has(other, 'a');
* // => false
*/
function has(object, path) {
- return hasPath(object, path, baseHas);
+ return object != null && hasPath(object, path, baseHas);
}
module.exports = has;
diff --git a/tools/eslint/node_modules/lodash/hasIn.js b/tools/eslint/node_modules/lodash/hasIn.js
index 7da6b7dcd1add2..06a3686542e672 100644
--- a/tools/eslint/node_modules/lodash/hasIn.js
+++ b/tools/eslint/node_modules/lodash/hasIn.js
@@ -6,28 +6,29 @@ var baseHasIn = require('./_baseHasIn'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
- * var object = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.hasIn(object, 'a');
* // => true
*
- * _.hasIn(object, 'a.b.c');
+ * _.hasIn(object, 'a.b');
* // => true
*
- * _.hasIn(object, ['a', 'b', 'c']);
+ * _.hasIn(object, ['a', 'b']);
* // => true
*
* _.hasIn(object, 'b');
* // => false
*/
function hasIn(object, path) {
- return hasPath(object, path, baseHasIn);
+ return object != null && hasPath(object, path, baseHasIn);
}
module.exports = hasIn;
diff --git a/tools/eslint/node_modules/lodash/head.js b/tools/eslint/node_modules/lodash/head.js
index 30b47b0b3f4fed..8baa0b8a33a475 100644
--- a/tools/eslint/node_modules/lodash/head.js
+++ b/tools/eslint/node_modules/lodash/head.js
@@ -3,6 +3,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @alias first
* @category Array
* @param {Array} array The array to query.
diff --git a/tools/eslint/node_modules/lodash/identity.js b/tools/eslint/node_modules/lodash/identity.js
index da7dea19c17904..3732edb131b69f 100644
--- a/tools/eslint/node_modules/lodash/identity.js
+++ b/tools/eslint/node_modules/lodash/identity.js
@@ -2,6 +2,7 @@
* This method returns the first argument given to it.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
diff --git a/tools/eslint/node_modules/lodash/inRange.js b/tools/eslint/node_modules/lodash/inRange.js
index 69c61101cdbf5c..d864ca2cf3e22e 100644
--- a/tools/eslint/node_modules/lodash/inRange.js
+++ b/tools/eslint/node_modules/lodash/inRange.js
@@ -3,12 +3,13 @@ var baseInRange = require('./_baseInRange'),
/**
* Checks if `n` is between `start` and up to but not including, `end`. If
- * `end` is not specified it's set to `start` with `start` then set to `0`.
+ * `end` is not specified, it's set to `start` with `start` then set to `0`.
* If `start` is greater than `end` the params are swapped to support
* negative ranges.
*
* @static
* @memberOf _
+ * @since 3.3.0
* @category Number
* @param {number} number The number to check.
* @param {number} [start=0] The start of the range.
diff --git a/tools/eslint/node_modules/lodash/includes.js b/tools/eslint/node_modules/lodash/includes.js
index 01d68445416294..cefe3bf9487f68 100644
--- a/tools/eslint/node_modules/lodash/includes.js
+++ b/tools/eslint/node_modules/lodash/includes.js
@@ -8,18 +8,20 @@ var baseIndexOf = require('./_baseIndexOf'),
var nativeMax = Math.max;
/**
- * Checks if `value` is in `collection`. If `collection` is a string it's checked
- * for a substring of `value`, otherwise [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * Checks if `value` is in `collection`. If `collection` is a string, it's
+ * checked for a substring of `value`, otherwise
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* is used for equality comparisons. If `fromIndex` is negative, it's used as
* the offset from the end of `collection`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object|string} collection The collection to search.
* @param {*} value The value to search for.
* @param {number} [fromIndex=0] The index to search from.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.reduce`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
* @returns {boolean} Returns `true` if `value` is found, else `false`.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/indexOf.js b/tools/eslint/node_modules/lodash/indexOf.js
index 4474d0cafd6a07..65616d45490767 100644
--- a/tools/eslint/node_modules/lodash/indexOf.js
+++ b/tools/eslint/node_modules/lodash/indexOf.js
@@ -7,11 +7,12 @@ var nativeMax = Math.max;
/**
* Gets the index at which the first occurrence of `value` is found in `array`
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the offset
- * from the end of `array`.
+ * for equality comparisons. If `fromIndex` is negative, it's used as the
+ * offset from the end of `array`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value to search for.
diff --git a/tools/eslint/node_modules/lodash/initial.js b/tools/eslint/node_modules/lodash/initial.js
index 59b7a7d96dfbda..f4441b547a6e9c 100644
--- a/tools/eslint/node_modules/lodash/initial.js
+++ b/tools/eslint/node_modules/lodash/initial.js
@@ -5,6 +5,7 @@ var dropRight = require('./dropRight');
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {Array} Returns the slice of `array`.
diff --git a/tools/eslint/node_modules/lodash/intersection.js b/tools/eslint/node_modules/lodash/intersection.js
index e97efddb7c9c05..c525a4ff2e276b 100644
--- a/tools/eslint/node_modules/lodash/intersection.js
+++ b/tools/eslint/node_modules/lodash/intersection.js
@@ -1,25 +1,27 @@
var arrayMap = require('./_arrayMap'),
+ baseCastArrayLikeObject = require('./_baseCastArrayLikeObject'),
baseIntersection = require('./_baseIntersection'),
- rest = require('./rest'),
- toArrayLikeObject = require('./_toArrayLikeObject');
+ rest = require('./rest');
/**
* Creates an array of unique values that are included in all given arrays
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
+ * for equality comparisons. The order of result values is determined by the
+ * order they occur in the first array.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of shared values.
+ * @returns {Array} Returns the new array of intersecting values.
* @example
*
* _.intersection([2, 1], [4, 2], [1, 2]);
* // => [2]
*/
var intersection = rest(function(arrays) {
- var mapped = arrayMap(arrays, toArrayLikeObject);
+ var mapped = arrayMap(arrays, baseCastArrayLikeObject);
return (mapped.length && mapped[0] === arrays[0])
? baseIntersection(mapped)
: [];
diff --git a/tools/eslint/node_modules/lodash/intersectionBy.js b/tools/eslint/node_modules/lodash/intersectionBy.js
index 2c9e0d33079367..6d8c45f50d4006 100644
--- a/tools/eslint/node_modules/lodash/intersectionBy.js
+++ b/tools/eslint/node_modules/lodash/intersectionBy.js
@@ -1,21 +1,24 @@
var arrayMap = require('./_arrayMap'),
+ baseCastArrayLikeObject = require('./_baseCastArrayLikeObject'),
baseIntersection = require('./_baseIntersection'),
baseIteratee = require('./_baseIteratee'),
last = require('./last'),
- rest = require('./rest'),
- toArrayLikeObject = require('./_toArrayLikeObject');
+ rest = require('./rest');
/**
* This method is like `_.intersection` except that it accepts `iteratee`
* which is invoked for each element of each `arrays` to generate the criterion
- * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
+ * by which they're compared. Result values are chosen from the first array.
+ * The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of shared values.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
+ * @returns {Array} Returns the new array of intersecting values.
* @example
*
* _.intersectionBy([2.1, 1.2], [4.3, 2.4], Math.floor);
@@ -27,7 +30,7 @@ var arrayMap = require('./_arrayMap'),
*/
var intersectionBy = rest(function(arrays) {
var iteratee = last(arrays),
- mapped = arrayMap(arrays, toArrayLikeObject);
+ mapped = arrayMap(arrays, baseCastArrayLikeObject);
if (iteratee === last(mapped)) {
iteratee = undefined;
diff --git a/tools/eslint/node_modules/lodash/intersectionWith.js b/tools/eslint/node_modules/lodash/intersectionWith.js
index c39e38f533e91d..2985e3fcb08877 100644
--- a/tools/eslint/node_modules/lodash/intersectionWith.js
+++ b/tools/eslint/node_modules/lodash/intersectionWith.js
@@ -1,20 +1,22 @@
var arrayMap = require('./_arrayMap'),
+ baseCastArrayLikeObject = require('./_baseCastArrayLikeObject'),
baseIntersection = require('./_baseIntersection'),
last = require('./last'),
- rest = require('./rest'),
- toArrayLikeObject = require('./_toArrayLikeObject');
+ rest = require('./rest');
/**
* This method is like `_.intersection` except that it accepts `comparator`
- * which is invoked to compare elements of `arrays`. The comparator is invoked
- * with two arguments: (arrVal, othVal).
+ * which is invoked to compare elements of `arrays`. Result values are chosen
+ * from the first array. The comparator is invoked with two arguments:
+ * (arrVal, othVal).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
* @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
+ * @returns {Array} Returns the new array of intersecting values.
* @example
*
* var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
@@ -25,7 +27,7 @@ var arrayMap = require('./_arrayMap'),
*/
var intersectionWith = rest(function(arrays) {
var comparator = last(arrays),
- mapped = arrayMap(arrays, toArrayLikeObject);
+ mapped = arrayMap(arrays, baseCastArrayLikeObject);
if (comparator === last(mapped)) {
comparator = undefined;
diff --git a/tools/eslint/node_modules/lodash/invert.js b/tools/eslint/node_modules/lodash/invert.js
index 11628b14ea289b..21d10aba370dd7 100644
--- a/tools/eslint/node_modules/lodash/invert.js
+++ b/tools/eslint/node_modules/lodash/invert.js
@@ -4,11 +4,12 @@ var constant = require('./constant'),
/**
* Creates an object composed of the inverted keys and values of `object`.
- * If `object` contains duplicate values, subsequent values overwrite property
- * assignments of previous values.
+ * If `object` contains duplicate values, subsequent values overwrite
+ * property assignments of previous values.
*
* @static
* @memberOf _
+ * @since 0.7.0
* @category Object
* @param {Object} object The object to invert.
* @returns {Object} Returns the new inverted object.
diff --git a/tools/eslint/node_modules/lodash/invertBy.js b/tools/eslint/node_modules/lodash/invertBy.js
index 513f62b92fa7e2..4298199ccd1e0a 100644
--- a/tools/eslint/node_modules/lodash/invertBy.js
+++ b/tools/eslint/node_modules/lodash/invertBy.js
@@ -9,16 +9,18 @@ var hasOwnProperty = objectProto.hasOwnProperty;
/**
* This method is like `_.invert` except that the inverted object is generated
- * from the results of running each element of `object` through `iteratee`.
- * The corresponding inverted value of each inverted key is an array of keys
+ * from the results of running each element of `object` thru `iteratee`. The
+ * corresponding inverted value of each inverted key is an array of keys
* responsible for generating the inverted value. The iteratee is invoked
* with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.1.0
* @category Object
* @param {Object} object The object to invert.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Object} Returns the new inverted object.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/invoke.js b/tools/eslint/node_modules/lodash/invoke.js
index f090a723673976..7b6f56bb1fc354 100644
--- a/tools/eslint/node_modules/lodash/invoke.js
+++ b/tools/eslint/node_modules/lodash/invoke.js
@@ -6,6 +6,7 @@ var baseInvoke = require('./_baseInvoke'),
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the method to invoke.
diff --git a/tools/eslint/node_modules/lodash/invokeMap.js b/tools/eslint/node_modules/lodash/invokeMap.js
index 42c8fbe1415637..4a6063e0aadfe3 100644
--- a/tools/eslint/node_modules/lodash/invokeMap.js
+++ b/tools/eslint/node_modules/lodash/invokeMap.js
@@ -8,11 +8,12 @@ var apply = require('./_apply'),
/**
* Invokes the method at `path` of each element in `collection`, returning
* an array of the results of each invoked method. Any additional arguments
- * are provided to each invoked method. If `methodName` is a function it's
- * invoked for, and `this` bound to, each element in `collection`.
+ * are provided to each invoked method. If `methodName` is a function, it's
+ * invoked for and `this` bound to, each element in `collection`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Array|Function|string} path The path of the method to invoke or
diff --git a/tools/eslint/node_modules/lodash/isArguments.js b/tools/eslint/node_modules/lodash/isArguments.js
index 73fbafe0d28320..3ca0d3ca120601 100644
--- a/tools/eslint/node_modules/lodash/isArguments.js
+++ b/tools/eslint/node_modules/lodash/isArguments.js
@@ -10,7 +10,8 @@ var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -23,9 +24,11 @@ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
diff --git a/tools/eslint/node_modules/lodash/isArray.js b/tools/eslint/node_modules/lodash/isArray.js
index 22a1a22eb43e2b..1901120e7e2382 100644
--- a/tools/eslint/node_modules/lodash/isArray.js
+++ b/tools/eslint/node_modules/lodash/isArray.js
@@ -3,10 +3,12 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 0.1.0
+ * @type {Function}
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArray([1, 2, 3]);
diff --git a/tools/eslint/node_modules/lodash/isArrayBuffer.js b/tools/eslint/node_modules/lodash/isArrayBuffer.js
index 80b85633f7deb7..0a6a8e67614d6f 100644
--- a/tools/eslint/node_modules/lodash/isArrayBuffer.js
+++ b/tools/eslint/node_modules/lodash/isArrayBuffer.js
@@ -6,7 +6,8 @@ var arrayBufferTag = '[object ArrayBuffer]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -16,10 +17,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArrayBuffer(new ArrayBuffer(2));
diff --git a/tools/eslint/node_modules/lodash/isArrayLike.js b/tools/eslint/node_modules/lodash/isArrayLike.js
index 9f4ddd51bb6767..189a611f005804 100644
--- a/tools/eslint/node_modules/lodash/isArrayLike.js
+++ b/tools/eslint/node_modules/lodash/isArrayLike.js
@@ -9,7 +9,7 @@ var getLength = require('./_getLength'),
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
@@ -28,8 +28,7 @@ var getLength = require('./_getLength'),
* // => false
*/
function isArrayLike(value) {
- return value != null &&
- !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));
+ return value != null && isLength(getLength(value)) && !isFunction(value);
}
module.exports = isArrayLike;
diff --git a/tools/eslint/node_modules/lodash/isArrayLikeObject.js b/tools/eslint/node_modules/lodash/isArrayLikeObject.js
index 22b3577376f95d..6c4812a8d862d3 100644
--- a/tools/eslint/node_modules/lodash/isArrayLikeObject.js
+++ b/tools/eslint/node_modules/lodash/isArrayLikeObject.js
@@ -7,10 +7,11 @@ var isArrayLike = require('./isArrayLike'),
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
+ * else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
diff --git a/tools/eslint/node_modules/lodash/isBoolean.js b/tools/eslint/node_modules/lodash/isBoolean.js
index 53ec5d6e5ee25e..242fad1ffd0a34 100644
--- a/tools/eslint/node_modules/lodash/isBoolean.js
+++ b/tools/eslint/node_modules/lodash/isBoolean.js
@@ -7,7 +7,8 @@ var boolTag = '[object Boolean]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -17,9 +18,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isBoolean(false);
diff --git a/tools/eslint/node_modules/lodash/isBuffer.js b/tools/eslint/node_modules/lodash/isBuffer.js
index 1e6b8b6d385ab9..404c22200ca75f 100644
--- a/tools/eslint/node_modules/lodash/isBuffer.js
+++ b/tools/eslint/node_modules/lodash/isBuffer.js
@@ -8,13 +8,19 @@ var objectTypes = {
};
/** Detect free variable `exports`. */
-var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType)
+ ? exports
+ : undefined;
/** Detect free variable `module`. */
-var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
+ ? module
+ : undefined;
/** Detect the popular CommonJS extension `module.exports`. */
-var moduleExports = (freeModule && freeModule.exports === freeExports) ? freeExports : null;
+var moduleExports = (freeModule && freeModule.exports === freeExports)
+ ? freeExports
+ : undefined;
/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;
@@ -24,6 +30,7 @@ var Buffer = moduleExports ? root.Buffer : undefined;
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
diff --git a/tools/eslint/node_modules/lodash/isDate.js b/tools/eslint/node_modules/lodash/isDate.js
index 6e3611a05bfbdb..f85a801747d47c 100644
--- a/tools/eslint/node_modules/lodash/isDate.js
+++ b/tools/eslint/node_modules/lodash/isDate.js
@@ -7,7 +7,8 @@ var dateTag = '[object Date]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -17,9 +18,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isDate(new Date);
diff --git a/tools/eslint/node_modules/lodash/isElement.js b/tools/eslint/node_modules/lodash/isElement.js
index 447d6bc2038fd2..67aca5dc7fa949 100644
--- a/tools/eslint/node_modules/lodash/isElement.js
+++ b/tools/eslint/node_modules/lodash/isElement.js
@@ -6,9 +6,11 @@ var isObjectLike = require('./isObjectLike'),
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a DOM element,
+ * else `false`.
* @example
*
* _.isElement(document.body);
diff --git a/tools/eslint/node_modules/lodash/isEmpty.js b/tools/eslint/node_modules/lodash/isEmpty.js
index 29062ed4bea91a..9d4649690bdb13 100644
--- a/tools/eslint/node_modules/lodash/isEmpty.js
+++ b/tools/eslint/node_modules/lodash/isEmpty.js
@@ -1,8 +1,16 @@
-var isArguments = require('./isArguments'),
+var getTag = require('./_getTag'),
+ isArguments = require('./isArguments'),
isArray = require('./isArray'),
isArrayLike = require('./isArrayLike'),
+ isBuffer = require('./isBuffer'),
isFunction = require('./isFunction'),
- isString = require('./isString');
+ isObjectLike = require('./isObjectLike'),
+ isString = require('./isString'),
+ keys = require('./keys');
+
+/** `Object#toString` result references. */
+var mapTag = '[object Map]',
+ setTag = '[object Set]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
@@ -10,15 +18,27 @@ var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
+/** Built-in value references. */
+var propertyIsEnumerable = objectProto.propertyIsEnumerable;
+
+/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
+var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
+
/**
- * Checks if `value` is empty. A value is considered empty unless it's an
- * `arguments` object, array, string, or jQuery-like collection with a length
- * greater than `0` or an object with own enumerable properties.
+ * Checks if `value` is an empty object, collection, map, or set.
+ *
+ * Objects are considered empty if they have no own enumerable string keyed
+ * properties.
+ *
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
- * @param {Array|Object|string} value The value to inspect.
+ * @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
* @example
*
@@ -39,15 +59,22 @@ var hasOwnProperty = objectProto.hasOwnProperty;
*/
function isEmpty(value) {
if (isArrayLike(value) &&
- (isArray(value) || isString(value) || isFunction(value.splice) || isArguments(value))) {
+ (isArray(value) || isString(value) || isFunction(value.splice) ||
+ isArguments(value) || isBuffer(value))) {
return !value.length;
}
+ if (isObjectLike(value)) {
+ var tag = getTag(value);
+ if (tag == mapTag || tag == setTag) {
+ return !value.size;
+ }
+ }
for (var key in value) {
if (hasOwnProperty.call(value, key)) {
return false;
}
}
- return true;
+ return !(nonEnumShadows && keys(value).length);
}
module.exports = isEmpty;
diff --git a/tools/eslint/node_modules/lodash/isEqual.js b/tools/eslint/node_modules/lodash/isEqual.js
index 43a3a2b567a0ce..dd5d0cc7ce0939 100644
--- a/tools/eslint/node_modules/lodash/isEqual.js
+++ b/tools/eslint/node_modules/lodash/isEqual.js
@@ -12,10 +12,12 @@ var baseIsEqual = require('./_baseIsEqual');
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @returns {boolean} Returns `true` if the values are equivalent,
+ * else `false`.
* @example
*
* var object = { 'user': 'fred' };
diff --git a/tools/eslint/node_modules/lodash/isEqualWith.js b/tools/eslint/node_modules/lodash/isEqualWith.js
index 60fe95d9eb0d16..a442b248f3a3c7 100644
--- a/tools/eslint/node_modules/lodash/isEqualWith.js
+++ b/tools/eslint/node_modules/lodash/isEqualWith.js
@@ -1,18 +1,20 @@
var baseIsEqual = require('./_baseIsEqual');
/**
- * This method is like `_.isEqual` except that it accepts `customizer` which is
- * invoked to compare values. If `customizer` returns `undefined` comparisons are
- * handled by the method instead. The `customizer` is invoked with up to six arguments:
- * (objValue, othValue [, index|key, object, other, stack]).
+ * This method is like `_.isEqual` except that it accepts `customizer` which
+ * is invoked to compare values. If `customizer` returns `undefined`, comparisons
+ * are handled by the method instead. The `customizer` is invoked with up to
+ * six arguments: (objValue, othValue [, index|key, object, other, stack]).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @returns {boolean} Returns `true` if the values are equivalent,
+ * else `false`.
* @example
*
* function isGreeting(value) {
diff --git a/tools/eslint/node_modules/lodash/isError.js b/tools/eslint/node_modules/lodash/isError.js
index e66b443d8e508e..b4a93aebe24764 100644
--- a/tools/eslint/node_modules/lodash/isError.js
+++ b/tools/eslint/node_modules/lodash/isError.js
@@ -7,7 +7,8 @@ var errorTag = '[object Error]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -18,9 +19,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is an error object,
+ * else `false`.
* @example
*
* _.isError(new Error);
@@ -30,8 +33,11 @@ var objectToString = objectProto.toString;
* // => false
*/
function isError(value) {
- return isObjectLike(value) &&
- typeof value.message == 'string' && objectToString.call(value) == errorTag;
+ if (!isObjectLike(value)) {
+ return false;
+ }
+ return (objectToString.call(value) == errorTag) ||
+ (typeof value.message == 'string' && typeof value.name == 'string');
}
module.exports = isError;
diff --git a/tools/eslint/node_modules/lodash/isFinite.js b/tools/eslint/node_modules/lodash/isFinite.js
index 44be4bc9d0943b..744e7a65e1e4db 100644
--- a/tools/eslint/node_modules/lodash/isFinite.js
+++ b/tools/eslint/node_modules/lodash/isFinite.js
@@ -6,13 +6,16 @@ var nativeIsFinite = root.isFinite;
/**
* Checks if `value` is a finite primitive number.
*
- * **Note:** This method is based on [`Number.isFinite`](https://mdn.io/Number/isFinite).
+ * **Note:** This method is based on
+ * [`Number.isFinite`](https://mdn.io/Number/isFinite).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a finite number,
+ * else `false`.
* @example
*
* _.isFinite(3);
diff --git a/tools/eslint/node_modules/lodash/isFunction.js b/tools/eslint/node_modules/lodash/isFunction.js
index a1d9530c65e19e..da02be0e10be32 100644
--- a/tools/eslint/node_modules/lodash/isFunction.js
+++ b/tools/eslint/node_modules/lodash/isFunction.js
@@ -8,7 +8,8 @@ var funcTag = '[object Function]',
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -18,9 +19,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isFunction(_);
@@ -31,8 +34,8 @@ var objectToString = objectProto.toString;
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 8 which returns 'object' for typed array constructors, and
- // PhantomJS 1.9 which returns 'function' for `NodeList` instances.
+ // in Safari 8 which returns 'object' for typed array and weak map constructors,
+ // and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
diff --git a/tools/eslint/node_modules/lodash/isInteger.js b/tools/eslint/node_modules/lodash/isInteger.js
index 1bfcc65fb8be8c..66aa87d573d717 100644
--- a/tools/eslint/node_modules/lodash/isInteger.js
+++ b/tools/eslint/node_modules/lodash/isInteger.js
@@ -3,10 +3,12 @@ var toInteger = require('./toInteger');
/**
* Checks if `value` is an integer.
*
- * **Note:** This method is based on [`Number.isInteger`](https://mdn.io/Number/isInteger).
+ * **Note:** This method is based on
+ * [`Number.isInteger`](https://mdn.io/Number/isInteger).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an integer, else `false`.
diff --git a/tools/eslint/node_modules/lodash/isLength.js b/tools/eslint/node_modules/lodash/isLength.js
index 2f04aca810f31b..cd9b2572178cb9 100644
--- a/tools/eslint/node_modules/lodash/isLength.js
+++ b/tools/eslint/node_modules/lodash/isLength.js
@@ -4,13 +4,16 @@ var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ * **Note:** This function is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a valid length,
+ * else `false`.
* @example
*
* _.isLength(3);
@@ -26,7 +29,8 @@ var MAX_SAFE_INTEGER = 9007199254740991;
* // => false
*/
function isLength(value) {
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
module.exports = isLength;
diff --git a/tools/eslint/node_modules/lodash/isMap.js b/tools/eslint/node_modules/lodash/isMap.js
index bc92defd87f91d..f83758e13bac1e 100644
--- a/tools/eslint/node_modules/lodash/isMap.js
+++ b/tools/eslint/node_modules/lodash/isMap.js
@@ -9,9 +9,11 @@ var mapTag = '[object Map]';
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isMap(new Map);
diff --git a/tools/eslint/node_modules/lodash/isMatch.js b/tools/eslint/node_modules/lodash/isMatch.js
index a14131fef31724..371e4458b2a18a 100644
--- a/tools/eslint/node_modules/lodash/isMatch.js
+++ b/tools/eslint/node_modules/lodash/isMatch.js
@@ -2,13 +2,15 @@ var baseIsMatch = require('./_baseIsMatch'),
getMatchData = require('./_getMatchData');
/**
- * Performs a deep comparison between `object` and `source` to determine if
- * `object` contains equivalent property values.
+ * Performs a partial deep comparison between `object` and `source` to
+ * determine if `object` contains equivalent property values. This method is
+ * equivalent to a `_.matches` function when `source` is partially applied.
*
* **Note:** This method supports comparing the same values as `_.isEqual`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
diff --git a/tools/eslint/node_modules/lodash/isMatchWith.js b/tools/eslint/node_modules/lodash/isMatchWith.js
index 2460eb35e0b66c..187b6a61de55d0 100644
--- a/tools/eslint/node_modules/lodash/isMatchWith.js
+++ b/tools/eslint/node_modules/lodash/isMatchWith.js
@@ -3,12 +3,13 @@ var baseIsMatch = require('./_baseIsMatch'),
/**
* This method is like `_.isMatch` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined` comparisons
+ * is invoked to compare values. If `customizer` returns `undefined`, comparisons
* are handled by the method instead. The `customizer` is invoked with five
* arguments: (objValue, srcValue, index|key, object, source).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
diff --git a/tools/eslint/node_modules/lodash/isNaN.js b/tools/eslint/node_modules/lodash/isNaN.js
index 5b757b1fc54376..7d0d783bada2ce 100644
--- a/tools/eslint/node_modules/lodash/isNaN.js
+++ b/tools/eslint/node_modules/lodash/isNaN.js
@@ -3,11 +3,14 @@ var isNumber = require('./isNumber');
/**
* Checks if `value` is `NaN`.
*
- * **Note:** This method is not the same as [`isNaN`](https://es5.github.io/#x15.1.2.4)
- * which returns `true` for `undefined` and other non-numeric values.
+ * **Note:** This method is based on
+ * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
+ * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
+ * `undefined` and other non-number values.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
@@ -27,7 +30,8 @@ var isNumber = require('./isNumber');
*/
function isNaN(value) {
// An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some ActiveX objects in IE.
+ // Perform the `toStringTag` check first to avoid errors with some
+ // ActiveX objects in IE.
return isNumber(value) && value != +value;
}
diff --git a/tools/eslint/node_modules/lodash/isNative.js b/tools/eslint/node_modules/lodash/isNative.js
index 616a832e6b8e29..2d5149ba457718 100644
--- a/tools/eslint/node_modules/lodash/isNative.js
+++ b/tools/eslint/node_modules/lodash/isNative.js
@@ -1,11 +1,15 @@
var isFunction = require('./isFunction'),
isHostObject = require('./_isHostObject'),
- isObjectLike = require('./isObjectLike');
+ isObject = require('./isObject'),
+ toSource = require('./_toSource');
-/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
+/**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
+ */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
-/** Used to detect host constructors (Safari > 5). */
+/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used for built-in method references. */
@@ -28,9 +32,11 @@ var reIsNative = RegExp('^' +
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a native function,
+ * else `false`.
* @example
*
* _.isNative(Array.prototype.push);
@@ -40,14 +46,11 @@ var reIsNative = RegExp('^' +
* // => false
*/
function isNative(value) {
- if (value == null) {
+ if (!isObject(value)) {
return false;
}
- if (isFunction(value)) {
- return reIsNative.test(funcToString.call(value));
- }
- return isObjectLike(value) &&
- (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
+ var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
+ return pattern.test(toSource(value));
}
module.exports = isNative;
diff --git a/tools/eslint/node_modules/lodash/isNil.js b/tools/eslint/node_modules/lodash/isNil.js
index c4197fb3cf829f..79f05052c5ed9c 100644
--- a/tools/eslint/node_modules/lodash/isNil.js
+++ b/tools/eslint/node_modules/lodash/isNil.js
@@ -3,6 +3,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
diff --git a/tools/eslint/node_modules/lodash/isNull.js b/tools/eslint/node_modules/lodash/isNull.js
index ec66c4d8d8f18e..c0a374d7dc178a 100644
--- a/tools/eslint/node_modules/lodash/isNull.js
+++ b/tools/eslint/node_modules/lodash/isNull.js
@@ -3,6 +3,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `null`, else `false`.
diff --git a/tools/eslint/node_modules/lodash/isNumber.js b/tools/eslint/node_modules/lodash/isNumber.js
index 0c8fb9ae93d23f..e427282ac85905 100644
--- a/tools/eslint/node_modules/lodash/isNumber.js
+++ b/tools/eslint/node_modules/lodash/isNumber.js
@@ -7,7 +7,8 @@ var numberTag = '[object Number]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -15,14 +16,16 @@ var objectToString = objectProto.toString;
/**
* Checks if `value` is classified as a `Number` primitive or object.
*
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified
- * as numbers, use the `_.isFinite` method.
+ * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
+ * classified as numbers, use the `_.isFinite` method.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isNumber(3);
diff --git a/tools/eslint/node_modules/lodash/isObject.js b/tools/eslint/node_modules/lodash/isObject.js
index 41993db213eb69..d16542f8bf3830 100644
--- a/tools/eslint/node_modules/lodash/isObject.js
+++ b/tools/eslint/node_modules/lodash/isObject.js
@@ -1,9 +1,11 @@
/**
- * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
- * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ * Checks if `value` is the
+ * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
diff --git a/tools/eslint/node_modules/lodash/isObjectLike.js b/tools/eslint/node_modules/lodash/isObjectLike.js
index 240167ad811f34..e34114be54058c 100644
--- a/tools/eslint/node_modules/lodash/isObjectLike.js
+++ b/tools/eslint/node_modules/lodash/isObjectLike.js
@@ -4,6 +4,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
diff --git a/tools/eslint/node_modules/lodash/isPlainObject.js b/tools/eslint/node_modules/lodash/isPlainObject.js
index 1d68332c04813e..13a90e7d03a842 100644
--- a/tools/eslint/node_modules/lodash/isPlainObject.js
+++ b/tools/eslint/node_modules/lodash/isPlainObject.js
@@ -1,4 +1,5 @@
-var isHostObject = require('./_isHostObject'),
+var getPrototype = require('./_getPrototype'),
+ isHostObject = require('./_isHostObject'),
isObjectLike = require('./isObjectLike');
/** `Object#toString` result references. */
@@ -10,27 +11,30 @@ var objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = Function.prototype.toString;
+/** Used to check objects for own properties. */
+var hasOwnProperty = objectProto.hasOwnProperty;
+
/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
-/** Built-in value references. */
-var getPrototypeOf = Object.getPrototypeOf;
-
/**
* Checks if `value` is a plain object, that is, an object created by the
* `Object` constructor or one with a `[[Prototype]]` of `null`.
*
* @static
* @memberOf _
+ * @since 0.8.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a plain object,
+ * else `false`.
* @example
*
* function Foo() {
@@ -50,17 +54,15 @@ var getPrototypeOf = Object.getPrototypeOf;
* // => true
*/
function isPlainObject(value) {
- if (!isObjectLike(value) || objectToString.call(value) != objectTag || isHostObject(value)) {
+ if (!isObjectLike(value) ||
+ objectToString.call(value) != objectTag || isHostObject(value)) {
return false;
}
- var proto = objectProto;
- if (typeof value.constructor == 'function') {
- proto = getPrototypeOf(value);
- }
+ var proto = getPrototype(value);
if (proto === null) {
return true;
}
- var Ctor = proto.constructor;
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return (typeof Ctor == 'function' &&
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
}
diff --git a/tools/eslint/node_modules/lodash/isRegExp.js b/tools/eslint/node_modules/lodash/isRegExp.js
index e127e5aae8c0d7..8eeb4103ec9fc8 100644
--- a/tools/eslint/node_modules/lodash/isRegExp.js
+++ b/tools/eslint/node_modules/lodash/isRegExp.js
@@ -7,7 +7,8 @@ var regexpTag = '[object RegExp]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -17,9 +18,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isRegExp(/abc/);
diff --git a/tools/eslint/node_modules/lodash/isSafeInteger.js b/tools/eslint/node_modules/lodash/isSafeInteger.js
index f601243fee2e25..a780afb6b64196 100644
--- a/tools/eslint/node_modules/lodash/isSafeInteger.js
+++ b/tools/eslint/node_modules/lodash/isSafeInteger.js
@@ -7,13 +7,16 @@ var MAX_SAFE_INTEGER = 9007199254740991;
* Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
* double precision number which isn't the result of a rounded unsafe integer.
*
- * **Note:** This method is based on [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
+ * **Note:** This method is based on
+ * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a safe integer,
+ * else `false`.
* @example
*
* _.isSafeInteger(3);
diff --git a/tools/eslint/node_modules/lodash/isSet.js b/tools/eslint/node_modules/lodash/isSet.js
index e1d50be9044c2a..9030dc44e031cd 100644
--- a/tools/eslint/node_modules/lodash/isSet.js
+++ b/tools/eslint/node_modules/lodash/isSet.js
@@ -9,9 +9,11 @@ var setTag = '[object Set]';
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isSet(new Set);
diff --git a/tools/eslint/node_modules/lodash/isString.js b/tools/eslint/node_modules/lodash/isString.js
index 5ed392e4060e17..573de3b53cfa1b 100644
--- a/tools/eslint/node_modules/lodash/isString.js
+++ b/tools/eslint/node_modules/lodash/isString.js
@@ -8,7 +8,8 @@ var stringTag = '[object String]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -17,10 +18,12 @@ var objectToString = objectProto.toString;
* Checks if `value` is classified as a `String` primitive or object.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isString('abc');
diff --git a/tools/eslint/node_modules/lodash/isSymbol.js b/tools/eslint/node_modules/lodash/isSymbol.js
index 5e11a00d3c8522..21dd55927d3e54 100644
--- a/tools/eslint/node_modules/lodash/isSymbol.js
+++ b/tools/eslint/node_modules/lodash/isSymbol.js
@@ -7,7 +7,8 @@ var symbolTag = '[object Symbol]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -17,9 +18,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
diff --git a/tools/eslint/node_modules/lodash/isTypedArray.js b/tools/eslint/node_modules/lodash/isTypedArray.js
index 9e9b0a274c8fde..0d86b90cb6e020 100644
--- a/tools/eslint/node_modules/lodash/isTypedArray.js
+++ b/tools/eslint/node_modules/lodash/isTypedArray.js
@@ -17,6 +17,7 @@ var argsTag = '[object Arguments]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
@@ -36,17 +37,19 @@ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
-typedArrayTags[dateTag] = typedArrayTags[errorTag] =
-typedArrayTags[funcTag] = typedArrayTags[mapTag] =
-typedArrayTags[numberTag] = typedArrayTags[objectTag] =
-typedArrayTags[regexpTag] = typedArrayTags[setTag] =
-typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
+typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
+typedArrayTags[errorTag] = typedArrayTags[funcTag] =
+typedArrayTags[mapTag] = typedArrayTags[numberTag] =
+typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
+typedArrayTags[setTag] = typedArrayTags[stringTag] =
+typedArrayTags[weakMapTag] = false;
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -56,9 +59,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isTypedArray(new Uint8Array);
@@ -68,7 +73,8 @@ var objectToString = objectProto.toString;
* // => false
*/
function isTypedArray(value) {
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
+ return isObjectLike(value) &&
+ isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
}
module.exports = isTypedArray;
diff --git a/tools/eslint/node_modules/lodash/isUndefined.js b/tools/eslint/node_modules/lodash/isUndefined.js
index d64e560c66abd1..377d121ab8e93d 100644
--- a/tools/eslint/node_modules/lodash/isUndefined.js
+++ b/tools/eslint/node_modules/lodash/isUndefined.js
@@ -2,6 +2,7 @@
* Checks if `value` is `undefined`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
diff --git a/tools/eslint/node_modules/lodash/isWeakMap.js b/tools/eslint/node_modules/lodash/isWeakMap.js
index d934a9f5e64615..cd7b9ed81d9853 100644
--- a/tools/eslint/node_modules/lodash/isWeakMap.js
+++ b/tools/eslint/node_modules/lodash/isWeakMap.js
@@ -9,9 +9,11 @@ var weakMapTag = '[object WeakMap]';
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isWeakMap(new WeakMap);
diff --git a/tools/eslint/node_modules/lodash/isWeakSet.js b/tools/eslint/node_modules/lodash/isWeakSet.js
index 40674f480c8ed8..5395797ae6c2e6 100644
--- a/tools/eslint/node_modules/lodash/isWeakSet.js
+++ b/tools/eslint/node_modules/lodash/isWeakSet.js
@@ -7,7 +7,8 @@ var weakSetTag = '[object WeakSet]';
var objectProto = Object.prototype;
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -17,9 +18,11 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isWeakSet(new WeakSet);
diff --git a/tools/eslint/node_modules/lodash/iteratee.js b/tools/eslint/node_modules/lodash/iteratee.js
index c761adbbc5a21c..8ec05887671d0b 100644
--- a/tools/eslint/node_modules/lodash/iteratee.js
+++ b/tools/eslint/node_modules/lodash/iteratee.js
@@ -3,11 +3,13 @@ var baseClone = require('./_baseClone'),
/**
* Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name the created callback returns the
- * property value for a given element. If `func` is an object the created
- * callback returns `true` for elements that contain the equivalent object properties, otherwise it returns `false`.
+ * function. If `func` is a property name, the created function returns the
+ * property value for a given element. If `func` is an array or object, the
+ * created function returns `true` for elements that contain the equivalent
+ * source properties, otherwise it returns `false`.
*
* @static
+ * @since 4.0.0
* @memberOf _
* @category Util
* @param {*} [func=_.identity] The value to convert to a callback.
@@ -15,20 +17,31 @@ var baseClone = require('./_baseClone'),
* @example
*
* var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
+ * { 'user': 'barney', 'age': 36, 'active': true },
+ * { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
+ * // The `_.matches` iteratee shorthand.
+ * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
+ * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
+ *
+ * // The `_.matchesProperty` iteratee shorthand.
+ * _.filter(users, _.iteratee(['user', 'fred']));
+ * // => [{ 'user': 'fred', 'age': 40 }]
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.map(users, _.iteratee('user'));
+ * // => ['barney', 'fred']
+ *
* // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(callback, func) {
- * var p = /^(\S+)\s*([<>])\s*(\S+)$/.exec(func);
- * return !p ? callback(func) : function(object) {
- * return (p[2] == '>' ? object[p[1]] > p[3] : object[p[1]] < p[3]);
+ * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
+ * return !_.isRegExp(func) ? iteratee(func) : function(string) {
+ * return func.test(string);
* };
* });
*
- * _.filter(users, 'age > 36');
- * // => [{ 'user': 'fred', 'age': 40 }]
+ * _.filter(['abc', 'def'], /ef/);
+ * // => ['def']
*/
function iteratee(func) {
return baseIteratee(typeof func == 'function' ? func : baseClone(func, true));
diff --git a/tools/eslint/node_modules/lodash/join.js b/tools/eslint/node_modules/lodash/join.js
index 79d308d2812f91..fe31067664ac8a 100644
--- a/tools/eslint/node_modules/lodash/join.js
+++ b/tools/eslint/node_modules/lodash/join.js
@@ -9,6 +9,7 @@ var nativeJoin = arrayProto.join;
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to convert.
* @param {string} [separator=','] The element separator.
diff --git a/tools/eslint/node_modules/lodash/kebabCase.js b/tools/eslint/node_modules/lodash/kebabCase.js
index f29124fb2b7d21..8a52be64555638 100644
--- a/tools/eslint/node_modules/lodash/kebabCase.js
+++ b/tools/eslint/node_modules/lodash/kebabCase.js
@@ -1,10 +1,12 @@
var createCompounder = require('./_createCompounder');
/**
- * Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
+ * Converts `string` to
+ * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the kebab cased string.
@@ -16,7 +18,7 @@ var createCompounder = require('./_createCompounder');
* _.kebabCase('fooBar');
* // => 'foo-bar'
*
- * _.kebabCase('__foo_bar__');
+ * _.kebabCase('__FOO_BAR__');
* // => 'foo-bar'
*/
var kebabCase = createCompounder(function(result, word, index) {
diff --git a/tools/eslint/node_modules/lodash/keyBy.js b/tools/eslint/node_modules/lodash/keyBy.js
index febc86b4b45afe..97e6f4b38e2461 100644
--- a/tools/eslint/node_modules/lodash/keyBy.js
+++ b/tools/eslint/node_modules/lodash/keyBy.js
@@ -2,15 +2,17 @@ var createAggregator = require('./_createAggregator');
/**
* Creates an object composed of keys generated from the results of running
- * each element of `collection` through `iteratee`. The corresponding value
- * of each key is the last element responsible for generating the key. The
+ * each element of `collection` thru `iteratee`. The corresponding value of
+ * each key is the last element responsible for generating the key. The
* iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee to transform keys.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
diff --git a/tools/eslint/node_modules/lodash/keys.js b/tools/eslint/node_modules/lodash/keys.js
index eac239f5c88e4f..186a4fedd0a256 100644
--- a/tools/eslint/node_modules/lodash/keys.js
+++ b/tools/eslint/node_modules/lodash/keys.js
@@ -13,6 +13,7 @@ var baseHas = require('./_baseHas'),
* for more details.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
diff --git a/tools/eslint/node_modules/lodash/keysIn.js b/tools/eslint/node_modules/lodash/keysIn.js
index e327b874d9167d..d2fb91cb32b1e9 100644
--- a/tools/eslint/node_modules/lodash/keysIn.js
+++ b/tools/eslint/node_modules/lodash/keysIn.js
@@ -16,6 +16,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
diff --git a/tools/eslint/node_modules/lodash/lang.js b/tools/eslint/node_modules/lodash/lang.js
index d3be68f06d2616..665f5c66ceade1 100644
--- a/tools/eslint/node_modules/lodash/lang.js
+++ b/tools/eslint/node_modules/lodash/lang.js
@@ -1,4 +1,5 @@
module.exports = {
+ 'castArray': require('./castArray'),
'clone': require('./clone'),
'cloneDeep': require('./cloneDeep'),
'cloneDeepWith': require('./cloneDeepWith'),
diff --git a/tools/eslint/node_modules/lodash/last.js b/tools/eslint/node_modules/lodash/last.js
index 299af3146ca232..6402a4c33a7b2e 100644
--- a/tools/eslint/node_modules/lodash/last.js
+++ b/tools/eslint/node_modules/lodash/last.js
@@ -3,6 +3,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {*} Returns the last element of `array`.
diff --git a/tools/eslint/node_modules/lodash/lastIndexOf.js b/tools/eslint/node_modules/lodash/lastIndexOf.js
index 1eb2f2836faf08..7e9d988e5e93be 100644
--- a/tools/eslint/node_modules/lodash/lastIndexOf.js
+++ b/tools/eslint/node_modules/lodash/lastIndexOf.js
@@ -11,6 +11,7 @@ var nativeMax = Math.max,
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value to search for.
@@ -33,7 +34,11 @@ function lastIndexOf(array, value, fromIndex) {
var index = length;
if (fromIndex !== undefined) {
index = toInteger(fromIndex);
- index = (index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1)) + 1;
+ index = (
+ index < 0
+ ? nativeMax(length + index, 0)
+ : nativeMin(index, length - 1)
+ ) + 1;
}
if (value !== value) {
return indexOfNaN(array, index, true);
diff --git a/tools/eslint/node_modules/lodash/lodash.js b/tools/eslint/node_modules/lodash/lodash.js
index d314acd0976e00..0e359de50b206c 100644
--- a/tools/eslint/node_modules/lodash/lodash.js
+++ b/tools/eslint/node_modules/lodash/lodash.js
@@ -1,11 +1,11 @@
/**
* @license
- * lodash 4.3.0 (Custom Build)
+ * lodash 4.9.0 (Custom Build)
* Build: `lodash -d -o ./foo/lodash.js`
- * Copyright 2012-2016 The Dojo Foundation
+ * Copyright jQuery Foundation and other contributors
+ * Released under MIT license
* Based on Underscore.js 1.8.3
- * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- * Available under MIT license
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
;(function() {
@@ -13,7 +13,19 @@
var undefined;
/** Used as the semantic version number. */
- var VERSION = '4.3.0';
+ var VERSION = '4.9.0';
+
+ /** Used as the size to enable large array optimizations. */
+ var LARGE_ARRAY_SIZE = 200;
+
+ /** Used as the `TypeError` message for "Functions" methods. */
+ var FUNC_ERROR_TEXT = 'Expected a function';
+
+ /** Used to stand-in for `undefined` hash values. */
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
+
+ /** Used as the internal argument placeholder. */
+ var PLACEHOLDER = '__lodash_placeholder__';
/** Used to compose bitmasks for wrapper metadata. */
var BIND_FLAG = 1,
@@ -39,20 +51,11 @@
var HOT_COUNT = 150,
HOT_SPAN = 16;
- /** Used as the size to enable large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
-
/** Used to indicate the type of lazy iteratees. */
var LAZY_FILTER_FLAG = 1,
LAZY_MAP_FLAG = 2,
LAZY_WHILE_FLAG = 3;
- /** Used as the `TypeError` message for "Functions" methods. */
- var FUNC_ERROR_TEXT = 'Expected a function';
-
- /** Used to stand-in for `undefined` hash values. */
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
MAX_SAFE_INTEGER = 9007199254740991,
@@ -64,9 +67,6 @@
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
- /** Used as the internal argument placeholder. */
- var PLACEHOLDER = '__lodash_placeholder__';
-
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
@@ -78,6 +78,7 @@
mapTag = '[object Map]',
numberTag = '[object Number]',
objectTag = '[object Object]',
+ promiseTag = '[object Promise]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
@@ -86,6 +87,7 @@
weakSetTag = '[object WeakSet]';
var arrayBufferTag = '[object ArrayBuffer]',
+ dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
@@ -117,7 +119,10 @@
reIsPlainProp = /^\w*$/,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g;
- /** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
+ /**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
+ */
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
reHasRegExpChar = RegExp(reRegExpChar.source);
@@ -129,7 +134,10 @@
/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;
- /** Used to match [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components). */
+ /**
+ * Used to match
+ * [ES template delimiters](http://ecma-international.org/ecma-262/6.0/#sec-template-literal-lexical-components).
+ */
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
/** Used to match `RegExp` flags from their coerced string values. */
@@ -144,7 +152,7 @@
/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;
- /** Used to detect host constructors (Safari > 5). */
+ /** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used to detect octal string values. */
@@ -228,15 +236,15 @@
].join('|'), 'g');
/** Used to detect strings that need a more robust regexp to match words. */
- var reHasComplexWord = /[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
+ var reHasComplexWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
/** Used to assign default `context` object properties. */
var contextProps = [
- 'Array', 'Buffer', 'Date', 'Error', 'Float32Array', 'Float64Array',
+ 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
- 'Reflect', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
- 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', '_',
- 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
+ 'Promise', 'Reflect', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError',
+ 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
+ '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
];
/** Used to make template sourceURLs easier to identify. */
@@ -251,25 +259,26 @@
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
- typedArrayTags[dateTag] = typedArrayTags[errorTag] =
- typedArrayTags[funcTag] = typedArrayTags[mapTag] =
- typedArrayTags[numberTag] = typedArrayTags[objectTag] =
- typedArrayTags[regexpTag] = typedArrayTags[setTag] =
- typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
+ typedArrayTags[weakMapTag] = false;
/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
- cloneableTags[arrayBufferTag] = cloneableTags[boolTag] =
- cloneableTags[dateTag] = cloneableTags[float32Tag] =
- cloneableTags[float64Tag] = cloneableTags[int8Tag] =
- cloneableTags[int16Tag] = cloneableTags[int32Tag] =
- cloneableTags[mapTag] = cloneableTags[numberTag] =
- cloneableTags[objectTag] = cloneableTags[regexpTag] =
- cloneableTags[setTag] = cloneableTags[stringTag] =
- cloneableTags[symbolTag] = cloneableTags[uint8Tag] =
- cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] =
- cloneableTags[uint32Tag] = true;
+ cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
+ cloneableTags[boolTag] = cloneableTags[dateTag] =
+ cloneableTags[float32Tag] = cloneableTags[float64Tag] =
+ cloneableTags[int8Tag] = cloneableTags[int16Tag] =
+ cloneableTags[int32Tag] = cloneableTags[mapTag] =
+ cloneableTags[numberTag] = cloneableTags[objectTag] =
+ cloneableTags[regexpTag] = cloneableTags[setTag] =
+ cloneableTags[stringTag] = cloneableTags[symbolTag] =
+ cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
+ cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;
@@ -335,10 +344,19 @@
freeParseInt = parseInt;
/** Detect free variable `exports`. */
- var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+ var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType)
+ ? exports
+ : undefined;
/** Detect free variable `module`. */
- var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+ var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
+ ? module
+ : undefined;
+
+ /** Detect the popular CommonJS extension `module.exports`. */
+ var moduleExports = (freeModule && freeModule.exports === freeExports)
+ ? freeExports
+ : undefined;
/** Detect free variable `global` from Node.js. */
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
@@ -349,9 +367,6 @@
/** Detect free variable `window`. */
var freeWindow = checkGlobal(objectTypes[typeof window] && window);
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = (freeModule && freeModule.exports === freeExports) ? freeExports : null;
-
/** Detect `this` as the global object. */
var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
@@ -361,7 +376,9 @@
* The `this` value is used if it's the global object to avoid Greasemonkey's
* restricted `window` object, otherwise the `window` object is used.
*/
- var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
+ var root = freeGlobal ||
+ ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) ||
+ freeSelf || thisGlobal || Function('return this')();
/*--------------------------------------------------------------------------*/
@@ -374,6 +391,7 @@
* @returns {Object} Returns `map`.
*/
function addMapEntry(map, pair) {
+ // Don't return `Map#set` because it doesn't return the map instance in IE 11.
map.set(pair[0], pair[1]);
return map;
}
@@ -398,7 +416,7 @@
* @private
* @param {Function} func The function to invoke.
* @param {*} thisArg The `this` binding of `func`.
- * @param {...*} args The arguments to invoke `func` with.
+ * @param {Array} args The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
@@ -505,7 +523,8 @@
* @private
* @param {Array} array The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`.
*/
function arrayEvery(array, predicate) {
var index = -1,
@@ -531,13 +550,13 @@
function arrayFilter(array, predicate) {
var index = -1,
length = array.length,
- resIndex = -1,
+ resIndex = 0,
result = [];
while (++index < length) {
var value = array[index];
if (predicate(value, index, array)) {
- result[++resIndex] = value;
+ result[resIndex++] = value;
}
}
return result;
@@ -557,8 +576,7 @@
}
/**
- * A specialized version of `_.includesWith` for arrays without support for
- * specifying an index to search from.
+ * This function is like `arrayIncludes` except that it accepts a comparator.
*
* @private
* @param {Array} array The array to search.
@@ -625,7 +643,8 @@
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as the initial value.
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
+ * the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduce(array, iteratee, accumulator, initAccum) {
@@ -649,7 +668,8 @@
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the last element of `array` as the initial value.
+ * @param {boolean} [initAccum] Specify using the last element of `array` as
+ * the initial value.
* @returns {*} Returns the accumulated value.
*/
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
@@ -670,7 +690,8 @@
* @private
* @param {Array} array The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
function arraySome(array, predicate) {
var index = -1,
@@ -722,7 +743,8 @@
* @param {Array|Object} collection The collection to search.
* @param {Function} predicate The function invoked per iteration.
* @param {Function} eachFunc The function to iterate over `collection`.
- * @param {boolean} [retKey] Specify returning the key of the found element instead of the element itself.
+ * @param {boolean} [retKey] Specify returning the key of the found element
+ * instead of the element itself.
* @returns {*} Returns the found element or its key, else `undefined`.
*/
function baseFind(collection, predicate, eachFunc, retKey) {
@@ -782,6 +804,42 @@
return -1;
}
+ /**
+ * This function is like `baseIndexOf` except that it accepts a comparator.
+ *
+ * @private
+ * @param {Array} array The array to search.
+ * @param {*} value The value to search for.
+ * @param {number} fromIndex The index to search from.
+ * @param {Function} comparator The comparator invoked per element.
+ * @returns {number} Returns the index of the matched value, else `-1`.
+ */
+ function baseIndexOfWith(array, value, fromIndex, comparator) {
+ var index = fromIndex - 1,
+ length = array.length;
+
+ while (++index < length) {
+ if (comparator(array[index], value)) {
+ return index;
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * The base implementation of `_.mean` and `_.meanBy` without support for
+ * iteratee shorthands.
+ *
+ * @private
+ * @param {Array} array The array to iterate over.
+ * @param {Function} iteratee The function invoked per iteration.
+ * @returns {number} Returns the mean.
+ */
+ function baseMean(array, iteratee) {
+ var length = array ? array.length : 0;
+ return length ? (baseSum(array, iteratee) / length) : NAN;
+ }
+
/**
* The base implementation of `_.reduce` and `_.reduceRight`, without support
* for iteratee shorthands, which iterates over `collection` using `eachFunc`.
@@ -790,7 +848,8 @@
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of `collection` as the initial value.
+ * @param {boolean} initAccum Specify using the first or last element of
+ * `collection` as the initial value.
* @param {Function} eachFunc The function to iterate over `collection`.
* @returns {*} Returns the accumulated value.
*/
@@ -804,9 +863,9 @@
}
/**
- * The base implementation of `_.sortBy` which uses `comparer` to define
- * the sort order of `array` and replaces criteria objects with their
- * corresponding values.
+ * The base implementation of `_.sortBy` which uses `comparer` to define the
+ * sort order of `array` and replaces criteria objects with their corresponding
+ * values.
*
* @private
* @param {Array} array The array to sort.
@@ -824,7 +883,8 @@
}
/**
- * The base implementation of `_.sum` without support for iteratee shorthands.
+ * The base implementation of `_.sum` and `_.sumBy` without support for
+ * iteratee shorthands.
*
* @private
* @param {Array} array The array to iterate over.
@@ -1021,10 +1081,53 @@
// for more details.
//
// This also ensures a stable sort in V8 and other engines.
- // See https://code.google.com/p/v8/issues/detail?id=90 for more details.
+ // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
return object.index - other.index;
}
+ /**
+ * Gets the number of `placeholder` occurrences in `array`.
+ *
+ * @private
+ * @param {Array} array The array to inspect.
+ * @param {*} placeholder The placeholder to search for.
+ * @returns {number} Returns the placeholder count.
+ */
+ function countHolders(array, placeholder) {
+ var length = array.length,
+ result = 0;
+
+ while (length--) {
+ if (array[length] === placeholder) {
+ result++;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Creates a function that performs a mathematical operation on two values.
+ *
+ * @private
+ * @param {Function} operator The function to perform the operation.
+ * @returns {Function} Returns the new mathematical operation function.
+ */
+ function createMathOperation(operator) {
+ return function(value, other) {
+ var result;
+ if (value === undefined && other === undefined) {
+ return 0;
+ }
+ if (value !== undefined) {
+ result = value;
+ }
+ if (other !== undefined) {
+ result = result === undefined ? other : operator(result, other);
+ }
+ return result;
+ };
+ }
+
/**
* Used by `_.deburr` to convert latin-1 supplementary letters to basic latin letters.
*
@@ -1159,13 +1262,14 @@
function replaceHolders(array, placeholder) {
var index = -1,
length = array.length,
- resIndex = -1,
+ resIndex = 0,
result = [];
while (++index < length) {
- if (array[index] === placeholder) {
+ var value = array[index];
+ if (value === placeholder || value === PLACEHOLDER) {
array[index] = PLACEHOLDER;
- result[++resIndex] = index;
+ result[resIndex++] = index;
}
}
return result;
@@ -1235,6 +1339,7 @@
*
* @static
* @memberOf _
+ * @since 1.1.0
* @category Util
* @param {Object} [context=root] The context object.
* @returns {Function} Returns a new `lodash` function.
@@ -1292,7 +1397,8 @@
var objectCtorString = funcToString.call(Object);
/**
- * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
+ * Used to resolve the
+ * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -1313,9 +1419,9 @@
Uint8Array = context.Uint8Array,
clearTimeout = context.clearTimeout,
enumerate = Reflect ? Reflect.enumerate : undefined,
- getPrototypeOf = Object.getPrototypeOf,
getOwnPropertySymbols = Object.getOwnPropertySymbols,
iteratorSymbol = typeof (iteratorSymbol = Symbol && Symbol.iterator) == 'symbol' ? iteratorSymbol : undefined,
+ objectCreate = Object.create,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
setTimeout = context.setTimeout,
splice = arrayProto.splice;
@@ -1323,6 +1429,7 @@
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil,
nativeFloor = Math.floor,
+ nativeGetPrototype = Object.getPrototypeOf,
nativeIsFinite = context.isFinite,
nativeJoin = arrayProto.join,
nativeKeys = Object.keys,
@@ -1333,7 +1440,9 @@
nativeReverse = arrayProto.reverse;
/* Built-in method references that are verified to be native. */
- var Map = getNative(context, 'Map'),
+ var DataView = getNative(context, 'DataView'),
+ Map = getNative(context, 'Map'),
+ Promise = getNative(context, 'Promise'),
Set = getNative(context, 'Set'),
WeakMap = getNative(context, 'WeakMap'),
nativeCreate = getNative(Object, 'create');
@@ -1341,42 +1450,47 @@
/** Used to store function metadata. */
var metaMap = WeakMap && new WeakMap;
+ /** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
+ var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
+
+ /** Used to lookup unminified function names. */
+ var realNames = {};
+
/** Used to detect maps, sets, and weakmaps. */
- var mapCtorString = Map ? funcToString.call(Map) : '',
- setCtorString = Set ? funcToString.call(Set) : '',
- weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : '';
+ var dataViewCtorString = toSource(DataView),
+ mapCtorString = toSource(Map),
+ promiseCtorString = toSource(Promise),
+ setCtorString = toSource(Set),
+ weakMapCtorString = toSource(WeakMap);
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = Symbol ? symbolProto.valueOf : undefined,
- symbolToString = Symbol ? symbolProto.toString : undefined;
-
- /** Used to lookup unminified function names. */
- var realNames = {};
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
/*------------------------------------------------------------------------*/
/**
* Creates a `lodash` object which wraps `value` to enable implicit method
- * chaining. Methods that operate on and return arrays, collections, and
- * functions can be chained together. Methods that retrieve a single value or
- * may return a primitive value will automatically end the chain sequence and
- * return the unwrapped value. Otherwise, the value must be unwrapped with
- * `_#value`.
+ * chain sequences. Methods that operate on and return arrays, collections,
+ * and functions can be chained together. Methods that retrieve a single value
+ * or may return a primitive value will automatically end the chain sequence
+ * and return the unwrapped value. Otherwise, the value must be unwrapped
+ * with `_#value`.
*
- * Explicit chaining, which must be unwrapped with `_#value` in all cases,
- * may be enabled using `_.chain`.
+ * Explicit chain sequences, which must be unwrapped with `_#value`, may be
+ * enabled using `_.chain`.
*
* The execution of chained methods is lazy, that is, it's deferred until
* `_#value` is implicitly or explicitly called.
*
- * Lazy evaluation allows several methods to support shortcut fusion. Shortcut
- * fusion is an optimization to merge iteratee calls; this avoids the creation
- * of intermediate arrays and can greatly reduce the number of iteratee executions.
- * Sections of a chain sequence qualify for shortcut fusion if the section is
- * applied to an array of at least two hundred elements and any iteratees
- * accept only one argument. The heuristic for whether a section qualifies
- * for shortcut fusion is subject to change.
+ * Lazy evaluation allows several methods to support shortcut fusion.
+ * Shortcut fusion is an optimization to merge iteratee calls; this avoids
+ * the creation of intermediate arrays and can greatly reduce the number of
+ * iteratee executions. Sections of a chain sequence qualify for shortcut
+ * fusion if the section is applied to an array of at least `200` elements
+ * and any iteratees accept only one argument. The heuristic for whether a
+ * section qualifies for shortcut fusion is subject to change.
*
* Chaining is supported in custom builds as long as the `_#value` method is
* directly or indirectly included in the build.
@@ -1395,51 +1509,55 @@
* `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
*
* The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`,
- * `at`, `before`, `bind`, `bindAll`, `bindKey`, `chain`, `chunk`, `commit`,
- * `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, `curry`,
- * `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, `difference`,
- * `differenceBy`, `differenceWith`, `drop`, `dropRight`, `dropRightWhile`,
- * `dropWhile`, `fill`, `filter`, `flatten`, `flattenDeep`, `flip`, `flow`,
- * `flowRight`, `fromPairs`, `functions`, `functionsIn`, `groupBy`, `initial`,
- * `intersection`, `intersectionBy`, `intersectionWith`, `invert`, `invertBy`,
- * `invokeMap`, `iteratee`, `keyBy`, `keys`, `keysIn`, `map`, `mapKeys`,
- * `mapValues`, `matches`, `matchesProperty`, `memoize`, `merge`, `mergeWith`,
- * `method`, `methodOf`, `mixin`, `negate`, `nthArg`, `omit`, `omitBy`, `once`,
- * `orderBy`, `over`, `overArgs`, `overEvery`, `overSome`, `partial`,
- * `partialRight`, `partition`, `pick`, `pickBy`, `plant`, `property`,
- * `propertyOf`, `pull`, `pullAll`, `pullAllBy`, `pullAt`, `push`, `range`,
- * `rangeRight`, `rearg`, `reject`, `remove`, `rest`, `reverse`, `sampleSize`,
- * `set`, `setWith`, `shuffle`, `slice`, `sort`, `sortBy`, `splice`, `spread`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, `tap`, `throttle`,
- * `thru`, `toArray`, `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`,
- * `transform`, `unary`, `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`,
- * `uniqWith`, `unset`, `unshift`, `unzip`, `unzipWith`, `values`, `valuesIn`,
- * `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`, `zipObject`,
- * `zipObjectDeep`, and `zipWith`
+ * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
+ * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
+ * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
+ * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
+ * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
+ * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
+ * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
+ * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
+ * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
+ * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
+ * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
+ * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
+ * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
+ * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
+ * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
+ * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
+ * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
+ * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
+ * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
+ * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
+ * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
+ * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
+ * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
+ * `zipObject`, `zipObjectDeep`, and `zipWith`
*
* The wrapper methods that are **not** chainable by default are:
* `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `endsWith`, `eq`,
- * `escape`, `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`,
- * `findLast`, `findLastIndex`, `findLastKey`, `floor`, `forEach`, `forEachRight`,
- * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
- * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
- * `isArguments`, `isArray`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`,
+ * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `divide`, `each`,
+ * `eachRight`, `endsWith`, `eq`, `escape`, `escapeRegExp`, `every`, `find`,
+ * `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `first`,
+ * `floor`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`,
+ * `forOwnRight`, `get`, `gt`, `gte`, `has`, `hasIn`, `head`, `identity`,
+ * `includes`, `indexOf`, `inRange`, `invoke`, `isArguments`, `isArray`,
+ * `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`, `isBoolean`, `isBuffer`,
* `isDate`, `isElement`, `isEmpty`, `isEqual`, `isEqualWith`, `isError`,
- * `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMatch`, `isMatchWith`,
- * `isNaN`, `isNative`, `isNil`, `isNull`, `isNumber`, `isObject`, `isObjectLike`,
- * `isPlainObject`, `isRegExp`, `isSafeInteger`, `isString`, `isUndefined`,
- * `isTypedArray`, `join`, `kebabCase`, `last`, `lastIndexOf`, `lowerCase`,
- * `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `min`, `minBy`,
+ * `isFinite`, `isFunction`, `isInteger`, `isLength`, `isMap`, `isMatch`,
+ * `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`, `isNumber`,
+ * `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`, `isSafeInteger`,
+ * `isSet`, `isString`, `isUndefined`, `isTypedArray`, `isWeakMap`, `isWeakSet`,
+ * `join`, `kebabCase`, `last`, `lastIndexOf`, `lowerCase`, `lowerFirst`,
+ * `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`, `min`, `minBy`, `multiply`,
* `noConflict`, `noop`, `now`, `pad`, `padEnd`, `padStart`, `parseInt`,
* `pop`, `random`, `reduce`, `reduceRight`, `repeat`, `result`, `round`,
* `runInContext`, `sample`, `shift`, `size`, `snakeCase`, `some`, `sortedIndex`,
* `sortedIndexBy`, `sortedLastIndex`, `sortedLastIndexBy`, `startCase`,
- * `startsWith`, `subtract`, `sum`, `sumBy`, `template`, `times`, `toLower`,
- * `toInteger`, `toLength`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`,
- * `trim`, `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`,
- * `upperCase`, `upperFirst`, `value`, and `words`
+ * `startsWith`, `subtract`, `sum`, `sumBy`, `template`, `times`, `toInteger`,
+ * `toJSON`, `toLength`, `toLower`, `toNumber`, `toSafeInteger`, `toString`,
+ * `toUpper`, `trim`, `trimEnd`, `trimStart`, `truncate`, `unescape`,
+ * `uniqueId`, `upperCase`, `upperFirst`, `value`, and `words`
*
* @name _
* @constructor
@@ -1480,7 +1598,7 @@
}
/**
- * The function whose prototype all chaining wrappers inherit from.
+ * The function whose prototype chain sequence wrappers inherit from.
*
* @private
*/
@@ -1493,7 +1611,7 @@
*
* @private
* @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable chaining for all wrapper methods.
+ * @param {boolean} [chainAll] Enable explicit method chain sequences.
*/
function LodashWrapper(value, chainAll) {
this.__wrapped__ = value;
@@ -1510,7 +1628,7 @@
*
* @static
* @memberOf _
- * @type Object
+ * @type {Object}
*/
lodash.templateSettings = {
@@ -1518,7 +1636,7 @@
* Used to detect `data` property values to be HTML-escaped.
*
* @memberOf _.templateSettings
- * @type RegExp
+ * @type {RegExp}
*/
'escape': reEscape,
@@ -1526,7 +1644,7 @@
* Used to detect code to be evaluated.
*
* @memberOf _.templateSettings
- * @type RegExp
+ * @type {RegExp}
*/
'evaluate': reEvaluate,
@@ -1534,7 +1652,7 @@
* Used to detect `data` property values to inject.
*
* @memberOf _.templateSettings
- * @type RegExp
+ * @type {RegExp}
*/
'interpolate': reInterpolate,
@@ -1542,7 +1660,7 @@
* Used to reference the data object in the template text.
*
* @memberOf _.templateSettings
- * @type string
+ * @type {string}
*/
'variable': '',
@@ -1550,7 +1668,7 @@
* Used to import variables into the compiled template.
*
* @memberOf _.templateSettings
- * @type Object
+ * @type {Object}
*/
'imports': {
@@ -1558,18 +1676,26 @@
* A reference to the `lodash` function.
*
* @memberOf _.templateSettings.imports
- * @type Function
+ * @type {Function}
*/
'_': lodash
}
};
+ // Ensure wrappers are instances of `baseLodash`.
+ lodash.prototype = baseLodash.prototype;
+ lodash.prototype.constructor = lodash;
+
+ LodashWrapper.prototype = baseCreate(baseLodash.prototype);
+ LodashWrapper.prototype.constructor = LodashWrapper;
+
/*------------------------------------------------------------------------*/
/**
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
*
* @private
+ * @constructor
* @param {*} value The value to wrap.
*/
function LazyWrapper(value) {
@@ -1645,7 +1771,8 @@
resIndex = 0,
takeCount = nativeMin(length, this.__takeCount__);
- if (!isArr || arrLength < LARGE_ARRAY_SIZE || (arrLength == length && takeCount == length)) {
+ if (!isArr || arrLength < LARGE_ARRAY_SIZE ||
+ (arrLength == length && takeCount == length)) {
return baseWrapperValue(array, this.__actions__);
}
var result = [];
@@ -1678,12 +1805,17 @@
return result;
}
+ // Ensure `LazyWrapper` is an instance of `baseLodash`.
+ LazyWrapper.prototype = baseCreate(baseLodash.prototype);
+ LazyWrapper.prototype.constructor = LazyWrapper;
+
/*------------------------------------------------------------------------*/
/**
- * Creates an hash object.
+ * Creates a hash object.
*
* @private
+ * @constructor
* @returns {Object} Returns the new hash object.
*/
function Hash() {}
@@ -1740,12 +1872,16 @@
hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
}
+ // Avoid inheriting from `Object.prototype` when possible.
+ Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
+
/*------------------------------------------------------------------------*/
/**
* Creates a map cache object to store key-value pairs.
*
* @private
+ * @constructor
* @param {Array} [values] The values to cache.
*/
function MapCache(values) {
@@ -1767,7 +1903,11 @@
* @memberOf MapCache
*/
function mapClear() {
- this.__data__ = { 'hash': new Hash, 'map': Map ? new Map : [], 'string': new Hash };
+ this.__data__ = {
+ 'hash': new Hash,
+ 'map': Map ? new Map : [],
+ 'string': new Hash
+ };
}
/**
@@ -1829,7 +1969,7 @@
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
- * @returns {Object} Returns the map cache object.
+ * @returns {Object} Returns the map cache instance.
*/
function mapSet(key, value) {
var data = this.__data__;
@@ -1843,6 +1983,13 @@
return this;
}
+ // Add methods to `MapCache`.
+ MapCache.prototype.clear = mapClear;
+ MapCache.prototype['delete'] = mapDelete;
+ MapCache.prototype.get = mapGet;
+ MapCache.prototype.has = mapHas;
+ MapCache.prototype.set = mapSet;
+
/*------------------------------------------------------------------------*/
/**
@@ -1850,6 +1997,7 @@
* Creates a set cache object to store unique values.
*
* @private
+ * @constructor
* @param {Array} [values] The values to cache.
*/
function SetCache(values) {
@@ -1902,12 +2050,16 @@
}
}
+ // Add methods to `SetCache`.
+ SetCache.prototype.push = cachePush;
+
/*------------------------------------------------------------------------*/
/**
* Creates a stack cache object to store key-value pairs.
*
* @private
+ * @constructor
* @param {Array} [values] The values to cache.
*/
function Stack(values) {
@@ -1988,7 +2140,7 @@
* @memberOf Stack
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
- * @returns {Object} Returns the stack cache object.
+ * @returns {Object} Returns the stack cache instance.
*/
function stackSet(key, value) {
var data = this.__data__,
@@ -2009,13 +2161,20 @@
return this;
}
+ // Add methods to `Stack`.
+ Stack.prototype.clear = stackClear;
+ Stack.prototype['delete'] = stackDelete;
+ Stack.prototype.get = stackGet;
+ Stack.prototype.has = stackHas;
+ Stack.prototype.set = stackSet;
+
/*------------------------------------------------------------------------*/
/**
* Removes `key` and its value from the associative array.
*
* @private
- * @param {Array} array The array to query.
+ * @param {Array} array The array to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
@@ -2059,8 +2218,7 @@
}
/**
- * Gets the index at which the first occurrence of `key` is found in `array`
- * of key-value pairs.
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to search.
@@ -2115,7 +2273,8 @@
}
/**
- * This function is like `assignValue` except that it doesn't assign `undefined` values.
+ * This function is like `assignValue` except that it doesn't assign
+ * `undefined` values.
*
* @private
* @param {Object} object The object to modify.
@@ -2141,8 +2300,7 @@
*/
function assignValue(object, key, value) {
var objValue = object[key];
- if ((!eq(objValue, value) ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) ||
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
object[key] = value;
}
@@ -2199,6 +2357,50 @@
return result;
}
+ /**
+ * Casts `value` to an empty array if it's not an array like object.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Array|Object} Returns the cast array-like object.
+ */
+ function baseCastArrayLikeObject(value) {
+ return isArrayLikeObject(value) ? value : [];
+ }
+
+ /**
+ * Casts `value` to `identity` if it's not a function.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Function} Returns cast function.
+ */
+ function baseCastFunction(value) {
+ return typeof value == 'function' ? value : identity;
+ }
+
+ /**
+ * Casts `value` to a string if it's not a string or symbol.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {string|symbol} Returns the cast key.
+ */
+ function baseCastKey(key) {
+ return (typeof key == 'string' || isSymbol(key)) ? key : (key + '');
+ }
+
+ /**
+ * Casts `value` to a path array if it's not one.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast property path array.
+ */
+ function baseCastPath(value) {
+ return isArray(value) ? value : stringToPath(value);
+ }
+
/**
* The base implementation of `_.clamp` which doesn't coerce arguments to numbers.
*
@@ -2227,13 +2429,14 @@
* @private
* @param {*} value The value to clone.
* @param {boolean} [isDeep] Specify a deep clone.
+ * @param {boolean} [isFull] Specify a clone including symbols.
* @param {Function} [customizer] The function to customize cloning.
* @param {string} [key] The key of `value`.
* @param {Object} [object] The parent object of `value`.
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
* @returns {*} Returns the cloned value.
*/
- function baseClone(value, isDeep, customizer, key, object, stack) {
+ function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
var result;
if (customizer) {
result = object ? customizer(value, key, object, stack) : customizer(value);
@@ -2266,9 +2469,10 @@
return copySymbols(value, baseAssign(result, value));
}
} else {
- return cloneableTags[tag]
- ? initCloneByTag(value, tag, isDeep)
- : (object ? value : {});
+ if (!cloneableTags[tag]) {
+ return object ? value : {};
+ }
+ result = initCloneByTag(value, tag, baseClone, isDeep);
}
}
// Check for circular references and return its corresponding clone.
@@ -2279,11 +2483,18 @@
}
stack.set(value, result);
+ if (!isArr) {
+ var props = isFull ? getAllKeys(value) : keys(value);
+ }
// Recursively populate clone (susceptible to call stack limits).
- (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) {
- assignValue(result, key, baseClone(subValue, isDeep, customizer, key, value, stack));
+ arrayEach(props || value, function(subValue, key) {
+ if (props) {
+ key = subValue;
+ subValue = value[key];
+ }
+ assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
});
- return isArr ? result : copySymbols(value, result);
+ return result;
}
/**
@@ -2307,7 +2518,8 @@
predicate = source[key],
value = object[key];
- if ((value === undefined && !(key in Object(object))) || !predicate(value)) {
+ if ((value === undefined &&
+ !(key in Object(object))) || !predicate(value)) {
return false;
}
}
@@ -2323,17 +2535,9 @@
* @param {Object} prototype The object to inherit from.
* @returns {Object} Returns the new object.
*/
- var baseCreate = (function() {
- function object() {}
- return function(prototype) {
- if (isObject(prototype)) {
- object.prototype = prototype;
- var result = new object;
- object.prototype = undefined;
- }
- return result || {};
- };
- }());
+ function baseCreate(proto) {
+ return isObject(proto) ? objectCreate(proto) : {};
+ }
/**
* The base implementation of `_.delay` and `_.defer` which accepts an array
@@ -2353,8 +2557,8 @@
}
/**
- * The base implementation of methods like `_.difference` without support for
- * excluding multiple arrays or iteratee shorthands.
+ * The base implementation of methods like `_.difference` without support
+ * for excluding multiple arrays or iteratee shorthands.
*
* @private
* @param {Array} array The array to inspect.
@@ -2433,7 +2637,8 @@
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`
*/
function baseEvery(collection, predicate) {
var result = true;
@@ -2495,24 +2700,25 @@
*
* @private
* @param {Array} array The array to flatten.
- * @param {boolean} [isDeep] Specify a deep flatten.
- * @param {boolean} [isStrict] Restrict flattening to arrays-like objects.
+ * @param {number} depth The maximum recursion depth.
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
* @param {Array} [result=[]] The initial result value.
* @returns {Array} Returns the new flattened array.
*/
- function baseFlatten(array, isDeep, isStrict, result) {
- result || (result = []);
-
+ function baseFlatten(array, depth, predicate, isStrict, result) {
var index = -1,
length = array.length;
+ predicate || (predicate = isFlattenable);
+ result || (result = []);
+
while (++index < length) {
var value = array[index];
- if (isArrayLikeObject(value) &&
- (isStrict || isArray(value) || isArguments(value))) {
- if (isDeep) {
+ if (depth > 0 && predicate(value)) {
+ if (depth > 1) {
// Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, isDeep, isStrict, result);
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
} else {
arrayPush(result, value);
}
@@ -2524,10 +2730,9 @@
}
/**
- * The base implementation of `baseForIn` and `baseForOwn` which iterates
- * over `object` properties returned by `keysFunc` invoking `iteratee` for
- * each property. Iteratee functions may exit iteration early by explicitly
- * returning `false`.
+ * The base implementation of `baseForOwn` which iterates over `object`
+ * properties returned by `keysFunc` invoking `iteratee` for each property.
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
@@ -2549,18 +2754,6 @@
*/
var baseForRight = createBaseFor(true);
- /**
- * The base implementation of `_.forIn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForIn(object, iteratee) {
- return object == null ? object : baseFor(object, iteratee, keysIn);
- }
-
/**
* The base implementation of `_.forOwn` without support for iteratee shorthands.
*
@@ -2609,7 +2802,7 @@
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
- path = isKey(path, object) ? [path + ''] : baseToPath(path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
var index = 0,
length = path.length;
@@ -2620,6 +2813,24 @@
return (index && index == length) ? object : undefined;
}
+ /**
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Function} keysFunc The function to get the keys of `object`.
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
+ var result = keysFunc(object);
+ return isArray(object)
+ ? result
+ : arrayPush(result, symbolsFunc(object));
+ }
+
/**
* The base implementation of `_.has` without support for deep paths.
*
@@ -2633,7 +2844,7 @@
// that are composed entirely of index properties, return `false` for
// `hasOwnProperty` checks of them.
return hasOwnProperty.call(object, key) ||
- (typeof object == 'object' && key in object && getPrototypeOf(object) === null);
+ (typeof object == 'object' && key in object && getPrototype(object) === null);
}
/**
@@ -2673,9 +2884,11 @@
*/
function baseIntersection(arrays, iteratee, comparator) {
var includes = comparator ? arrayIncludesWith : arrayIncludes,
+ length = arrays[0].length,
othLength = arrays.length,
othIndex = othLength,
caches = Array(othLength),
+ maxLength = Infinity,
result = [];
while (othIndex--) {
@@ -2683,26 +2896,32 @@
if (othIndex && iteratee) {
array = arrayMap(array, baseUnary(iteratee));
}
- caches[othIndex] = !comparator && (iteratee || array.length >= 120)
+ maxLength = nativeMin(array.length, maxLength);
+ caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
? new SetCache(othIndex && array)
: undefined;
}
array = arrays[0];
var index = -1,
- length = array.length,
seen = caches[0];
outer:
- while (++index < length) {
+ while (++index < length && result.length < maxLength) {
var value = array[index],
computed = iteratee ? iteratee(value) : value;
- if (!(seen ? cacheHas(seen, computed) : includes(result, computed, comparator))) {
- var othIndex = othLength;
+ if (!(seen
+ ? cacheHas(seen, computed)
+ : includes(result, computed, comparator)
+ )) {
+ othIndex = othLength;
while (--othIndex) {
var cache = caches[othIndex];
- if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator))) {
+ if (!(cache
+ ? cacheHas(cache, computed)
+ : includes(arrays[othIndex], computed, comparator))
+ ) {
continue outer;
}
}
@@ -2745,7 +2964,7 @@
*/
function baseInvoke(object, path, args) {
if (!isKey(path, object)) {
- path = baseToPath(path);
+ path = baseCastPath(path);
object = parent(object, path);
path = last(path);
}
@@ -2788,7 +3007,8 @@
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
+ * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
@@ -2800,41 +3020,39 @@
if (!objIsArr) {
objTag = getTag(object);
- if (objTag == argsTag) {
- objTag = objectTag;
- } else if (objTag != objectTag) {
- objIsArr = isTypedArray(object);
- }
+ objTag = objTag == argsTag ? objectTag : objTag;
}
if (!othIsArr) {
othTag = getTag(other);
- if (othTag == argsTag) {
- othTag = objectTag;
- } else if (othTag != objectTag) {
- othIsArr = isTypedArray(other);
- }
+ othTag = othTag == argsTag ? objectTag : othTag;
}
var objIsObj = objTag == objectTag && !isHostObject(object),
othIsObj = othTag == objectTag && !isHostObject(other),
isSameTag = objTag == othTag;
- if (isSameTag && !(objIsArr || objIsObj)) {
- return equalByTag(object, other, objTag, equalFunc, customizer, bitmask);
+ if (isSameTag && !objIsObj) {
+ stack || (stack = new Stack);
+ return (objIsArr || isTypedArray(object))
+ ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)
+ : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);
}
- var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
- if (!isPartial) {
+ if (!(bitmask & PARTIAL_COMPARE_FLAG)) {
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
if (objIsWrapped || othIsWrapped) {
- return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, bitmask, stack);
+ var objUnwrapped = objIsWrapped ? object.value() : object,
+ othUnwrapped = othIsWrapped ? other.value() : other;
+
+ stack || (stack = new Stack);
+ return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);
}
}
if (!isSameTag) {
return false;
}
stack || (stack = new Stack);
- return (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, bitmask, stack);
+ return equalObjects(object, other, equalFunc, customizer, bitmask, stack);
}
/**
@@ -2876,9 +3094,10 @@
return false;
}
} else {
- var stack = new Stack,
- result = customizer ? customizer(objValue, srcValue, key, object, source, stack) : undefined;
-
+ var stack = new Stack;
+ if (customizer) {
+ var result = customizer(objValue, srcValue, key, object, source, stack);
+ }
if (!(result === undefined
? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)
: result
@@ -2898,14 +3117,15 @@
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(value) {
- var type = typeof value;
- if (type == 'function') {
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
+ if (typeof value == 'function') {
return value;
}
if (value == null) {
return identity;
}
- if (type == 'object') {
+ if (typeof value == 'object') {
return isArray(value)
? baseMatchesProperty(value[0], value[1])
: baseMatches(value);
@@ -2918,7 +3138,6 @@
* property of prototypes or treat sparse arrays as dense.
*
* @private
- * @type Function
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
@@ -2979,16 +3198,7 @@
function baseMatches(source) {
var matchData = getMatchData(source);
if (matchData.length == 1 && matchData[0][2]) {
- var key = matchData[0][0],
- value = matchData[0][1];
-
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === value &&
- (value !== undefined || (key in Object(object)));
- };
+ return matchesStrictComparable(matchData[0][0], matchData[0][1]);
}
return function(object) {
return object === source || baseIsMatch(object, source, matchData);
@@ -3004,6 +3214,9 @@
* @returns {Function} Returns the new function.
*/
function baseMatchesProperty(path, srcValue) {
+ if (isKey(path) && isStrictComparable(srcValue)) {
+ return matchesStrictComparable(path, srcValue);
+ }
return function(object) {
var objValue = get(object, path);
return (objValue === undefined && objValue === srcValue)
@@ -3020,13 +3233,16 @@
* @param {Object} source The source object.
* @param {number} srcIndex The index of `source`.
* @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged counterparts.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ * counterparts.
*/
function baseMerge(object, source, srcIndex, customizer, stack) {
if (object === source) {
return;
}
- var props = (isArray(source) || isTypedArray(source)) ? undefined : keysIn(source);
+ if (!(isArray(source) || isTypedArray(source))) {
+ var props = keysIn(source);
+ }
arrayEach(props || source, function(srcValue, key) {
if (props) {
key = srcValue;
@@ -3037,7 +3253,10 @@
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
}
else {
- var newValue = customizer ? customizer(object[key], srcValue, (key + ''), object, source, stack) : undefined;
+ var newValue = customizer
+ ? customizer(object[key], srcValue, (key + ''), object, source, stack)
+ : undefined;
+
if (newValue === undefined) {
newValue = srcValue;
}
@@ -3058,7 +3277,8 @@
* @param {number} srcIndex The index of `source`.
* @param {Function} mergeFunc The function to merge values.
* @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged counterparts.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ * counterparts.
*/
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
var objValue = object[key],
@@ -3069,21 +3289,24 @@
assignMergeValue(object, key, stacked);
return;
}
- var newValue = customizer ? customizer(objValue, srcValue, (key + ''), object, source, stack) : undefined,
- isCommon = newValue === undefined;
+ var newValue = customizer
+ ? customizer(objValue, srcValue, (key + ''), object, source, stack)
+ : undefined;
+
+ var isCommon = newValue === undefined;
if (isCommon) {
newValue = srcValue;
if (isArray(srcValue) || isTypedArray(srcValue)) {
if (isArray(objValue)) {
- newValue = srcIndex ? copyArray(objValue) : objValue;
+ newValue = objValue;
}
else if (isArrayLikeObject(objValue)) {
newValue = copyArray(objValue);
}
else {
isCommon = false;
- newValue = baseClone(srcValue);
+ newValue = baseClone(srcValue, true);
}
}
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
@@ -3092,10 +3315,10 @@
}
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
isCommon = false;
- newValue = baseClone(srcValue);
+ newValue = baseClone(srcValue, true);
}
else {
- newValue = srcIndex ? baseClone(objValue) : objValue;
+ newValue = objValue;
}
}
else {
@@ -3108,6 +3331,7 @@
// Recursively merge objects and arrays (susceptible to call stack limits).
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
}
+ stack['delete'](srcValue);
assignMergeValue(object, key, newValue);
}
@@ -3121,12 +3345,8 @@
* @returns {Array} Returns the new sorted array.
*/
function baseOrderBy(collection, iteratees, orders) {
- var index = -1,
- toIteratee = getIteratee();
-
- iteratees = arrayMap(iteratees.length ? iteratees : Array(1), function(iteratee) {
- return toIteratee(iteratee);
- });
+ var index = -1;
+ iteratees = arrayMap(iteratees.length ? iteratees : [identity], getIteratee());
var result = baseMap(collection, function(value, key, collection) {
var criteria = arrayMap(iteratees, function(iteratee) {
@@ -3142,11 +3362,11 @@
/**
* The base implementation of `_.pick` without support for individual
- * property names.
+ * property identifiers.
*
* @private
* @param {Object} object The source object.
- * @param {string[]} props The property names to pick.
+ * @param {string[]} props The property identifiers to pick.
* @returns {Object} Returns the new object.
*/
function basePick(object, props) {
@@ -3168,12 +3388,19 @@
* @returns {Object} Returns the new object.
*/
function basePickBy(object, predicate) {
- var result = {};
- baseForIn(object, function(value, key) {
+ var index = -1,
+ props = getAllKeysIn(object),
+ length = props.length,
+ result = {};
+
+ while (++index < length) {
+ var key = props[index],
+ value = object[key];
+
if (predicate(value, key)) {
result[key] = value;
}
- });
+ }
return result;
}
@@ -3203,18 +3430,6 @@
};
}
- /**
- * The base implementation of `_.pullAll`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @returns {Array} Returns `array`.
- */
- function basePullAll(array, values) {
- return basePullAllBy(array, values);
- }
-
/**
* The base implementation of `_.pullAllBy` without support for iteratee
* shorthands.
@@ -3223,22 +3438,24 @@
* @param {Array} array The array to modify.
* @param {Array} values The values to remove.
* @param {Function} [iteratee] The iteratee invoked per element.
+ * @param {Function} [comparator] The comparator invoked per element.
* @returns {Array} Returns `array`.
*/
- function basePullAllBy(array, values, iteratee) {
- var index = -1,
+ function basePullAll(array, values, iteratee, comparator) {
+ var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
+ index = -1,
length = values.length,
seen = array;
if (iteratee) {
- seen = arrayMap(array, function(value) { return iteratee(value); });
+ seen = arrayMap(array, baseUnary(iteratee));
}
while (++index < length) {
var fromIndex = 0,
value = values[index],
computed = iteratee ? iteratee(value) : value;
- while ((fromIndex = baseIndexOf(seen, computed, fromIndex)) > -1) {
+ while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
if (seen !== array) {
splice.call(seen, fromIndex, 1);
}
@@ -3269,7 +3486,7 @@
splice.call(array, index, 1);
}
else if (!isKey(index, array)) {
- var path = baseToPath(index),
+ var path = baseCastPath(index),
object = parent(array, path);
if (object != null) {
@@ -3320,6 +3537,34 @@
return result;
}
+ /**
+ * The base implementation of `_.repeat` which doesn't coerce arguments.
+ *
+ * @private
+ * @param {string} string The string to repeat.
+ * @param {number} n The number of times to repeat the string.
+ * @returns {string} Returns the repeated string.
+ */
+ function baseRepeat(string, n) {
+ var result = '';
+ if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
+ return result;
+ }
+ // Leverage the exponentiation by squaring algorithm for a faster repeat.
+ // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
+ do {
+ if (n % 2) {
+ result += string;
+ }
+ n = nativeFloor(n / 2);
+ if (n) {
+ string += string;
+ }
+ } while (n);
+
+ return result;
+ }
+
/**
* The base implementation of `_.set`.
*
@@ -3331,7 +3576,7 @@
* @returns {Object} Returns `object`.
*/
function baseSet(object, path, value, customizer) {
- path = isKey(path, object) ? [path + ''] : baseToPath(path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
var index = -1,
length = path.length,
@@ -3346,7 +3591,9 @@
var objValue = nested[key];
newValue = customizer ? customizer(objValue, key, nested) : undefined;
if (newValue === undefined) {
- newValue = objValue == null ? (isIndex(path[index + 1]) ? [] : {}) : objValue;
+ newValue = objValue == null
+ ? (isIndex(path[index + 1]) ? [] : {})
+ : objValue;
}
}
assignValue(nested, key, newValue);
@@ -3405,7 +3652,8 @@
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
*/
function baseSome(collection, predicate) {
var result;
@@ -3459,7 +3707,8 @@
* @param {*} value The value to evaluate.
* @param {Function} iteratee The iteratee invoked per element.
* @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
*/
function baseSortedIndexBy(array, value, iteratee, retHighest) {
value = iteratee(value);
@@ -3522,7 +3771,7 @@
value = array[0],
computed = iteratee ? iteratee(value) : value,
seen = computed,
- resIndex = 0,
+ resIndex = 1,
result = [value];
while (++index < length) {
@@ -3531,24 +3780,12 @@
if (!eq(computed, seen)) {
seen = computed;
- result[++resIndex] = value;
+ result[resIndex++] = value;
}
}
return result;
}
- /**
- * The base implementation of `_.toPath` which only converts `value` to a
- * path if it's not one.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {Array} Returns the property path array.
- */
- function baseToPath(value) {
- return isArray(value) ? value : stringToPath(value);
- }
-
/**
* The base implementation of `_.uniqBy` without support for iteratee shorthands.
*
@@ -3618,12 +3855,26 @@
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
*/
function baseUnset(object, path) {
- path = isKey(path, object) ? [path + ''] : baseToPath(path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
object = parent(object, path);
var key = last(path);
return (object != null && has(object, key)) ? delete object[key] : true;
}
+ /**
+ * The base implementation of `_.update`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to update.
+ * @param {Function} updater The function to produce the updated value.
+ * @param {Function} [customizer] The function to customize path creation.
+ * @returns {Object} Returns `object`.
+ */
+ function baseUpdate(object, path, updater, customizer) {
+ return baseSet(object, path, updater(baseGet(object, path)), customizer);
+ }
+
/**
* The base implementation of methods like `_.dropWhile` and `_.takeWhile`
* without support for iteratee shorthands.
@@ -3696,7 +3947,7 @@
* This base implementation of `_.zipObject` which assigns values using `assignFunc`.
*
* @private
- * @param {Array} props The property names.
+ * @param {Array} props The property identifiers.
* @param {Array} values The property values.
* @param {Function} assignFunc The function to assign values.
* @returns {Object} Returns the new object.
@@ -3708,7 +3959,8 @@
result = {};
while (++index < length) {
- assignFunc(result, props[index], index < valsLength ? values[index] : undefined);
+ var value = index < valsLength ? values[index] : undefined;
+ assignFunc(result, props[index], value);
}
return result;
}
@@ -3725,9 +3977,7 @@
if (isDeep) {
return buffer.slice();
}
- var Ctor = buffer.constructor,
- result = new Ctor(buffer.length);
-
+ var result = new buffer.constructor(buffer.length);
buffer.copy(result);
return result;
}
@@ -3740,24 +3990,36 @@
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
- var Ctor = arrayBuffer.constructor,
- result = new Ctor(arrayBuffer.byteLength),
- view = new Uint8Array(result);
-
- view.set(new Uint8Array(arrayBuffer));
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
return result;
}
+ /**
+ * Creates a clone of `dataView`.
+ *
+ * @private
+ * @param {Object} dataView The data view to clone.
+ * @param {boolean} [isDeep] Specify a deep clone.
+ * @returns {Object} Returns the cloned data view.
+ */
+ function cloneDataView(dataView, isDeep) {
+ var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
+ }
+
/**
* Creates a clone of `map`.
*
* @private
* @param {Object} map The map to clone.
+ * @param {Function} cloneFunc The function to clone values.
+ * @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned map.
*/
- function cloneMap(map) {
- var Ctor = map.constructor;
- return arrayReduce(mapToArray(map), addMapEntry, new Ctor);
+ function cloneMap(map, isDeep, cloneFunc) {
+ var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
+ return arrayReduce(array, addMapEntry, new map.constructor);
}
/**
@@ -3768,9 +4030,7 @@
* @returns {Object} Returns the cloned regexp.
*/
function cloneRegExp(regexp) {
- var Ctor = regexp.constructor,
- result = new Ctor(regexp.source, reFlags.exec(regexp));
-
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
result.lastIndex = regexp.lastIndex;
return result;
}
@@ -3780,11 +4040,13 @@
*
* @private
* @param {Object} set The set to clone.
+ * @param {Function} cloneFunc The function to clone values.
+ * @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned set.
*/
- function cloneSet(set) {
- var Ctor = set.constructor;
- return arrayReduce(setToArray(set), addSetEntry, new Ctor);
+ function cloneSet(set, isDeep, cloneFunc) {
+ var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
+ return arrayReduce(array, addSetEntry, new set.constructor);
}
/**
@@ -3795,7 +4057,7 @@
* @returns {Object} Returns the cloned symbol object.
*/
function cloneSymbol(symbol) {
- return Symbol ? Object(symbolValueOf.call(symbol)) : {};
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}
/**
@@ -3807,10 +4069,8 @@
* @returns {Object} Returns the cloned typed array.
*/
function cloneTypedArray(typedArray, isDeep) {
- var buffer = typedArray.buffer,
- Ctor = typedArray.constructor;
-
- return new Ctor(isDeep ? cloneArrayBuffer(buffer) : buffer, typedArray.byteOffset, typedArray.length);
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}
/**
@@ -3821,23 +4081,28 @@
* @param {Array|Object} args The provided arguments.
* @param {Array} partials The arguments to prepend to those provided.
* @param {Array} holders The `partials` placeholder indexes.
+ * @params {boolean} [isCurried] Specify composing for a curried function.
* @returns {Array} Returns the new array of composed arguments.
*/
- function composeArgs(args, partials, holders) {
- var holdersLength = holders.length,
- argsIndex = -1,
- argsLength = nativeMax(args.length - holdersLength, 0),
+ function composeArgs(args, partials, holders, isCurried) {
+ var argsIndex = -1,
+ argsLength = args.length,
+ holdersLength = holders.length,
leftIndex = -1,
leftLength = partials.length,
- result = Array(leftLength + argsLength);
+ rangeLength = nativeMax(argsLength - holdersLength, 0),
+ result = Array(leftLength + rangeLength),
+ isUncurried = !isCurried;
while (++leftIndex < leftLength) {
result[leftIndex] = partials[leftIndex];
}
while (++argsIndex < holdersLength) {
- result[holders[argsIndex]] = args[argsIndex];
+ if (isUncurried || argsIndex < argsLength) {
+ result[holders[argsIndex]] = args[argsIndex];
+ }
}
- while (argsLength--) {
+ while (rangeLength--) {
result[leftIndex++] = args[argsIndex++];
}
return result;
@@ -3851,18 +4116,21 @@
* @param {Array|Object} args The provided arguments.
* @param {Array} partials The arguments to append to those provided.
* @param {Array} holders The `partials` placeholder indexes.
+ * @params {boolean} [isCurried] Specify composing for a curried function.
* @returns {Array} Returns the new array of composed arguments.
*/
- function composeArgsRight(args, partials, holders) {
- var holdersIndex = -1,
+ function composeArgsRight(args, partials, holders, isCurried) {
+ var argsIndex = -1,
+ argsLength = args.length,
+ holdersIndex = -1,
holdersLength = holders.length,
- argsIndex = -1,
- argsLength = nativeMax(args.length - holdersLength, 0),
rightIndex = -1,
rightLength = partials.length,
- result = Array(argsLength + rightLength);
+ rangeLength = nativeMax(argsLength - holdersLength, 0),
+ result = Array(rangeLength + rightLength),
+ isUncurried = !isCurried;
- while (++argsIndex < argsLength) {
+ while (++argsIndex < rangeLength) {
result[argsIndex] = args[argsIndex];
}
var offset = argsIndex;
@@ -3870,7 +4138,9 @@
result[offset + rightIndex] = partials[rightIndex];
}
while (++holdersIndex < holdersLength) {
- result[offset + holders[holdersIndex]] = args[argsIndex++];
+ if (isUncurried || argsIndex < argsLength) {
+ result[offset + holders[holdersIndex]] = args[argsIndex++];
+ }
}
return result;
}
@@ -3899,7 +4169,7 @@
*
* @private
* @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
+ * @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @returns {Object} Returns `object`.
*/
@@ -3913,7 +4183,7 @@
*
* @private
* @param {Object} source The object to copy properties from.
- * @param {Array} props The property names to copy.
+ * @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @param {Function} [customizer] The function to customize copied values.
* @returns {Object} Returns `object`.
@@ -3925,8 +4195,11 @@
length = props.length;
while (++index < length) {
- var key = props[index],
- newValue = customizer ? customizer(object[key], source[key], key, object, source) : source[key];
+ var key = props[index];
+
+ var newValue = customizer
+ ? customizer(object[key], source[key], key, object, source)
+ : source[key];
assignValue(object, key, newValue);
}
@@ -3976,7 +4249,10 @@
customizer = length > 1 ? sources[length - 1] : undefined,
guard = length > 2 ? sources[2] : undefined;
- customizer = typeof customizer == 'function' ? (length--, customizer) : undefined;
+ customizer = typeof customizer == 'function'
+ ? (length--, customizer)
+ : undefined;
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
customizer = length < 3 ? undefined : customizer;
length = 1;
@@ -4022,7 +4298,7 @@
}
/**
- * Creates a base function for methods like `_.forIn`.
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
@@ -4051,7 +4327,8 @@
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {*} [thisArg] The `this` binding of `func`.
* @returns {Function} Returns the new wrapped function.
*/
@@ -4077,8 +4354,11 @@
return function(string) {
string = toString(string);
- var strSymbols = reHasComplexSymbol.test(string) ? stringToArray(string) : undefined,
- chr = strSymbols ? strSymbols[0] : string.charAt(0),
+ var strSymbols = reHasComplexSymbol.test(string)
+ ? stringToArray(string)
+ : undefined;
+
+ var chr = strSymbols ? strSymbols[0] : string.charAt(0),
trailing = strSymbols ? strSymbols.slice(1).join('') : string.slice(1);
return chr[methodName]() + trailing;
@@ -4108,8 +4388,8 @@
*/
function createCtorWrapper(Ctor) {
return function() {
- // Use a `switch` statement to work with class constructors.
- // See http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
+ // Use a `switch` statement to work with class constructors. See
+ // http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
// for more details.
var args = arguments;
switch (args.length) {
@@ -4136,7 +4416,8 @@
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {number} arity The arity of `func`.
* @returns {Function} Returns the new wrapped function.
*/
@@ -4145,10 +4426,9 @@
function wrapper() {
var length = arguments.length,
- index = length,
args = Array(length),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func,
- placeholder = lodash.placeholder || wrapper.placeholder;
+ index = length,
+ placeholder = getPlaceholder(wrapper);
while (index--) {
args[index] = arguments[index];
@@ -4158,9 +4438,13 @@
: replaceHolders(args, placeholder);
length -= holders.length;
- return length < arity
- ? createRecurryWrapper(func, bitmask, createHybridWrapper, placeholder, undefined, args, holders, undefined, undefined, arity - length)
- : apply(fn, this, args);
+ if (length < arity) {
+ return createRecurryWrapper(
+ func, bitmask, createHybridWrapper, wrapper.placeholder, undefined,
+ args, holders, undefined, undefined, arity - length);
+ }
+ var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
+ return apply(fn, this, args);
}
return wrapper;
}
@@ -4174,7 +4458,7 @@
*/
function createFlow(fromRight) {
return rest(function(funcs) {
- funcs = baseFlatten(funcs);
+ funcs = baseFlatten(funcs, 1);
var length = funcs.length,
index = length,
@@ -4199,17 +4483,23 @@
var funcName = getFuncName(func),
data = funcName == 'wrapper' ? getData(func) : undefined;
- if (data && isLaziable(data[0]) && data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) && !data[4].length && data[9] == 1) {
+ if (data && isLaziable(data[0]) &&
+ data[1] == (ARY_FLAG | CURRY_FLAG | PARTIAL_FLAG | REARG_FLAG) &&
+ !data[4].length && data[9] == 1
+ ) {
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
} else {
- wrapper = (func.length == 1 && isLaziable(func)) ? wrapper[funcName]() : wrapper.thru(func);
+ wrapper = (func.length == 1 && isLaziable(func))
+ ? wrapper[funcName]()
+ : wrapper.thru(func);
}
}
return function() {
var args = arguments,
value = args[0];
- if (wrapper && args.length == 1 && isArray(value) && value.length >= LARGE_ARRAY_SIZE) {
+ if (wrapper && args.length == 1 &&
+ isArray(value) && value.length >= LARGE_ARRAY_SIZE) {
return wrapper.plant(value).value();
}
var index = 0,
@@ -4229,11 +4519,14 @@
*
* @private
* @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to the new function.
+ * @param {Array} [partials] The arguments to prepend to those provided to
+ * the new function.
* @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [partialsRight] The arguments to append to those provided to the new function.
+ * @param {Array} [partialsRight] The arguments to append to those provided
+ * to the new function.
* @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
* @param {Array} [argPos] The argument positions of the new function.
* @param {number} [ary] The arity cap of `func`.
@@ -4244,8 +4537,7 @@
var isAry = bitmask & ARY_FLAG,
isBind = bitmask & BIND_FLAG,
isBindKey = bitmask & BIND_KEY_FLAG,
- isCurry = bitmask & CURRY_FLAG,
- isCurryRight = bitmask & CURRY_RIGHT_FLAG,
+ isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG),
isFlip = bitmask & FLIP_FLAG,
Ctor = isBindKey ? undefined : createCtorWrapper(func);
@@ -4257,30 +4549,34 @@
while (index--) {
args[index] = arguments[index];
}
+ if (isCurried) {
+ var placeholder = getPlaceholder(wrapper),
+ holdersCount = countHolders(args, placeholder);
+ }
if (partials) {
- args = composeArgs(args, partials, holders);
+ args = composeArgs(args, partials, holders, isCurried);
}
if (partialsRight) {
- args = composeArgsRight(args, partialsRight, holdersRight);
+ args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
}
- if (isCurry || isCurryRight) {
- var placeholder = lodash.placeholder || wrapper.placeholder,
- argsHolders = replaceHolders(args, placeholder);
-
- length -= argsHolders.length;
- if (length < arity) {
- return createRecurryWrapper(func, bitmask, createHybridWrapper, placeholder, thisArg, args, argsHolders, argPos, ary, arity - length);
- }
+ length -= holdersCount;
+ if (isCurried && length < arity) {
+ var newHolders = replaceHolders(args, placeholder);
+ return createRecurryWrapper(
+ func, bitmask, createHybridWrapper, wrapper.placeholder, thisArg,
+ args, newHolders, argPos, ary, arity - length
+ );
}
var thisBinding = isBind ? thisArg : this,
fn = isBindKey ? thisBinding[func] : func;
+ length = args.length;
if (argPos) {
args = reorder(args, argPos);
- } else if (isFlip && args.length > 1) {
+ } else if (isFlip && length > 1) {
args.reverse();
}
- if (isAry && ary < args.length) {
+ if (isAry && ary < length) {
args.length = ary;
}
if (this && this !== root && this instanceof wrapper) {
@@ -4314,7 +4610,7 @@
*/
function createOver(arrayFunc) {
return rest(function(iteratees) {
- iteratees = arrayMap(baseFlatten(iteratees), getIteratee());
+ iteratees = arrayMap(baseFlatten(iteratees, 1, isFlattenableIteratee), getIteratee());
return rest(function(args) {
var thisArg = this;
return arrayFunc(iteratees, function(iteratee) {
@@ -4329,37 +4625,34 @@
* is truncated if the number of characters exceeds `length`.
*
* @private
- * @param {string} string The string to create padding for.
- * @param {number} [length=0] The padding length.
+ * @param {number} length The padding length.
* @param {string} [chars=' '] The string used as padding.
* @returns {string} Returns the padding for `string`.
*/
- function createPadding(string, length, chars) {
- length = toInteger(length);
-
- var strLength = stringSize(string);
- if (!length || strLength >= length) {
- return '';
- }
- var padLength = length - strLength;
+ function createPadding(length, chars) {
chars = chars === undefined ? ' ' : (chars + '');
- var result = repeat(chars, nativeCeil(padLength / stringSize(chars)));
+ var charsLength = chars.length;
+ if (charsLength < 2) {
+ return charsLength ? baseRepeat(chars, length) : chars;
+ }
+ var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
return reHasComplexSymbol.test(chars)
- ? stringToArray(result).slice(0, padLength).join('')
- : result.slice(0, padLength);
+ ? stringToArray(result).slice(0, length).join('')
+ : result.slice(0, length);
}
/**
- * Creates a function that wraps `func` to invoke it with the optional `this`
- * binding of `thisArg` and the `partials` prepended to those provided to
- * the wrapper.
+ * Creates a function that wraps `func` to invoke it with the `this` binding
+ * of `thisArg` and `partials` prepended to the arguments it receives.
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to the new function.
+ * @param {Array} partials The arguments to prepend to those provided to
+ * the new function.
* @returns {Function} Returns the new wrapped function.
*/
function createPartialWrapper(func, bitmask, thisArg, partials) {
@@ -4416,11 +4709,13 @@
*
* @private
* @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper` for more details.
+ * @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
+ * for more details.
* @param {Function} wrapFunc The function to create the `func` wrapper.
- * @param {*} placeholder The placeholder to replace.
+ * @param {*} placeholder The placeholder value.
* @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to the new function.
+ * @param {Array} [partials] The arguments to prepend to those provided to
+ * the new function.
* @param {Array} [holders] The `partials` placeholder indexes.
* @param {Array} [argPos] The argument positions of the new function.
* @param {number} [ary] The arity cap of `func`.
@@ -4430,7 +4725,7 @@
function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
var isCurry = bitmask & CURRY_FLAG,
newArgPos = argPos ? copyArray(argPos) : undefined,
- newsHolders = isCurry ? holders : undefined,
+ newHolders = isCurry ? holders : undefined,
newHoldersRight = isCurry ? undefined : holders,
newPartials = isCurry ? partials : undefined,
newPartialsRight = isCurry ? undefined : partials;
@@ -4441,9 +4736,12 @@
if (!(bitmask & CURRY_BOUND_FLAG)) {
bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
}
- var newData = [func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, arity],
- result = wrapFunc.apply(undefined, newData);
+ var newData = [
+ func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
+ newHoldersRight, newArgPos, ary, arity
+ ];
+ var result = wrapFunc.apply(undefined, newData);
if (isLaziable(func)) {
setData(result, newData);
}
@@ -4532,8 +4830,12 @@
partials = holders = undefined;
}
- var data = isBindKey ? undefined : getData(func),
- newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity];
+ var data = isBindKey ? undefined : getData(func);
+
+ var newData = [
+ func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
+ argPos, ary, arity
+ ];
if (data) {
mergeData(newData, data);
@@ -4571,9 +4873,10 @@
* @param {Array} array The array to compare.
* @param {Array} other The other array to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `array` and `other` objects.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
function equalArrays(array, other, equalFunc, customizer, bitmask, stack) {
@@ -4614,12 +4917,16 @@
// Recursively compare arrays (susceptible to call stack limits).
if (isUnordered) {
if (!arraySome(other, function(othValue) {
- return arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack);
+ return arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack);
})) {
result = false;
break;
}
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {
+ } else if (!(
+ arrValue === othValue ||
+ equalFunc(arrValue, othValue, customizer, bitmask, stack)
+ )) {
result = false;
break;
}
@@ -4640,12 +4947,22 @@
* @param {Object} other The other object to compare.
* @param {string} tag The `toStringTag` of the objects to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
- function equalByTag(object, other, tag, equalFunc, customizer, bitmask) {
+ function equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {
switch (tag) {
+ case dataViewTag:
+ if ((object.byteLength != other.byteLength) ||
+ (object.byteOffset != other.byteOffset)) {
+ return false;
+ }
+ object = object.buffer;
+ other = other.buffer;
+
case arrayBufferTag:
if ((object.byteLength != other.byteLength) ||
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
@@ -4655,8 +4972,9 @@
case boolTag:
case dateTag:
- // Coerce dates and booleans to numbers, dates to milliseconds and booleans
- // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.
+ // Coerce dates and booleans to numbers, dates to milliseconds and
+ // booleans to `1` or `0` treating invalid dates coerced to `NaN` as
+ // not equal.
return +object == +other;
case errorTag:
@@ -4668,8 +4986,9 @@
case regexpTag:
case stringTag:
- // Coerce regexes to strings and treat strings primitives and string
- // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
+ // Coerce regexes to strings and treat strings, primitives and objects,
+ // as equal. See http://www.ecma-international.org/ecma-262/6.0/#sec-regexp.prototype.tostring
+ // for more details.
return object == (other + '');
case mapTag:
@@ -4679,12 +4998,24 @@
var isPartial = bitmask & PARTIAL_COMPARE_FLAG;
convert || (convert = setToArray);
+ if (object.size != other.size && !isPartial) {
+ return false;
+ }
+ // Assume cyclic values are equal.
+ var stacked = stack.get(object);
+ if (stacked) {
+ return stacked == other;
+ }
+ bitmask |= UNORDERED_COMPARE_FLAG;
+ stack.set(object, other);
+
// Recursively compare objects (susceptible to call stack limits).
- return (isPartial || object.size == other.size) &&
- equalFunc(convert(object), convert(other), customizer, bitmask | UNORDERED_COMPARE_FLAG);
+ return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);
case symbolTag:
- return !!Symbol && (symbolValueOf.call(object) == symbolValueOf.call(other));
+ if (symbolValueOf) {
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
+ }
}
return false;
}
@@ -4697,9 +5028,10 @@
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual` for more details.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
+ * @param {Function} customizer The function to customize comparisons.
+ * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
+ * for more details.
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalObjects(object, other, equalFunc, customizer, bitmask, stack) {
@@ -4764,6 +5096,29 @@
return result;
}
+ /**
+ * Creates an array of own enumerable property names and symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+ function getAllKeys(object) {
+ return baseGetAllKeys(object, keys, getSymbols);
+ }
+
+ /**
+ * Creates an array of own and inherited enumerable property names and
+ * symbols of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of property names and symbols.
+ */
+ function getAllKeysIn(object) {
+ return baseGetAllKeys(object, keysIn, getSymbolsIn);
+ }
+
/**
* Gets metadata for `func`.
*
@@ -4798,10 +5153,10 @@
}
/**
- * Gets the appropriate "iteratee" function. If the `_.iteratee` method is
- * customized this function returns the custom method, otherwise it returns
- * `baseIteratee`. If arguments are provided the chosen function is invoked
- * with them and its result is returned.
+ * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
+ * this function returns the custom method, otherwise it returns `baseIteratee`.
+ * If arguments are provided, the chosen function is invoked with them and
+ * its result is returned.
*
* @private
* @param {*} [value] The value to convert to an iteratee.
@@ -4817,8 +5172,9 @@
/**
* Gets the "length" property value of `object`.
*
- * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
- * that affects Safari on at least iOS 8.1-8.3 ARM64.
+ * **Note:** This function is used to avoid a
+ * [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
+ * Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
@@ -4852,19 +5208,68 @@
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
- var value = object == null ? undefined : object[key];
+ var value = object[key];
return isNative(value) ? value : undefined;
}
/**
- * Creates an array of the own symbol properties of `object`.
+ * Gets the argument placeholder value for `func`.
+ *
+ * @private
+ * @param {Function} func The function to inspect.
+ * @returns {*} Returns the placeholder value.
+ */
+ function getPlaceholder(func) {
+ var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
+ return object.placeholder;
+ }
+
+ /**
+ * Gets the `[[Prototype]]` of `value`.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {null|Object} Returns the `[[Prototype]]`.
+ */
+ function getPrototype(value) {
+ return nativeGetPrototype(Object(value));
+ }
+
+ /**
+ * Creates an array of the own enumerable symbol properties of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the array of symbols.
+ */
+ function getSymbols(object) {
+ // Coerce `object` to an object to avoid non-object errors in V8.
+ // See https://bugs.chromium.org/p/v8/issues/detail?id=3443 for more details.
+ return getOwnPropertySymbols(Object(object));
+ }
+
+ // Fallback for IE < 11.
+ if (!getOwnPropertySymbols) {
+ getSymbols = function() {
+ return [];
+ };
+ }
+
+ /**
+ * Creates an array of the own and inherited enumerable symbol properties
+ * of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
- var getSymbols = getOwnPropertySymbols || function() {
- return [];
+ var getSymbolsIn = !getOwnPropertySymbols ? getSymbols : function(object) {
+ var result = [];
+ while (object) {
+ arrayPush(result, getSymbols(object));
+ object = getPrototype(object);
+ }
+ return result;
};
/**
@@ -4878,18 +5283,23 @@
return objectToString.call(value);
}
- // Fallback for IE 11 providing `toStringTag` values for maps, sets, and weakmaps.
- if ((Map && getTag(new Map) != mapTag) ||
+ // Fallback for data views, maps, sets, and weak maps in IE 11,
+ // for data views in Edge, and promises in Node.js.
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
+ (Map && getTag(new Map) != mapTag) ||
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
(Set && getTag(new Set) != setTag) ||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
getTag = function(value) {
var result = objectToString.call(value),
- Ctor = result == objectTag ? value.constructor : null,
- ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
+ Ctor = result == objectTag ? value.constructor : undefined,
+ ctorString = Ctor ? toSource(Ctor) : undefined;
if (ctorString) {
switch (ctorString) {
+ case dataViewCtorString: return dataViewTag;
case mapCtorString: return mapTag;
+ case promiseCtorString: return promiseTag;
case setCtorString: return setTag;
case weakMapCtorString: return weakMapTag;
}
@@ -4936,23 +5346,25 @@
* @returns {boolean} Returns `true` if `path` exists, else `false`.
*/
function hasPath(object, path, hasFunc) {
- if (object == null) {
- return false;
- }
- var result = hasFunc(object, path);
- if (!result && !isKey(path)) {
- path = baseToPath(path);
- object = parent(object, path);
- if (object != null) {
- path = last(path);
- result = hasFunc(object, path);
+ path = isKey(path, object) ? [path] : baseCastPath(path);
+
+ var result,
+ index = -1,
+ length = path.length;
+
+ while (++index < length) {
+ var key = path[index];
+ if (!(result = object != null && hasFunc(object, key))) {
+ break;
}
+ object = object[key];
}
- var length = object ? object.length : undefined;
- return result || (
- !!length && isLength(length) && isIndex(path, length) &&
- (isArray(object) || isString(object) || isArguments(object))
- );
+ if (result) {
+ return result;
+ }
+ var length = object ? object.length : 0;
+ return !!length && isLength(length) && isIndex(key, length) &&
+ (isArray(object) || isString(object) || isArguments(object));
}
/**
@@ -4982,11 +5394,9 @@
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
- if (isPrototype(object)) {
- return {};
- }
- var Ctor = object.constructor;
- return baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
+ return (typeof object.constructor == 'function' && !isPrototype(object))
+ ? baseCreate(getPrototype(object))
+ : {};
}
/**
@@ -4998,10 +5408,11 @@
* @private
* @param {Object} object The object to clone.
* @param {string} tag The `toStringTag` of the object to clone.
+ * @param {Function} cloneFunc The function to clone values.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the initialized clone.
*/
- function initCloneByTag(object, tag, isDeep) {
+ function initCloneByTag(object, tag, cloneFunc, isDeep) {
var Ctor = object.constructor;
switch (tag) {
case arrayBufferTag:
@@ -5011,13 +5422,16 @@
case dateTag:
return new Ctor(+object);
+ case dataViewTag:
+ return cloneDataView(object, isDeep);
+
case float32Tag: case float64Tag:
case int8Tag: case int16Tag: case int32Tag:
case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
return cloneTypedArray(object, isDeep);
case mapTag:
- return cloneMap(object);
+ return cloneMap(object, isDeep, cloneFunc);
case numberTag:
case stringTag:
@@ -5027,7 +5441,7 @@
return cloneRegExp(object);
case setTag:
- return cloneSet(object);
+ return cloneSet(object, isDeep, cloneFunc);
case symbolTag:
return cloneSymbol(object);
@@ -5051,6 +5465,29 @@
return null;
}
+ /**
+ * Checks if `value` is a flattenable `arguments` object or array.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
+ */
+ function isFlattenable(value) {
+ return isArrayLikeObject(value) && (isArray(value) || isArguments(value));
+ }
+
+ /**
+ * Checks if `value` is a flattenable array and not a `_.matchesProperty`
+ * iteratee shorthand.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
+ */
+ function isFlattenableIteratee(value) {
+ return isArray(value) && !(value.length == 2 && !isFunction(value[0]));
+ }
+
/**
* Checks if the given arguments are from an iteratee call.
*
@@ -5058,7 +5495,8 @@
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
+ * else `false`.
*/
function isIterateeCall(value, index, object) {
if (!isObject(object)) {
@@ -5066,8 +5504,9 @@
}
var type = typeof index;
if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)) {
+ ? (isArrayLike(object) && isIndex(index, object.length))
+ : (type == 'string' && index in object)
+ ) {
return eq(object[index], value);
}
return false;
@@ -5082,11 +5521,12 @@
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
- if (typeof value == 'number') {
+ var type = typeof value;
+ if (type == 'number' || type == 'symbol') {
return true;
}
return !isArray(value) &&
- (reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+ (isSymbol(value) || reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
(object != null && value in Object(object)));
}
@@ -5100,7 +5540,7 @@
function isKeyable(value) {
var type = typeof value;
return type == 'number' || type == 'boolean' ||
- (type == 'string' && value !== '__proto__') || value == null;
+ (type == 'string' && value != '__proto__') || value == null;
}
/**
@@ -5108,7 +5548,8 @@
*
* @private
* @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
+ * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
+ * else `false`.
*/
function isLaziable(func) {
var funcName = getFuncName(func),
@@ -5150,15 +5591,35 @@
return value === value && !isObject(value);
}
+ /**
+ * A specialized version of `matchesProperty` for source values suitable
+ * for strict equality comparisons, i.e. `===`.
+ *
+ * @private
+ * @param {string} key The key of the property to get.
+ * @param {*} srcValue The value to match.
+ * @returns {Function} Returns the new function.
+ */
+ function matchesStrictComparable(key, srcValue) {
+ return function(object) {
+ if (object == null) {
+ return false;
+ }
+ return object[key] === srcValue &&
+ (srcValue !== undefined || (key in Object(object)));
+ };
+ }
+
/**
* Merges the function metadata of `source` into `data`.
*
* Merging metadata reduces the number of wrappers used to invoke a function.
* This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
- * may be applied regardless of execution order. Methods like `_.ary` and `_.rearg`
- * modify function arguments, making the order in which they are executed important,
- * preventing the merging of metadata. However, we make an exception for a safe
- * combined case where curried functions have `_.ary` and or `_.rearg` applied.
+ * may be applied regardless of execution order. Methods like `_.ary` and
+ * `_.rearg` modify function arguments, making the order in which they are
+ * executed important, preventing the merging of metadata. However, we make
+ * an exception for a safe combined case where curried functions have `_.ary`
+ * and or `_.rearg` applied.
*
* @private
* @param {Array} data The destination metadata.
@@ -5172,9 +5633,9 @@
isCommon = newBitmask < (BIND_FLAG | BIND_KEY_FLAG | ARY_FLAG);
var isCombo =
- (srcBitmask == ARY_FLAG && (bitmask == CURRY_FLAG)) ||
- (srcBitmask == ARY_FLAG && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) ||
- (srcBitmask == (ARY_FLAG | REARG_FLAG) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG));
+ ((srcBitmask == ARY_FLAG) && (bitmask == CURRY_FLAG)) ||
+ ((srcBitmask == ARY_FLAG) && (bitmask == REARG_FLAG) && (data[7].length <= source[8])) ||
+ ((srcBitmask == (ARY_FLAG | REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == CURRY_FLAG));
// Exit early if metadata can't be merged.
if (!(isCommon || isCombo)) {
@@ -5184,7 +5645,7 @@
if (srcBitmask & BIND_FLAG) {
data[2] = source[2];
// Set when currying a bound function.
- newBitmask |= (bitmask & BIND_FLAG) ? 0 : CURRY_BOUND_FLAG;
+ newBitmask |= bitmask & BIND_FLAG ? 0 : CURRY_BOUND_FLAG;
}
// Compose partial arguments.
var value = source[3];
@@ -5229,13 +5690,13 @@
* @param {string} key The key of the property to merge.
* @param {Object} object The parent object of `objValue`.
* @param {Object} source The parent object of `srcValue`.
- * @param {Object} [stack] Tracks traversed source values and their merged counterparts.
+ * @param {Object} [stack] Tracks traversed source values and their merged
+ * counterparts.
* @returns {*} Returns the value to assign.
*/
function mergeDefaults(objValue, srcValue, key, object, source, stack) {
if (isObject(objValue) && isObject(srcValue)) {
- stack.set(srcValue, objValue);
- baseMerge(objValue, srcValue, undefined, mergeDefaults, stack);
+ baseMerge(objValue, srcValue, undefined, mergeDefaults, stack.set(srcValue, objValue));
}
return objValue;
}
@@ -5249,7 +5710,7 @@
* @returns {*} Returns the parent value.
*/
function parent(object, path) {
- return path.length == 1 ? object : get(object, baseSlice(path, 0, -1));
+ return path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));
}
/**
@@ -5278,8 +5739,9 @@
* Sets metadata for `func`.
*
* **Note:** If this function becomes hot, i.e. is invoked a lot in a short
- * period of time, it will trip its breaker and transition to an identity function
- * to avoid garbage collection pauses in V8. See [V8 issue 2070](https://code.google.com/p/v8/issues/detail?id=2070)
+ * period of time, it will trip its breaker and transition to an identity
+ * function to avoid garbage collection pauses in V8. See
+ * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
* for more details.
*
* @private
@@ -5314,34 +5776,31 @@
* @param {string} string The string to convert.
* @returns {Array} Returns the property path array.
*/
- function stringToPath(string) {
+ var stringToPath = memoize(function(string) {
var result = [];
toString(string).replace(rePropName, function(match, number, quote, string) {
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
});
return result;
- }
-
- /**
- * Converts `value` to an array-like object if it's not one.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {Array} Returns the array-like object.
- */
- function toArrayLikeObject(value) {
- return isArrayLikeObject(value) ? value : [];
- }
+ });
/**
- * Converts `value` to a function if it's not one.
+ * Converts `func` to its source code.
*
* @private
- * @param {*} value The value to process.
- * @returns {Function} Returns the function.
+ * @param {Function} func The function to process.
+ * @returns {string} Returns the source code.
*/
- function toFunction(value) {
- return typeof value == 'function' ? value : identity;
+ function toSource(func) {
+ if (func != null) {
+ try {
+ return funcToString.call(func);
+ } catch (e) {}
+ try {
+ return (func + '');
+ } catch (e) {}
+ }
+ return '';
}
/**
@@ -5371,9 +5830,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to process.
- * @param {number} [size=0] The length of each chunk.
+ * @param {number} [size=1] The length of each chunk
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the new array containing chunks.
* @example
*
@@ -5383,19 +5844,22 @@
* _.chunk(['a', 'b', 'c', 'd'], 3);
* // => [['a', 'b', 'c'], ['d']]
*/
- function chunk(array, size) {
- size = nativeMax(toInteger(size), 0);
-
+ function chunk(array, size, guard) {
+ if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
+ size = 1;
+ } else {
+ size = nativeMax(toInteger(size), 0);
+ }
var length = array ? array.length : 0;
if (!length || size < 1) {
return [];
}
var index = 0,
- resIndex = -1,
+ resIndex = 0,
result = Array(nativeCeil(length / size));
while (index < length) {
- result[++resIndex] = baseSlice(array, index, (index += size));
+ result[resIndex++] = baseSlice(array, index, (index += size));
}
return result;
}
@@ -5406,6 +5870,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to compact.
* @returns {Array} Returns the new array of filtered values.
@@ -5417,13 +5882,13 @@
function compact(array) {
var index = -1,
length = array ? array.length : 0,
- resIndex = -1,
+ resIndex = 0,
result = [];
while (++index < length) {
var value = array[index];
if (value) {
- result[++resIndex] = value;
+ result[resIndex++] = value;
}
}
return result;
@@ -5435,6 +5900,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to concatenate.
* @param {...*} [values] The values to concatenate.
@@ -5450,21 +5916,29 @@
* console.log(array);
* // => [1]
*/
- var concat = rest(function(array, values) {
- if (!isArray(array)) {
- array = array == null ? [] : [Object(array)];
+ function concat() {
+ var length = arguments.length,
+ array = castArray(arguments[0]);
+
+ if (length < 2) {
+ return length ? copyArray(array) : [];
}
- values = baseFlatten(values);
- return arrayConcat(array, values);
- });
+ var args = Array(length - 1);
+ while (length--) {
+ args[length - 1] = arguments[length];
+ }
+ return arrayConcat(array, baseFlatten(args, 1));
+ }
/**
- * Creates an array of unique `array` values not included in the other
- * given arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
+ * Creates an array of unique `array` values not included in the other given
+ * arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * for equality comparisons. The order of result values is determined by the
+ * order they occur in the first array.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to inspect.
* @param {...Array} [values] The values to exclude.
@@ -5476,21 +5950,24 @@
*/
var difference = rest(function(array, values) {
return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, false, true))
+ ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
: [];
});
/**
* This method is like `_.difference` except that it accepts `iteratee` which
* is invoked for each element of `array` and `values` to generate the criterion
- * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
+ * by which they're compared. Result values are chosen from the first array.
+ * The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {...Array} [values] The values to exclude.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Array} Returns the new array of filtered values.
* @example
*
@@ -5507,17 +5984,19 @@
iteratee = undefined;
}
return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, false, true), getIteratee(iteratee))
+ ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee))
: [];
});
/**
* This method is like `_.difference` except that it accepts `comparator`
- * which is invoked to compare elements of `array` to `values`. The comparator
- * is invoked with two arguments: (arrVal, othVal).
+ * which is invoked to compare elements of `array` to `values`. Result values
+ * are chosen from the first array. The comparator is invoked with two arguments:
+ * (arrVal, othVal).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {...Array} [values] The values to exclude.
@@ -5536,7 +6015,7 @@
comparator = undefined;
}
return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, false, true), undefined, comparator)
+ ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
: [];
});
@@ -5545,10 +6024,11 @@
*
* @static
* @memberOf _
+ * @since 0.5.0
* @category Array
* @param {Array} array The array to query.
* @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -5578,10 +6058,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
* @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -5614,9 +6095,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -5654,9 +6137,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -5695,6 +6180,7 @@
*
* @static
* @memberOf _
+ * @since 3.2.0
* @category Array
* @param {Array} array The array to fill.
* @param {*} value The value to fill `array` with.
@@ -5733,9 +6219,11 @@
*
* @static
* @memberOf _
+ * @since 1.1.0
* @category Array
* @param {Array} array The array to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {number} Returns the index of the found element, else `-1`.
* @example
*
@@ -5772,9 +6260,11 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Array
* @param {Array} array The array to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {number} Returns the index of the found element, else `-1`.
* @example
*
@@ -5806,39 +6296,70 @@
}
/**
- * Flattens `array` a single level.
+ * Flattens `array` a single level deep.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
- * _.flatten([1, [2, 3, [4]]]);
- * // => [1, 2, 3, [4]]
+ * _.flatten([1, [2, [3, [4]], 5]]);
+ * // => [1, 2, [3, [4]], 5]
*/
function flatten(array) {
var length = array ? array.length : 0;
- return length ? baseFlatten(array) : [];
+ return length ? baseFlatten(array, 1) : [];
}
/**
- * This method is like `_.flatten` except that it recursively flattens `array`.
+ * Recursively flattens `array`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
- * @param {Array} array The array to recursively flatten.
+ * @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
- * _.flattenDeep([1, [2, 3, [4]]]);
- * // => [1, 2, 3, 4]
+ * _.flattenDeep([1, [2, [3, [4]], 5]]);
+ * // => [1, 2, 3, 4, 5]
*/
function flattenDeep(array) {
var length = array ? array.length : 0;
- return length ? baseFlatten(array, true) : [];
+ return length ? baseFlatten(array, INFINITY) : [];
+ }
+
+ /**
+ * Recursively flatten `array` up to `depth` times.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.4.0
+ * @category Array
+ * @param {Array} array The array to flatten.
+ * @param {number} [depth=1] The maximum recursion depth.
+ * @returns {Array} Returns the new flattened array.
+ * @example
+ *
+ * var array = [1, [2, [3, [4]], 5]];
+ *
+ * _.flattenDepth(array, 1);
+ * // => [1, 2, [3, [4]], 5]
+ *
+ * _.flattenDepth(array, 2);
+ * // => [1, 2, 3, [4], 5]
+ */
+ function flattenDepth(array, depth) {
+ var length = array ? array.length : 0;
+ if (!length) {
+ return [];
+ }
+ depth = depth === undefined ? 1 : toInteger(depth);
+ return baseFlatten(array, depth);
}
/**
@@ -5847,6 +6368,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} pairs The key-value pairs.
* @returns {Object} Returns the new object.
@@ -5872,6 +6394,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @alias first
* @category Array
* @param {Array} array The array to query.
@@ -5891,11 +6414,12 @@
/**
* Gets the index at which the first occurrence of `value` is found in `array`
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the offset
- * from the end of `array`.
+ * for equality comparisons. If `fromIndex` is negative, it's used as the
+ * offset from the end of `array`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value to search for.
@@ -5927,6 +6451,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {Array} Returns the slice of `array`.
@@ -5942,20 +6467,22 @@
/**
* Creates an array of unique values that are included in all given arrays
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons.
+ * for equality comparisons. The order of result values is determined by the
+ * order they occur in the first array.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of shared values.
+ * @returns {Array} Returns the new array of intersecting values.
* @example
*
* _.intersection([2, 1], [4, 2], [1, 2]);
* // => [2]
*/
var intersection = rest(function(arrays) {
- var mapped = arrayMap(arrays, toArrayLikeObject);
+ var mapped = arrayMap(arrays, baseCastArrayLikeObject);
return (mapped.length && mapped[0] === arrays[0])
? baseIntersection(mapped)
: [];
@@ -5964,14 +6491,17 @@
/**
* This method is like `_.intersection` except that it accepts `iteratee`
* which is invoked for each element of each `arrays` to generate the criterion
- * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
+ * by which they're compared. Result values are chosen from the first array.
+ * The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of shared values.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
+ * @returns {Array} Returns the new array of intersecting values.
* @example
*
* _.intersectionBy([2.1, 1.2], [4.3, 2.4], Math.floor);
@@ -5983,7 +6513,7 @@
*/
var intersectionBy = rest(function(arrays) {
var iteratee = last(arrays),
- mapped = arrayMap(arrays, toArrayLikeObject);
+ mapped = arrayMap(arrays, baseCastArrayLikeObject);
if (iteratee === last(mapped)) {
iteratee = undefined;
@@ -5997,15 +6527,17 @@
/**
* This method is like `_.intersection` except that it accepts `comparator`
- * which is invoked to compare elements of `arrays`. The comparator is invoked
- * with two arguments: (arrVal, othVal).
+ * which is invoked to compare elements of `arrays`. Result values are chosen
+ * from the first array. The comparator is invoked with two arguments:
+ * (arrVal, othVal).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
* @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
+ * @returns {Array} Returns the new array of intersecting values.
* @example
*
* var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
@@ -6016,7 +6548,7 @@
*/
var intersectionWith = rest(function(arrays) {
var comparator = last(arrays),
- mapped = arrayMap(arrays, toArrayLikeObject);
+ mapped = arrayMap(arrays, baseCastArrayLikeObject);
if (comparator === last(mapped)) {
comparator = undefined;
@@ -6033,6 +6565,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to convert.
* @param {string} [separator=','] The element separator.
@@ -6051,6 +6584,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {*} Returns the last element of `array`.
@@ -6070,6 +6604,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value to search for.
@@ -6092,7 +6627,11 @@
var index = length;
if (fromIndex !== undefined) {
index = toInteger(fromIndex);
- index = (index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1)) + 1;
+ index = (
+ index < 0
+ ? nativeMax(length + index, 0)
+ : nativeMin(index, length - 1)
+ ) + 1;
}
if (value !== value) {
return indexOfNaN(array, index, true);
@@ -6110,10 +6649,12 @@
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* for equality comparisons.
*
- * **Note:** Unlike `_.without`, this method mutates `array`.
+ * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
+ * to remove elements from an array by predicate.
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Array
* @param {Array} array The array to modify.
* @param {...*} [values] The values to remove.
@@ -6135,6 +6676,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to modify.
* @param {Array} values The values to remove.
@@ -6156,16 +6698,18 @@
/**
* This method is like `_.pullAll` except that it accepts `iteratee` which is
* invoked for each element of `array` and `values` to generate the criterion
- * by which uniqueness is computed. The iteratee is invoked with one argument: (value).
+ * by which they're compared. The iteratee is invoked with one argument: (value).
*
* **Note:** Unlike `_.differenceBy`, this method mutates `array`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to modify.
* @param {Array} values The values to remove.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Array} Returns `array`.
* @example
*
@@ -6177,7 +6721,36 @@
*/
function pullAllBy(array, values, iteratee) {
return (array && array.length && values && values.length)
- ? basePullAllBy(array, values, getIteratee(iteratee))
+ ? basePullAll(array, values, getIteratee(iteratee))
+ : array;
+ }
+
+ /**
+ * This method is like `_.pullAll` except that it accepts `comparator` which
+ * is invoked to compare elements of `array` to `values`. The comparator is
+ * invoked with two arguments: (arrVal, othVal).
+ *
+ * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.6.0
+ * @category Array
+ * @param {Array} array The array to modify.
+ * @param {Array} values The values to remove.
+ * @param {Function} [comparator] The comparator invoked per element.
+ * @returns {Array} Returns `array`.
+ * @example
+ *
+ * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
+ *
+ * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
+ * console.log(array);
+ * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
+ */
+ function pullAllWith(array, values, comparator) {
+ return (array && array.length && values && values.length)
+ ? basePullAll(array, values, undefined, comparator)
: array;
}
@@ -6189,6 +6762,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to modify.
* @param {...(number|number[])} [indexes] The indexes of elements to remove,
@@ -6206,7 +6780,7 @@
* // => [10, 20]
*/
var pullAt = rest(function(array, indexes) {
- indexes = arrayMap(baseFlatten(indexes), String);
+ indexes = arrayMap(baseFlatten(indexes, 1), String);
var result = baseAt(array, indexes);
basePullAt(array, indexes.sort(compareAscending));
@@ -6215,16 +6789,19 @@
/**
* Removes all elements from `array` that `predicate` returns truthy for
- * and returns an array of the removed elements. The predicate is invoked with
- * three arguments: (value, index, array).
+ * and returns an array of the removed elements. The predicate is invoked
+ * with three arguments: (value, index, array).
*
- * **Note:** Unlike `_.filter`, this method mutates `array`.
+ * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
+ * to pull elements from an array by value.
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Array
* @param {Array} array The array to modify.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new array of removed elements.
* @example
*
@@ -6269,7 +6846,9 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
+ * @param {Array} array The array to modify.
* @returns {Array} Returns `array`.
* @example
*
@@ -6288,11 +6867,13 @@
/**
* Creates a slice of `array` from `start` up to, but not including, `end`.
*
- * **Note:** This method is used instead of [`Array#slice`](https://mdn.io/Array/slice)
- * to ensure dense arrays are returned.
+ * **Note:** This method is used instead of
+ * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
+ * returned.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to slice.
* @param {number} [start=0] The start position.
@@ -6316,15 +6897,17 @@
}
/**
- * Uses a binary search to determine the lowest index at which `value` should
- * be inserted into `array` in order to maintain its sort order.
+ * Uses a binary search to determine the lowest index at which `value`
+ * should be inserted into `array` in order to maintain its sort order.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
* @example
*
* _.sortedIndex([30, 50], 40);
@@ -6344,11 +6927,14 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
* @example
*
* var dict = { 'thirty': 30, 'forty': 40, 'fifty': 50 };
@@ -6370,6 +6956,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value to search for.
@@ -6397,10 +6984,12 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
* @example
*
* _.sortedLastIndex([4, 5], 4);
@@ -6417,11 +7006,14 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted into `array`.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
+ * @returns {number} Returns the index at which `value` should be inserted
+ * into `array`.
* @example
*
* // The `_.property` iteratee shorthand.
@@ -6438,6 +7030,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to search.
* @param {*} value The value to search for.
@@ -6464,6 +7057,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @returns {Array} Returns the new duplicate free array.
@@ -6484,6 +7078,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {Function} [iteratee] The iteratee invoked per element.
@@ -6504,6 +7099,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to query.
* @returns {Array} Returns the slice of `array`.
@@ -6521,10 +7117,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -6553,10 +7150,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
* @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -6584,14 +7182,16 @@
/**
* Creates a slice of `array` with elements taken from the end. Elements are
- * taken until `predicate` returns falsey. The predicate is invoked with three
- * arguments: (value, index, array).
+ * taken until `predicate` returns falsey. The predicate is invoked with
+ * three arguments: (value, index, array).
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -6629,9 +7229,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -6669,6 +7271,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
* @returns {Array} Returns the new array of combined values.
@@ -6678,19 +7281,22 @@
* // => [2, 1, 4]
*/
var union = rest(function(arrays) {
- return baseUniq(baseFlatten(arrays, false, true));
+ return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
});
/**
* This method is like `_.union` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by which
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
+ * invoked for each element of each `arrays` to generate the criterion by
+ * which uniqueness is computed. The iteratee is invoked with one argument:
+ * (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Array} Returns the new array of combined values.
* @example
*
@@ -6706,7 +7312,7 @@
if (isArrayLikeObject(iteratee)) {
iteratee = undefined;
}
- return baseUniq(baseFlatten(arrays, false, true), getIteratee(iteratee));
+ return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee));
});
/**
@@ -6716,6 +7322,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
* @param {Function} [comparator] The comparator invoked per element.
@@ -6733,17 +7340,18 @@
if (isArrayLikeObject(comparator)) {
comparator = undefined;
}
- return baseUniq(baseFlatten(arrays, false, true), undefined, comparator);
+ return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
});
/**
* Creates a duplicate-free version of an array, using
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
- * for equality comparisons, in which only the first occurrence of each element
- * is kept.
+ * for equality comparisons, in which only the first occurrence of each
+ * element is kept.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to inspect.
* @returns {Array} Returns the new duplicate free array.
@@ -6765,9 +7373,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Array} Returns the new duplicate free array.
* @example
*
@@ -6791,6 +7401,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {Function} [comparator] The comparator invoked per element.
@@ -6815,6 +7426,7 @@
*
* @static
* @memberOf _
+ * @since 1.2.0
* @category Array
* @param {Array} array The array of grouped elements to process.
* @returns {Array} Returns the new array of regrouped elements.
@@ -6849,9 +7461,11 @@
*
* @static
* @memberOf _
+ * @since 3.8.0
* @category Array
* @param {Array} array The array of grouped elements to process.
- * @param {Function} [iteratee=_.identity] The function to combine regrouped values.
+ * @param {Function} [iteratee=_.identity] The function to combine
+ * regrouped values.
* @returns {Array} Returns the new array of regrouped elements.
* @example
*
@@ -6881,6 +7495,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {Array} array The array to filter.
* @param {...*} [values] The values to exclude.
@@ -6897,11 +7512,14 @@
});
/**
- * Creates an array of unique values that is the [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
- * of the given arrays.
+ * Creates an array of unique values that is the
+ * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
+ * of the given arrays. The order of result values is determined by the order
+ * they occur in the arrays.
*
* @static
* @memberOf _
+ * @since 2.4.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
* @returns {Array} Returns the new array of values.
@@ -6916,14 +7534,17 @@
/**
* This method is like `_.xor` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by which
- * uniqueness is computed. The iteratee is invoked with one argument: (value).
+ * invoked for each element of each `arrays` to generate the criterion by
+ * which by which they're compared. The iteratee is invoked with one argument:
+ * (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Array} Returns the new array of values.
* @example
*
@@ -6949,6 +7570,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
* @param {Function} [comparator] The comparator invoked per element.
@@ -6970,12 +7592,13 @@
});
/**
- * Creates an array of grouped elements, the first of which contains the first
- * elements of the given arrays, the second of which contains the second elements
- * of the given arrays, and so on.
+ * Creates an array of grouped elements, the first of which contains the
+ * first elements of the given arrays, the second of which contains the
+ * second elements of the given arrays, and so on.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Array
* @param {...Array} [arrays] The arrays to process.
* @returns {Array} Returns the new array of grouped elements.
@@ -6988,12 +7611,13 @@
/**
* This method is like `_.fromPairs` except that it accepts two arrays,
- * one of property names and one of corresponding values.
+ * one of property identifiers and one of corresponding values.
*
* @static
* @memberOf _
+ * @since 0.4.0
* @category Array
- * @param {Array} [props=[]] The property names.
+ * @param {Array} [props=[]] The property identifiers.
* @param {Array} [values=[]] The property values.
* @returns {Object} Returns the new object.
* @example
@@ -7010,8 +7634,9 @@
*
* @static
* @memberOf _
+ * @since 4.1.0
* @category Array
- * @param {Array} [props=[]] The property names.
+ * @param {Array} [props=[]] The property identifiers.
* @param {Array} [values=[]] The property values.
* @returns {Object} Returns the new object.
* @example
@@ -7030,6 +7655,7 @@
*
* @static
* @memberOf _
+ * @since 3.8.0
* @category Array
* @param {...Array} [arrays] The arrays to process.
* @param {Function} [iteratee=_.identity] The function to combine grouped values.
@@ -7052,11 +7678,13 @@
/*------------------------------------------------------------------------*/
/**
- * Creates a `lodash` object that wraps `value` with explicit method chaining enabled.
- * The result of such method chaining must be unwrapped with `_#value`.
+ * Creates a `lodash` wrapper instance that wraps `value` with explicit method
+ * chain sequences enabled. The result of such sequences must be unwrapped
+ * with `_#value`.
*
* @static
* @memberOf _
+ * @since 1.3.0
* @category Seq
* @param {*} value The value to wrap.
* @returns {Object} Returns the new `lodash` wrapper instance.
@@ -7087,10 +7715,11 @@
/**
* This method invokes `interceptor` and returns `value`. The interceptor
* is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain in order to modify intermediate results.
+ * "tap into" a method chain sequence in order to modify intermediate results.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Seq
* @param {*} value The value to provide to `interceptor`.
* @param {Function} interceptor The function to invoke.
@@ -7114,10 +7743,11 @@
/**
* This method is like `_.tap` except that it returns the result of `interceptor`.
* The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain.
+ * results in a method chain sequence.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Seq
* @param {*} value The value to provide to `interceptor`.
* @param {Function} interceptor The function to invoke.
@@ -7142,6 +7772,7 @@
*
* @name at
* @memberOf _
+ * @since 1.0.0
* @category Seq
* @param {...(string|string[])} [paths] The property paths of elements to pick,
* specified individually or in arrays.
@@ -7157,17 +7788,22 @@
* // => ['a', 'c']
*/
var wrapperAt = rest(function(paths) {
- paths = baseFlatten(paths);
+ paths = baseFlatten(paths, 1);
var length = paths.length,
start = length ? paths[0] : 0,
value = this.__wrapped__,
interceptor = function(object) { return baseAt(object, paths); };
- if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) {
+ if (length > 1 || this.__actions__.length ||
+ !(value instanceof LazyWrapper) || !isIndex(start)) {
return this.thru(interceptor);
}
value = value.slice(start, +start + (length ? 1 : 0));
- value.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
+ value.__actions__.push({
+ 'func': thru,
+ 'args': [interceptor],
+ 'thisArg': undefined
+ });
return new LodashWrapper(value, this.__chain__).thru(function(array) {
if (length && !array.length) {
array.push(undefined);
@@ -7177,10 +7813,11 @@
});
/**
- * Enables explicit method chaining on the wrapper object.
+ * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
*
* @name chain
* @memberOf _
+ * @since 0.1.0
* @category Seq
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
@@ -7207,10 +7844,11 @@
}
/**
- * Executes the chained sequence and returns the wrapped result.
+ * Executes the chain sequence and returns the wrapped result.
*
* @name commit
* @memberOf _
+ * @since 3.2.0
* @category Seq
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
@@ -7235,33 +7873,13 @@
return new LodashWrapper(this.value(), this.__chain__);
}
- /**
- * This method is the wrapper version of `_.flatMap`.
- *
- * @name flatMap
- * @memberOf _
- * @category Seq
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function duplicate(n) {
- * return [n, n];
- * }
- *
- * _([1, 2]).flatMap(duplicate).value();
- * // => [1, 1, 2, 2]
- */
- function wrapperFlatMap(iteratee) {
- return this.map(iteratee).flatten();
- }
-
/**
* Gets the next value on a wrapped object following the
* [iterator protocol](https://mdn.io/iteration_protocols#iterator).
*
* @name next
* @memberOf _
+ * @since 4.0.0
* @category Seq
* @returns {Object} Returns the next iterator value.
* @example
@@ -7292,6 +7910,7 @@
*
* @name Symbol.iterator
* @memberOf _
+ * @since 4.0.0
* @category Seq
* @returns {Object} Returns the wrapper object.
* @example
@@ -7309,10 +7928,11 @@
}
/**
- * Creates a clone of the chained sequence planting `value` as the wrapped value.
+ * Creates a clone of the chain sequence planting `value` as the wrapped value.
*
* @name plant
* @memberOf _
+ * @since 3.2.0
* @category Seq
* @param {*} value The value to plant.
* @returns {Object} Returns the new `lodash` wrapper instance.
@@ -7358,6 +7978,7 @@
*
* @name reverse
* @memberOf _
+ * @since 0.1.0
* @category Seq
* @returns {Object} Returns the new `lodash` wrapper instance.
* @example
@@ -7378,17 +7999,22 @@
wrapped = new LazyWrapper(this);
}
wrapped = wrapped.reverse();
- wrapped.__actions__.push({ 'func': thru, 'args': [reverse], 'thisArg': undefined });
+ wrapped.__actions__.push({
+ 'func': thru,
+ 'args': [reverse],
+ 'thisArg': undefined
+ });
return new LodashWrapper(wrapped, this.__chain__);
}
return this.thru(reverse);
}
/**
- * Executes the chained sequence to extract the unwrapped value.
+ * Executes the chain sequence to resolve the unwrapped value.
*
* @name value
* @memberOf _
+ * @since 0.1.0
* @alias toJSON, valueOf
* @category Seq
* @returns {*} Returns the resolved unwrapped value.
@@ -7405,15 +8031,17 @@
/**
* Creates an object composed of keys generated from the results of running
- * each element of `collection` through `iteratee`. The corresponding value
- * of each key is the number of times the key was returned by `iteratee`.
- * The iteratee is invoked with one argument: (value).
+ * each element of `collection` thru `iteratee`. The corresponding value of
+ * each key is the number of times the key was returned by `iteratee`. The
+ * iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 0.5.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee to transform keys.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
@@ -7434,19 +8062,22 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+ * @returns {boolean} Returns `true` if all elements pass the predicate check,
+ * else `false`.
* @example
*
* _.every([true, 1, null, 'yes'], Boolean);
* // => false
*
* var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false }
+ * { 'user': 'barney', 'age': 36, 'active': false },
+ * { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
* // The `_.matches` iteratee shorthand.
@@ -7471,14 +8102,16 @@
/**
* Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three arguments:
- * (value, index|key, collection).
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new filtered array.
* @example
*
@@ -7509,14 +8142,16 @@
/**
* Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three arguments:
- * (value, index|key, collection).
+ * `predicate` returns truthy for. The predicate is invoked with three
+ * arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {*} Returns the matched element, else `undefined`.
* @example
*
@@ -7556,9 +8191,11 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Collection
* @param {Array|Object} collection The collection to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {*} Returns the matched element, else `undefined`.
* @example
*
@@ -7577,15 +8214,17 @@
}
/**
- * Creates an array of flattened values by running each element in `collection`
- * through `iteratee` and concating its result to the other mapped values.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
+ * Creates a flattened array of values by running each element in `collection`
+ * thru `iteratee` and flattening the mapped results. The iteratee is invoked
+ * with three arguments: (value, index|key, collection).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new flattened array.
* @example
*
@@ -7597,7 +8236,59 @@
* // => [1, 1, 2, 2]
*/
function flatMap(collection, iteratee) {
- return baseFlatten(map(collection, iteratee));
+ return baseFlatten(map(collection, iteratee), 1);
+ }
+
+ /**
+ * This method is like `_.flatMap` except that it recursively flattens the
+ * mapped results.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
+ * @returns {Array} Returns the new flattened array.
+ * @example
+ *
+ * function duplicate(n) {
+ * return [[[n, n]]];
+ * }
+ *
+ * _.flatMapDeep([1, 2], duplicate);
+ * // => [1, 1, 2, 2]
+ */
+ function flatMapDeep(collection, iteratee) {
+ return baseFlatten(map(collection, iteratee), INFINITY);
+ }
+
+ /**
+ * This method is like `_.flatMap` except that it recursively flattens the
+ * mapped results up to `depth` times.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Collection
+ * @param {Array|Object} collection The collection to iterate over.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
+ * @param {number} [depth=1] The maximum recursion depth.
+ * @returns {Array} Returns the new flattened array.
+ * @example
+ *
+ * function duplicate(n) {
+ * return [[[n, n]]];
+ * }
+ *
+ * _.flatMapDepth([1, 2], duplicate, 2);
+ * // => [[1, 1], [2, 2]]
+ */
+ function flatMapDepth(collection, iteratee, depth) {
+ depth = depth === undefined ? 1 : toInteger(depth);
+ return baseFlatten(map(collection, iteratee), depth);
}
/**
@@ -7605,12 +8296,13 @@
* The iteratee is invoked with three arguments: (value, index|key, collection).
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
- * **Note:** As with other "Collections" methods, objects with a "length" property
- * are iterated like arrays. To avoid this behavior use `_.forIn` or `_.forOwn`
- * for object iteration.
+ * **Note:** As with other "Collections" methods, objects with a "length"
+ * property are iterated like arrays. To avoid this behavior use `_.forIn`
+ * or `_.forOwn` for object iteration.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @alias each
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
@@ -7621,17 +8313,17 @@
* _([1, 2]).forEach(function(value) {
* console.log(value);
* });
- * // => logs `1` then `2`
+ * // => Logs `1` then `2`.
*
* _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
* console.log(key);
* });
- * // => logs 'a' then 'b' (iteration order is not guaranteed)
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forEach(collection, iteratee) {
return (typeof iteratee == 'function' && isArray(collection))
? arrayEach(collection, iteratee)
- : baseEach(collection, toFunction(iteratee));
+ : baseEach(collection, getIteratee(iteratee));
}
/**
@@ -7640,6 +8332,7 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @alias eachRight
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
@@ -7650,25 +8343,28 @@
* _.forEachRight([1, 2], function(value) {
* console.log(value);
* });
- * // => logs `2` then `1`
+ * // => Logs `2` then `1`.
*/
function forEachRight(collection, iteratee) {
return (typeof iteratee == 'function' && isArray(collection))
? arrayEachRight(collection, iteratee)
- : baseEachRight(collection, toFunction(iteratee));
+ : baseEachRight(collection, getIteratee(iteratee));
}
/**
* Creates an object composed of keys generated from the results of running
- * each element of `collection` through `iteratee`. The corresponding value
- * of each key is an array of elements responsible for generating the key.
- * The iteratee is invoked with one argument: (value).
+ * each element of `collection` thru `iteratee`. The order of grouped values
+ * is determined by the order they occur in `collection`. The corresponding
+ * value of each key is an array of elements responsible for generating the
+ * key. The iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee to transform keys.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
@@ -7688,18 +8384,20 @@
});
/**
- * Checks if `value` is in `collection`. If `collection` is a string it's checked
- * for a substring of `value`, otherwise [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * Checks if `value` is in `collection`. If `collection` is a string, it's
+ * checked for a substring of `value`, otherwise
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* is used for equality comparisons. If `fromIndex` is negative, it's used as
* the offset from the end of `collection`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object|string} collection The collection to search.
* @param {*} value The value to search for.
* @param {number} [fromIndex=0] The index to search from.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.reduce`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
* @returns {boolean} Returns `true` if `value` is found, else `false`.
* @example
*
@@ -7731,11 +8429,12 @@
/**
* Invokes the method at `path` of each element in `collection`, returning
* an array of the results of each invoked method. Any additional arguments
- * are provided to each invoked method. If `methodName` is a function it's
- * invoked for, and `this` bound to, each element in `collection`.
+ * are provided to each invoked method. If `methodName` is a function, it's
+ * invoked for and `this` bound to, each element in `collection`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Array|Function|string} path The path of the method to invoke or
@@ -7765,15 +8464,17 @@
/**
* Creates an object composed of keys generated from the results of running
- * each element of `collection` through `iteratee`. The corresponding value
- * of each key is the last element responsible for generating the key. The
+ * each element of `collection` thru `iteratee`. The corresponding value of
+ * each key is the last element responsible for generating the key. The
* iteratee is invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee to transform keys.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
@@ -7795,7 +8496,7 @@
});
/**
- * Creates an array of values by running each element in `collection` through
+ * Creates an array of values by running each element in `collection` thru
* `iteratee`. The iteratee is invoked with three arguments:
* (value, index|key, collection).
*
@@ -7803,16 +8504,18 @@
* `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
*
* The guarded methods are:
- * `ary`, `curry`, `curryRight`, `drop`, `dropRight`, `every`, `fill`,
- * `invert`, `parseInt`, `random`, `range`, `rangeRight`, `slice`, `some`,
- * `sortBy`, `take`, `takeRight`, `template`, `trim`, `trimEnd`, `trimStart`,
- * and `words`
+ * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
+ * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
+ * `sampleSize`, `slice`, `some`, `sortBy`, `take`, `takeRight`, `template`,
+ * `trim`, `trimEnd`, `trimStart`, and `words`
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new mapped array.
* @example
*
@@ -7848,24 +8551,26 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function[]|Object[]|string[]} [iteratees=[_.identity]] The iteratees to sort by.
+ * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
+ * The iteratees to sort by.
* @param {string[]} [orders] The sort orders of `iteratees`.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.reduce`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
* @returns {Array} Returns the new sorted array.
* @example
*
* var users = [
* { 'user': 'fred', 'age': 48 },
* { 'user': 'barney', 'age': 34 },
- * { 'user': 'fred', 'age': 42 },
+ * { 'user': 'fred', 'age': 40 },
* { 'user': 'barney', 'age': 36 }
* ];
*
* // Sort by `user` in ascending order and by `age` in descending order.
* _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
*/
function orderBy(collection, iteratees, orders, guard) {
if (collection == null) {
@@ -7889,9 +8594,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the array of grouped elements.
* @example
*
@@ -7922,9 +8629,9 @@
/**
* Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` through `iteratee`, where each successive
+ * each element in `collection` thru `iteratee`, where each successive
* invocation is supplied the return value of the previous. If `accumulator`
- * is not given the first element of `collection` is used as the initial
+ * is not given, the first element of `collection` is used as the initial
* value. The iteratee is invoked with four arguments:
* (accumulator, value, index|key, collection).
*
@@ -7937,6 +8644,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -7968,6 +8676,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -7995,9 +8704,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
* @returns {Array} Returns the new filtered array.
* @example
*
@@ -8034,6 +8745,7 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Collection
* @param {Array|Object} collection The collection to sample.
* @returns {*} Returns the random element.
@@ -8055,9 +8767,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to sample.
- * @param {number} [n=0] The number of elements to sample.
+ * @param {number} [n=1] The number of elements to sample.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the random elements.
* @example
*
@@ -8067,13 +8781,17 @@
* _.sampleSize([1, 2, 3], 4);
* // => [2, 3, 1]
*/
- function sampleSize(collection, n) {
+ function sampleSize(collection, n, guard) {
var index = -1,
result = toArray(collection),
length = result.length,
lastIndex = length - 1;
- n = baseClamp(toInteger(n), 0, length);
+ if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
+ n = 1;
+ } else {
+ n = baseClamp(toInteger(n), 0, length);
+ }
while (++index < n) {
var rand = baseRandom(index, lastIndex),
value = result[rand];
@@ -8091,6 +8809,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to shuffle.
* @returns {Array} Returns the new shuffled array.
@@ -8105,10 +8824,11 @@
/**
* Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable properties for objects.
+ * values or the number of own enumerable string keyed properties for objects.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to inspect.
* @returns {number} Returns the collection size.
@@ -8131,6 +8851,12 @@
var result = collection.length;
return (result && isString(collection)) ? stringSize(collection) : result;
}
+ if (isObjectLike(collection)) {
+ var tag = getTag(collection);
+ if (tag == mapTag || tag == setTag) {
+ return collection.size;
+ }
+ }
return keys(collection).length;
}
@@ -8141,11 +8867,14 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check, else `false`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
+ * else `false`.
* @example
*
* _.some([null, 0, 'yes', false], Boolean);
@@ -8178,36 +8907,38 @@
/**
* Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection through each iteratee. This method
+ * running each element in a collection thru each iteratee. This method
* performs a stable sort, that is, it preserves the original sort order of
* equal elements. The iteratees are invoked with one argument: (value).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {...(Function|Function[]|Object|Object[]|string|string[])} [iteratees=[_.identity]]
- * The iteratees to sort by, specified individually or in arrays.
+ * @param {...(Array|Array[]|Function|Function[]|Object|Object[]|string|string[])}
+ * [iteratees=[_.identity]] The iteratees to sort by, specified individually
+ * or in arrays.
* @returns {Array} Returns the new sorted array.
* @example
*
* var users = [
* { 'user': 'fred', 'age': 48 },
* { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 42 },
+ * { 'user': 'fred', 'age': 40 },
* { 'user': 'barney', 'age': 34 }
* ];
*
* _.sortBy(users, function(o) { return o.user; });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
*
* _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 42], ['fred', 48]]
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
*
* _.sortBy(users, 'user', function(o) {
* return Math.floor(o.age / 10);
* });
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]]
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
*/
var sortBy = rest(function(collection, iteratees) {
if (collection == null) {
@@ -8219,7 +8950,7 @@
} else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
iteratees.length = 1;
}
- return baseOrderBy(collection, baseFlatten(iteratees), []);
+ return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
});
/*------------------------------------------------------------------------*/
@@ -8230,7 +8961,8 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 2.4.0
+ * @type {Function}
* @category Date
* @returns {number} Returns the timestamp.
* @example
@@ -8238,7 +8970,7 @@
* _.defer(function(stamp) {
* console.log(_.now() - stamp);
* }, _.now());
- * // => logs the number of milliseconds it took for the deferred function to be invoked
+ * // => Logs the number of milliseconds it took for the deferred function to be invoked.
*/
var now = Date.now;
@@ -8250,6 +8982,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {number} n The number of calls before `func` is invoked.
* @param {Function} func The function to restrict.
@@ -8265,7 +8998,7 @@
* _.forEach(saves, function(type) {
* asyncSave({ 'type': type, 'complete': done });
* });
- * // => logs 'done saving!' after the two async saves have completed
+ * // => Logs 'done saving!' after the two async saves have completed.
*/
function after(n, func) {
if (typeof func != 'function') {
@@ -8280,15 +9013,16 @@
}
/**
- * Creates a function that accepts up to `n` arguments, ignoring any
- * additional arguments.
+ * Creates a function that invokes `func`, with up to `n` arguments,
+ * ignoring any additional arguments.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {Function} func The function to cap arguments for.
* @param {number} [n=func.length] The arity cap.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Function} Returns the new function.
* @example
*
@@ -8308,6 +9042,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {number} n The number of calls at which `func` is no longer invoked.
* @param {Function} func The function to restrict.
@@ -8336,8 +9071,7 @@
/**
* Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and prepends any additional `_.bind` arguments to those provided to the
- * bound function.
+ * and `partials` prepended to the arguments it receives.
*
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
* may be used as a placeholder for partially applied arguments.
@@ -8347,6 +9081,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to bind.
* @param {*} thisArg The `this` binding of `func`.
@@ -8372,21 +9107,19 @@
var bind = rest(function(func, thisArg, partials) {
var bitmask = BIND_FLAG;
if (partials.length) {
- var placeholder = lodash.placeholder || bind.placeholder,
- holders = replaceHolders(partials, placeholder);
-
+ var holders = replaceHolders(partials, getPlaceholder(bind));
bitmask |= PARTIAL_FLAG;
}
return createWrapper(func, bitmask, thisArg, partials, holders);
});
/**
- * Creates a function that invokes the method at `object[key]` and prepends
- * any additional `_.bindKey` arguments to those provided to the bound function.
+ * Creates a function that invokes the method at `object[key]` with `partials`
+ * prepended to the arguments it receives.
*
* This method differs from `_.bind` by allowing bound functions to reference
- * methods that may be redefined or don't yet exist.
- * See [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
+ * methods that may be redefined or don't yet exist. See
+ * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
* for more details.
*
* The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
@@ -8394,6 +9127,7 @@
*
* @static
* @memberOf _
+ * @since 0.10.0
* @category Function
* @param {Object} object The object to invoke the method on.
* @param {string} key The key of the method.
@@ -8427,9 +9161,7 @@
var bindKey = rest(function(object, key, partials) {
var bitmask = BIND_FLAG | BIND_KEY_FLAG;
if (partials.length) {
- var placeholder = lodash.placeholder || bindKey.placeholder,
- holders = replaceHolders(partials, placeholder);
-
+ var holders = replaceHolders(partials, getPlaceholder(bindKey));
bitmask |= PARTIAL_FLAG;
}
return createWrapper(key, bitmask, object, partials, holders);
@@ -8449,10 +9181,11 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Function
* @param {Function} func The function to curry.
* @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Function} Returns the new curried function.
* @example
*
@@ -8478,7 +9211,7 @@
function curry(func, arity, guard) {
arity = guard ? undefined : arity;
var result = createWrapper(func, CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = lodash.placeholder || curry.placeholder;
+ result.placeholder = curry.placeholder;
return result;
}
@@ -8493,10 +9226,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {Function} func The function to curry.
* @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Function} Returns the new curried function.
* @example
*
@@ -8522,7 +9256,7 @@
function curryRight(func, arity, guard) {
arity = guard ? undefined : arity;
var result = createWrapper(func, CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = lodash.placeholder || curryRight.placeholder;
+ result.placeholder = curryRight.placeholder;
return result;
}
@@ -8540,21 +9274,22 @@
* on the trailing edge of the timeout only if the debounced function is
* invoked more than once during the `wait` timeout.
*
- * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
* for details over the differences between `_.debounce` and `_.throttle`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to debounce.
* @param {number} [wait=0] The number of milliseconds to delay.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.leading=false] Specify invoking on the leading
- * edge of the timeout.
- * @param {number} [options.maxWait] The maximum time `func` is allowed to be
- * delayed before it's invoked.
- * @param {boolean} [options.trailing=true] Specify invoking on the trailing
- * edge of the timeout.
+ * @param {Object} [options={}] The options object.
+ * @param {boolean} [options.leading=false]
+ * Specify invoking on the leading edge of the timeout.
+ * @param {number} [options.maxWait]
+ * The maximum time `func` is allowed to be delayed before it's invoked.
+ * @param {boolean} [options.trailing=true]
+ * Specify invoking on the trailing edge of the timeout.
* @returns {Function} Returns the new debounced function.
* @example
*
@@ -8576,14 +9311,12 @@
* jQuery(window).on('popstate', debounced.cancel);
*/
function debounce(func, wait, options) {
- var args,
- maxTimeoutId,
+ var lastArgs,
+ lastThis,
result,
- stamp,
- thisArg,
- timeoutId,
- trailingCall,
- lastCalled = 0,
+ timerId,
+ lastCallTime = 0,
+ lastInvokeTime = 0,
leading = false,
maxWait = false,
trailing = true;
@@ -8598,90 +9331,94 @@
trailing = 'trailing' in options ? !!options.trailing : trailing;
}
- function cancel() {
- if (timeoutId) {
- clearTimeout(timeoutId);
- }
- if (maxTimeoutId) {
- clearTimeout(maxTimeoutId);
- }
- lastCalled = 0;
- args = maxTimeoutId = thisArg = timeoutId = trailingCall = undefined;
+ function invokeFunc(time) {
+ var args = lastArgs,
+ thisArg = lastThis;
+
+ lastArgs = lastThis = undefined;
+ lastInvokeTime = time;
+ result = func.apply(thisArg, args);
+ return result;
}
- function complete(isCalled, id) {
- if (id) {
- clearTimeout(id);
- }
- maxTimeoutId = timeoutId = trailingCall = undefined;
- if (isCalled) {
- lastCalled = now();
- result = func.apply(thisArg, args);
- if (!timeoutId && !maxTimeoutId) {
- args = thisArg = undefined;
- }
- }
+ function leadingEdge(time) {
+ // Reset any `maxWait` timer.
+ lastInvokeTime = time;
+ // Start the timer for the trailing edge.
+ timerId = setTimeout(timerExpired, wait);
+ // Invoke the leading edge.
+ return leading ? invokeFunc(time) : result;
}
- function delayed() {
- var remaining = wait - (now() - stamp);
- if (remaining <= 0 || remaining > wait) {
- complete(trailingCall, maxTimeoutId);
- } else {
- timeoutId = setTimeout(delayed, remaining);
+ function remainingWait(time) {
+ var timeSinceLastCall = time - lastCallTime,
+ timeSinceLastInvoke = time - lastInvokeTime,
+ result = wait - timeSinceLastCall;
+
+ return maxWait === false ? result : nativeMin(result, maxWait - timeSinceLastInvoke);
+ }
+
+ function shouldInvoke(time) {
+ var timeSinceLastCall = time - lastCallTime,
+ timeSinceLastInvoke = time - lastInvokeTime;
+
+ // Either this is the first call, activity has stopped and we're at the
+ // trailing edge, the system time has gone backwards and we're treating
+ // it as the trailing edge, or we've hit the `maxWait` limit.
+ return (!lastCallTime || (timeSinceLastCall >= wait) ||
+ (timeSinceLastCall < 0) || (maxWait !== false && timeSinceLastInvoke >= maxWait));
+ }
+
+ function timerExpired() {
+ var time = now();
+ if (shouldInvoke(time)) {
+ return trailingEdge(time);
}
+ // Restart the timer.
+ timerId = setTimeout(timerExpired, remainingWait(time));
}
- function flush() {
- if ((timeoutId && trailingCall) || (maxTimeoutId && trailing)) {
- result = func.apply(thisArg, args);
+ function trailingEdge(time) {
+ clearTimeout(timerId);
+ timerId = undefined;
+
+ // Only invoke if we have `lastArgs` which means `func` has been
+ // debounced at least once.
+ if (trailing && lastArgs) {
+ return invokeFunc(time);
}
- cancel();
+ lastArgs = lastThis = undefined;
return result;
}
- function maxDelayed() {
- complete(trailing, timeoutId);
+ function cancel() {
+ if (timerId !== undefined) {
+ clearTimeout(timerId);
+ }
+ lastCallTime = lastInvokeTime = 0;
+ lastArgs = lastThis = timerId = undefined;
+ }
+
+ function flush() {
+ return timerId === undefined ? result : trailingEdge(now());
}
function debounced() {
- args = arguments;
- stamp = now();
- thisArg = this;
- trailingCall = trailing && (timeoutId || !leading);
+ var time = now(),
+ isInvoking = shouldInvoke(time);
- if (maxWait === false) {
- var leadingCall = leading && !timeoutId;
- } else {
- if (!lastCalled && !maxTimeoutId && !leading) {
- lastCalled = stamp;
- }
- var remaining = maxWait - (stamp - lastCalled),
- isCalled = remaining <= 0 || remaining > maxWait;
+ lastArgs = arguments;
+ lastThis = this;
+ lastCallTime = time;
- if (isCalled) {
- if (maxTimeoutId) {
- maxTimeoutId = clearTimeout(maxTimeoutId);
- }
- lastCalled = stamp;
- result = func.apply(thisArg, args);
+ if (isInvoking) {
+ if (timerId === undefined) {
+ return leadingEdge(lastCallTime);
}
- else if (!maxTimeoutId) {
- maxTimeoutId = setTimeout(maxDelayed, remaining);
- }
- }
- if (isCalled && timeoutId) {
- timeoutId = clearTimeout(timeoutId);
- }
- else if (!timeoutId && wait !== maxWait) {
- timeoutId = setTimeout(delayed, wait);
- }
- if (leadingCall) {
- isCalled = true;
- result = func.apply(thisArg, args);
- }
- if (isCalled && !timeoutId && !maxTimeoutId) {
- args = thisArg = undefined;
+ // Handle invocations in a tight loop.
+ clearTimeout(timerId);
+ timerId = setTimeout(timerExpired, wait);
+ return invokeFunc(lastCallTime);
}
return result;
}
@@ -8696,6 +9433,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to defer.
* @param {...*} [args] The arguments to invoke `func` with.
@@ -8705,7 +9443,7 @@
* _.defer(function(text) {
* console.log(text);
* }, 'deferred');
- * // => logs 'deferred' after one or more milliseconds
+ * // => Logs 'deferred' after one or more milliseconds.
*/
var defer = rest(function(func, args) {
return baseDelay(func, 1, args);
@@ -8717,6 +9455,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to delay.
* @param {number} wait The number of milliseconds to delay invocation.
@@ -8727,7 +9466,7 @@
* _.delay(function(text) {
* console.log(text);
* }, 1000, 'later');
- * // => logs 'later' after one second
+ * // => Logs 'later' after one second.
*/
var delay = rest(function(func, wait, args) {
return baseDelay(func, toNumber(wait) || 0, args);
@@ -8738,6 +9477,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Function
* @param {Function} func The function to flip arguments for.
* @returns {Function} Returns the new function.
@@ -8756,18 +9496,20 @@
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
- * provided it determines the cache key for storing the result based on the
+ * provided, it determines the cache key for storing the result based on the
* arguments provided to the memoized function. By default, the first argument
* provided to the memoized function is used as the map cache key. The `func`
* is invoked with the `this` binding of the memoized function.
*
* **Note:** The cache is exposed as the `cache` property on the memoized
* function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
+ * constructor with one whose instances implement the
+ * [`Map`](http://ecma-international.org/ecma-262/6.0/#sec-properties-of-the-map-prototype-object)
* method interface of `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to have its output memoized.
* @param {Function} [resolver] The function to resolve the cache key.
@@ -8812,10 +9554,13 @@
memoized.cache = cache.set(key, result);
return result;
};
- memoized.cache = new memoize.Cache;
+ memoized.cache = new (memoize.Cache || MapCache);
return memoized;
}
+ // Assign cache to `_.memoize`.
+ memoize.Cache = MapCache;
+
/**
* Creates a function that negates the result of the predicate `func`. The
* `func` predicate is invoked with the `this` binding and arguments of the
@@ -8823,6 +9568,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {Function} predicate The predicate to negate.
* @returns {Function} Returns the new function.
@@ -8851,6 +9597,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to restrict.
* @returns {Function} Returns the new restricted function.
@@ -8870,10 +9617,11 @@
* corresponding `transforms`.
*
* @static
+ * @since 4.0.0
* @memberOf _
* @category Function
* @param {Function} func The function to wrap.
- * @param {...(Function|Function[])} [transforms] The functions to transform
+ * @param {...(Function|Function[])} [transforms] The functions to transform.
* arguments, specified individually or in arrays.
* @returns {Function} Returns the new function.
* @example
@@ -8897,8 +9645,7 @@
* // => [100, 10]
*/
var overArgs = rest(function(func, transforms) {
- transforms = arrayMap(baseFlatten(transforms), getIteratee());
-
+ transforms = arrayMap(baseFlatten(transforms, 1, isFlattenableIteratee), getIteratee());
var funcsLength = transforms.length;
return rest(function(args) {
var index = -1,
@@ -8912,9 +9659,9 @@
});
/**
- * Creates a function that invokes `func` with `partial` arguments prepended
- * to those provided to the new function. This method is like `_.bind` except
- * it does **not** alter the `this` binding.
+ * Creates a function that invokes `func` with `partials` prepended to the
+ * arguments it receives. This method is like `_.bind` except it does **not**
+ * alter the `this` binding.
*
* The `_.partial.placeholder` value, which defaults to `_` in monolithic
* builds, may be used as a placeholder for partially applied arguments.
@@ -8924,6 +9671,7 @@
*
* @static
* @memberOf _
+ * @since 0.2.0
* @category Function
* @param {Function} func The function to partially apply arguments to.
* @param {...*} [partials] The arguments to be partially applied.
@@ -8944,15 +9692,13 @@
* // => 'hi fred'
*/
var partial = rest(function(func, partials) {
- var placeholder = lodash.placeholder || partial.placeholder,
- holders = replaceHolders(partials, placeholder);
-
+ var holders = replaceHolders(partials, getPlaceholder(partial));
return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders);
});
/**
* This method is like `_.partial` except that partially applied arguments
- * are appended to those provided to the new function.
+ * are appended to the arguments it receives.
*
* The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
* builds, may be used as a placeholder for partially applied arguments.
@@ -8962,6 +9708,7 @@
*
* @static
* @memberOf _
+ * @since 1.0.0
* @category Function
* @param {Function} func The function to partially apply arguments to.
* @param {...*} [partials] The arguments to be partially applied.
@@ -8982,20 +9729,19 @@
* // => 'hello fred'
*/
var partialRight = rest(function(func, partials) {
- var placeholder = lodash.placeholder || partialRight.placeholder,
- holders = replaceHolders(partials, placeholder);
-
+ var holders = replaceHolders(partials, getPlaceholder(partialRight));
return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders);
});
/**
* Creates a function that invokes `func` with arguments arranged according
- * to the specified indexes where the argument value at the first index is
+ * to the specified `indexes` where the argument value at the first index is
* provided as the first argument, the argument value at the second index is
* provided as the second argument, and so on.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Function
* @param {Function} func The function to rearrange arguments for.
* @param {...(number|number[])} indexes The arranged argument indexes,
@@ -9011,17 +9757,20 @@
* // => ['a', 'b', 'c']
*/
var rearg = rest(function(func, indexes) {
- return createWrapper(func, REARG_FLAG, undefined, undefined, undefined, baseFlatten(indexes));
+ return createWrapper(func, REARG_FLAG, undefined, undefined, undefined, baseFlatten(indexes, 1));
});
/**
* Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as an array.
+ * created function and arguments from `start` and beyond provided as
+ * an array.
*
- * **Note:** This method is based on the [rest parameter](https://mdn.io/rest_parameters).
+ * **Note:** This method is based on the
+ * [rest parameter](https://mdn.io/rest_parameters).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Function
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
@@ -9066,13 +9815,16 @@
}
/**
- * Creates a function that invokes `func` with the `this` binding of the created
- * function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3).
+ * Creates a function that invokes `func` with the `this` binding of the
+ * create function and an array of arguments much like
+ * [`Function#apply`](http://www.ecma-international.org/ecma-262/6.0/#sec-function.prototype.apply).
*
- * **Note:** This method is based on the [spread operator](https://mdn.io/spread_operator).
+ * **Note:** This method is based on the
+ * [spread operator](https://mdn.io/spread_operator).
*
* @static
* @memberOf _
+ * @since 3.2.0
* @category Function
* @param {Function} func The function to spread arguments over.
* @param {number} [start=0] The start position of the spread.
@@ -9122,23 +9874,24 @@
* throttled function. Subsequent calls to the throttled function return the
* result of the last `func` invocation.
*
- * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked
- * on the trailing edge of the timeout only if the throttled function is
- * invoked more than once during the `wait` timeout.
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
+ * invoked on the trailing edge of the timeout only if the throttled function
+ * is invoked more than once during the `wait` timeout.
*
- * See [David Corbacho's article](http://drupalmotion.com/article/debounce-and-throttle-visual-explanation)
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
* for details over the differences between `_.throttle` and `_.debounce`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {Function} func The function to throttle.
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.leading=true] Specify invoking on the leading
- * edge of the timeout.
- * @param {boolean} [options.trailing=true] Specify invoking on the trailing
- * edge of the timeout.
+ * @param {Object} [options={}] The options object.
+ * @param {boolean} [options.leading=true]
+ * Specify invoking on the leading edge of the timeout.
+ * @param {boolean} [options.trailing=true]
+ * Specify invoking on the trailing edge of the timeout.
* @returns {Function} Returns the new throttled function.
* @example
*
@@ -9163,7 +9916,11 @@
leading = 'leading' in options ? !!options.leading : leading;
trailing = 'trailing' in options ? !!options.trailing : trailing;
}
- return debounce(func, wait, { 'leading': leading, 'maxWait': wait, 'trailing': trailing });
+ return debounce(func, wait, {
+ 'leading': leading,
+ 'maxWait': wait,
+ 'trailing': trailing
+ });
}
/**
@@ -9172,6 +9929,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Function
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new function.
@@ -9192,9 +9950,10 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Function
* @param {*} value The value to wrap.
- * @param {Function} wrapper The wrapper function.
+ * @param {Function} [wrapper=identity] The wrapper function.
* @returns {Function} Returns the new function.
* @example
*
@@ -9212,6 +9971,47 @@
/*------------------------------------------------------------------------*/
+ /**
+ * Casts `value` as an array if it's not one.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.4.0
+ * @category Lang
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast array.
+ * @example
+ *
+ * _.castArray(1);
+ * // => [1]
+ *
+ * _.castArray({ 'a': 1 });
+ * // => [{ 'a': 1 }]
+ *
+ * _.castArray('abc');
+ * // => ['abc']
+ *
+ * _.castArray(null);
+ * // => [null]
+ *
+ * _.castArray(undefined);
+ * // => [undefined]
+ *
+ * _.castArray();
+ * // => []
+ *
+ * var array = [1, 2, 3];
+ * console.log(_.castArray(array) === array);
+ * // => true
+ */
+ function castArray() {
+ if (!arguments.length) {
+ return [];
+ }
+ var value = arguments[0];
+ return isArray(value) ? value : [value];
+ }
+
/**
* Creates a shallow clone of `value`.
*
@@ -9225,6 +10025,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to clone.
* @returns {*} Returns the cloned value.
@@ -9237,17 +10038,18 @@
* // => true
*/
function clone(value) {
- return baseClone(value);
+ return baseClone(value, false, true);
}
/**
* This method is like `_.clone` except that it accepts `customizer` which
- * is invoked to produce the cloned value. If `customizer` returns `undefined`
+ * is invoked to produce the cloned value. If `customizer` returns `undefined`,
* cloning is handled by the method instead. The `customizer` is invoked with
* up to four arguments; (value [, index|key, object, stack]).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to clone.
* @param {Function} [customizer] The function to customize cloning.
@@ -9270,7 +10072,7 @@
* // => 0
*/
function cloneWith(value, customizer) {
- return baseClone(value, false, customizer);
+ return baseClone(value, false, true, customizer);
}
/**
@@ -9278,6 +10080,7 @@
*
* @static
* @memberOf _
+ * @since 1.0.0
* @category Lang
* @param {*} value The value to recursively clone.
* @returns {*} Returns the deep cloned value.
@@ -9290,7 +10093,7 @@
* // => false
*/
function cloneDeep(value) {
- return baseClone(value, true);
+ return baseClone(value, true, true);
}
/**
@@ -9298,6 +10101,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to recursively clone.
* @param {Function} [customizer] The function to customize cloning.
@@ -9320,15 +10124,17 @@
* // => 20
*/
function cloneDeepWith(value, customizer) {
- return baseClone(value, true, customizer);
+ return baseClone(value, true, true, customizer);
}
/**
- * Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
+ * Performs a
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
@@ -9362,10 +10168,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is greater than `other`,
+ * else `false`.
* @example
*
* _.gt(3, 1);
@@ -9386,10 +10194,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than or equal to `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is greater than or equal to
+ * `other`, else `false`.
* @example
*
* _.gte(3, 1);
@@ -9410,9 +10220,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
@@ -9432,10 +10244,12 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 0.1.0
+ * @type {Function}
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArray([1, 2, 3]);
@@ -9457,10 +10271,11 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isArrayBuffer(new ArrayBuffer(2));
@@ -9480,7 +10295,7 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
@@ -9499,8 +10314,7 @@
* // => false
*/
function isArrayLike(value) {
- return value != null &&
- !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));
+ return value != null && isLength(getLength(value)) && !isFunction(value);
}
/**
@@ -9509,10 +10323,11 @@
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
+ * else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
@@ -9536,9 +10351,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isBoolean(false);
@@ -9557,6 +10374,7 @@
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
@@ -9577,9 +10395,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isDate(new Date);
@@ -9597,9 +10417,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a DOM element,
+ * else `false`.
* @example
*
* _.isElement(document.body);
@@ -9613,14 +10435,20 @@
}
/**
- * Checks if `value` is empty. A value is considered empty unless it's an
- * `arguments` object, array, string, or jQuery-like collection with a length
- * greater than `0` or an object with own enumerable properties.
+ * Checks if `value` is an empty object, collection, map, or set.
+ *
+ * Objects are considered empty if they have no own enumerable string keyed
+ * properties.
+ *
+ * Array-like values such as `arguments` objects, arrays, buffers, strings, or
+ * jQuery-like collections are considered empty if they have a `length` of `0`.
+ * Similarly, maps and sets are considered empty if they have a `size` of `0`.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
- * @param {Array|Object|string} value The value to inspect.
+ * @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is empty, else `false`.
* @example
*
@@ -9641,15 +10469,22 @@
*/
function isEmpty(value) {
if (isArrayLike(value) &&
- (isArray(value) || isString(value) || isFunction(value.splice) || isArguments(value))) {
+ (isArray(value) || isString(value) || isFunction(value.splice) ||
+ isArguments(value) || isBuffer(value))) {
return !value.length;
}
+ if (isObjectLike(value)) {
+ var tag = getTag(value);
+ if (tag == mapTag || tag == setTag) {
+ return !value.size;
+ }
+ }
for (var key in value) {
if (hasOwnProperty.call(value, key)) {
return false;
}
}
- return true;
+ return !(nonEnumShadows && keys(value).length);
}
/**
@@ -9664,10 +10499,12 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @returns {boolean} Returns `true` if the values are equivalent,
+ * else `false`.
* @example
*
* var object = { 'user': 'fred' };
@@ -9684,18 +10521,20 @@
}
/**
- * This method is like `_.isEqual` except that it accepts `customizer` which is
- * invoked to compare values. If `customizer` returns `undefined` comparisons are
- * handled by the method instead. The `customizer` is invoked with up to six arguments:
- * (objValue, othValue [, index|key, object, other, stack]).
+ * This method is like `_.isEqual` except that it accepts `customizer` which
+ * is invoked to compare values. If `customizer` returns `undefined`, comparisons
+ * are handled by the method instead. The `customizer` is invoked with up to
+ * six arguments: (objValue, othValue [, index|key, object, other, stack]).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
+ * @returns {boolean} Returns `true` if the values are equivalent,
+ * else `false`.
* @example
*
* function isGreeting(value) {
@@ -9726,9 +10565,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is an error object,
+ * else `false`.
* @example
*
* _.isError(new Error);
@@ -9738,20 +10579,26 @@
* // => false
*/
function isError(value) {
- return isObjectLike(value) &&
- typeof value.message == 'string' && objectToString.call(value) == errorTag;
+ if (!isObjectLike(value)) {
+ return false;
+ }
+ return (objectToString.call(value) == errorTag) ||
+ (typeof value.message == 'string' && typeof value.name == 'string');
}
/**
* Checks if `value` is a finite primitive number.
*
- * **Note:** This method is based on [`Number.isFinite`](https://mdn.io/Number/isFinite).
+ * **Note:** This method is based on
+ * [`Number.isFinite`](https://mdn.io/Number/isFinite).
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a finite number,
+ * else `false`.
* @example
*
* _.isFinite(3);
@@ -9775,9 +10622,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isFunction(_);
@@ -9788,8 +10637,8 @@
*/
function isFunction(value) {
// The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 8 which returns 'object' for typed array constructors, and
- // PhantomJS 1.9 which returns 'function' for `NodeList` instances.
+ // in Safari 8 which returns 'object' for typed array and weak map constructors,
+ // and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
var tag = isObject(value) ? objectToString.call(value) : '';
return tag == funcTag || tag == genTag;
}
@@ -9797,10 +10646,12 @@
/**
* Checks if `value` is an integer.
*
- * **Note:** This method is based on [`Number.isInteger`](https://mdn.io/Number/isInteger).
+ * **Note:** This method is based on
+ * [`Number.isInteger`](https://mdn.io/Number/isInteger).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an integer, else `false`.
@@ -9825,13 +10676,16 @@
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ * **Note:** This function is loosely based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a valid length,
+ * else `false`.
* @example
*
* _.isLength(3);
@@ -9847,15 +10701,18 @@
* // => false
*/
function isLength(value) {
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
+ return typeof value == 'number' &&
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
/**
- * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
- * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ * Checks if `value` is the
+ * [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
@@ -9884,6 +10741,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
@@ -9910,9 +10768,11 @@
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isMap(new Map);
@@ -9926,13 +10786,15 @@
}
/**
- * Performs a deep comparison between `object` and `source` to determine if
- * `object` contains equivalent property values.
+ * Performs a partial deep comparison between `object` and `source` to
+ * determine if `object` contains equivalent property values. This method is
+ * equivalent to a `_.matches` function when `source` is partially applied.
*
* **Note:** This method supports comparing the same values as `_.isEqual`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
@@ -9953,12 +10815,13 @@
/**
* This method is like `_.isMatch` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined` comparisons
+ * is invoked to compare values. If `customizer` returns `undefined`, comparisons
* are handled by the method instead. The `customizer` is invoked with five
* arguments: (objValue, srcValue, index|key, object, source).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
@@ -9990,11 +10853,14 @@
/**
* Checks if `value` is `NaN`.
*
- * **Note:** This method is not the same as [`isNaN`](https://es5.github.io/#x15.1.2.4)
- * which returns `true` for `undefined` and other non-numeric values.
+ * **Note:** This method is based on
+ * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
+ * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
+ * `undefined` and other non-number values.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
@@ -10014,7 +10880,8 @@
*/
function isNaN(value) {
// An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some ActiveX objects in IE.
+ // Perform the `toStringTag` check first to avoid errors with some
+ // ActiveX objects in IE.
return isNumber(value) && value != +value;
}
@@ -10023,9 +10890,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a native function,
+ * else `false`.
* @example
*
* _.isNative(Array.prototype.push);
@@ -10035,14 +10904,11 @@
* // => false
*/
function isNative(value) {
- if (value == null) {
+ if (!isObject(value)) {
return false;
}
- if (isFunction(value)) {
- return reIsNative.test(funcToString.call(value));
- }
- return isObjectLike(value) &&
- (isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
+ var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
+ return pattern.test(toSource(value));
}
/**
@@ -10050,6 +10916,7 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `null`, else `false`.
@@ -10070,6 +10937,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
@@ -10091,14 +10959,16 @@
/**
* Checks if `value` is classified as a `Number` primitive or object.
*
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified
- * as numbers, use the `_.isFinite` method.
+ * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
+ * classified as numbers, use the `_.isFinite` method.
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isNumber(3);
@@ -10124,9 +10994,11 @@
*
* @static
* @memberOf _
+ * @since 0.8.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a plain object,
+ * else `false`.
* @example
*
* function Foo() {
@@ -10146,17 +11018,15 @@
* // => true
*/
function isPlainObject(value) {
- if (!isObjectLike(value) || objectToString.call(value) != objectTag || isHostObject(value)) {
+ if (!isObjectLike(value) ||
+ objectToString.call(value) != objectTag || isHostObject(value)) {
return false;
}
- var proto = objectProto;
- if (typeof value.constructor == 'function') {
- proto = getPrototypeOf(value);
- }
+ var proto = getPrototype(value);
if (proto === null) {
return true;
}
- var Ctor = proto.constructor;
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return (typeof Ctor == 'function' &&
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
}
@@ -10166,9 +11036,11 @@
*
* @static
* @memberOf _
+ * @since 0.1.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isRegExp(/abc/);
@@ -10185,13 +11057,16 @@
* Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
* double precision number which isn't the result of a rounded unsafe integer.
*
- * **Note:** This method is based on [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
+ * **Note:** This method is based on
+ * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
+ * @returns {boolean} Returns `true` if `value` is a safe integer,
+ * else `false`.
* @example
*
* _.isSafeInteger(3);
@@ -10215,9 +11090,11 @@
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isSet(new Set);
@@ -10234,10 +11111,12 @@
* Checks if `value` is classified as a `String` primitive or object.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isString('abc');
@@ -10256,9 +11135,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
@@ -10277,9 +11158,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isTypedArray(new Uint8Array);
@@ -10289,13 +11172,15 @@
* // => false
*/
function isTypedArray(value) {
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
+ return isObjectLike(value) &&
+ isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
}
/**
* Checks if `value` is `undefined`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to check.
@@ -10317,9 +11202,11 @@
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isWeakMap(new WeakMap);
@@ -10337,9 +11224,11 @@
*
* @static
* @memberOf _
+ * @since 4.3.0
* @category Lang
* @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
+ * @returns {boolean} Returns `true` if `value` is correctly classified,
+ * else `false`.
* @example
*
* _.isWeakSet(new WeakSet);
@@ -10357,10 +11246,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is less than `other`,
+ * else `false`.
* @example
*
* _.lt(1, 3);
@@ -10381,10 +11272,12 @@
*
* @static
* @memberOf _
+ * @since 3.9.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than or equal to `other`, else `false`.
+ * @returns {boolean} Returns `true` if `value` is less than or equal to
+ * `other`, else `false`.
* @example
*
* _.lte(1, 3);
@@ -10404,6 +11297,7 @@
* Converts `value` to an array.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Lang
* @param {*} value The value to convert.
@@ -10441,10 +11335,12 @@
/**
* Converts `value` to an integer.
*
- * **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
+ * **Note:** This function is loosely based on
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
@@ -10479,10 +11375,12 @@
* Converts `value` to an integer suitable for use as the length of an
* array-like object.
*
- * **Note:** This method is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
+ * **Note:** This method is based on
+ * [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
@@ -10509,6 +11407,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
@@ -10527,6 +11426,12 @@
* // => 3
*/
function toNumber(value) {
+ if (typeof value == 'number') {
+ return value;
+ }
+ if (isSymbol(value)) {
+ return NAN;
+ }
if (isObject(value)) {
var other = isFunction(value.valueOf) ? value.valueOf() : value;
value = isObject(other) ? (other + '') : other;
@@ -10542,11 +11447,12 @@
}
/**
- * Converts `value` to a plain object flattening inherited enumerable
- * properties of `value` to own properties of the plain object.
+ * Converts `value` to a plain object flattening inherited enumerable string
+ * keyed properties of `value` to own properties of the plain object.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {Object} Returns the converted plain object.
@@ -10574,6 +11480,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
@@ -10601,6 +11508,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {string} Returns the string.
@@ -10624,7 +11532,7 @@
return '';
}
if (isSymbol(value)) {
- return Symbol ? symbolToString.call(value) : '';
+ return symbolToString ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
@@ -10633,15 +11541,16 @@
/*------------------------------------------------------------------------*/
/**
- * Assigns own enumerable properties of source objects to the destination
- * object. Source objects are applied from left to right. Subsequent sources
- * overwrite property assignments of previous sources.
+ * Assigns own enumerable string keyed properties of source objects to the
+ * destination object. Source objects are applied from left to right.
+ * Subsequent sources overwrite property assignments of previous sources.
*
* **Note:** This method mutates `object` and is loosely based on
* [`Object.assign`](https://mdn.io/Object/assign).
*
* @static
* @memberOf _
+ * @since 0.10.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
@@ -10663,7 +11572,15 @@
* // => { 'a': 1, 'c': 3, 'e': 5 }
*/
var assign = createAssigner(function(object, source) {
- copyObject(source, keys(source), object);
+ if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
+ copyObject(source, keys(source), object);
+ return;
+ }
+ for (var key in source) {
+ if (hasOwnProperty.call(source, key)) {
+ assignValue(object, key, source[key]);
+ }
+ }
});
/**
@@ -10674,6 +11591,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @alias extend
* @category Object
* @param {Object} object The destination object.
@@ -10696,19 +11614,26 @@
* // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5 }
*/
var assignIn = createAssigner(function(object, source) {
- copyObject(source, keysIn(source), object);
+ if (nonEnumShadows || isPrototype(source) || isArrayLike(source)) {
+ copyObject(source, keysIn(source), object);
+ return;
+ }
+ for (var key in source) {
+ assignValue(object, key, source[key]);
+ }
});
/**
- * This method is like `_.assignIn` except that it accepts `customizer` which
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
- * assignment is handled by the method instead. The `customizer` is invoked
- * with five arguments: (objValue, srcValue, key, object, source).
+ * This method is like `_.assignIn` except that it accepts `customizer`
+ * which is invoked to produce the assigned values. If `customizer` returns
+ * `undefined`, assignment is handled by the method instead. The `customizer`
+ * is invoked with five arguments: (objValue, srcValue, key, object, source).
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @alias extendWith
* @category Object
* @param {Object} object The destination object.
@@ -10731,15 +11656,16 @@
});
/**
- * This method is like `_.assign` except that it accepts `customizer` which
- * is invoked to produce the assigned values. If `customizer` returns `undefined`
- * assignment is handled by the method instead. The `customizer` is invoked
- * with five arguments: (objValue, srcValue, key, object, source).
+ * This method is like `_.assign` except that it accepts `customizer`
+ * which is invoked to produce the assigned values. If `customizer` returns
+ * `undefined`, assignment is handled by the method instead. The `customizer`
+ * is invoked with five arguments: (objValue, srcValue, key, object, source).
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} sources The source objects.
@@ -10765,6 +11691,7 @@
*
* @static
* @memberOf _
+ * @since 1.0.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {...(string|string[])} [paths] The property paths of elements to pick,
@@ -10781,15 +11708,17 @@
* // => ['a', 'c']
*/
var at = rest(function(object, paths) {
- return baseAt(object, baseFlatten(paths));
+ return baseAt(object, baseFlatten(paths, 1));
});
/**
- * Creates an object that inherits from the `prototype` object. If a `properties`
- * object is given its own enumerable properties are assigned to the created object.
+ * Creates an object that inherits from the `prototype` object. If a
+ * `properties` object is given, its own enumerable string keyed properties
+ * are assigned to the created object.
*
* @static
* @memberOf _
+ * @since 2.3.0
* @category Object
* @param {Object} prototype The object to inherit from.
* @param {Object} [properties] The properties to assign to the object.
@@ -10822,14 +11751,15 @@
}
/**
- * Assigns own and inherited enumerable properties of source objects to the
- * destination object for all destination properties that resolve to `undefined`.
- * Source objects are applied from left to right. Once a property is set,
- * additional values of the same property are ignored.
+ * Assigns own and inherited enumerable string keyed properties of source
+ * objects to the destination object for all destination properties that
+ * resolve to `undefined`. Source objects are applied from left to right.
+ * Once a property is set, additional values of the same property are ignored.
*
* **Note:** This method mutates `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The destination object.
@@ -10853,6 +11783,7 @@
*
* @static
* @memberOf _
+ * @since 3.10.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
@@ -10874,10 +11805,13 @@
*
* @static
* @memberOf _
+ * @since 1.1.0
* @category Object
* @param {Object} object The object to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @returns {string|undefined} Returns the key of the matched element,
+ * else `undefined`.
* @example
*
* var users = {
@@ -10911,10 +11845,13 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Object
* @param {Object} object The object to search.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element, else `undefined`.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per iteration.
+ * @returns {string|undefined} Returns the key of the matched element,
+ * else `undefined`.
* @example
*
* var users = {
@@ -10943,13 +11880,14 @@
}
/**
- * Iterates over own and inherited enumerable properties of an object invoking
- * `iteratee` for each property. The iteratee is invoked with three arguments:
- * (value, key, object). Iteratee functions may exit iteration early by explicitly
- * returning `false`.
+ * Iterates over own and inherited enumerable string keyed properties of an
+ * object invoking `iteratee` for each property. The iteratee is invoked with
+ * three arguments: (value, key, object). Iteratee functions may exit iteration
+ * early by explicitly returning `false`.
*
* @static
* @memberOf _
+ * @since 0.3.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -10966,10 +11904,12 @@
* _.forIn(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'a', 'b', then 'c' (iteration order is not guaranteed)
+ * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
*/
function forIn(object, iteratee) {
- return object == null ? object : baseFor(object, toFunction(iteratee), keysIn);
+ return object == null
+ ? object
+ : baseFor(object, getIteratee(iteratee), keysIn);
}
/**
@@ -10978,6 +11918,7 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -10994,20 +11935,23 @@
* _.forInRight(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'
+ * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
*/
function forInRight(object, iteratee) {
- return object == null ? object : baseForRight(object, toFunction(iteratee), keysIn);
+ return object == null
+ ? object
+ : baseForRight(object, getIteratee(iteratee), keysIn);
}
/**
- * Iterates over own enumerable properties of an object invoking `iteratee`
- * for each property. The iteratee is invoked with three arguments:
+ * Iterates over own enumerable string keyed properties of an object invoking
+ * `iteratee` for each property. The iteratee is invoked with three arguments:
* (value, key, object). Iteratee functions may exit iteration early by
* explicitly returning `false`.
*
* @static
* @memberOf _
+ * @since 0.3.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -11024,10 +11968,10 @@
* _.forOwn(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'a' then 'b' (iteration order is not guaranteed)
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
*/
function forOwn(object, iteratee) {
- return object && baseForOwn(object, toFunction(iteratee));
+ return object && baseForOwn(object, getIteratee(iteratee));
}
/**
@@ -11036,6 +11980,7 @@
*
* @static
* @memberOf _
+ * @since 2.0.0
* @category Object
* @param {Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -11052,10 +11997,10 @@
* _.forOwnRight(new Foo, function(value, key) {
* console.log(key);
* });
- * // => logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'
+ * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
*/
function forOwnRight(object, iteratee) {
- return object && baseForOwnRight(object, toFunction(iteratee));
+ return object && baseForOwnRight(object, getIteratee(iteratee));
}
/**
@@ -11063,6 +12008,7 @@
* of `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to inspect.
@@ -11089,6 +12035,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to inspect.
* @returns {Array} Returns the new array of property names.
@@ -11110,14 +12057,15 @@
/**
* Gets the value at `path` of `object`. If the resolved value is
- * `undefined` the `defaultValue` is used in its place.
+ * `undefined`, the `defaultValue` is used in its place.
*
* @static
* @memberOf _
+ * @since 3.7.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
@@ -11141,6 +12089,7 @@
* Checks if `path` is a direct property of `object`.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -11148,23 +12097,23 @@
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
- * var object = { 'a': { 'b': { 'c': 3 } } };
- * var other = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ * var object = { 'a': { 'b': 2 } };
+ * var other = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.has(object, 'a');
* // => true
*
- * _.has(object, 'a.b.c');
+ * _.has(object, 'a.b');
* // => true
*
- * _.has(object, ['a', 'b', 'c']);
+ * _.has(object, ['a', 'b']);
* // => true
*
* _.has(other, 'a');
* // => false
*/
function has(object, path) {
- return hasPath(object, path, baseHas);
+ return object != null && hasPath(object, path, baseHas);
}
/**
@@ -11172,37 +12121,39 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
- * var object = _.create({ 'a': _.create({ 'b': _.create({ 'c': 3 }) }) });
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.hasIn(object, 'a');
* // => true
*
- * _.hasIn(object, 'a.b.c');
+ * _.hasIn(object, 'a.b');
* // => true
*
- * _.hasIn(object, ['a', 'b', 'c']);
+ * _.hasIn(object, ['a', 'b']);
* // => true
*
* _.hasIn(object, 'b');
* // => false
*/
function hasIn(object, path) {
- return hasPath(object, path, baseHasIn);
+ return object != null && hasPath(object, path, baseHasIn);
}
/**
* Creates an object composed of the inverted keys and values of `object`.
- * If `object` contains duplicate values, subsequent values overwrite property
- * assignments of previous values.
+ * If `object` contains duplicate values, subsequent values overwrite
+ * property assignments of previous values.
*
* @static
* @memberOf _
+ * @since 0.7.0
* @category Object
* @param {Object} object The object to invert.
* @returns {Object} Returns the new inverted object.
@@ -11219,16 +12170,18 @@
/**
* This method is like `_.invert` except that the inverted object is generated
- * from the results of running each element of `object` through `iteratee`.
- * The corresponding inverted value of each inverted key is an array of keys
+ * from the results of running each element of `object` thru `iteratee`. The
+ * corresponding inverted value of each inverted key is an array of keys
* responsible for generating the inverted value. The iteratee is invoked
* with one argument: (value).
*
* @static
* @memberOf _
+ * @since 4.1.0
* @category Object
* @param {Object} object The object to invert.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {Object} Returns the new inverted object.
* @example
*
@@ -11255,6 +12208,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the method to invoke.
@@ -11277,6 +12231,7 @@
* for more details.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -11323,6 +12278,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
@@ -11361,13 +12317,16 @@
/**
* The opposite of `_.mapValues`; this method creates an object with the
* same values as `object` and keys generated by running each own enumerable
- * property of `object` through `iteratee`.
+ * string keyed property of `object` thru `iteratee`. The iteratee is invoked
+ * with three arguments: (value, key, object).
*
* @static
* @memberOf _
+ * @since 3.8.0
* @category Object
* @param {Object} object The object to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
* @returns {Object} Returns the new mapped object.
* @example
*
@@ -11387,15 +12346,18 @@
}
/**
- * Creates an object with the same keys as `object` and values generated by
- * running each own enumerable property of `object` through `iteratee`. The
- * iteratee function is invoked with three arguments: (value, key, object).
+ * Creates an object with the same keys as `object` and values generated
+ * by running each own enumerable string keyed property of `object` thru
+ * `iteratee`. The iteratee is invoked with three arguments:
+ * (value, key, object).
*
* @static
* @memberOf _
+ * @since 2.4.0
* @category Object
* @param {Object} object The object to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The function invoked per iteration.
* @returns {Object} Returns the new mapped object.
* @example
*
@@ -11422,17 +12384,19 @@
}
/**
- * Recursively merges own and inherited enumerable properties of source
- * objects into the destination object, skipping source properties that resolve
- * to `undefined`. Array and plain object properties are merged recursively.
- * Other objects and value types are overridden by assignment. Source objects
- * are applied from left to right. Subsequent sources overwrite property
- * assignments of previous sources.
+ * This method is like `_.assign` except that it recursively merges own and
+ * inherited enumerable string keyed properties of source objects into the
+ * destination object. Source properties that resolve to `undefined` are
+ * skipped if a destination value exists. Array and plain object properties
+ * are merged recursively.Other objects and value types are overridden by
+ * assignment. Source objects are applied from left to right. Subsequent
+ * sources overwrite property assignments of previous sources.
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
+ * @since 0.5.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
@@ -11457,7 +12421,7 @@
/**
* This method is like `_.merge` except that it accepts `customizer` which
* is invoked to produce the merged values of the destination and source
- * properties. If `customizer` returns `undefined` merging is handled by the
+ * properties. If `customizer` returns `undefined`, merging is handled by the
* method instead. The `customizer` is invoked with seven arguments:
* (objValue, srcValue, key, object, source, stack).
*
@@ -11465,6 +12429,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} sources The source objects.
@@ -11497,14 +12462,16 @@
/**
* The opposite of `_.pick`; this method creates an object composed of the
- * own and inherited enumerable properties of `object` that are not omitted.
+ * own and inherited enumerable string keyed properties of `object` that are
+ * not omitted.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property names to omit, specified
- * individually or in arrays..
+ * @param {...(string|string[])} [props] The property identifiers to omit,
+ * specified individually or in arrays.
* @returns {Object} Returns the new object.
* @example
*
@@ -11517,20 +12484,23 @@
if (object == null) {
return {};
}
- props = arrayMap(baseFlatten(props), String);
- return basePick(object, baseDifference(keysIn(object), props));
+ props = arrayMap(baseFlatten(props, 1), baseCastKey);
+ return basePick(object, baseDifference(getAllKeysIn(object), props));
});
/**
- * The opposite of `_.pickBy`; this method creates an object composed of the
- * own and inherited enumerable properties of `object` that `predicate`
- * doesn't return truthy for.
+ * The opposite of `_.pickBy`; this method creates an object composed of
+ * the own and inherited enumerable string keyed properties of `object` that
+ * `predicate` doesn't return truthy for. The predicate is invoked with two
+ * arguments: (value, key).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The source object.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per property.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per property.
* @returns {Object} Returns the new object.
* @example
*
@@ -11540,7 +12510,7 @@
* // => { 'b': '2' }
*/
function omitBy(object, predicate) {
- predicate = getIteratee(predicate, 2);
+ predicate = getIteratee(predicate);
return basePickBy(object, function(value, key) {
return !predicate(value, key);
});
@@ -11550,11 +12520,12 @@
* Creates an object composed of the picked `object` properties.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The source object.
- * @param {...(string|string[])} [props] The property names to pick, specified
- * individually or in arrays.
+ * @param {...(string|string[])} [props] The property identifiers to pick,
+ * specified individually or in arrays.
* @returns {Object} Returns the new object.
* @example
*
@@ -11564,7 +12535,7 @@
* // => { 'a': 1, 'c': 3 }
*/
var pick = rest(function(object, props) {
- return object == null ? {} : basePick(object, baseFlatten(props));
+ return object == null ? {} : basePick(object, baseFlatten(props, 1));
});
/**
@@ -11573,9 +12544,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The source object.
- * @param {Function|Object|string} [predicate=_.identity] The function invoked per property.
+ * @param {Array|Function|Object|string} [predicate=_.identity]
+ * The function invoked per property.
* @returns {Object} Returns the new object.
* @example
*
@@ -11585,20 +12558,21 @@
* // => { 'a': 1, 'c': 3 }
*/
function pickBy(object, predicate) {
- return object == null ? {} : basePickBy(object, getIteratee(predicate, 2));
+ return object == null ? {} : basePickBy(object, getIteratee(predicate));
}
/**
- * This method is like `_.get` except that if the resolved value is a function
- * it's invoked with the `this` binding of its parent object and its result
- * is returned.
+ * This method is like `_.get` except that if the resolved value is a
+ * function it's invoked with the `this` binding of its parent object and
+ * its result is returned.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
@@ -11617,21 +12591,29 @@
* // => 'default'
*/
function result(object, path, defaultValue) {
- if (!isKey(path, object)) {
- path = baseToPath(path);
- var result = get(object, path);
- object = parent(object, path);
- } else {
- result = object == null ? undefined : object[path];
+ path = isKey(path, object) ? [path] : baseCastPath(path);
+
+ var index = -1,
+ length = path.length;
+
+ // Ensure the loop is entered when path is empty.
+ if (!length) {
+ object = undefined;
+ length = 1;
}
- if (result === undefined) {
- result = defaultValue;
+ while (++index < length) {
+ var value = object == null ? undefined : object[path[index]];
+ if (value === undefined) {
+ index = length;
+ value = defaultValue;
+ }
+ object = isFunction(value) ? value.call(object) : value;
}
- return isFunction(result) ? result.call(object) : result;
+ return object;
}
/**
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist
+ * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
* it's created. Arrays are created for missing index properties while objects
* are created for all other missing properties. Use `_.setWith` to customize
* `path` creation.
@@ -11640,6 +12622,7 @@
*
* @static
* @memberOf _
+ * @since 3.7.0
* @category Object
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set.
@@ -11653,7 +12636,7 @@
* console.log(object.a[0].b.c);
* // => 4
*
- * _.set(object, 'x[0].y.z', 5);
+ * _.set(object, ['x', '0', 'y', 'z'], 5);
* console.log(object.x[0].y.z);
* // => 5
*/
@@ -11671,6 +12654,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set.
@@ -11679,8 +12663,10 @@
* @returns {Object} Returns `object`.
* @example
*
- * _.setWith({ '0': { 'length': 2 } }, '[0][1][2]', 3, Object);
- * // => { '0': { '1': { '2': 3 }, 'length': 2 } }
+ * var object = {};
+ *
+ * _.setWith(object, '[0][1]', 'a', Object);
+ * // => { '0': { '1': 'a' } }
*/
function setWith(object, path, value, customizer) {
customizer = typeof customizer == 'function' ? customizer : undefined;
@@ -11688,10 +12674,13 @@
}
/**
- * Creates an array of own enumerable key-value pairs for `object`.
+ * Creates an array of own enumerable string keyed-value pairs for `object`
+ * which can be consumed by `_.fromPairs`.
*
* @static
* @memberOf _
+ * @since 4.0.0
+ * @alias entries
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the new array of key-value pairs.
@@ -11712,10 +12701,13 @@
}
/**
- * Creates an array of own and inherited enumerable key-value pairs for `object`.
+ * Creates an array of own and inherited enumerable string keyed-value pairs
+ * for `object` which can be consumed by `_.fromPairs`.
*
* @static
* @memberOf _
+ * @since 4.0.0
+ * @alias entriesIn
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the new array of key-value pairs.
@@ -11737,14 +12729,15 @@
/**
* An alternative to `_.reduce`; this method transforms `object` to a new
- * `accumulator` object which is the result of running each of its own enumerable
- * properties through `iteratee`, with each invocation potentially mutating
- * the `accumulator` object. The iteratee is invoked with four arguments:
- * (accumulator, value, key, object). Iteratee functions may exit iteration
- * early by explicitly returning `false`.
+ * `accumulator` object which is the result of running each of its own
+ * enumerable string keyed properties thru `iteratee`, with each invocation
+ * potentially mutating the `accumulator` object. The iteratee is invoked
+ * with four arguments: (accumulator, value, key, object). Iteratee functions
+ * may exit iteration early by explicitly returning `false`.
*
* @static
* @memberOf _
+ * @since 1.3.0
* @category Object
* @param {Array|Object} object The object to iterate over.
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
@@ -11773,7 +12766,7 @@
if (isArr) {
accumulator = isArray(object) ? new Ctor : [];
} else {
- accumulator = baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);
+ accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
}
} else {
accumulator = {};
@@ -11792,6 +12785,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Object
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to unset.
@@ -11805,7 +12799,7 @@
* console.log(object);
* // => { 'a': [{ 'b': {} }] };
*
- * _.unset(object, 'a[0].b.c');
+ * _.unset(object, ['a', '0', 'b', 'c']);
* // => true
*
* console.log(object);
@@ -11816,11 +12810,72 @@
}
/**
- * Creates an array of the own enumerable property values of `object`.
+ * This method is like `_.set` except that accepts `updater` to produce the
+ * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
+ * is invoked with one argument: (value).
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.6.0
+ * @category Object
+ * @param {Object} object The object to modify.
+ * @param {Array|string} path The path of the property to set.
+ * @param {Function} updater The function to produce the updated value.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+ *
+ * _.update(object, 'a[0].b.c', function(n) { return n * n; });
+ * console.log(object.a[0].b.c);
+ * // => 9
+ *
+ * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
+ * console.log(object.x[0].y.z);
+ * // => 0
+ */
+ function update(object, path, updater) {
+ return object == null ? object : baseUpdate(object, path, baseCastFunction(updater));
+ }
+
+ /**
+ * This method is like `_.update` except that it accepts `customizer` which is
+ * invoked to produce the objects of `path`. If `customizer` returns `undefined`
+ * path creation is handled by the method instead. The `customizer` is invoked
+ * with three arguments: (nsValue, key, nsObject).
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.6.0
+ * @category Object
+ * @param {Object} object The object to modify.
+ * @param {Array|string} path The path of the property to set.
+ * @param {Function} updater The function to produce the updated value.
+ * @param {Function} [customizer] The function to customize assigned values.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * var object = {};
+ *
+ * _.updateWith(object, '[0][1]', _.constant('a'), Object);
+ * // => { '0': { '1': 'a' } }
+ */
+ function updateWith(object, path, updater, customizer) {
+ customizer = typeof customizer == 'function' ? customizer : undefined;
+ return object == null ? object : baseUpdate(object, path, baseCastFunction(updater), customizer);
+ }
+
+ /**
+ * Creates an array of the own enumerable string keyed property values of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
@@ -11845,12 +12900,14 @@
}
/**
- * Creates an array of the own and inherited enumerable property values of `object`.
+ * Creates an array of the own and inherited enumerable string keyed property
+ * values of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property values.
@@ -11867,7 +12924,7 @@
* // => [1, 2, 3] (iteration order is not guaranteed)
*/
function valuesIn(object) {
- return object == null ? baseValues(object, keysIn(object)) : [];
+ return object == null ? [] : baseValues(object, keysIn(object));
}
/*------------------------------------------------------------------------*/
@@ -11877,6 +12934,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Number
* @param {number} number The number to clamp.
* @param {number} [lower] The lower bound.
@@ -11908,12 +12966,13 @@
/**
* Checks if `n` is between `start` and up to but not including, `end`. If
- * `end` is not specified it's set to `start` with `start` then set to `0`.
+ * `end` is not specified, it's set to `start` with `start` then set to `0`.
* If `start` is greater than `end` the params are swapped to support
* negative ranges.
*
* @static
* @memberOf _
+ * @since 3.3.0
* @category Number
* @param {number} number The number to check.
* @param {number} [start=0] The start of the range.
@@ -11957,14 +13016,15 @@
/**
* Produces a random number between the inclusive `lower` and `upper` bounds.
* If only one argument is provided a number between `0` and the given number
- * is returned. If `floating` is `true`, or either `lower` or `upper` are floats,
- * a floating-point number is returned instead of an integer.
+ * is returned. If `floating` is `true`, or either `lower` or `upper` are
+ * floats, a floating-point number is returned instead of an integer.
*
* **Note:** JavaScript follows the IEEE-754 standard for resolving
* floating-point values which can produce unexpected results.
*
* @static
* @memberOf _
+ * @since 0.7.0
* @category Number
* @param {number} [lower=0] The lower bound.
* @param {number} [upper=1] The upper bound.
@@ -12030,6 +13090,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the camel cased string.
@@ -12038,10 +13099,10 @@
* _.camelCase('Foo Bar');
* // => 'fooBar'
*
- * _.camelCase('--foo-bar');
+ * _.camelCase('--foo-bar--');
* // => 'fooBar'
*
- * _.camelCase('__foo_bar__');
+ * _.camelCase('__FOO_BAR__');
* // => 'fooBar'
*/
var camelCase = createCompounder(function(result, word, index) {
@@ -12055,6 +13116,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to capitalize.
* @returns {string} Returns the capitalized string.
@@ -12068,11 +13130,14 @@
}
/**
- * Deburrs `string` by converting [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
- * to basic latin letters and removing [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
+ * Deburrs `string` by converting
+ * [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
+ * to basic latin letters and removing
+ * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to deburr.
* @returns {string} Returns the deburred string.
@@ -12091,11 +13156,13 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to search.
* @param {string} [target] The string to search for.
* @param {number} [position=string.length] The position to search from.
- * @returns {boolean} Returns `true` if `string` ends with `target`, else `false`.
+ * @returns {boolean} Returns `true` if `string` ends with `target`,
+ * else `false`.
* @example
*
* _.endsWith('abc', 'c');
@@ -12129,20 +13196,22 @@
*
* Though the ">" character is escaped for symmetry, characters like
* ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value.
- * See [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
+ * unless they're part of a tag or unquoted attribute value. See
+ * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
* (under "semi-related fun fact") for more details.
*
* Backticks are escaped because in IE < 9, they can break out of
* attribute values or HTML comments. See [#59](https://html5sec.org/#59),
* [#102](https://html5sec.org/#102), [#108](https://html5sec.org/#108), and
- * [#133](https://html5sec.org/#133) of the [HTML5 Security Cheatsheet](https://html5sec.org/)
- * for more details.
+ * [#133](https://html5sec.org/#133) of the
+ * [HTML5 Security Cheatsheet](https://html5sec.org/) for more details.
*
- * When working with HTML you should always [quote attribute values](http://wonko.com/post/html-escaping)
- * to reduce XSS vectors.
+ * When working with HTML you should always
+ * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
+ * XSS vectors.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category String
* @param {string} [string=''] The string to escape.
@@ -12165,6 +13234,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to escape.
* @returns {string} Returns the escaped string.
@@ -12181,10 +13251,12 @@
}
/**
- * Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
+ * Converts `string` to
+ * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the kebab cased string.
@@ -12196,7 +13268,7 @@
* _.kebabCase('fooBar');
* // => 'foo-bar'
*
- * _.kebabCase('__foo_bar__');
+ * _.kebabCase('__FOO_BAR__');
* // => 'foo-bar'
*/
var kebabCase = createCompounder(function(result, word, index) {
@@ -12208,12 +13280,13 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the lower cased string.
* @example
*
- * _.lowerCase('--Foo-Bar');
+ * _.lowerCase('--Foo-Bar--');
* // => 'foo bar'
*
* _.lowerCase('fooBar');
@@ -12231,6 +13304,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the converted string.
@@ -12244,30 +13318,13 @@
*/
var lowerFirst = createCaseFirst('toLowerCase');
- /**
- * Converts the first character of `string` to upper case.
- *
- * @static
- * @memberOf _
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.upperFirst('fred');
- * // => 'Fred'
- *
- * _.upperFirst('FRED');
- * // => 'FRED'
- */
- var upperFirst = createCaseFirst('toUpperCase');
-
/**
* Pads `string` on the left and right sides if it's shorter than `length`.
* Padding characters are truncated if they can't be evenly divided by `length`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to pad.
* @param {number} [length=0] The padding length.
@@ -12288,15 +13345,16 @@
string = toString(string);
length = toInteger(length);
- var strLength = stringSize(string);
+ var strLength = length ? stringSize(string) : 0;
if (!length || strLength >= length) {
return string;
}
- var mid = (length - strLength) / 2,
- leftLength = nativeFloor(mid),
- rightLength = nativeCeil(mid);
-
- return createPadding('', leftLength, chars) + string + createPadding('', rightLength, chars);
+ var mid = (length - strLength) / 2;
+ return (
+ createPadding(nativeFloor(mid), chars) +
+ string +
+ createPadding(nativeCeil(mid), chars)
+ );
}
/**
@@ -12305,6 +13363,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to pad.
* @param {number} [length=0] The padding length.
@@ -12323,7 +13382,12 @@
*/
function padEnd(string, length, chars) {
string = toString(string);
- return string + createPadding(string, length, chars);
+ length = toInteger(length);
+
+ var strLength = length ? stringSize(string) : 0;
+ return (length && strLength < length)
+ ? (string + createPadding(length - strLength, chars))
+ : string;
}
/**
@@ -12332,6 +13396,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to pad.
* @param {number} [length=0] The padding length.
@@ -12350,23 +13415,29 @@
*/
function padStart(string, length, chars) {
string = toString(string);
- return createPadding(string, length, chars) + string;
+ length = toInteger(length);
+
+ var strLength = length ? stringSize(string) : 0;
+ return (length && strLength < length)
+ ? (createPadding(length - strLength, chars) + string)
+ : string;
}
/**
* Converts `string` to an integer of the specified radix. If `radix` is
- * `undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal,
- * in which case a `radix` of `16` is used.
+ * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
+ * hexadecimal, in which case a `radix` of `16` is used.
*
- * **Note:** This method aligns with the [ES5 implementation](https://es5.github.io/#x15.1.2.2)
- * of `parseInt`.
+ * **Note:** This method aligns with the
+ * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
*
* @static
* @memberOf _
+ * @since 1.1.0
* @category String
* @param {string} string The string to convert.
- * @param {number} [radix] The radix to interpret `value` by.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param {number} [radix=10] The radix to interpret `value` by.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {number} Returns the converted integer.
* @example
*
@@ -12378,7 +13449,7 @@
*/
function parseInt(string, radix, guard) {
// Chrome fails to trim leading whitespace characters.
- // See https://code.google.com/p/v8/issues/detail?id=3109 for more details.
+ // See https://bugs.chromium.org/p/v8/issues/detail?id=3109 for more details.
if (guard || radix == null) {
radix = 0;
} else if (radix) {
@@ -12393,9 +13464,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to repeat.
- * @param {number} [n=0] The number of times to repeat the string.
+ * @param {number} [n=1] The number of times to repeat the string.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {string} Returns the repeated string.
* @example
*
@@ -12408,34 +13481,24 @@
* _.repeat('abc', 0);
* // => ''
*/
- function repeat(string, n) {
- string = toString(string);
- n = toInteger(n);
-
- var result = '';
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
- return result;
+ function repeat(string, n, guard) {
+ if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
+ n = 1;
+ } else {
+ n = toInteger(n);
}
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
- do {
- if (n % 2) {
- result += string;
- }
- n = nativeFloor(n / 2);
- string += string;
- } while (n);
-
- return result;
+ return baseRepeat(toString(string), n);
}
/**
* Replaces matches for `pattern` in `string` with `replacement`.
*
- * **Note:** This method is based on [`String#replace`](https://mdn.io/String/replace).
+ * **Note:** This method is based on
+ * [`String#replace`](https://mdn.io/String/replace).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to modify.
* @param {RegExp|string} pattern The pattern to replace.
@@ -12454,10 +13517,12 @@
}
/**
- * Converts `string` to [snake case](https://en.wikipedia.org/wiki/Snake_case).
+ * Converts `string` to
+ * [snake case](https://en.wikipedia.org/wiki/Snake_case).
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the snake cased string.
@@ -12469,7 +13534,7 @@
* _.snakeCase('fooBar');
* // => 'foo_bar'
*
- * _.snakeCase('--foo-bar');
+ * _.snakeCase('--FOO-BAR--');
* // => 'foo_bar'
*/
var snakeCase = createCompounder(function(result, word, index) {
@@ -12479,10 +13544,12 @@
/**
* Splits `string` by `separator`.
*
- * **Note:** This method is based on [`String#split`](https://mdn.io/String/split).
+ * **Note:** This method is based on
+ * [`String#split`](https://mdn.io/String/split).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to split.
* @param {RegExp|string} separator The separator pattern to split by.
@@ -12494,30 +13561,43 @@
* // => ['a', 'b']
*/
function split(string, separator, limit) {
- return toString(string).split(separator, limit);
+ string = toString(string);
+ if (string && (
+ typeof separator == 'string' ||
+ (separator != null && !isRegExp(separator))
+ )) {
+ separator += '';
+ if (separator == '' && reHasComplexSymbol.test(string)) {
+ var strSymbols = stringToArray(string);
+ return limit === undefined ? strSymbols : strSymbols.slice(0, limit < 0 ? 0 : limit);
+ }
+ }
+ return string.split(separator, limit);
}
/**
- * Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
+ * Converts `string` to
+ * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
*
* @static
* @memberOf _
+ * @since 3.1.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the start cased string.
* @example
*
- * _.startCase('--foo-bar');
+ * _.startCase('--foo-bar--');
* // => 'Foo Bar'
*
* _.startCase('fooBar');
* // => 'Foo Bar'
*
- * _.startCase('__foo_bar__');
- * // => 'Foo Bar'
+ * _.startCase('__FOO_BAR__');
+ * // => 'FOO BAR'
*/
var startCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + capitalize(word);
+ return result + (index ? ' ' : '') + upperFirst(word);
});
/**
@@ -12525,11 +13605,13 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to search.
* @param {string} [target] The string to search for.
* @param {number} [position=0] The position to search from.
- * @returns {boolean} Returns `true` if `string` starts with `target`, else `false`.
+ * @returns {boolean} Returns `true` if `string` starts with `target`,
+ * else `false`.
* @example
*
* _.startsWith('abc', 'a');
@@ -12552,7 +13634,7 @@
* in "interpolate" delimiters, HTML-escape interpolated data properties in
* "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
* properties may be accessed as free variables in the template. If a setting
- * object is given it takes precedence over `_.templateSettings` values.
+ * object is given, it takes precedence over `_.templateSettings` values.
*
* **Note:** In the development build `_.template` utilizes
* [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
@@ -12565,17 +13647,24 @@
* [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category String
* @param {string} [string=''] The template string.
- * @param {Object} [options] The options object.
- * @param {RegExp} [options.escape] The HTML "escape" delimiter.
- * @param {RegExp} [options.evaluate] The "evaluate" delimiter.
- * @param {Object} [options.imports] An object to import into the template as free variables.
- * @param {RegExp} [options.interpolate] The "interpolate" delimiter.
- * @param {string} [options.sourceURL] The sourceURL of the template's compiled source.
- * @param {string} [options.variable] The data object variable name.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param {Object} [options={}] The options object.
+ * @param {RegExp} [options.escape=_.templateSettings.escape]
+ * The HTML "escape" delimiter.
+ * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
+ * The "evaluate" delimiter.
+ * @param {Object} [options.imports=_.templateSettings.imports]
+ * An object to import into the template as free variables.
+ * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
+ * The "interpolate" delimiter.
+ * @param {string} [options.sourceURL='lodash.templateSources[n]']
+ * The sourceURL of the compiled template.
+ * @param {string} [options.variable='obj']
+ * The data object variable name.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Function} Returns the compiled template function.
* @example
*
@@ -12624,7 +13713,7 @@
* // Use the `sourceURL` option to specify a custom sourceURL for the template.
* var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
* compiled(data);
- * // => find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector
+ * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
*
* // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
* var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
@@ -12644,7 +13733,8 @@
* ');
*/
function template(string, options, guard) {
- // Based on John Resig's `tmpl` implementation (http://ejohn.org/blog/javascript-micro-templating/)
+ // Based on John Resig's `tmpl` implementation
+ // (http://ejohn.org/blog/javascript-micro-templating/)
// and Laura Doktorova's doT.js (https://github.com/olado/doT).
var settings = lodash.templateSettings;
@@ -12737,7 +13827,8 @@
'return __p\n}';
var result = attempt(function() {
- return Function(importsKeys, sourceURL + 'return ' + source).apply(undefined, importsValues);
+ return Function(importsKeys, sourceURL + 'return ' + source)
+ .apply(undefined, importsValues);
});
// Provide the compiled function's source by its `toString` method or
@@ -12750,17 +13841,19 @@
}
/**
- * Converts `string`, as a whole, to lower case.
+ * Converts `string`, as a whole, to lower case just like
+ * [String#toLowerCase](https://mdn.io/toLowerCase).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the lower cased string.
* @example
*
- * _.toLower('--Foo-Bar');
- * // => '--foo-bar'
+ * _.toLower('--Foo-Bar--');
+ * // => '--foo-bar--'
*
* _.toLower('fooBar');
* // => 'foobar'
@@ -12773,17 +13866,19 @@
}
/**
- * Converts `string`, as a whole, to upper case.
+ * Converts `string`, as a whole, to upper case just like
+ * [String#toUpperCase](https://mdn.io/toUpperCase).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the upper cased string.
* @example
*
- * _.toUpper('--foo-bar');
- * // => '--FOO-BAR'
+ * _.toUpper('--foo-bar--');
+ * // => '--FOO-BAR--'
*
* _.toUpper('fooBar');
* // => 'FOOBAR'
@@ -12800,10 +13895,11 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to trim.
* @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {string} Returns the trimmed string.
* @example
*
@@ -12831,7 +13927,9 @@
var strSymbols = stringToArray(string),
chrSymbols = stringToArray(chars);
- return strSymbols.slice(charsStartIndex(strSymbols, chrSymbols), charsEndIndex(strSymbols, chrSymbols) + 1).join('');
+ return strSymbols
+ .slice(charsStartIndex(strSymbols, chrSymbols), charsEndIndex(strSymbols, chrSymbols) + 1)
+ .join('');
}
/**
@@ -12839,10 +13937,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to trim.
* @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {string} Returns the trimmed string.
* @example
*
@@ -12865,7 +13964,9 @@
return string;
}
var strSymbols = stringToArray(string);
- return strSymbols.slice(0, charsEndIndex(strSymbols, stringToArray(chars)) + 1).join('');
+ return strSymbols
+ .slice(0, charsEndIndex(strSymbols, stringToArray(chars)) + 1)
+ .join('');
}
/**
@@ -12873,10 +13974,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to trim.
* @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {string} Returns the trimmed string.
* @example
*
@@ -12899,7 +14001,9 @@
return string;
}
var strSymbols = stringToArray(string);
- return strSymbols.slice(charsStartIndex(strSymbols, stringToArray(chars))).join('');
+ return strSymbols
+ .slice(charsStartIndex(strSymbols, stringToArray(chars)))
+ .join('');
}
/**
@@ -12909,9 +14013,10 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to truncate.
- * @param {Object} [options] The options object.
+ * @param {Object} [options={}] The options object.
* @param {number} [options.length=30] The maximum string length.
* @param {string} [options.omission='...'] The string to indicate text is omitted.
* @param {RegExp|string} [options.separator] The separator pattern to truncate to.
@@ -12996,14 +14101,15 @@
/**
* The inverse of `_.escape`; this method converts the HTML entities
- * `&`, `<`, `>`, `"`, `'`, and ``` in `string` to their
- * corresponding characters.
+ * `&`, `<`, `>`, `"`, `'`, and ``` in `string` to
+ * their corresponding characters.
*
- * **Note:** No other HTML entities are unescaped. To unescape additional HTML
- * entities use a third-party library like [_he_](https://mths.be/he).
+ * **Note:** No other HTML entities are unescaped. To unescape additional
+ * HTML entities use a third-party library like [_he_](https://mths.be/he).
*
* @static
* @memberOf _
+ * @since 0.6.0
* @category String
* @param {string} [string=''] The string to unescape.
* @returns {string} Returns the unescaped string.
@@ -13024,6 +14130,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category String
* @param {string} [string=''] The string to convert.
* @returns {string} Returns the upper cased string.
@@ -13042,15 +14149,35 @@
return result + (index ? ' ' : '') + word.toUpperCase();
});
+ /**
+ * Converts the first character of `string` to upper case.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.0.0
+ * @category String
+ * @param {string} [string=''] The string to convert.
+ * @returns {string} Returns the converted string.
+ * @example
+ *
+ * _.upperFirst('fred');
+ * // => 'Fred'
+ *
+ * _.upperFirst('FRED');
+ * // => 'FRED'
+ */
+ var upperFirst = createCaseFirst('toUpperCase');
+
/**
* Splits `string` into an array of its words.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category String
* @param {string} [string=''] The string to inspect.
* @param {RegExp|string} [pattern] The pattern to match words.
- * @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`.
+ * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {Array} Returns the words of `string`.
* @example
*
@@ -13078,8 +14205,10 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Util
* @param {Function} func The function to attempt.
+ * @param {...*} [args] The arguments to invoke `func` with.
* @returns {*} Returns the `func` result or error object.
* @example
*
@@ -13096,7 +14225,7 @@
try {
return apply(func, undefined, args);
} catch (e) {
- return isObject(e) ? e : new Error(e);
+ return isError(e) ? e : new Error(e);
}
});
@@ -13107,6 +14236,7 @@
* **Note:** This method doesn't set the "length" property of bound functions.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {Object} object The object to bind and assign the bound methods to.
@@ -13124,10 +14254,10 @@
*
* _.bindAll(view, 'onClick');
* jQuery(element).on('click', view.onClick);
- * // => logs 'clicked docs' when clicked
+ * // => Logs 'clicked docs' when clicked.
*/
var bindAll = rest(function(object, methodNames) {
- arrayEach(baseFlatten(methodNames), function(key) {
+ arrayEach(baseFlatten(methodNames, 1), function(key) {
object[key] = bind(object[key], object);
});
return object;
@@ -13141,6 +14271,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {Array} pairs The predicate-function pairs.
* @returns {Function} Returns the new function.
@@ -13190,6 +14321,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {Object} source The object of property predicates to conform to.
* @returns {Function} Returns the new function.
@@ -13212,6 +14344,7 @@
*
* @static
* @memberOf _
+ * @since 2.4.0
* @category Util
* @param {*} value The value to return from the new function.
* @returns {Function} Returns the new function.
@@ -13236,6 +14369,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Util
* @param {...(Function|Function[])} [funcs] Functions to invoke.
* @returns {Function} Returns the new function.
@@ -13256,6 +14390,7 @@
* invokes the given functions from right to left.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {...(Function|Function[])} [funcs] Functions to invoke.
@@ -13276,6 +14411,7 @@
* This method returns the first argument given to it.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
@@ -13293,11 +14429,13 @@
/**
* Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name the created callback returns the
- * property value for a given element. If `func` is an object the created
- * callback returns `true` for elements that contain the equivalent object properties, otherwise it returns `false`.
+ * function. If `func` is a property name, the created function returns the
+ * property value for a given element. If `func` is an array or object, the
+ * created function returns `true` for elements that contain the equivalent
+ * source properties, otherwise it returns `false`.
*
* @static
+ * @since 4.0.0
* @memberOf _
* @category Util
* @param {*} [func=_.identity] The value to convert to a callback.
@@ -13305,34 +14443,47 @@
* @example
*
* var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
+ * { 'user': 'barney', 'age': 36, 'active': true },
+ * { 'user': 'fred', 'age': 40, 'active': false }
* ];
*
+ * // The `_.matches` iteratee shorthand.
+ * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
+ * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
+ *
+ * // The `_.matchesProperty` iteratee shorthand.
+ * _.filter(users, _.iteratee(['user', 'fred']));
+ * // => [{ 'user': 'fred', 'age': 40 }]
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.map(users, _.iteratee('user'));
+ * // => ['barney', 'fred']
+ *
* // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(callback, func) {
- * var p = /^(\S+)\s*([<>])\s*(\S+)$/.exec(func);
- * return !p ? callback(func) : function(object) {
- * return (p[2] == '>' ? object[p[1]] > p[3] : object[p[1]] < p[3]);
+ * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
+ * return !_.isRegExp(func) ? iteratee(func) : function(string) {
+ * return func.test(string);
* };
* });
*
- * _.filter(users, 'age > 36');
- * // => [{ 'user': 'fred', 'age': 40 }]
+ * _.filter(['abc', 'def'], /ef/);
+ * // => ['def']
*/
function iteratee(func) {
return baseIteratee(typeof func == 'function' ? func : baseClone(func, true));
}
/**
- * Creates a function that performs a deep partial comparison between a given
+ * Creates a function that performs a partial deep comparison between a given
* object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`.
+ * property values, else `false`. The created function is equivalent to
+ * `_.isMatch` with a `source` partially applied.
*
* **Note:** This method supports comparing the same values as `_.isEqual`.
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Util
* @param {Object} source The object of property values to match.
* @returns {Function} Returns the new function.
@@ -13351,7 +14502,7 @@
}
/**
- * Creates a function that performs a deep partial comparison between the
+ * Creates a function that performs a partial deep comparison between the
* value at `path` of a given object to `srcValue`, returning `true` if the
* object value is equivalent, else `false`.
*
@@ -13359,6 +14510,7 @@
*
* @static
* @memberOf _
+ * @since 3.2.0
* @category Util
* @param {Array|string} path The path of the property to get.
* @param {*} srcValue The value to match.
@@ -13383,6 +14535,7 @@
*
* @static
* @memberOf _
+ * @since 3.7.0
* @category Util
* @param {Array|string} path The path of the method to invoke.
* @param {...*} [args] The arguments to invoke the method with.
@@ -13390,15 +14543,15 @@
* @example
*
* var objects = [
- * { 'a': { 'b': { 'c': _.constant(2) } } },
- * { 'a': { 'b': { 'c': _.constant(1) } } }
+ * { 'a': { 'b': _.constant(2) } },
+ * { 'a': { 'b': _.constant(1) } }
* ];
*
- * _.map(objects, _.method('a.b.c'));
+ * _.map(objects, _.method('a.b'));
* // => [2, 1]
*
- * _.invokeMap(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');
- * // => [1, 2]
+ * _.map(objects, _.method(['a', 'b']));
+ * // => [2, 1]
*/
var method = rest(function(path, args) {
return function(object) {
@@ -13413,6 +14566,7 @@
*
* @static
* @memberOf _
+ * @since 3.7.0
* @category Util
* @param {Object} object The object to query.
* @param {...*} [args] The arguments to invoke the method with.
@@ -13435,21 +14589,21 @@
});
/**
- * Adds all own enumerable function properties of a source object to the
- * destination object. If `object` is a function then methods are added to
- * its prototype as well.
+ * Adds all own enumerable string keyed function properties of a source
+ * object to the destination object. If `object` is a function, then methods
+ * are added to its prototype as well.
*
* **Note:** Use `_.runInContext` to create a pristine `lodash` function to
* avoid conflicts caused by modifying the original.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {Function|Object} [object=lodash] The destination object.
* @param {Object} source The object of functions to add.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.chain=true] Specify whether the functions added
- * are chainable.
+ * @param {Object} [options={}] The options object.
+ * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
* @returns {Function|Object} Returns `object`.
* @example
*
@@ -13511,6 +14665,7 @@
* the `lodash` function.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @returns {Function} Returns the `lodash` function.
@@ -13531,6 +14686,7 @@
*
* @static
* @memberOf _
+ * @since 2.3.0
* @category Util
* @example
*
@@ -13548,6 +14704,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {number} [n=0] The index of the argument to return.
* @returns {Function} Returns the new function.
@@ -13566,11 +14723,12 @@
}
/**
- * Creates a function that invokes `iteratees` with the arguments provided
- * to the created function and returns their results.
+ * Creates a function that invokes `iteratees` with the arguments it receives
+ * and returns their results.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {...(Function|Function[])} iteratees The iteratees to invoke.
* @returns {Function} Returns the new function.
@@ -13585,10 +14743,11 @@
/**
* Creates a function that checks if **all** of the `predicates` return
- * truthy when invoked with the arguments provided to the created function.
+ * truthy when invoked with the arguments it receives.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {...(Function|Function[])} predicates The predicates to check.
* @returns {Function} Returns the new function.
@@ -13609,10 +14768,11 @@
/**
* Creates a function that checks if **any** of the `predicates` return
- * truthy when invoked with the arguments provided to the created function.
+ * truthy when invoked with the arguments it receives.
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {...(Function|Function[])} predicates The predicates to check.
* @returns {Function} Returns the new function.
@@ -13636,20 +14796,21 @@
*
* @static
* @memberOf _
+ * @since 2.4.0
* @category Util
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new function.
* @example
*
* var objects = [
- * { 'a': { 'b': { 'c': 2 } } },
- * { 'a': { 'b': { 'c': 1 } } }
+ * { 'a': { 'b': 2 } },
+ * { 'a': { 'b': 1 } }
* ];
*
- * _.map(objects, _.property('a.b.c'));
+ * _.map(objects, _.property('a.b'));
* // => [2, 1]
*
- * _.map(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
* // => [1, 2]
*/
function property(path) {
@@ -13662,6 +14823,7 @@
*
* @static
* @memberOf _
+ * @since 3.0.0
* @category Util
* @param {Object} object The object to query.
* @returns {Function} Returns the new function.
@@ -13685,13 +14847,14 @@
/**
* Creates an array of numbers (positive and/or negative) progressing from
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
- * `start` is specified without an `end` or `step`. If `end` is not specified
+ * `start` is specified without an `end` or `step`. If `end` is not specified,
* it's set to `start` with `start` then set to `0`.
*
* **Note:** JavaScript follows the IEEE-754 standard for resolving
* floating-point values which can produce unexpected results.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {number} [start=0] The start of the range.
@@ -13729,6 +14892,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {number} [start=0] The start of the range.
* @param {number} end The end of the range.
@@ -13760,10 +14924,11 @@
var rangeRight = createRange(true);
/**
- * Invokes the iteratee function `n` times, returning an array of the results
- * of each invocation. The iteratee is invoked with one argument; (index).
+ * Invokes the iteratee `n` times, returning an array of the results of
+ * each invocation. The iteratee is invoked with one argument; (index).
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
* @param {number} n The number of times to invoke `iteratee`.
@@ -13785,7 +14950,7 @@
var index = MAX_ARRAY_LENGTH,
length = nativeMin(n, MAX_ARRAY_LENGTH);
- iteratee = toFunction(iteratee);
+ iteratee = getIteratee(iteratee);
n -= MAX_ARRAY_LENGTH;
var result = baseTimes(length, iteratee);
@@ -13800,6 +14965,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Util
* @param {*} value The value to convert.
* @returns {Array} Returns the new property path array.
@@ -13821,16 +14987,20 @@
* // => false
*/
function toPath(value) {
- return isArray(value) ? arrayMap(value, String) : stringToPath(value);
+ if (isArray(value)) {
+ return arrayMap(value, baseCastKey);
+ }
+ return isSymbol(value) ? [value] : copyArray(stringToPath(value));
}
/**
- * Generates a unique ID. If `prefix` is given the ID is appended to it.
+ * Generates a unique ID. If `prefix` is given, the ID is appended to it.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Util
- * @param {string} [prefix] The value to prefix the ID with.
+ * @param {string} [prefix=''] The value to prefix the ID with.
* @returns {string} Returns the unique ID.
* @example
*
@@ -13852,6 +15022,7 @@
*
* @static
* @memberOf _
+ * @since 3.4.0
* @category Math
* @param {number} augend The first number in an addition.
* @param {number} addend The second number in an addition.
@@ -13861,25 +15032,16 @@
* _.add(6, 4);
* // => 10
*/
- function add(augend, addend) {
- var result;
- if (augend === undefined && addend === undefined) {
- return 0;
- }
- if (augend !== undefined) {
- result = augend;
- }
- if (addend !== undefined) {
- result = result === undefined ? addend : (result + addend);
- }
- return result;
- }
+ var add = createMathOperation(function(augend, addend) {
+ return augend + addend;
+ });
/**
* Computes `number` rounded up to `precision`.
*
* @static
* @memberOf _
+ * @since 3.10.0
* @category Math
* @param {number} number The number to round up.
* @param {number} [precision=0] The precision to round up to.
@@ -13897,11 +15059,31 @@
*/
var ceil = createRound('ceil');
+ /**
+ * Divide two numbers.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Math
+ * @param {number} dividend The first number in a division.
+ * @param {number} divisor The second number in a division.
+ * @returns {number} Returns the quotient.
+ * @example
+ *
+ * _.divide(6, 4);
+ * // => 1.5
+ */
+ var divide = createMathOperation(function(dividend, divisor) {
+ return dividend / divisor;
+ });
+
/**
* Computes `number` rounded down to `precision`.
*
* @static
* @memberOf _
+ * @since 3.10.0
* @category Math
* @param {number} number The number to round down.
* @param {number} [precision=0] The precision to round down to.
@@ -13920,10 +15102,11 @@
var floor = createRound('floor');
/**
- * Computes the maximum value of `array`. If `array` is empty or falsey
+ * Computes the maximum value of `array`. If `array` is empty or falsey,
* `undefined` is returned.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Math
* @param {Array} array The array to iterate over.
@@ -13949,9 +15132,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Math
* @param {Array} array The array to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {*} Returns the maximum value.
* @example
*
@@ -13975,6 +15160,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Math
* @param {Array} array The array to iterate over.
* @returns {number} Returns the mean.
@@ -13984,14 +15170,43 @@
* // => 5
*/
function mean(array) {
- return sum(array) / (array ? array.length : 0);
+ return baseMean(array, identity);
+ }
+
+ /**
+ * This method is like `_.mean` except that it accepts `iteratee` which is
+ * invoked for each element in `array` to generate the value to be averaged.
+ * The iteratee is invoked with one argument: (value).
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Math
+ * @param {Array} array The array to iterate over.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
+ * @returns {number} Returns the mean.
+ * @example
+ *
+ * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
+ *
+ * _.meanBy(objects, function(o) { return o.n; });
+ * // => 5
+ *
+ * // The `_.property` iteratee shorthand.
+ * _.meanBy(objects, 'n');
+ * // => 5
+ */
+ function meanBy(array, iteratee) {
+ return baseMean(array, getIteratee(iteratee));
}
/**
- * Computes the minimum value of `array`. If `array` is empty or falsey
+ * Computes the minimum value of `array`. If `array` is empty or falsey,
* `undefined` is returned.
*
* @static
+ * @since 0.1.0
* @memberOf _
* @category Math
* @param {Array} array The array to iterate over.
@@ -14017,9 +15232,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Math
* @param {Array} array The array to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {*} Returns the minimum value.
* @example
*
@@ -14038,11 +15255,31 @@
: undefined;
}
+ /**
+ * Multiply two numbers.
+ *
+ * @static
+ * @memberOf _
+ * @since 4.7.0
+ * @category Math
+ * @param {number} multiplier The first number in a multiplication.
+ * @param {number} multiplicand The second number in a multiplication.
+ * @returns {number} Returns the product.
+ * @example
+ *
+ * _.multiply(6, 4);
+ * // => 24
+ */
+ var multiply = createMathOperation(function(multiplier, multiplicand) {
+ return multiplier * multiplicand;
+ });
+
/**
* Computes `number` rounded to `precision`.
*
* @static
* @memberOf _
+ * @since 3.10.0
* @category Math
* @param {number} number The number to round.
* @param {number} [precision=0] The precision to round to.
@@ -14065,6 +15302,7 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Math
* @param {number} minuend The first number in a subtraction.
* @param {number} subtrahend The second number in a subtraction.
@@ -14074,25 +15312,16 @@
* _.subtract(6, 4);
* // => 2
*/
- function subtract(minuend, subtrahend) {
- var result;
- if (minuend === undefined && subtrahend === undefined) {
- return 0;
- }
- if (minuend !== undefined) {
- result = minuend;
- }
- if (subtrahend !== undefined) {
- result = result === undefined ? subtrahend : (result - subtrahend);
- }
- return result;
- }
+ var subtract = createMathOperation(function(minuend, subtrahend) {
+ return minuend - subtrahend;
+ });
/**
* Computes the sum of the values in `array`.
*
* @static
* @memberOf _
+ * @since 3.4.0
* @category Math
* @param {Array} array The array to iterate over.
* @returns {number} Returns the sum.
@@ -14114,9 +15343,11 @@
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Math
* @param {Array} array The array to iterate over.
- * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element.
+ * @param {Array|Function|Object|string} [iteratee=_.identity]
+ * The iteratee invoked per element.
* @returns {number} Returns the sum.
* @example
*
@@ -14137,39 +15368,7 @@
/*------------------------------------------------------------------------*/
- // Ensure wrappers are instances of `baseLodash`.
- lodash.prototype = baseLodash.prototype;
-
- LodashWrapper.prototype = baseCreate(baseLodash.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
-
- LazyWrapper.prototype = baseCreate(baseLodash.prototype);
- LazyWrapper.prototype.constructor = LazyWrapper;
-
- // Avoid inheriting from `Object.prototype` when possible.
- Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;
-
- // Add functions to the `MapCache`.
- MapCache.prototype.clear = mapClear;
- MapCache.prototype['delete'] = mapDelete;
- MapCache.prototype.get = mapGet;
- MapCache.prototype.has = mapHas;
- MapCache.prototype.set = mapSet;
-
- // Add functions to the `SetCache`.
- SetCache.prototype.push = cachePush;
-
- // Add functions to the `Stack` cache.
- Stack.prototype.clear = stackClear;
- Stack.prototype['delete'] = stackDelete;
- Stack.prototype.get = stackGet;
- Stack.prototype.has = stackHas;
- Stack.prototype.set = stackSet;
-
- // Assign cache to `_.memoize`.
- memoize.Cache = MapCache;
-
- // Add functions that return wrapped values when chaining.
+ // Add methods that return wrapped values in chain sequences.
lodash.after = after;
lodash.ary = ary;
lodash.assign = assign;
@@ -14181,6 +15380,7 @@
lodash.bind = bind;
lodash.bindAll = bindAll;
lodash.bindKey = bindKey;
+ lodash.castArray = castArray;
lodash.chain = chain;
lodash.chunk = chunk;
lodash.compact = compact;
@@ -14207,8 +15407,11 @@
lodash.fill = fill;
lodash.filter = filter;
lodash.flatMap = flatMap;
+ lodash.flatMapDeep = flatMapDeep;
+ lodash.flatMapDepth = flatMapDepth;
lodash.flatten = flatten;
lodash.flattenDeep = flattenDeep;
+ lodash.flattenDepth = flattenDepth;
lodash.flip = flip;
lodash.flow = flow;
lodash.flowRight = flowRight;
@@ -14258,6 +15461,7 @@
lodash.pull = pull;
lodash.pullAll = pullAll;
lodash.pullAllBy = pullAllBy;
+ lodash.pullAllWith = pullAllWith;
lodash.pullAt = pullAt;
lodash.range = range;
lodash.rangeRight = rangeRight;
@@ -14300,6 +15504,8 @@
lodash.unset = unset;
lodash.unzip = unzip;
lodash.unzipWith = unzipWith;
+ lodash.update = update;
+ lodash.updateWith = updateWith;
lodash.values = values;
lodash.valuesIn = valuesIn;
lodash.without = without;
@@ -14314,15 +15520,17 @@
lodash.zipWith = zipWith;
// Add aliases.
+ lodash.entries = toPairs;
+ lodash.entriesIn = toPairsIn;
lodash.extend = assignIn;
lodash.extendWith = assignInWith;
- // Add functions to `lodash.prototype`.
+ // Add methods to `lodash.prototype`.
mixin(lodash, lodash);
/*------------------------------------------------------------------------*/
- // Add functions that return unwrapped values when chaining.
+ // Add methods that return unwrapped values in chain sequences.
lodash.add = add;
lodash.attempt = attempt;
lodash.camelCase = camelCase;
@@ -14334,6 +15542,7 @@
lodash.cloneDeepWith = cloneDeepWith;
lodash.cloneWith = cloneWith;
lodash.deburr = deburr;
+ lodash.divide = divide;
lodash.endsWith = endsWith;
lodash.eq = eq;
lodash.escape = escape;
@@ -14411,8 +15620,10 @@
lodash.max = max;
lodash.maxBy = maxBy;
lodash.mean = mean;
+ lodash.meanBy = meanBy;
lodash.min = min;
lodash.minBy = minBy;
+ lodash.multiply = multiply;
lodash.noConflict = noConflict;
lodash.noop = noop;
lodash.now = now;
@@ -14483,7 +15694,7 @@
*
* @static
* @memberOf _
- * @type string
+ * @type {string}
*/
lodash.VERSION = VERSION;
@@ -14505,7 +15716,10 @@
if (filtered) {
result.__takeCount__ = nativeMin(n, result.__takeCount__);
} else {
- result.__views__.push({ 'size': nativeMin(n, MAX_ARRAY_LENGTH), 'type': methodName + (result.__dir__ < 0 ? 'Right' : '') });
+ result.__views__.push({
+ 'size': nativeMin(n, MAX_ARRAY_LENGTH),
+ 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
+ });
}
return result;
};
@@ -14522,7 +15736,10 @@
LazyWrapper.prototype[methodName] = function(iteratee) {
var result = this.clone();
- result.__iteratees__.push({ 'iteratee': getIteratee(iteratee, 3), 'type': type });
+ result.__iteratees__.push({
+ 'iteratee': getIteratee(iteratee, 3),
+ 'type': type
+ });
result.__filtered__ = result.__filtered__ || isFilter;
return result;
};
@@ -14646,7 +15863,7 @@
};
});
- // Add `Array` and `String` methods to `lodash.prototype`.
+ // Add `Array` methods to `lodash.prototype`.
arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
var func = arrayProto[methodName],
chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
@@ -14655,15 +15872,16 @@
lodash.prototype[methodName] = function() {
var args = arguments;
if (retUnwrapped && !this.__chain__) {
- return func.apply(this.value(), args);
+ var value = this.value();
+ return func.apply(isArray(value) ? value : [], args);
}
return this[chainName](function(value) {
- return func.apply(value, args);
+ return func.apply(isArray(value) ? value : [], args);
});
};
});
- // Map minified function names to their real names.
+ // Map minified method names to their real names.
baseForOwn(LazyWrapper.prototype, function(func, methodName) {
var lodashFunc = lodash[methodName];
if (lodashFunc) {
@@ -14674,18 +15892,20 @@
}
});
- realNames[createHybridWrapper(undefined, BIND_KEY_FLAG).name] = [{ 'name': 'wrapper', 'func': undefined }];
+ realNames[createHybridWrapper(undefined, BIND_KEY_FLAG).name] = [{
+ 'name': 'wrapper',
+ 'func': undefined
+ }];
- // Add functions to the lazy wrapper.
+ // Add methods to `LazyWrapper`.
LazyWrapper.prototype.clone = lazyClone;
LazyWrapper.prototype.reverse = lazyReverse;
LazyWrapper.prototype.value = lazyValue;
- // Add chaining functions to the `lodash` wrapper.
+ // Add chain sequence methods to the `lodash` wrapper.
lodash.prototype.at = wrapperAt;
lodash.prototype.chain = wrapperChain;
lodash.prototype.commit = wrapperCommit;
- lodash.prototype.flatMap = wrapperFlatMap;
lodash.prototype.next = wrapperNext;
lodash.prototype.plant = wrapperPlant;
lodash.prototype.reverse = wrapperReverse;
diff --git a/tools/eslint/node_modules/lodash/lodash.min.js b/tools/eslint/node_modules/lodash/lodash.min.js
new file mode 100644
index 00000000000000..e941d665ff11fd
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/lodash.min.js
@@ -0,0 +1,125 @@
+/**
+ * @license
+ * lodash 4.9.0 (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
+ * Build: `lodash -o ./dist/lodash.js`
+ */
+;(function(){function t(t,n){return t.set(n[0],n[1]),t}function n(t,n){return t.add(n),t}function r(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function e(t,n,r,e){for(var u=-1,o=t.length;++un&&!o||!u||r&&!i&&f||e&&f)return 1;if(n>t&&!r||!f||o&&!e&&u||i&&u)return-1}return 0}function W(t){return function(n,r){var e;
+return n===T&&r===T?0:(n!==T&&(e=n),r!==T&&(e=e===T?r:t(e,r)),e)}}function B(t){return Mt[t]}function C(t){return Lt[t]}function z(t){return"\\"+Ft[t]}function U(t,n,r){var e=t.length;for(n+=r?0:-1;r?n--:++n-1&&0==t%1&&(null==n?9007199254740991:n)>t}function $(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);
+return r}function D(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function F(t,n){for(var r=-1,e=t.length,u=0,o=[];++rr?false:(r==t.length-1?t.pop():zu.call(t,r,1),true)}function qt(t,n){var r=Vt(t,n);return 0>r?T:t[r][1]}function Vt(t,n){for(var r=t.length;r--;)if(je(t[r][0],n))return r;return-1}function Kt(t,n,r){
+var e=Vt(t,n);0>e?t.push([n,r]):t[e][1]=r}function Gt(t,n,r,e){return t===T||je(t,vu[r])&&!du.call(e,r)?n:t}function Ht(t,n,r){(r===T||je(t[n],r))&&(typeof n!="number"||r!==T||n in t)||(t[n]=r)}function Qt(t,n,r){var e=t[n];du.call(t,n)&&je(e,r)&&(r!==T||n in t)||(t[n]=r)}function Xt(t,n,r,e){return ao(t,function(t,u,o){n(e,t,r(t),o)}),e}function tn(t,n){return t&&ur(n,Je(n),t)}function nn(t,n){for(var r=-1,e=null==t,u=n.length,o=Array(u);++rr?r:t),n!==T&&(t=n>t?n:t)),t}function fn(t,n,r,e,o,i,f){var c;if(e&&(c=i?e(t,o,i,f):e(t)),c!==T)return c;if(!Re(t))return t;if(o=ti(t)){if(c=Mr(t),!n)return er(t,c)}else{var a=zr(t),l="[object Function]"==a||"[object GeneratorFunction]"==a;if(ni(t))return Xn(t,n);if("[object Object]"==a||"[object Arguments]"==a||l&&!i){if(M(t))return i?t:{};if(c=Lr(l?{}:t),!n)return ir(t,tn(c,t));
+}else{if(!Ut[a])return i?t:{};c=$r(t,a,fn,n)}}if(f||(f=new Ft),i=f.get(t))return i;if(f.set(t,c),!o)var s=r?bn(t,Je,Cr):Je(t);return u(s||t,function(u,o){s&&(o=u,u=t[o]),Qt(c,o,fn(u,n,r,e,o,t,f))}),c}function cn(t){var n=Je(t),r=n.length;return function(e){if(null==e)return!r;for(var u=r;u--;){var o=n[u],i=t[o],f=e[o];if(f===T&&!(o in Object(e))||!i(f))return false}return true}}function an(t){return Re(t)?Wu(t):{}}function ln(t,n,r){if(typeof t!="function")throw new pu("Expected a function");return Cu(function(){
+t.apply(T,r)},n)}function sn(t,n,r,e){var u=-1,o=f,i=true,l=t.length,s=[],h=n.length;if(!l)return s;r&&(n=a(n,O(r))),e?(o=c,i=false):n.length>=200&&(o=Dt,i=false,n=new $t(n));t:for(;++u0&&r(f)?n>1?_n(f,n-1,r,e,u):l(u,f):e||(u[u.length]=f)}return u}function vn(t,n){return t&&so(t,n,Je)}function gn(t,n){return t&&ho(t,n,Je)}function dn(t,n){return i(n,function(n){return Ee(t[n])})}function yn(t,n){n=Zr(n,t)?[n]:un(n);for(var r=0,e=n.length;null!=t&&e>r;)t=t[n[r++]];return r&&r==e?t:T}function bn(t,n,r){return n=n(t),ti(t)?n:l(n,r(t))}function xn(t,n){return du.call(t,n)||typeof t=="object"&&n in t&&null===Lu(Object(t))}function jn(t,n){return n in Object(t);
+}function mn(t,n,r){for(var e=r?c:f,u=t[0].length,o=t.length,i=o,l=Array(o),s=1/0,h=[];i--;){var p=t[i];i&&n&&(p=a(p,O(n))),s=Pu(p.length,s),l[i]=r||!n&&(120>u||120>p.length)?T:new $t(i&&p)}var p=t[0],_=-1,v=l[0];t:for(;++_h.length;){var g=p[_],d=n?n(g):g;if(v?!Dt(v,d):!e(h,d,r)){for(i=o;--i;){var y=l[i];if(y?!Dt(y,d):!e(t[i],d,r))continue t}v&&v.push(d),h.push(g)}}return h}function wn(t,n,r){var e={};return vn(t,function(t,u,o){n(e,r(t),u,o)}),e}function An(t,n,e){return Zr(n,t)||(n=un(n),
+t=Jr(t,n),n=ne(n)),n=null==t?t:t[n],null==n?T:r(n,t,e)}function On(t,n,r,e,u){if(t===n)n=true;else if(null==t||null==n||!Re(t)&&!We(n))n=t!==t&&n!==n;else t:{var o=ti(t),i=ti(n),f="[object Array]",c="[object Array]";o||(f=zr(t),f="[object Arguments]"==f?"[object Object]":f),i||(c=zr(n),c="[object Arguments]"==c?"[object Object]":c);var a="[object Object]"==f&&!M(t),i="[object Object]"==c&&!M(n);if((c=f==c)&&!a)u||(u=new Ft),n=o||$e(t)?kr(t,n,On,r,e,u):Er(t,n,f,On,r,e,u);else{if(!(2&e)&&(o=a&&du.call(t,"__wrapped__"),
+f=i&&du.call(n,"__wrapped__"),o||f)){t=o?t.value():t,n=f?n.value():n,u||(u=new Ft),n=On(t,n,r,e,u);break t}if(c)n:if(u||(u=new Ft),o=2&e,f=Je(t),i=f.length,c=Je(n).length,i==c||o){for(a=i;a--;){var l=f[a];if(!(o?l in n:xn(n,l))){n=false;break n}}if(c=u.get(t))n=c==n;else{c=true,u.set(t,n);for(var s=o;++ae?c*("desc"==r[e]?-1:1):c;break t}}e=t.b-n.b}return e})}function zn(t,n){return t=Object(t),s(n,function(n,r){return r in t&&(n[r]=t[r]),n},{})}function Un(t,n){for(var r=-1,e=bn(t,Ye,yo),u=e.length,o={};++rn||n>9007199254740991)return r;do n%2&&(r+=t),(n=Mu(n/2))&&(t+=t);while(n);return r}function Pn(t,n,r,e){n=Zr(n,t)?[n]:un(n);for(var u=-1,o=n.length,i=o-1,f=t;null!=f&&++un&&(n=-n>u?0:u+n),r=r>u?u:r,0>r&&(r+=u),u=n>r?0:r-n>>>0,n>>>=0,r=Array(u);++e=u){for(;u>e;){var o=e+u>>>1,i=t[o];(r?n>=i:n>i)&&null!==i?e=o+1:u=o}return u}return Vn(t,n,uu,r)}function Vn(t,n,r,e){
+n=r(n);for(var u=0,o=t?t.length:0,i=n!==n,f=null===n,c=n===T;o>u;){var a=Mu((u+o)/2),l=r(t[a]),s=l!==T,h=l===l;(i?h||e:f?h&&s&&(e||null!=l):c?h&&(e||s):null==l?0:e?n>=l:n>l)?u=a+1:o=a}return Pu(o,4294967294)}function Kn(t,n){for(var r=0,e=t.length,u=t[0],o=n?n(u):u,i=o,f=1,c=[u];++re?n[e]:T);return i}function Xn(t,n){if(n)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function tr(t){var n=new t.constructor(t.byteLength);return new ku(n).set(new ku(t)),n}function nr(t,n,r,e){var u=-1,o=t.length,i=r.length,f=-1,c=n.length,a=Nu(o-i,0),l=Array(c+a);for(e=!e;++fu)&&(l[r[u]]=t[u]);for(;a--;)l[f++]=t[u++];return l}function rr(t,n,r,e){
+var u=-1,o=t.length,i=-1,f=r.length,c=-1,a=n.length,l=Nu(o-f,0),s=Array(l+a);for(e=!e;++uu)&&(s[l+r[i]]=t[u++]);return s}function er(t,n){var r=-1,e=t.length;for(n||(n=Array(e));++r1?r[u-1]:T,i=u>2?r[2]:T,o=typeof o=="function"?(u--,o):T;for(i&&Pr(r[0],r[1],i)&&(o=3>u?T:o,u=1),n=Object(n);++ei&&f[0]!==a&&f[i-1]!==a?[]:F(f,a),i-=c.length,e>i?wr(t,n,dr,u.placeholder,T,f,c,T,T,e-i):r(this&&this!==Jt&&this instanceof u?o:t,this,f);
+}var o=_r(t);return u}function gr(t){return be(function(n){n=_n(n,1);var r=n.length,e=r,u=Ot.prototype.thru;for(t&&n.reverse();e--;){var o=n[e];if(typeof o!="function")throw new pu("Expected a function");if(u&&!i&&"wrapper"==Ir(o))var i=new Ot([],true)}for(e=i?e:r;++e=200)return i.plant(e).value();
+for(var u=0,t=r?n[u].apply(this,t):e;++ud)return j=F(b,j),wr(t,n,dr,l.placeholder,r,b,j,f,c,a-d);if(j=h?r:this,y=p?j[t]:t,d=b.length,f){x=b.length;for(var m=Pu(f.length,x),w=er(b);m--;){var A=f[m];b[m]=L(A,x)?w[A]:T}}else v&&d>1&&b.reverse();return s&&d>c&&(b.length=c),
+this&&this!==Jt&&this instanceof l&&(y=g||_r(y)),y.apply(j,b)}var s=128&n,h=1&n,p=2&n,_=24&n,v=512&n,g=p?T:_r(t);return l}function yr(t,n){return function(r,e){return wn(r,t,n(e))}}function br(t){return be(function(n){return n=a(_n(n,1,Nr),Sr()),be(function(e){var u=this;return t(n,function(t){return r(t,u,e)})})})}function xr(t,n){n=n===T?" ":n+"";var r=n.length;return 2>r?r?Nn(n,t):n:(r=Nn(n,Uu(t/P(n))),St.test(n)?r.match(It).slice(0,t).join(""):r.slice(0,t))}function jr(t,n,e,u){function o(){for(var n=-1,c=arguments.length,a=-1,l=u.length,s=Array(l+c),h=this&&this!==Jt&&this instanceof o?f:t;++an?1:-1:Ze(e)||0;var u=-1;r=Nu(Uu((r-n)/(e||1)),0);for(var o=Array(r);r--;)o[t?r:++u]=n,n+=e;return o}}function wr(t,n,r,e,u,o,i,f,c,a){var l=8&n;f=f?er(f):T;var s=l?i:T;i=l?T:i;var h=l?o:T;return o=l?T:o,n=(n|(l?32:64))&~(l?64:32),4&n||(n&=-4),n=[t,n,u,h,s,o,i,f,c,a],r=r.apply(T,n),
+Tr(t)&&bo(r,n),r.placeholder=e,r}function Ar(t){var n=su[t];return function(t,r){if(t=Ze(t),r=Ne(r)){var e=(Te(t)+"e").split("e"),e=n(e[0]+"e"+(+e[1]+r)),e=(Te(e)+"e").split("e");return+(e[0]+"e"+(+e[1]-r))}return n(t)}}function Or(t,n,r,e,u,o,i,f){var c=2&n;if(!c&&typeof t!="function")throw new pu("Expected a function");var a=e?e.length:0;if(a||(n&=-97,e=u=T),i=i===T?i:Nu(Ne(i),0),f=f===T?f:Ne(f),a-=u?u.length:0,64&n){var l=e,s=u;e=u=T}var h=c?T:vo(t);return o=[t,n,r,e,u,l,s,o,i,f],h&&(r=o[1],t=h[1],
+n=r|t,e=128==t&&8==r||128==t&&256==r&&h[8]>=o[7].length||384==t&&h[8]>=h[7].length&&8==r,131>n||e)&&(1&t&&(o[2]=h[2],n|=1&r?0:4),(r=h[3])&&(e=o[3],o[3]=e?nr(e,r,h[4]):er(r),o[4]=e?F(o[3],"__lodash_placeholder__"):er(h[4])),(r=h[5])&&(e=o[5],o[5]=e?rr(e,r,h[6]):er(r),o[6]=e?F(o[5],"__lodash_placeholder__"):er(h[6])),(r=h[7])&&(o[7]=er(r)),128&t&&(o[8]=null==o[8]?h[8]:Pu(o[8],h[8])),null==o[9]&&(o[9]=h[9]),o[0]=h[0],o[1]=n),t=o[0],n=o[1],r=o[2],e=o[3],u=o[4],f=o[9]=null==o[9]?c?0:t.length:Nu(o[9]-a,0),
+!f&&24&n&&(n&=-25),(h?po:bo)(n&&1!=n?8==n||16==n?vr(t,n,f):32!=n&&33!=n||u.length?dr.apply(T,o):jr(t,n,r,e):sr(t,n,r),o)}function kr(t,n,r,e,u,o){var i=-1,f=2&u,c=1&u,a=t.length,l=n.length;if(!(a==l||f&&l>a))return false;if(l=o.get(t))return l==n;for(l=true,o.set(t,n);++in?0:n,e)):[]}function Xr(t,n,r){var e=t?t.length:0;return e?(n=r||n===T?1:Ne(n),n=e-n,Zn(t,0,0>n?0:n)):[]}function te(t){return t?t[0]:T}function ne(t){var n=t?t.length:0;return n?t[n-1]:T}function re(t,n){return t&&t.length&&n&&n.length?$n(t,n):t;
+}function ee(t){return t?Tu.call(t):t}function ue(t){if(!t||!t.length)return[];var n=0;return t=i(t,function(t){return Oe(t)?(n=Nu(t.length,n),true):void 0}),w(n,function(n){return a(t,Mn(n))})}function oe(t,n){if(!t||!t.length)return[];var e=ue(t);return null==n?e:a(e,function(t){return r(n,T,t)})}function ie(t){return t=xt(t),t.__chain__=true,t}function fe(t,n){return n(t)}function ce(){return this}function ae(t,n){return typeof n=="function"&&ti(t)?u(t,n):ao(t,Sr(n))}function le(t,n){var r;if(typeof n=="function"&&ti(t)){
+for(r=t.length;r--&&false!==n(t[r],r,t););r=t}else r=lo(t,Sr(n));return r}function se(t,n){return(ti(t)?a:Sn)(t,Sr(n,3))}function he(t,n,r){var e=-1,u=Fe(t),o=u.length,i=o-1;for(n=(r?Pr(t,n,r):n===T)?1:on(Ne(n),0,o);++e=t&&(n=T),r}}function ve(t,n,r){return n=r?T:n,t=Or(t,8,T,T,T,T,T,n),t.placeholder=ve.placeholder,t}function ge(t,n,r){return n=r?T:n,t=Or(t,16,T,T,T,T,T,n),t.placeholder=ge.placeholder,t}function de(t,n,r){function e(n){var r=c,e=a;return c=a=T,p=n,l=t.apply(e,r)}function u(t){var r=t-h;return t-=p,!h||r>=n||0>r||false!==v&&t>=v}function o(){var t=To();if(u(t))return i(t);var r;r=t-p,t=n-(t-h),r=false===v?t:Pu(t,v-r),s=Cu(o,r)}function i(t){return Eu(s),s=T,g&&c?e(t):(c=a=T,l)}function f(){var t=To(),r=u(t);
+return c=arguments,a=this,h=t,r?s===T?(p=t=h,s=Cu(o,n),_?e(t):l):(Eu(s),s=Cu(o,n),e(h)):l}var c,a,l,s,h=0,p=0,_=false,v=false,g=true;if(typeof t!="function")throw new pu("Expected a function");return n=Ze(n)||0,Re(r)&&(_=!!r.leading,v="maxWait"in r&&Nu(Ze(r.maxWait)||0,n),g="trailing"in r?!!r.trailing:g),f.cancel=function(){s!==T&&Eu(s),h=p=0,c=a=s=T},f.flush=function(){return s===T?l:i(To())},f}function ye(t,n){function r(){var e=arguments,u=n?n.apply(this,e):e[0],o=r.cache;return o.has(u)?o.get(u):(e=t.apply(this,e),
+r.cache=o.set(u,e),e)}if(typeof t!="function"||n&&typeof n!="function")throw new pu("Expected a function");return r.cache=new(ye.Cache||Lt),r}function be(t,n){if(typeof t!="function")throw new pu("Expected a function");return n=Nu(n===T?t.length-1:Ne(n),0),function(){for(var e=arguments,u=-1,o=Nu(e.length-n,0),i=Array(o);++un}function we(t){return Oe(t)&&du.call(t,"callee")&&(!Bu.call(t,"callee")||"[object Arguments]"==xu.call(t))}function Ae(t){return null!=t&&Se(go(t))&&!Ee(t)}function Oe(t){return We(t)&&Ae(t)}function ke(t){return We(t)?"[object Error]"==xu.call(t)||typeof t.message=="string"&&typeof t.name=="string":false}function Ee(t){return t=Re(t)?xu.call(t):"",
+"[object Function]"==t||"[object GeneratorFunction]"==t}function Ie(t){return typeof t=="number"&&t==Ne(t)}function Se(t){return typeof t=="number"&&t>-1&&0==t%1&&9007199254740991>=t}function Re(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function We(t){return!!t&&typeof t=="object"}function Be(t){return Re(t)?(Ee(t)||M(t)?mu:yt).test(Yr(t)):false}function Ce(t){return typeof t=="number"||We(t)&&"[object Number]"==xu.call(t)}function ze(t){return!We(t)||"[object Object]"!=xu.call(t)||M(t)?false:(t=Lu(Object(t)),
+null===t?true:(t=du.call(t,"constructor")&&t.constructor,typeof t=="function"&&t instanceof t&&gu.call(t)==bu))}function Ue(t){return Re(t)&&"[object RegExp]"==xu.call(t)}function Me(t){return typeof t=="string"||!ti(t)&&We(t)&&"[object String]"==xu.call(t)}function Le(t){return typeof t=="symbol"||We(t)&&"[object Symbol]"==xu.call(t)}function $e(t){return We(t)&&Se(t.length)&&!!zt[xu.call(t)]}function De(t,n){return n>t}function Fe(t){if(!t)return[];if(Ae(t))return Me(t)?t.match(It):er(t);if(Ru&&t[Ru])return $(t[Ru]());
+var n=zr(t);return("[object Map]"==n?D:"[object Set]"==n?N:Xe)(t)}function Ne(t){if(!t)return 0===t?t:0;if(t=Ze(t),t===V||t===-V)return 1.7976931348623157e308*(0>t?-1:1);var n=t%1;return t===t?n?t-n:t:0}function Pe(t){return t?on(Ne(t),0,4294967295):0}function Ze(t){if(typeof t=="number")return t;if(Le(t))return K;if(Re(t)&&(t=Ee(t.valueOf)?t.valueOf():t,t=Re(t)?t+"":t),typeof t!="string")return 0===t?t:+t;t=t.replace(at,"");var n=dt.test(t);return n||bt.test(t)?Pt(t.slice(2),n?2:8):gt.test(t)?K:+t;
+}function qe(t){return ur(t,Ye(t))}function Te(t){if(typeof t=="string")return t;if(null==t)return"";if(Le(t))return co?co.call(t):"";var n=t+"";return"0"==n&&1/t==-V?"-0":n}function Ve(t,n,r){return t=null==t?T:yn(t,n),t===T?r:t}function Ke(t,n){return null!=t&&Ur(t,n,xn)}function Ge(t,n){return null!=t&&Ur(t,n,jn)}function Je(t){var n=Vr(t);if(!n&&!Ae(t))return Fu(Object(t));var r,e=Dr(t),u=!!e,e=e||[],o=e.length;for(r in t)!xn(t,r)||u&&("length"==r||L(r,o))||n&&"constructor"==r||e.push(r);return e;
+}function Ye(t){for(var n=-1,r=Vr(t),e=In(t),u=e.length,o=Dr(t),i=!!o,o=o||[],f=o.length;++ne.length?Kt(e,t,n):(r.array=null,r.map=new Lt(e))),(r=r.map)&&r.set(t,n),this};var ao=ar(vn),lo=ar(gn,true),so=lr(),ho=lr(true);Iu&&!Bu.call({valueOf:1},"valueOf")&&(In=function(t){return $(Iu(t))});var po=Qu?function(t,n){return Qu.set(t,n),t}:uu,_o=Ju&&2===new Ju([1,2]).size?function(t){
+return new Ju(t)}:fu,vo=Qu?function(t){return Qu.get(t)}:fu,go=Mn("length");Su||(Cr=function(){return[]});var yo=Su?function(t){for(var n=[];t;)l(n,Cr(t)),t=Lu(Object(t));return n}:Cr;(Vu&&"[object DataView]"!=zr(new Vu(new ArrayBuffer(1)))||Ku&&"[object Map]"!=zr(new Ku)||Gu&&"[object Promise]"!=zr(Gu.resolve())||Ju&&"[object Set]"!=zr(new Ju)||Yu&&"[object WeakMap]"!=zr(new Yu))&&(zr=function(t){var n=xu.call(t);if(t=(t="[object Object]"==n?t.constructor:T)?Yr(t):T)switch(t){case no:return"[object DataView]";
+case ro:return"[object Map]";case eo:return"[object Promise]";case uo:return"[object Set]";case oo:return"[object WeakMap]"}return n});var bo=function(){var t=0,n=0;return function(r,e){var u=To(),o=16-(u-n);if(n=u,o>0){if(150<=++t)return r}else t=0;return po(r,e)}}(),xo=ye(function(t){var n=[];return Te(t).replace(it,function(t,r,e,u){n.push(e?u.replace(ht,"$1"):r||t)}),n}),jo=be(function(t,n){return Oe(t)?sn(t,_n(n,1,Oe,true)):[]}),mo=be(function(t,n){var r=ne(n);return Oe(r)&&(r=T),Oe(t)?sn(t,_n(n,1,Oe,true),Sr(r)):[];
+}),wo=be(function(t,n){var r=ne(n);return Oe(r)&&(r=T),Oe(t)?sn(t,_n(n,1,Oe,true),T,r):[]}),Ao=be(function(t){var n=a(t,rn);return n.length&&n[0]===t[0]?mn(n):[]}),Oo=be(function(t){var n=ne(t),r=a(t,rn);return n===ne(r)?n=T:r.pop(),r.length&&r[0]===t[0]?mn(r,Sr(n)):[]}),ko=be(function(t){var n=ne(t),r=a(t,rn);return n===ne(r)?n=T:r.pop(),r.length&&r[0]===t[0]?mn(r,T,n):[]}),Eo=be(re),Io=be(function(t,n){n=a(_n(n,1),String);var r=nn(t,n);return Dn(t,n.sort(R)),r}),So=be(function(t){return Gn(_n(t,1,Oe,true));
+}),Ro=be(function(t){var n=ne(t);return Oe(n)&&(n=T),Gn(_n(t,1,Oe,true),Sr(n))}),Wo=be(function(t){var n=ne(t);return Oe(n)&&(n=T),Gn(_n(t,1,Oe,true),T,n)}),Bo=be(function(t,n){return Oe(t)?sn(t,n):[]}),Co=be(function(t){return Hn(i(t,Oe))}),zo=be(function(t){var n=ne(t);return Oe(n)&&(n=T),Hn(i(t,Oe),Sr(n))}),Uo=be(function(t){var n=ne(t);return Oe(n)&&(n=T),Hn(i(t,Oe),T,n)}),Mo=be(ue),Lo=be(function(t){var n=t.length,n=n>1?t[n-1]:T,n=typeof n=="function"?(t.pop(),n):T;return oe(t,n)}),$o=be(function(t){
+function n(n){return nn(n,t)}t=_n(t,1);var r=t.length,e=r?t[0]:0,u=this.__wrapped__;return 1>=r&&!this.__actions__.length&&u instanceof kt&&L(e)?(u=u.slice(e,+e+(r?1:0)),u.__actions__.push({func:fe,args:[n],thisArg:T}),new Ot(u,this.__chain__).thru(function(t){return r&&!t.length&&t.push(T),t})):this.thru(n)}),Do=fr(function(t,n,r){du.call(t,r)?++t[r]:t[r]=1}),Fo=fr(function(t,n,r){du.call(t,r)?t[r].push(n):t[r]=[n]}),No=be(function(t,n,e){var u=-1,o=typeof n=="function",i=Zr(n),f=Ae(t)?Array(t.length):[];
+return ao(t,function(t){var c=o?n:i&&null!=t?t[n]:T;f[++u]=c?r(c,t,e):An(t,n,e)}),f}),Po=fr(function(t,n,r){t[r]=n}),Zo=fr(function(t,n,r){t[r?0:1].push(n)},function(){return[[],[]]}),qo=be(function(t,n){if(null==t)return[];var r=n.length;return r>1&&Pr(t,n[0],n[1])?n=[]:r>2&&Pr(n[0],n[1],n[2])&&(n.length=1),Cn(t,_n(n,1),[])}),To=au.now,Vo=be(function(t,n,r){var e=1;if(r.length)var u=F(r,Br(Vo)),e=32|e;return Or(t,e,n,r,u)}),Ko=be(function(t,n,r){var e=3;if(r.length)var u=F(r,Br(Ko)),e=32|e;return Or(n,e,t,r,u);
+}),Go=be(function(t,n){return ln(t,1,n)}),Jo=be(function(t,n,r){return ln(t,Ze(n)||0,r)});ye.Cache=Lt;var Yo=be(function(t,n){n=a(_n(n,1,Nr),Sr());var e=n.length;return be(function(u){for(var o=-1,i=Pu(u.length,e);++o--t?n.apply(this,arguments):void 0}},xt.ary=pe,xt.assign=ri,xt.assignIn=ei,xt.assignInWith=ui,xt.assignWith=oi,xt.at=ii,xt.before=_e,xt.bind=Vo,xt.bindAll=Oi,xt.bindKey=Ko,xt.castArray=xe,xt.chain=ie,xt.chunk=function(t,n,r){if(n=(r?Pr(t,n,r):n===T)?1:Nu(Ne(n),0),r=t?t.length:0,
+!r||1>n)return[];for(var e=0,u=0,o=Array(Uu(r/n));r>e;)o[u++]=Zn(t,e,e+=n);return o},xt.compact=function(t){for(var n=-1,r=t?t.length:0,e=0,u=[];++nt)return t?er(n):[];for(var r=Array(t-1);t--;)r[t-1]=arguments[t];for(var t=_n(r,1),r=-1,e=n.length,u=-1,o=t.length,i=Array(e+o);++rr&&(r=-r>u?0:u+r),e=e===T||e>u?u:Ne(e),0>e&&(e+=u),e=r>e?0:Pe(e);e>r;)t[r++]=n;return t},xt.filter=function(t,n){return(ti(t)?i:pn)(t,Sr(n,3))},xt.flatMap=function(t,n){return _n(se(t,n),1)},xt.flatMapDeep=function(t,n){return _n(se(t,n),V)},xt.flatMapDepth=function(t,n,r){
+return r=r===T?1:Ne(r),_n(se(t,n),r)},xt.flatten=function(t){return t&&t.length?_n(t,1):[]},xt.flattenDeep=function(t){return t&&t.length?_n(t,V):[]},xt.flattenDepth=function(t,n){return t&&t.length?(n=n===T?1:Ne(n),_n(t,n)):[]},xt.flip=function(t){return Or(t,512)},xt.flow=ki,xt.flowRight=Ei,xt.fromPairs=function(t){for(var n=-1,r=t?t.length:0,e={};++nr?0:r)):t.split(n,r)},xt.spread=function(t,n){if(typeof t!="function")throw new pu("Expected a function");
+return n=n===T?0:Nu(Ne(n),0),be(function(e){var u=e[n];return e=e.slice(0,n),u&&l(e,u),r(t,this,e)})},xt.tail=function(t){return Qr(t,1)},xt.take=function(t,n,r){return t&&t.length?(n=r||n===T?1:Ne(n),Zn(t,0,0>n?0:n)):[]},xt.takeRight=function(t,n,r){var e=t?t.length:0;return e?(n=r||n===T?1:Ne(n),n=e-n,Zn(t,0>n?0:n,e)):[]},xt.takeRightWhile=function(t,n){return t&&t.length?Jn(t,Sr(n,3),false,true):[]},xt.takeWhile=function(t,n){return t&&t.length?Jn(t,Sr(n,3)):[]},xt.tap=function(t,n){return n(t),t},
+xt.throttle=function(t,n,r){var e=true,u=true;if(typeof t!="function")throw new pu("Expected a function");return Re(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),de(t,n,{leading:e,maxWait:n,trailing:u})},xt.thru=fe,xt.toArray=Fe,xt.toPairs=He,xt.toPairsIn=Qe,xt.toPath=function(t){return ti(t)?a(t,en):Le(t)?[t]:er(xo(t))},xt.toPlainObject=qe,xt.transform=function(t,n,r){var e=ti(t)||$e(t);if(n=Sr(n,4),null==r)if(e||Re(t)){var o=t.constructor;r=e?ti(t)?new o:[]:Ee(o)?an(Lu(Object(t))):{};
+}else r={};return(e?u:vn)(t,function(t,e,u){return n(r,t,e,u)}),r},xt.unary=function(t){return pe(t,1)},xt.union=So,xt.unionBy=Ro,xt.unionWith=Wo,xt.uniq=function(t){return t&&t.length?Gn(t):[]},xt.uniqBy=function(t,n){return t&&t.length?Gn(t,Sr(n)):[]},xt.uniqWith=function(t,n){return t&&t.length?Gn(t,T,n):[]},xt.unset=function(t,n){var r;if(null==t)r=true;else{r=t;var e=n,e=Zr(e,r)?[e]:un(e);r=Jr(r,e),e=ne(e),r=null!=r&&Ke(r,e)?delete r[e]:true}return r},xt.unzip=ue,xt.unzipWith=oe,xt.update=function(t,n,r){
+return null==t?t:Pn(t,n,(typeof r=="function"?r:uu)(yn(t,n)),void 0)},xt.updateWith=function(t,n,r,e){return e=typeof e=="function"?e:T,null!=t&&(t=Pn(t,n,(typeof r=="function"?r:uu)(yn(t,n)),e)),t},xt.values=Xe,xt.valuesIn=function(t){return null==t?[]:k(t,Ye(t))},xt.without=Bo,xt.words=ru,xt.wrap=function(t,n){return n=null==n?uu:n,Ho(n,t)},xt.xor=Co,xt.xorBy=zo,xt.xorWith=Uo,xt.zip=Mo,xt.zipObject=function(t,n){return Qn(t||[],n||[],Qt)},xt.zipObjectDeep=function(t,n){return Qn(t||[],n||[],Pn);
+},xt.zipWith=Lo,xt.entries=He,xt.entriesIn=Qe,xt.extend=ei,xt.extendWith=ui,iu(xt,xt),xt.add=Ui,xt.attempt=Ai,xt.camelCase=gi,xt.capitalize=tu,xt.ceil=Mi,xt.clamp=function(t,n,r){return r===T&&(r=n,n=T),r!==T&&(r=Ze(r),r=r===r?r:0),n!==T&&(n=Ze(n),n=n===n?n:0),on(Ze(t),n,r)},xt.clone=function(t){return fn(t,false,true)},xt.cloneDeep=function(t){return fn(t,true,true)},xt.cloneDeepWith=function(t,n){return fn(t,true,true,n)},xt.cloneWith=function(t,n){return fn(t,false,true,n)},xt.deburr=nu,xt.divide=Li,xt.endsWith=function(t,n,r){
+t=Te(t),n=typeof n=="string"?n:n+"";var e=t.length;return r=r===T?e:on(Ne(r),0,e),r-=n.length,r>=0&&t.indexOf(n,r)==r},xt.eq=je,xt.escape=function(t){return(t=Te(t))&&tt.test(t)?t.replace(Q,C):t},xt.escapeRegExp=function(t){return(t=Te(t))&&ct.test(t)?t.replace(ft,"\\$&"):t},xt.every=function(t,n,r){var e=ti(t)?o:hn;return r&&Pr(t,n,r)&&(n=T),e(t,Sr(n,3))},xt.find=function(t,n){if(n=Sr(n,3),ti(t)){var r=g(t,n);return r>-1?t[r]:T}return v(t,n,ao)},xt.findIndex=function(t,n){return t&&t.length?g(t,Sr(n,3)):-1;
+},xt.findKey=function(t,n){return v(t,Sr(n,3),vn,true)},xt.findLast=function(t,n){if(n=Sr(n,3),ti(t)){var r=g(t,n,true);return r>-1?t[r]:T}return v(t,n,lo)},xt.findLastIndex=function(t,n){return t&&t.length?g(t,Sr(n,3),true):-1},xt.findLastKey=function(t,n){return v(t,Sr(n,3),gn,true)},xt.floor=$i,xt.forEach=ae,xt.forEachRight=le,xt.forIn=function(t,n){return null==t?t:so(t,Sr(n),Ye)},xt.forInRight=function(t,n){return null==t?t:ho(t,Sr(n),Ye)},xt.forOwn=function(t,n){return t&&vn(t,Sr(n))},xt.forOwnRight=function(t,n){
+return t&&gn(t,Sr(n))},xt.get=Ve,xt.gt=me,xt.gte=function(t,n){return t>=n},xt.has=Ke,xt.hasIn=Ge,xt.head=te,xt.identity=uu,xt.includes=function(t,n,r,e){return t=Ae(t)?t:Xe(t),r=r&&!e?Ne(r):0,e=t.length,0>r&&(r=Nu(e+r,0)),Me(t)?e>=r&&-1r&&(r=Nu(e+r,0)),d(t,n,r)):-1},xt.inRange=function(t,n,r){return n=Ze(n)||0,r===T?(r=n,n=0):r=Ze(r)||0,t=Ze(t),t>=Pu(n,r)&&t=-9007199254740991&&9007199254740991>=t},xt.isSet=function(t){return We(t)&&"[object Set]"==zr(t)},xt.isString=Me,xt.isSymbol=Le,xt.isTypedArray=$e,xt.isUndefined=function(t){return t===T},xt.isWeakMap=function(t){return We(t)&&"[object WeakMap]"==zr(t);
+},xt.isWeakSet=function(t){return We(t)&&"[object WeakSet]"==xu.call(t)},xt.join=function(t,n){return t?Du.call(t,n):""},xt.kebabCase=di,xt.last=ne,xt.lastIndexOf=function(t,n,r){var e=t?t.length:0;if(!e)return-1;var u=e;if(r!==T&&(u=Ne(r),u=(0>u?Nu(e+u,0):Pu(u,e-1))+1),n!==n)return U(t,u,true);for(;u--;)if(t[u]===n)return u;return-1},xt.lowerCase=yi,xt.lowerFirst=bi,xt.lt=De,xt.lte=function(t,n){return n>=t},xt.max=function(t){return t&&t.length?_(t,uu,me):T},xt.maxBy=function(t,n){return t&&t.length?_(t,Sr(n),me):T;
+},xt.mean=function(t){return b(t,uu)},xt.meanBy=function(t,n){return b(t,Sr(n))},xt.min=function(t){return t&&t.length?_(t,uu,De):T},xt.minBy=function(t,n){return t&&t.length?_(t,Sr(n),De):T},xt.multiply=Di,xt.noConflict=function(){return Jt._===this&&(Jt._=ju),this},xt.noop=fu,xt.now=To,xt.pad=function(t,n,r){t=Te(t);var e=(n=Ne(n))?P(t):0;return n&&n>e?(n=(n-e)/2,xr(Mu(n),r)+t+xr(Uu(n),r)):t},xt.padEnd=function(t,n,r){t=Te(t);var e=(n=Ne(n))?P(t):0;return n&&n>e?t+xr(n-e,r):t},xt.padStart=function(t,n,r){
+t=Te(t);var e=(n=Ne(n))?P(t):0;return n&&n>e?xr(n-e,r)+t:t},xt.parseInt=function(t,n,r){return r||null==n?n=0:n&&(n=+n),t=Te(t).replace(at,""),Zu(t,n||(vt.test(t)?16:10))},xt.random=function(t,n,r){if(r&&typeof r!="boolean"&&Pr(t,n,r)&&(n=r=T),r===T&&(typeof n=="boolean"?(r=n,n=T):typeof t=="boolean"&&(r=t,t=T)),t===T&&n===T?(t=0,n=1):(t=Ze(t)||0,n===T?(n=t,t=0):n=Ze(n)||0),t>n){var e=t;t=n,n=e}return r||t%1||n%1?(r=qu(),Pu(t+r*(n-t+Nt("1e-"+((r+"").length-1))),n)):Fn(t,n)},xt.reduce=function(t,n,r){
+var e=ti(t)?s:x,u=3>arguments.length;return e(t,Sr(n,4),r,u,ao)},xt.reduceRight=function(t,n,r){var e=ti(t)?h:x,u=3>arguments.length;return e(t,Sr(n,4),r,u,lo)},xt.repeat=function(t,n,r){return n=(r?Pr(t,n,r):n===T)?1:Ne(n),Nn(Te(t),n)},xt.replace=function(){var t=arguments,n=Te(t[0]);return 3>t.length?n:n.replace(t[1],t[2])},xt.result=function(t,n,r){n=Zr(n,t)?[n]:un(n);var e=-1,u=n.length;for(u||(t=T,u=1);++e