diff --git a/test/parallel/test-async-wrap-disabled-propagate-parent.js b/test/parallel/test-async-wrap-disabled-propagate-parent.js
index 5d5b2b27373690..f0daaeb06d0031 100644
--- a/test/parallel/test-async-wrap-disabled-propagate-parent.js
+++ b/test/parallel/test-async-wrap-disabled-propagate-parent.js
@@ -9,7 +9,6 @@ const providers = Object.keys(async_wrap.Providers);
const uidSymbol = Symbol('uid');
let cntr = 0;
-let server;
let client;
function init(uid, type, parentUid, parentHandle) {
@@ -34,7 +33,7 @@ function noop() { }
async_wrap.setupHooks({ init });
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 ad3fdff0165729..34a00c22eeeafd 100644
--- a/test/parallel/test-async-wrap-propagate-parent.js
+++ b/test/parallel/test-async-wrap-propagate-parent.js
@@ -9,7 +9,6 @@ const providers = Object.keys(async_wrap.Providers);
const uidSymbol = Symbol('uid');
let cntr = 0;
-let server;
let client;
function init(uid, type, parentUid, parentHandle) {
@@ -34,7 +33,7 @@ function noop() { }
async_wrap.setupHooks({ init });
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-stream-writev.js b/test/parallel/test-stream-writev.js
index 0a51478b7ea456..cd0b3102978415 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/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-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/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..eac3e5894f0b6e
--- /dev/null
+++ b/tools/eslint/lib/rules/no-restricted-globals.js
@@ -0,0 +1,72 @@
+/**
+ * @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..2a8873b6ab1ef5 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")
+ );
+}
- if (node.arguments.length === 0) {
+/**
+ * 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;
+
+ 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 = [
@@ -74,3 +159,4 @@ module.exports.schema = [
"enum": ["always", "as-needed"]
}
];
+
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..2b222e839217e4
--- /dev/null
+++ b/tools/eslint/lib/util/traverser.js
@@ -0,0 +1,58 @@
+/**
+ * @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/estraverse-fb/LICENSE b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/LICENSE
similarity index 86%
rename from tools/eslint/node_modules/estraverse-fb/LICENSE
rename to tools/eslint/node_modules/acorn-jsx/node_modules/acorn/LICENSE
index 54530b38082641..d4c7fc583804df 100644
--- a/tools/eslint/node_modules/estraverse-fb/LICENSE
+++ b/tools/eslint/node_modules/acorn-jsx/node_modules/acorn/LICENSE
@@ -1,6 +1,4 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Ingvar Stepanyan
+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
@@ -9,13 +7,13 @@ 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 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
+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..acd39a8e5b9ffb
--- /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/core-util-is/test.js b/tools/eslint/node_modules/core-util-is/test.js
deleted file mode 100644
index 1a490c65ac8b5d..00000000000000
--- a/tools/eslint/node_modules/core-util-is/test.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var assert = require('tap');
-
-var t = require('./lib/util');
-
-assert.equal(t.isArray([]), true);
-assert.equal(t.isArray({}), false);
-
-assert.equal(t.isBoolean(null), false);
-assert.equal(t.isBoolean(true), true);
-assert.equal(t.isBoolean(false), true);
-
-assert.equal(t.isNull(null), true);
-assert.equal(t.isNull(undefined), false);
-assert.equal(t.isNull(false), false);
-assert.equal(t.isNull(), false);
-
-assert.equal(t.isNullOrUndefined(null), true);
-assert.equal(t.isNullOrUndefined(undefined), true);
-assert.equal(t.isNullOrUndefined(false), false);
-assert.equal(t.isNullOrUndefined(), true);
-
-assert.equal(t.isNumber(null), false);
-assert.equal(t.isNumber('1'), false);
-assert.equal(t.isNumber(1), true);
-
-assert.equal(t.isString(null), false);
-assert.equal(t.isString('1'), true);
-assert.equal(t.isString(1), false);
-
-assert.equal(t.isSymbol(null), false);
-assert.equal(t.isSymbol('1'), false);
-assert.equal(t.isSymbol(1), false);
-assert.equal(t.isSymbol(Symbol()), true);
-
-assert.equal(t.isUndefined(null), false);
-assert.equal(t.isUndefined(undefined), true);
-assert.equal(t.isUndefined(false), false);
-assert.equal(t.isUndefined(), true);
-
-assert.equal(t.isRegExp(null), false);
-assert.equal(t.isRegExp('1'), false);
-assert.equal(t.isRegExp(new RegExp()), true);
-
-assert.equal(t.isObject({}), true);
-assert.equal(t.isObject([]), true);
-assert.equal(t.isObject(new RegExp()), true);
-assert.equal(t.isObject(new Date()), true);
-
-assert.equal(t.isDate(null), false);
-assert.equal(t.isDate('1'), false);
-assert.equal(t.isDate(new Date()), true);
-
-assert.equal(t.isError(null), false);
-assert.equal(t.isError({ err: true }), false);
-assert.equal(t.isError(new Error()), true);
-
-assert.equal(t.isFunction(null), false);
-assert.equal(t.isFunction({ }), false);
-assert.equal(t.isFunction(function() {}), true);
-
-assert.equal(t.isPrimitive(null), true);
-assert.equal(t.isPrimitive(''), true);
-assert.equal(t.isPrimitive(0), true);
-assert.equal(t.isPrimitive(new Date()), false);
-
-assert.equal(t.isBuffer(null), false);
-assert.equal(t.isBuffer({}), false);
-assert.equal(t.isBuffer(new Buffer(0)), true);
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/.npmignore b/tools/eslint/node_modules/deep-is/.npmignore
deleted file mode 100644
index 3c3629e647f5dd..00000000000000
--- a/tools/eslint/node_modules/deep-is/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
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/del/readme.md b/tools/eslint/node_modules/del/readme.md
index c4a64ee25e799e..fe22ccb5a66900 100644
--- a/tools/eslint/node_modules/del/readme.md
+++ b/tools/eslint/node_modules/del/readme.md
@@ -69,14 +69,14 @@ See the `node-glob` [options](https://github.com/isaacs/node-glob#options).
##### force
-Type: `boolean`
+Type: `boolean`
Default: `false`
Allow deleting the current working directory and files/folders outside it.
##### dryRun
-Type: `boolean`
+Type: `boolean`
Default: `false`
See what would be deleted.
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/README.md b/tools/eslint/node_modules/es5-ext/README.md
index ad09fe2317bfa7..11d8a343d57f1f 100644
--- a/tools/eslint/node_modules/es5-ext/README.md
+++ b/tools/eslint/node_modules/es5-ext/README.md
@@ -11,7 +11,7 @@ When used in ECMAScript 6 environment, native implementation (if valid) takes pr
### Installation
$ npm install es5-ext
-
+
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
### Usage
@@ -114,7 +114,7 @@ Object.defineProperty(String.prototype, 'capitalize', { value: require('es5-ext/
configurable: true, enumerable: false, writable: true });
```
-See [es5-extend](https://github.com/wookieb/es5-extend#es5-extend), a great utility that automatically will extend natives for you.
+See [es5-extend](https://github.com/wookieb/es5-extend#es5-extend), a great utility that automatically will extend natives for you.
__Important:__ Remember to __not__ extend natives in scope of generic reusable packages (e.g. ones you intend to publish to npm). Extending natives is fine __only__ if you're the _owner_ of the global scope, so e.g. in final project you lead development of.
@@ -162,7 +162,7 @@ Object that represents global scope
#### from(arrayLike[, mapFn[, thisArg]]) _(es5-ext/array/from)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.from).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.from).
Returns array representation of _iterable_ or _arrayLike_. If _arrayLike_ is an instance of array, its copy is returned.
#### generate([length[, …fill]]) _(es5-ext/array/generate)_
@@ -175,7 +175,7 @@ Returns true if object is plain array (not instance of one of the Array's extens
#### of([…items]) _(es5-ext/array/of)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.of).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.of).
Create an array from given arguments.
#### toArray(obj) _(es5-ext/array/to-array)_
@@ -190,7 +190,7 @@ Returns `obj` if it's an array, otherwise throws `TypeError`
#### arr.binarySearch(compareFn) _(es5-ext/array/#/binary-search)_
-In __sorted__ list search for index of item for which _compareFn_ returns value closest to _0_.
+In __sorted__ list search for index of item for which _compareFn_ returns value closest to _0_.
It's variant of binary search algorithm
#### arr.clear() _(es5-ext/array/#/clear)_
@@ -203,7 +203,7 @@ Returns a copy of the context with all non-values (`null` or `undefined`) remove
#### arr.concat() _(es5-ext/array/#/concat)_
-[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.concat).
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.concat).
ES6's version of `concat`. Supports `isConcatSpreadable` symbol, and returns array of same type as the context.
#### arr.contains(searchElement[, position]) _(es5-ext/array/#/contains)_
@@ -212,7 +212,7 @@ Whether list contains the given value.
#### arr.copyWithin(target, start[, end]) _(es5-ext/array/#/copy-within)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.copywithin).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.copywithin).
#### arr.diff(other) _(es5-ext/array/#/diff)_
@@ -228,7 +228,7 @@ _egal_ version of `lastIndexOf` method. [_SameValueZero_](http://people.mozilla.
#### arr.entries() _(es5-ext/array/#/entries)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.entries).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.entries).
Returns iterator object, which traverses the array. Each value is represented with an array, where first value is an index and second is corresponding to index value.
#### arr.exclusion([…lists]]) _(es5-ext/array/#/exclusion)_
@@ -237,21 +237,21 @@ Returns the array of elements that are found only in one of the lists (either co
#### arr.fill(value[, start, end]) _(es5-ext/array/#/fill)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.fill).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.fill).
#### arr.filter(callback[, thisArg]) _(es5-ext/array/#/filter)_
-[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.filter).
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.filter).
ES6's version of `filter`, returns array of same type as the context.
#### arr.find(predicate[, thisArg]) _(es5-ext/array/#/find)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.find).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.find).
Return first element for which given function returns true
#### arr.findIndex(predicate[, thisArg]) _(es5-ext/array/#/find-index)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.findindex).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.findindex).
Return first index for which given function returns true
#### arr.first() _(es5-ext/array/#/first)_
@@ -292,7 +292,7 @@ Returns true if all values in array are unique
#### arr.keys() _(es5-ext/array/#/keys)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.keys).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.keys).
Returns iterator object, which traverses all array indexes.
#### arr.last() _(es5-ext/array/#/last)_
@@ -305,7 +305,7 @@ Returns last defined index of the array
#### arr.map(callback[, thisArg]) _(es5-ext/array/#/map)_
-[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.map).
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.map).
ES6's version of `map`, returns array of same type as the context.
#### arr.remove(value[, …valuen]) _(es5-ext/array/#/remove)_
@@ -318,7 +318,7 @@ Returns array with items separated with `sep` value
#### arr.slice(callback[, thisArg]) _(es5-ext/array/#/slice)_
-[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.slice).
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.slice).
ES6's version of `slice`, returns array of same type as the context.
#### arr.someRight(cb[, thisArg]) _(es5-ext/array/#/someRight)_
@@ -327,7 +327,7 @@ ES6's version of `slice`, returns array of same type as the context.
#### arr.splice(callback[, thisArg]) _(es5-ext/array/#/splice)_
-[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.splice).
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.splice).
ES6's version of `splice`, returns array of same type as the context.
#### arr.uniq() _(es5-ext/array/#/uniq)_
@@ -336,12 +336,12 @@ Returns duplicate-free version of the array
#### arr.values() _(es5-ext/array/#/values)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.values).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.values).
Returns iterator object which traverses all array values.
#### arr[@@iterator] _(es5-ext/array/#/@@iterator)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype-@@iterator).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype-@@iterator).
Returns iterator object which traverses all array values.
### Boolean Constructor extensions
@@ -399,11 +399,11 @@ Formats date up to given string. Supported patterns:
#### custom(message/*, code, ext*/) _(es5-ext/error/custom)_
-Creates custom error object, optinally extended with `code` and other extension properties (provided with `ext` object)
+Creates custom error object, optinally extended with `code` and other extension properties (provided with `ext` object)
#### isError(x) _(es5-ext/error/is-error)_
-Whether value is an error (instance of `Error`).
+Whether value is an error (instance of `Error`).
#### validError(x) _(es5-ext/error/valid-error)_
@@ -434,7 +434,7 @@ _i(x) =def x_
#### invoke(name[, …args]) _(es5-ext/function/invoke)_
Returns a function that takes an object as an argument, and applies object's
-_name_ method to arguments.
+_name_ method to arguments.
_name_ can be name of the method or method itself.
_invoke(name, …args)(object, …args2) =def object\[name\]\(…args, …args2\)_
@@ -478,7 +478,7 @@ Produces copy of given function
#### fn.curry([n]) _(es5-ext/function/#/curry)_
-Invoking the function returned by this function only _n_ arguments are passed to the underlying function. If the underlying function is not saturated, the result is a function that passes all its arguments to the underlying function.
+Invoking the function returned by this function only _n_ arguments are passed to the underlying function. If the underlying function is not saturated, the result is a function that passes all its arguments to the underlying function.
If _n_ is not provided then it defaults to context function length
_f.curry(4)(arg1, arg2)(arg3)(arg4) =def f(arg1, args2, arg3, arg4)_
@@ -517,93 +517,93 @@ Serializes function into two (arguments and body) string tokens. Result is plain
#### acosh(x) _(es5-ext/math/acosh)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.acosh).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.acosh).
#### asinh(x) _(es5-ext/math/asinh)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.asinh).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.asinh).
#### atanh(x) _(es5-ext/math/atanh)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.atanh).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.atanh).
#### cbrt(x) _(es5-ext/math/cbrt)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cbrt).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cbrt).
#### clz32(x) _(es5-ext/math/clz32)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.clz32).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.clz32).
#### cosh(x) _(es5-ext/math/cosh)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cosh).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cosh).
#### expm1(x) _(es5-ext/math/expm1)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.expm1).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.expm1).
#### fround(x) _(es5-ext/math/fround)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.fround).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.fround).
#### hypot([…values]) _(es5-ext/math/hypot)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.hypot).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.hypot).
#### imul(x, y) _(es5-ext/math/imul)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.imul).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.imul).
#### log1p(x) _(es5-ext/math/log1p)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log1p).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log1p).
#### log2(x) _(es5-ext/math/log2)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log2).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log2).
#### log10(x) _(es5-ext/math/log10)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log10).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log10).
#### sign(x) _(es5-ext/math/sign)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sign).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sign).
#### sinh(x) _(es5-ext/math/sinh)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sinh).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sinh).
#### tanh(x) _(es5-ext/math/tanh)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.tanh).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.tanh).
#### trunc(x) _(es5-ext/math/trunc)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.trunc).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.trunc).
### Number Constructor extensions
#### EPSILON _(es5-ext/number/epsilon)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.epsilon).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.epsilon).
The difference between 1 and the smallest value greater than 1 that is representable as a Number value, which is approximately 2.2204460492503130808472633361816 x 10-16.
#### isFinite(x) _(es5-ext/number/is-finite)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite).
Whether value is finite. Differs from global isNaN that it doesn't do type coercion.
#### isInteger(x) _(es5-ext/number/is-integer)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isinteger).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isinteger).
Whether value is integer.
#### isNaN(x) _(es5-ext/number/is-nan)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isnan).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isnan).
Whether value is NaN. Differs from global isNaN that it doesn't do type coercion.
#### isNumber(x) _(es5-ext/number/is-number)_
@@ -612,16 +612,16 @@ Whether given value is number
#### isSafeInteger(x) _(es5-ext/number/is-safe-integer)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.issafeinteger).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.issafeinteger).
#### MAX_SAFE_INTEGER _(es5-ext/number/max-safe-integer)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.maxsafeinteger).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.maxsafeinteger).
The value of Number.MAX_SAFE_INTEGER is 9007199254740991.
#### MIN_SAFE_INTEGER _(es5-ext/number/min-safe-integer)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.minsafeinteger).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.minsafeinteger).
The value of Number.MIN_SAFE_INTEGER is -9007199254740991 (253-1).
#### toInteger(x) _(es5-ext/number/to-integer)_
@@ -647,7 +647,7 @@ Pad given number with zeros. Returns string
#### assign(target, source[, …sourcen]) _(es5-ext/object/assign)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign).
Extend _target_ by enumerable own properties of other objects. If properties are already set on target object, they will be overwritten.
#### clear(obj) _(es5-ext/object/clear)_
@@ -690,7 +690,7 @@ Whether two values are equal, using [_SameValueZero_](http://people.mozilla.org/
#### every(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/every)_
-Analogous to Array.prototype.every. Returns true if every key-value pair in this object satisfies the provided testing function.
+Analogous to Array.prototype.every. Returns true if every key-value pair in this object satisfies the provided testing function.
Optionally _compareFn_ can be provided which assures that keys are tested in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key).
#### filter(obj, cb[, thisArg]) _(es5-ext/object/filter)_
@@ -750,7 +750,7 @@ Search object for value
#### keys(obj) _(es5-ext/object/keys)_
-[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys).
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys).
ES6's version of `keys`, doesn't throw on primitive input
#### map(obj, cb[, thisArg]) _(es5-ext/object/map)_
@@ -773,7 +773,7 @@ Useful as an alternative for `setPrototypeOf` in environments in which it cannot
#### normalizeOptions(options) _(es5-ext/object/normalize-options)_
-Normalizes options object into flat plain object.
+Normalizes options object into flat plain object.
Useful for functions in which we either need to keep options object for future reference or need to modify it for internal use.
@@ -795,18 +795,18 @@ Serialize value into string. Differs from [JSON.stringify](https://developer.moz
#### setPrototypeOf(object, proto) _(es5-ext/object/set-prototype-of)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.setprototypeof).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.setprototypeof).
If native version is not provided, it depends on existence of `__proto__` functionality, if it's missing, `null` instead of function is exposed.
#### some(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/some)_
Analogous to Array.prototype.some Returns true if any key-value pair satisfies the provided
-testing function.
+testing function.
Optionally _compareFn_ can be provided which assures that keys are tested in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key).
#### toArray(obj[, cb[, thisArg[, compareFn]]]) _(es5-ext/object/to-array)_
-Creates an array of results of calling a provided function on every key-value pair in this object.
+Creates an array of results of calling a provided function on every key-value pair in this object.
Optionally _compareFn_ can be provided which assures that results are added in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key).
#### unserialize(str) _(es5-ext/object/unserialize)_
@@ -855,28 +855,28 @@ It's to be used as counterpart to [regExp.unicode](http://people.mozilla.org/~jo
#### re.match(string) _(es5-ext/reg-exp/#/match)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.match).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.match).
#### re.replace(string, replaceValue) _(es5-ext/reg-exp/#/replace)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.replace).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.replace).
#### re.search(string) _(es5-ext/reg-exp/#/search)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.search).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.search).
#### re.split(string) _(es5-ext/reg-exp/#/search)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.split).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.split).
#### re.sticky _(es5-ext/reg-exp/#/sticky/implement)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.sticky).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.sticky).
It's a getter, so only `implement` and `is-implemented` modules are provided.
#### re.unicode _(es5-ext/reg-exp/#/unicode/implement)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.unicode).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.unicode).
It's a getter, so only `implement` and `is-implemented` modules are provided.
### String Constructor extensions
@@ -937,7 +937,7 @@ Whether string contains given string.
#### str.endsWith(searchString[, endPosition]) _(es5-ext/string/#/ends-with)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.endswith).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.endswith).
Whether strings ends with given string
#### str.hyphenToCamel() _(es5-ext/string/#/hyphen-to-camel)_
@@ -955,8 +955,8 @@ Return last character
#### str.normalize([form]) _(es5-ext/string/#/normalize)_
-[_Introduced with ECMAScript 6_](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize).
-Returns the Unicode Normalization Form of a given string.
+[_Introduced with ECMAScript 6_](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize).
+Returns the Unicode Normalization Form of a given string.
Based on Matsuza's version. Code used for integrated shim can be found at [github.com/walling/unorm](https://github.com/walling/unorm/blob/master/lib/unorm.js)
#### str.pad(fill[, length]) _(es5-ext/string/#/pad)_
@@ -967,7 +967,7 @@ If _length_ is negative then pad is applied from right.
#### str.repeat(n) _(es5-ext/string/#/repeat)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.repeat).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.repeat).
Repeat given string _n_ times
#### str.plainReplace(search, replace) _(es5-ext/string/#/plain-replace)_
@@ -980,12 +980,12 @@ Simple `replace` version. Doesn't support regular expressions. Replaces all occu
#### str.startsWith(searchString[, position]) _(es5-ext/string/#/starts-with)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.startswith).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.startswith).
Whether strings starts with given string
#### str[@@iterator] _(es5-ext/string/#/@@iterator)_
-[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype-@@iterator).
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype-@@iterator).
Returns iterator object which traverses all string characters (with respect to unicode symbols)
### Tests [](https://travis-ci.org/medikoo/es5-ext)
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/README.md b/tools/eslint/node_modules/es6-iterator/README.md
index 30faa82bbaefaa..288373da7ab506 100644
--- a/tools/eslint/node_modules/es6-iterator/README.md
+++ b/tools/eslint/node_modules/es6-iterator/README.md
@@ -4,7 +4,7 @@
### Installation
$ npm install es6-iterator
-
+
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
## API
@@ -63,7 +63,7 @@ May also be used for _arguments_ objects:
#### StringIterator(str) _(es6-iterator/string)_
-Assures proper iteration over unicode symbols.
+Assures proper iteration over unicode symbols.
See: http://mathiasbynens.be/notes/javascript-unicode
```javascript
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/README.md b/tools/eslint/node_modules/es6-map/README.md
index f1a2d95d4f9bf5..387eb1a1458a98 100644
--- a/tools/eslint/node_modules/es6-map/README.md
+++ b/tools/eslint/node_modules/es6-map/README.md
@@ -24,7 +24,7 @@ var Map = require('es6-map/polyfill');
### Installation
$ npm install es6-map
-
+
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
#### API
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/README.md b/tools/eslint/node_modules/escope/README.md
index a2bfeb72f85416..02b3a3e7dceca7 100644
--- a/tools/eslint/node_modules/escope/README.md
+++ b/tools/eslint/node_modules/escope/README.md
@@ -19,7 +19,7 @@ var currentScope = scopeManager.acquire(ast); // global scope
estraverse.traverse(ast, {
enter: function(node, parent) {
// do stuff
-
+
if (/Function/.test(node.type)) {
currentScope = scopeManager.acquire(node); // get current function scope
}
@@ -28,7 +28,7 @@ estraverse.traverse(ast, {
if (/Function/.test(node.type)) {
currentScope = currentScope.upper; // set to parent scope
}
-
+
// do stuff
}
});
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..d6fa778cebdf95 100644
--- a/tools/eslint/node_modules/escope/lib/definition.js
+++ b/tools/eslint/node_modules/escope/lib/definition.js
@@ -17,16 +17,16 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /*
Copyright (C) 2015 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
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRlZmluaXRpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBNkJxQixhQUNqQixTQURpQixVQUNqQixDQUFZLElBQVosRUFBa0IsSUFBbEIsRUFBd0IsSUFBeEIsRUFBOEIsTUFBOUIsRUFBc0MsS0FBdEMsRUFBNkMsSUFBN0MsRUFBbUQ7d0JBRGxDLFlBQ2tDOzs7OztBQUkvQyxPQUFLLElBQUwsR0FBWSxJQUFaOzs7O0FBSitDLE1BUS9DLENBQUssSUFBTCxHQUFZLElBQVo7Ozs7QUFSK0MsTUFZL0MsQ0FBSyxJQUFMLEdBQVksSUFBWjs7OztBQVorQyxNQWdCL0MsQ0FBSyxNQUFMLEdBQWMsTUFBZDs7OztBQWhCK0MsTUFvQi9DLENBQUssS0FBTCxHQUFhLEtBQWI7Ozs7QUFwQitDLE1Bd0IvQyxDQUFLLElBQUwsR0FBWSxJQUFaLENBeEIrQztDQUFuRDs7Ozs7O2tCQURpQjs7SUFnQ2Y7OztBQUNGLFdBREUsbUJBQ0YsQ0FBWSxJQUFaLEVBQWtCLElBQWxCLEVBQXdCLEtBQXhCLEVBQStCLElBQS9CLEVBQXFDOzBCQURuQyxxQkFDbUM7Ozs7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iAgICAgICAgLyoqXG4gICAgICAgICAqIFdoZXRoZXIgdGhlIHBhcmFtZXRlciBkZWZpbml0aW9uIGlzIGEgcGFydCBvZiBhIHJlc3QgcGFyYW1ldGVyLlxuICAgICAgICAgKiBAbWVtYmVyIHtib29sZWFufSBQYXJhbWV0ZXJEZWZpbml0aW9uI3Jlc3RcbiAgICAgICAgICovXG4gICAgICAgIHRoaXMucmVzdCA9IHJlc3Q7XG4gICAgfVxufVxuXG5leHBvcnQge1xuICAgIFBhcmFtZXRlckRlZmluaXRpb24sXG4gICAgRGVmaW5pdGlvblxufVxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/tools/eslint/node_modules/escope/lib/index.js b/tools/eslint/node_modules/escope/lib/index.js
index 6861459edae75a..16e6478b448c5d 100644
--- a/tools/eslint/node_modules/escope/lib/index.js
+++ b/tools/eslint/node_modules/escope/lib/index.js
@@ -1,19 +1,24 @@
'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
Copyright (C) 2014 Thiago de Arruda
-
+
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
@@ -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.
ScopeMan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h0cmVlLCBwcm92aWRlZE9wdGlvbnMpIHtcbiAgICB2YXIgc2NvcGVNYW5hZ2VyLCByZWZlcmVuY2VyLCBvcHRpb25zO1xuXG4gICAgb3B0aW9ucyA9IHVwZGF0ZURlZXBseShkZWZhdWx0T3B0aW9ucygpLCBwcm92aWRlZE9wdGlvbnMpO1xuXG4gICAgc2NvcGVNYW5hZ2VyID0gbmV3IFNjb3BlTWFuYWdlcihvcHRpb25zKTtcblxuICAgIHJlZmVyZW5jZXIgPSBuZXcgUmVmZXJlbmNlcihvcHRpb25zLCBzY29wZU1hbmFnZXIpO1xuICAgIHJlZmVyZW5jZXIudmlzaXQodHJlZSk7XG5cbiAgICBhc3NlcnQoc2NvcGVNYW5hZ2VyLl9fY3VycmVudFNjb3BlID09PSBudWxsLCAnY3VycmVudFNjb3BlIHNob3VsZCBiZSBudWxsLicpO1xuXG4gICAgcmV0dXJuIHNjb3BlTWFuYWdlcjtcbn1cblxuZXhwb3J0IHtcbiAgICAvKiogQG5hbWUgbW9kdWxlOmVzY29wZS52ZXJzaW9uICovXG4gICAgdmVyc2lvbixcbiAgICAvKiogQG5hbWUgbW9kdWxlOmVzY29wZS5SZWZlcmVuY2UgKi9cbiAgICBSZWZlcmVuY2UsXG4gICAgLyoqIEBuYW1lIG1vZHVsZTplc2NvcGUuVmFyaWFibGUgKi9cbiAgICBWYXJpYWJsZSxcbiAgICAvKiogQG5hbWUgbW9kdWxlOmVzY29wZS5TY29wZSAqL1xuICAgIFNjb3BlLFxuICAgIC8qKiBAbmFtZSBtb2R1bGU6ZXNjb3BlLlNjb3BlTWFuYWdlciAqL1xuICAgIFNjb3BlTWFuYWdlclxufTtcblxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
diff --git a/tools/eslint/node_modules/escope/lib/pattern-visitor.js b/tools/eslint/node_modules/escope/lib/pattern-visitor.js
index 39687239bb5f62..e67f3e0f3f6a63 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');
@@ -20,16 +20,16 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*
Copyright (C) 2015 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
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhdHRlcm4tdmlzaXRvci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQTJCQSxTQUFTLE9BQVQsQ0FBaUIsRUFBakIsRUFBcUI7QUFDakIsV0FBTyxHQUFHLEdBQUcsTUFBSCxHQUFZLENBQVosQ0FBSCxJQUFxQixJQUFyQixDQURVO0NBQXJCOztJQUlxQjs7Ozs7a0NBQ0EsTUFBTTtBQUNuQixnQkFBSSxXQUFXLEtBQUssSUFBTCxDQURJO0FBRW5CLG1CQUNJLGFBQWEsbUJBQU8sVUFBUCxJQUNiLGFBQWEsbUJBQU8sYUFBUCxJQUNiLGFBQWEsbUJBQU8sWUFBUCxJQUNiLGFBQWEsbUJBQU8sYUFBUCxJQUNiLGFBQWEsbUJBQU8sV0FBUCxJQUNiLGFBQWEsbUJBQU8saUJBQVAsQ0FSRTs7OztBQVl2QixhQWJpQixjQWFqQixDQUFZLFdBQVosRU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WVudHMucG9wKCk7XG4gICAgfVxuXG4gICAgQ2FsbEV4cHJlc3Npb24obm9kZSkge1xuICAgICAgICAvLyBhcmd1bWVudHMgYXJlIHJpZ2h0IGhhbmQgbm9kZXMuXG4gICAgICAgIG5vZGUuYXJndW1lbnRzLmZvckVhY2goYSA9PiB7IHRoaXMucmlnaHRIYW5kTm9kZXMucHVzaChhKTsgfSk7XG4gICAgICAgIHRoaXMudmlzaXQobm9kZS5jYWxsZWUpO1xuICAgIH1cbn1cblxuLyogdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDogKi9cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlZmVyZW5jZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBd0JBLElBQU0sT0FBTyxHQUFQO0FBQ04sSUFBTSxRQUFRLEdBQVI7QUFDTixJQUFNLEtBQUssT0FBTyxLQUFQOzs7Ozs7O0lBTVU7QUFDakIsV0FEaUIsU0FDakIsQ0FBWSxLQUFaLEVBQW1CLEtBQW5CLEVBQTBCLElBQTFCLEVBQWlDLFNBQWpDLEVBQTRDLG1CQUE1QyxFQUFpRSxPQUFqRSxFQUEwRSxJQUExRSxFQUFnRjswQkFEL0QsV0FDK0Q7Ozs7OztBQUs1RSxTQUFLLFVBQUwsR0FBa0IsS0FBbEI7Ozs7O0FBTDRFLFFBVTVFLENBQUssSUFBTCxHQUFZLEtBQVo7Ozs7OztBQVY0RSxRQWdCNUUsQ0FBSyxPQUFMLEdBQWUsS0FBZjs7Ozs7QUFoQjRFLFFBcUI1RSxDQUFLLFFBQUwsR0FBZ0IsSUFBaEI7Ozs7Ozs7QUFyQjRFLFFBNEI1RSxDQUFLLElBQUwsR0FBWSxJQUFaLENBNUI0RTtBQTZCNUUsUUFBSSxLQUFLLE9BQUwsRUFBSixFQUFvQjs7Ozs7QUFLaEIsV0FBSyxTQUFMLEdBQWlCLFNBQWpCOzs7OztBQUxnQixVQVVoQixDQUFLLE9BQUwsR0FBZSxPQUFmOzs7OztBQVZnQixVQWVoQixDQUFLLElBQUwsR0F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cml2YXRlXG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLmZsYWcgPSBmbGFnO1xuICAgICAgICBpZiAodGhpcy5pc1dyaXRlKCkpIHtcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogSWYgcmVmZXJlbmNlIGlzIHdyaXRlYWJsZSwgdGhpcyBpcyB0aGUgdHJlZSBiZWluZyB3cml0dGVuIHRvIGl0LlxuICAgICAgICAgICAgICogQG1lbWJlciB7ZXNwcmltYSNOb2RlfSBSZWZlcmVuY2Ujd3JpdGVFeHByXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIHRoaXMud3JpdGVFeHByID0gd3JpdGVFeHByO1xuICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgKiBXaGV0aGVyIHRoZSBSZWZlcmVuY2UgbWlnaHQgcmVmZXIgdG8gYSBwYXJ0aWFsIHZhbHVlIG9mIHdyaXRlRXhwci5cbiAgICAgICAgICAgICAqIEBtZW1iZXIge2Jvb2xlYW59IFJlZmVyZW5jZSNwYXJ0aWFsXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIHRoaXMucGFydGlhbCA9IHBhcnRpYWw7XG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIFdoZXRoZXIgdGhlIFJlZmVyZW5jZSBpcyB0byB3cml0ZSBvZiBpbml0aWFsaXphdGlvbi5cbiAgICAgICAgICAgICAqIEBtZW1iZXIge2Jvb2xlYW59IFJlZmVyZW5jZSNpbml0XG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIHRoaXMuaW5pdCA9IGluaXQ7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5fX21heWJlSW1wbGljaXRHbG9iYWwgPSBtYXliZUltcGxpY2l0R2xvYmFsO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFdoZXRoZXIgdGhlIHJlZmVyZW5jZSBpcyBzdGF0aWMuXG4gICAgICogQG1ldGhvZCBSZWZlcmVuY2UjaXNTdGF0aWN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uICAgICAgICAgICAgICogQG1lbWJlciB7Ym9vbGVhbn0gUmVmZXJlbmNlI3BhcnRpYWxcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgdGhpcy5wYXJ0aWFsID0gcGFydGlhbDtcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogV2hldGhlciB0aGUgUmVmZXJlbmNlIGlzIHRvIHdyaXRlIG9mIGluaXRpYWxpemF0aW9uLlxuICAgICAgICAgICAgICogQG1lbWJlciB7Ym9vbGVhbn0gUmVmZXJlbmNlI2luaXRcbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgdGhpcy5pbml0ID0gaW5pdDtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLl9fbWF5YmVJbXBsaWNpdEdsb2JhbCA9IG1heWJlSW1wbGljaXRHbG9iYWw7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogV2hldGhlciB0aGUgcmVmZXJlbmNlIGlzIHN0YXRpYy5cbiAgICAgKiBAbWV0aG9kIFJlZmVyZW5jZSNpc1N0YXRpY1xuICAgICAqIEByZXR1cm4ge2Jvb2xlYW59XG4gICAgICovXG4gICAgaXNTdGF0aWMoKSB7XG4gICAgICAgIHJldHVybiAhdGhpcy50YWludGVkICYmIHRoaXMucmVzb2x2ZWQgJiYgdGhpcy5yZXNvbHZlZC5zY29wZS5pc1N0YXRpYygpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFdoZXRoZXIgdGhlIHJlZmVyZW5jZSBpcyB3cml0ZWFibGUuXG4gICAgICogQG1ldGhvZCBSZWZlcmVuY2UjaXNXcml0ZVxuICAgICAqIEByZXR1cm4ge2Jvb2xlYW59XG4gICAgICovXG4gICAgaXNXcml0ZSgpIHtcbiAgICAgICAgcmV0dXJuICEhKHRoaXMuZmxhZyAmIFJlZmVyZW5jZS5XUklURSk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogV2hldGhlciB0aGUgcmVmZXJlbmNlIGlzIHJlYWRhYmxlLlx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hbnQgUmVmZXJlbmNlLldSSVRFXG4gKiBAcHJpdmF0ZVxuICovXG5SZWZlcmVuY2UuV1JJVEUgPSBXUklURTtcbi8qKlxuICogQGNvbnN0YW50IFJlZmVyZW5jZS5SV1xuICogQHByaXZhdGVcbiAqL1xuUmVmZXJlbmNlLlJXID0gUlc7XG5cbi8qIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6ICovXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/tools/eslint/node_modules/escope/lib/referencer.js b/tools/eslint/node_modules/escope/lib/referencer.js
index 4620007006f096..ae401615568b02 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');
@@ -38,16 +38,16 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*
Copyright (C) 2015 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
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlZmVyZW5jZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUErQkEsU0FBUywyQkFBVCxDQUFxQyxXQUFyQyxFQUFrRCxVQUFsRCxFQUE4RCxRQUE5RCxFQUF3RTs7QUFFcEUsUUFBSSxVQUFVLDZCQUFtQixXQUFuQixFQUFnQyxRQUFoQyxDQUFWLENBRmdFO0FBR3BFLFlBQVEsS0FBUixDQUFjLFdBQWQ7OztBQUhvRSxRQU1oRSxjQUFjLElBQWQsRUFBb0I7QUFDcEIsZ0JBQVEsY0FBUixDQUF1QixPQUF2QixDQUErQixXQUFXLEtBQVgsRUFBa0IsVUFBakQsRUFEb0I7S0FBeEI7Q0FOSjs7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ICAgICBWYXJpYWJsZS5JbXBvcnRCaW5kaW5nLFxuICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICBzcGVjaWZpZXIsXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZGVjbGFyYXRpb24sXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGxcbiAgICAgICAgICAgICAgICAgICAgKSk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIEltcG9ydE5hbWVzcGFjZVNwZWNpZmllcihub2RlKSB7XG4gICAgICAgIGxldCBsb2NhbCA9IChub2RlLmxvY2FsIHx8IG5vZGUuaWQpO1xuICAgICAgICBpZiAobG9jYWwpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRJbXBvcnQobG9jYWwsIG5vZGUpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgSW1wb3J0RGVmYXVsdFNwZWNpZmllcihub2RlKSB7XG4gICAgICAgIGxldCBsb2NhbCA9IChub2RlLmxvY2FsIHx8IG5vZGUuaWQpO1xuICAgICAgICB0aGlzLnZpc2l0SW1wb3J0KGxvY2FsLCBub2RlKTtcbiAgICB9XG5cbiAgICBJbXBvcnRTcGVjaWZpZXIobm9kZSkge1xuICAgICAgICBsZXQgbG9jYWwgPSAobm9kZS5sb2NhbCB8fCBub2RlLmlkKTtcbiAgICAgICAgaWYgKG5vZGUubmFtZSkge1xuICAgICAgICAgICAgdGhpcy52aXNpdEltcG9ydChub2RlLm5hbWUsIG5vZGUpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy52aXNpdEltcG9ydChsb2NhbCwgbm9kZSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi8vIFJlZmVyZW5jaW5nIHZhcmlhYmxlcyBhbmQgY3JlYXRpbmcgYmluZGluZ3MuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBSZWZlcmVuY2VyIGV4dGVuZHMgZXNyZWN1cnNlLlZpc2l0b3Ige1xuICAgIGNvbnN0cnVjdG9yKHNjb3BlTWFuYWdlcikge1xuICAgICAgICBzdXBlcigpO1xuICAgICAgICB0aGlzLnNjb3BlTWFuYWdlciA9IHNjb3BlTWFuYWdlcjtcbiAgICAgICAgdGhpcy5wYXJlbnQgPSBudWxsO1xuICAgICAgICB0aGlzLmlzSW5uZXJNZXRob2REZWZpbml0aW9uID0gZmFsc2U7XG4gICAgfVxuXG4gICAgY3VycmVudFNjb3BlKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5zY29wZU1hbmFnZXIuX19jdXJyZW50U2NvcGU7XG4gICAgfVxuXG4gICAgY2xvc2Uobm9kZSkge1xuICAgICAgICB3aGlsZSAodGhpcy5jdXJyZW50U2NvcGUoKSAmJiBub2RlID09PSB0aGlzLmN1cnJlbnRTY29wZSgpLmJsb2NrKSB7XG4gICAgICAgICAgICB0aGlzLnNjb3BlTWFuYWdlci5fX2N1cnJlbnRTY29wZSA9IHRoaXMuY3VycmVudFNjb3BlKCkuX19jbG9zZSh0aGlzLnNjb3BlTWFuYWdlcik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwdXNoSW5uZXJNZXRob2REZWZpbml0aW9uKGlzSW5uZXJNZXRob2REZWZpbml0aW9uKSB7XG4gICAgICAgIHZhciBwcmV2aW91cyA9IHRoaXMuaXNJbm5lck1ldGhvZERlZmluaXRpb247XG4gICAgICAgIHRoaXMuaXNJbm5lck1ldGhvZERlZmluaXRpb24gPSBpc0lubmVyTWV0aG9kRGVmaW5pdGlvbjtcbiAgICAgICAgcmV0dXJuIHByZXZpb3VzO1xuICAgIH1cblxuICAgIHBvcElubmVyTWV0aG9kRGVmaW5pdGlvbihpc0lubmVyTWV0aG9kRGVmaW5pdGlvbikge1xuICAgICAgICB0aGlzLmlzSW5uZXJNZXRob2REZWZpbml0aW9uID0gaXNJbm5lck1ldGhvZERlZmluaXRpb247XG4gICAgfVxuXG4gICAgbWF0ZXJpYWxpem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IHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG51bGwsIHRydWUsIHRydWUpO1xuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICByZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBhc3NpZ25tZW50cywgbWF5YmVJbXBsaWNpdEdsb2JhbCwgaW5pdCkge1xuICAgICAgICBjb25zdCBzY29wZSA9IHRoaXMuY3VycmVudFNjb3BlKCk7XG4gICAgICAgIGFzc2lnbm1lbnRzLmZvckVhY2goYXNzaWdubWVudCA9PiB7XG4gICAgICAgICAgICBzY29wZS5fX3JlZmVyZW5jaW5nKFxuICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgUmVmZXJlbmNlLldSSVRFLFxuICAgICAgICAgICAgICAgIGFzc2lnbm1lbnQucmlnaHQsXG4gICAgICAgICAgICAgICAgbWF5YmVJbXBsaWNpdEdsb2JhbCxcbiAgICAgICAgICAgICAgICBwYXR0ZXJuICE9PSBhc3NpZ25tZW50LmxlZnQsXG4gICAgICAgICAgICAgICAgaW5pdCk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHZpc2l0UGF0dGVybihub2RlLCBvcHRpb25zLCBjYWxsYmFjaykge1xuICAgICAgICBpZiAodHlwZW9mIG9wdGlvbnMgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgICAgIGNhbGxiYWNrID0gb3B0aW9ucztcbiAgICAgICAgICAgIG9wdGlvbnMgPSB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiBmYWxzZX1cbiAgICAgICAgfVxuICAgICAgICB0cmF2ZXJzZUlkZW50aWZpZXJJblBhdHRlcm4oXG4gICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgb3B0aW9ucy5wcm9jZXNzUmlnaHRIYW5kTm9kZXMgPyB0aGlzIDogbnVsbCxcbiAgICAgICAgICAgIGNhbGxiYWNrKTtcbiAgICB9XG5cbiAgICB2aXNpdEZ1bmN0aW9uKG5vZGUpIHtcbiAgICAgICAgdmFyIGksIGl6O1xuICAgICAgICAvLyBGdW5jdGlvbkRlY2xhcmF0aW9uIG5hbWUgaXMgZGVmaW5lZCBpbiB1cHBlciBzY29wZVxuICAgICAgICAvLyBOT1RFOiBOb3QgcmVmZXJyaW5nIHZhcmlhYmxlU2NvcGUuIEl0IGlzIGludGVuZGVkLlxuICAgICAgICAvLyBTaW5jZVxuICAgICAgICAvLyAgaW4gRVM1LCBGdW5jdGlvbkRlY2xhcmF0aW9uIHNob3VsZCBiZSBpbiBGdW5jdGlvbkJvZHkuXG4gICAgICAgIC8vICBpbiBFUzYsIEZ1bmN0aW9uRGVjbGFyYXRpb24gc2hvdWxkIGJlIGJsb2NrIHNjb3BlZC5cbiAgICAgICAgaWYgKG5vZGUudHlwZSA9PT0gU3ludGF4LkZ1bmN0aW9uRGVjbGFyYXRpb24pIHtcbiAgICAgICAgICAgIC8vIGlkIGlzIGRlZmluZWQgaW4gdXBwZXIgc2NvcGVcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5GdW5jdGlvbk5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEZ1bmN0aW9uRXhwcmVzc2lvbiB3aXRoIG5hbWUgY3JlYXRlcyBpdHMgc3BlY2lhbCBzY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ZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gaWYgdGhlcmUncyBhIHJlc3QgYXJndW1lbnQsIGFkZCB0aGF0XG4gICAgICAgIGlmIChub2RlLnJlc3QpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnUmVzdEVsZW1lbnQnLFxuICAgICAgICAgICAgICAgIGFyZ3VtZW50OiBub2RlLnJlc3RcbiAgICAgICAgICAgIH0sIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICBuZXcgUGFyYW1ldGVyRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZS5wYXJhbXMubGVuZ3RoLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHJ1ZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU2tpcCBCbG9ja1N0YXRlbWVudCB0byBwcmV2ZW50IGNyZWF0aW5nIEJsb2NrU3RhdGVtZW50IHNjb3BlLlxuICAgICAgICBpZiAobm9kZS5ib2R5LnR5cGUgPT09IFN5bnRheC5CbG9ja1N0YXRlbWVudCkge1xuICAgICAgICAgICAgdGhpcy52aXNpdENoaWxkcmVuKG5vZGUuYm9keSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNsb3NlKG5vZGUpO1xuICAgIH1cblxuICAgIHZpc2l0Q2xhc3Mobm9kZSkge1xuICAgICAgICBpZiAobm9kZS50eXBlID09PSBTeW50YXguQ2xhc3NEZWNsYXJhdGlvbikge1xuICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIFZhcmlhYmxlLkNsYXNzTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUuaWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsXG4gICAgICAgICAgICAgICAgICAgICkpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gRklYTUU6IE1heWJlIGNvbnNpZGVyIFREWi5cbiAgICAgICAgdGhpcy52aXNpdChub2RlLnN1cGVyQ2xhc3MpO1xuXG4gICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdENsYXNzU2NvcGUobm9kZSk7XG5cbiAgICAgICAgaWYgKG5vZGUuaWQpIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5DbGFzc05hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG5cbiAgICAgICAgdGhpcy5jbG9zZShub2RlKTtcbiAgICB9XG5cbiAgICB2aXNpdFByb3BlcnR5KG5vZGUpIHtcbiAgICAgICAgdmFyIHByZXZpb3VzLCBpc01ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChub2RlLmNvbXB1dGVkKSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUua2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlzTWV0aG9kRGVmaW5pdGlvbiA9IG5vZGUudHlwZSA9PT0gU3ludGF4Lk1ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHByZXZpb3VzID0gdGhpcy5wdXNoSW5uZXJNZXRob2REZWZpbml0aW9uKHRydWUpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmlzaXQobm9kZS52YWx1ZSk7XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHRoaXMucG9wSW5uZXJNZXRob2REZWZpbml0aW9uKHByZXZpb3VzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHZpc2l0Rm9ySW4obm9kZSkge1xuICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uICYmIG5vZGUubGVmdC5raW5kICE9PSAndmFyJykge1xuICAgICAgICAgICAgdGhpcy5tYXRlcmlhbGl6ZVREWlNjb3BlKG5vZGUucmlnaHQsIG5vZGUpO1xuICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLnJpZ2h0KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZS5yaWdodCk7XG5cbiAgICAgICAgICAgIHRoaXMubWF0ZXJpYWxpemVJdGVyYXRpb25TY29wZShub2RlKTtcbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5ib2R5KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLmxlZnQpO1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdC5kZWNsYXJhdGlvbnNbMF0uaWQsIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG51bGwsIHRydWUsIHRydWUpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihub2RlLmxlZnQsIHtwcm9jZXNzUmlnaHRIYW5kTm9kZXM6IHRydWV9LCAocGF0dGVybiwgaW5mbykgPT4ge1xuICAgICAgICAgICAgICAgICAgICB2YXIgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5jdXJyZW50U2NvcGUoKS5pc1N0cmljdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuOiBwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGVcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBtYXliZUltcGxpY2l0R2xvYmFsLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG1heWJlSW1wbGljaXRHbG9iYWwsIHRydWUsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5yaWdodCk7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB2aXNpdFZhcmlhYmxlRGVjbGFyYXRpb24odmFyaWFibGVUYXJnZXRTY29wZSwgdHlwZSwgbm9kZSwgaW5kZXgsIGZyb21URFopIHtcbiAgICAgICAgLy8gSWYgdGhpcyB3YXMgY2FsbGVkIHRvIGluaXRpYWxpemUgYSBURFogc2NvcGUsIHRoaXMgbmVlZHMgdG8gbWFrZSBkZWZpbml0aW9ucywgYnV0IGRvZXNuJ3QgbWFrZSByZWZlcmVuY2VzLlxuICAgICAgICB2YXIgZGVjbCwgaW5pdDtcblxuICAgICAgICBkZWNsID0gbm9kZS5kZWNsYXJhdGlvbnNbaW5kZXhdO1xuICAgICAgICBpbml0ID0gZGVjbC5pbml0O1xuICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihkZWNsLmlkLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiAhZnJvbVREWn0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICB2YXJpYWJsZVRhcmdldFNjb3BlLl9fZGVmaW5lKHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIGRlY2wsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGluZGV4LFxuICAgICAgICAgICAgICAgICAgICBub2RlLmtpbmRcbiAgICAgICAgICAgICAgICApKTtcblxuICAgICAgICAgICAgaWYgKCFmcm9tVERaKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChpbml0KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKHBhdHRlcm4sIFJlZmVyZW5jZS5XUklURSwgaW5pdCwgbnVsbCwgIWluZm8udG9wTGV2ZWwsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBBc3NpZ25tZW50RXhwcmVzc2lvbihub2RlKSB7XG4gICAgICAgIGlmIChQYXR0ZXJuVmlzaXRvci5pc1BhdHRlcm4obm9kZS5sZWZ0KSkge1xuICAgICAgICAgICAgaWYgKG5vZGUub3BlcmF0b3IgPT09ICc9Jykge1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdCwge3Byb2Nlc3NSaWdodEhhbmROb2RlczogdHJ1ZX0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBtYXliZUltcGxpY2l0R2xvYmFsID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLmN1cnJlbnRTY29wZSgpLmlzU3RyaWN0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXliZUltcGxpY2l0R2xvYmFsID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm46IHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgIC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IGVzcmVjdXJzZS5WaXNpdG9yIHtcbiAgICBjb25zdHJ1Y3RvcihkZWNsYXJhdGlvbiwgcmVmZXJlbmNlcikge1xuICAgICAgICBzdXBlcihudWxsLCByZWZlcmVuY2VyLm9wdGlvbnMpO1xuICAgICAgICB0aGlzLmRlY2xhcmF0aW9uID0gZGVjbGFyYXRpb247XG4gICAgICAgIHRoaXMucmVmZXJlbmNlciA9IHJlZmVyZW5jZXI7XG4gICAgfVxuXG4gICAgdmlzaXRJbXBvcnQoaWQsIHNwZWNpZmllcikge1xuICAgICAgICB0aGlzLnJlZmVyZW5jZXIudmlzaXRQYXR0ZXJuKGlkLCAocGF0dGVybikgPT4ge1xuICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2VyLmN1cnJlbnRTY29wZSgpLl9fZGVmaW5lKHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgIFZhcmlhYmxlLkltcG9ydEJpbmRpbmcsXG4gICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIHNwZWNpZmllcixcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kZWNsYXJhdGlvbixcbiAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgSW1wb3J0TmFtZXNwYWNlU3BlY2lmaWVyKG5vZGUpIHtcbiAgICAgICAgbGV0IGxvY2FsID0gKG5vZGUubG9jYWwgfHwgbm9kZS5pZCk7XG4gICAgICAgIGlmIChsb2NhbCkge1xuICAgICAgICAgICAgdGhpcy52aXNpdEltcG9ydChsb2NhbCwgbm9kZSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBJbXBvcnREZWZhdWx0U3BlY2lmaWVyKG5vZGUpIHtcbiAgICAgICAgbGV0IGxvY2FsID0gKG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IGJsb2NrIHNjb3BlZC5cbiAgICAgICAgaWYgKG5vZGUudHlwZSA9PT0gU3ludGF4LkZ1bmN0aW9uRGVjbGFyYXRpb24pIHtcbiAgICAgICAgICAgIC8vIGlkIGlzIGRlZmluZWQgaW4gdXBwZXIgc2NvcGVcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5GdW5jdGlvbk5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIEZ1bmN0aW9uRXhwcmVzc2lvbiB3aXRoIG5hbWUgY3JlYXRlcyBpdHMgc3BlY2lhbCBzY29wZTtcbiAgICAgICAgLy8gRnVuY3Rpb25FeHByZXNzaW9uTmFtZVNjb3BlLlxuICAgICAgICBpZiAobm9kZS50eXBlID09PSBTeW50YXguRnVuY3Rpb25FeHByZXNzaW9uICYmIG5vZGUuaWQpIHtcbiAgICAgICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdEZ1bmN0aW9uRXhwcmVzc2lvbk5hbWVTY29wZShub2RlKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIENvbnNpZGVyIHRoaXMgZnVuY3Rpb24gaXMgaW4gdGhlIE1ldGhvZERlZmluaXRpb24uXG4gICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdEZ1bmN0aW9uU2NvcGUobm9kZSwgdGhpcy5pc0lubmVyTWV0aG9kRGVmaW5pdGlvbik7XG5cbiAgICAgICAgLy8gUHJvY2VzcyBwYXJhbWV0ZXIgZGVjbGFyYXRpb25zLlxuICAgICAgICBmb3IgKGkgPSAwLCBpeiA9IG5vZGUucGFyYW1zLmxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUucGFyYW1zW2ldLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiB0cnVlfSwgKHBhdHRlcm4sIGluZm8pID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmN1cnJlbnRTY29wZSgpLl9fZGVmaW5lKHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBQYXJhbWV0ZXJEZWZpbml0aW9uKFxuICAgICAgICAgICAgICAgICAgICAgICAgcGF0dGVybixcbiAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICBpLFxuICAgICAgICAgICAgICAgICAgICAgICAgaW5mby5yZXN0XG4gICAgICAgICAgICAgICAgICAgICkpO1xuXG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gaWYgdGhlcmUncyBhIHJlc3QgYXJndW1lbnQsIGFkZCB0aGF0XG4gICAgICAgIGlmIChub2RlLnJlc3QpIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnUmVzdEVsZW1lbnQnLFxuICAgICAgICAgICAgICAgIGFyZ3VtZW50OiBub2RlLnJlc3RcbiAgICAgICAgICAgIH0sIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICBuZXcgUGFyYW1ldGVyRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZS5wYXJhbXMubGVuZ3RoLFxuICAgICAgICAgICAgICAgICAgICAgICAgdHJ1ZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU2tpcCBCbG9ja1N0YXRlbWVudCB0byBwcmV2ZW50IGNyZWF0aW5nIEJsb2NrU3RhdGVtZW50IHNjb3BlLlxuICAgICAgICBpZiAobm9kZS5ib2R5LnR5cGUgPT09IFN5bnRheC5CbG9ja1N0YXRlbWVudCkge1xuICAgICAgICAgICAgdGhpcy52aXNpdENoaWxkcmVuKG5vZGUuYm9keSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNsb3NlKG5vZGUpO1xuICAgIH1cblxuICAgIHZpc2l0Q2xhc3Mobm9kZSkge1xuICAgICAgICBpZiAobm9kZS50eXBlID09PSBTeW50YXguQ2xhc3NEZWNsYXJhdGlvbikge1xuICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX2RlZmluZShub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgIFZhcmlhYmxlLkNsYXNzTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUuaWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsXG4gICAgICAgICAgICAgICAgICAgICkpO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gRklYTUU6IE1heWJlIGNvbnNpZGVyIFREWi5cbiAgICAgICAgdGhpcy52aXNpdChub2RlLnN1cGVyQ2xhc3MpO1xuXG4gICAgICAgIHRoaXMuc2NvcGVNYW5hZ2VyLl9fbmVzdENsYXNzU2NvcGUobm9kZSk7XG5cbiAgICAgICAgaWYgKG5vZGUuaWQpIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUobm9kZS5pZCxcbiAgICAgICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICBWYXJpYWJsZS5DbGFzc05hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBub2RlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgbm9kZVxuICAgICAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG5cbiAgICAgICAgdGhpcy5jbG9zZShub2RlKTtcbiAgICB9XG5cbiAgICB2aXNpdFByb3BlcnR5KG5vZGUpIHtcbiAgICAgICAgdmFyIHByZXZpb3VzLCBpc01ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChub2RlLmNvbXB1dGVkKSB7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUua2V5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlzTWV0aG9kRGVmaW5pdGlvbiA9IG5vZGUudHlwZSA9PT0gU3ludGF4Lk1ldGhvZERlZmluaXRpb247XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHByZXZpb3VzID0gdGhpcy5wdXNoSW5uZXJNZXRob2REZWZpbml0aW9uKHRydWUpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMudmlzaXQobm9kZS52YWx1ZSk7XG4gICAgICAgIGlmIChpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgICAgIHRoaXMucG9wSW5uZXJNZXRob2REZWZpbml0aW9uKHByZXZpb3VzKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHZpc2l0Rm9ySW4obm9kZSkge1xuICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uICYmIG5vZGUubGVmdC5raW5kICE9PSAndmFyJykge1xuICAgICAgICAgICAgdGhpcy5tYXRlcmlhbGl6ZVREWlNjb3BlKG5vZGUucmlnaHQsIG5vZGUpO1xuICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLnJpZ2h0KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZS5yaWdodCk7XG5cbiAgICAgICAgICAgIHRoaXMubWF0ZXJpYWxpemVJdGVyYXRpb25TY29wZShub2RlKTtcbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5ib2R5KTtcbiAgICAgICAgICAgIHRoaXMuY2xvc2Uobm9kZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAobm9kZS5sZWZ0LnR5cGUgPT09IFN5bnRheC5WYXJpYWJsZURlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy52aXNpdChub2RlLmxlZnQpO1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdC5kZWNsYXJhdGlvbnNbMF0uaWQsIChwYXR0ZXJuKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG51bGwsIHRydWUsIHRydWUpO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihub2RlLmxlZnQsIHtwcm9jZXNzUmlnaHRIYW5kTm9kZXM6IHRydWV9LCAocGF0dGVybiwgaW5mbykgPT4ge1xuICAgICAgICAgICAgICAgICAgICB2YXIgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IG51bGw7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5jdXJyZW50U2NvcGUoKS5pc1N0cmljdCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgbWF5YmVJbXBsaWNpdEdsb2JhbCA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuOiBwYXR0ZXJuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGVcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBtYXliZUltcGxpY2l0R2xvYmFsLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19yZWZlcmVuY2luZyhwYXR0ZXJuLCBSZWZlcmVuY2UuV1JJVEUsIG5vZGUucmlnaHQsIG1heWJlSW1wbGljaXRHbG9iYWwsIHRydWUsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5yaWdodCk7XG4gICAgICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB2aXNpdFZhcmlhYmxlRGVjbGFyYXRpb24odmFyaWFibGVUYXJnZXRTY29wZSwgdHlwZSwgbm9kZSwgaW5kZXgsIGZyb21URFopIHtcbiAgICAgICAgLy8gSWYgdGhpcyB3YXMgY2FsbGVkIHRvIGluaXRpYWxpemUgYSBURFogc2NvcGUsIHRoaXMgbmVlZHMgdG8gbWFrZSBkZWZpbml0aW9ucywgYnV0IGRvZXNuJ3QgbWFrZSByZWZlcmVuY2VzLlxuICAgICAgICB2YXIgZGVjbCwgaW5pdDtcblxuICAgICAgICBkZWNsID0gbm9kZS5kZWNsYXJhdGlvbnNbaW5kZXhdO1xuICAgICAgICBpbml0ID0gZGVjbC5pbml0O1xuICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihkZWNsLmlkLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiAhZnJvbVREWn0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICB2YXJpYWJsZVRhcmdldFNjb3BlLl9fZGVmaW5lKHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgbmV3IERlZmluaXRpb24oXG4gICAgICAgICAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICAgICAgICAgIHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIGRlY2wsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGluZGV4LFxuICAgICAgICAgICAgICAgICAgICBub2RlLmtpbmRcbiAgICAgICAgICAgICAgICApKTtcblxuICAgICAgICAgICAgaWYgKCFmcm9tVERaKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZlcmVuY2luZ0RlZmF1bHRWYWx1ZShwYXR0ZXJuLCBpbmZvLmFzc2lnbm1lbnRzLCBudWxsLCB0cnVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChpbml0KSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKHBhdHRlcm4sIFJlZmVyZW5jZS5XUklURSwgaW5pdCwgbnVsbCwgIWluZm8udG9wTGV2ZWwsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBBc3NpZ25tZW50RXhwcmVzc2lvbihub2RlKSB7XG4gICAgICAgIGlmIChQYXR0ZXJuVmlzaXRvci5pc1BhdHRlcm4obm9kZS5sZWZ0KSkge1xuICAgICAgICAgICAgaWYgKG5vZGUub3BlcmF0b3IgPT09ICc9Jykge1xuICAgICAgICAgICAgICAgIHRoaXMudmlzaXRQYXR0ZXJuKG5vZGUubGVmdCwge3Byb2Nlc3NSaWdodEhhbmROb2RlczogdHJ1ZX0sIChwYXR0ZXJuLCBpbmZvKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHZhciBtYXliZUltcGxpY2l0R2xvYmFsID0gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgaWYgKCF0aGlzLmN1cnJlbnRTY29wZSgpLmlzU3RyaWN0KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXliZUltcGxpY2l0R2xvYmFsID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBhdHRlcm46IHBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlZmVyZW5jaW5nRGVmYXVsdFZhbHVlKHBhdHRlcm4sIGluZm8uYXNzaWdubWVudHMsIG1heWJlSW1wbGljaXRHbG9iYWwsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKHBhdHRlcm4sIFJlZmVyZW5jZS5XUklURSwgbm9kZS5yaWdodCwgbWF5YmVJbXBsaWNpdEdsb2JhbCwgIWluZm8udG9wTGV2ZWwsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jdXJyZW50U2NvcGUoKS5fX3JlZmVyZW5jaW5nKG5vZGUubGVmdCwgUmVmZXJlbmNlLlJXLCBub2RlLnJpZ2h0KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMudmlzaXQobm9kZS5sZWZ0KTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnZpc2l0KG5vZGUucmlnaHQpO1xuICAgIH1cblxuICAgIENhdGNoQ2xhdXNlKG5vZGUpIHtcbiAgICAgICAgdGhpcy5zY29wZU1hbmFnZXIuX19uZXN0Q2F0Y2hTY29wZShub2RlKTtcblxuICAgICAgICB0aGlzLnZpc2l0UGF0dGVybihub2RlLnBhcmFtLCB7cHJvY2Vzc1JpZ2h0SGFuZE5vZGVzOiB0cnVlfSwgKHBhdHRlcm4sIGluZm8pID0+IHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudFNjb3BlKCkuX19kZWZpbmUocGF0dGVybixcbiAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuQ2F0Y2hDbGF1c2UsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUucGFyYW0sXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGxcbiAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgICAgIHRoaXMucmVmZXJlbmNpbmdEZWZhdWx0VmFsdWUocGF0dGVybiwgaW5mby5hc3NpZ25tZW50cywgbnVsbCwgdHJ1ZSk7XG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLnZpc2l0KG5vZGUuYm9keSk7XG5cbiAgICAgICAgdGhpcy5jbG9zZShub2RlKTtcbiAgICB9XG5cbiAgICBQcm9ncmFtKG5vZGUpIHtcbiAgICAgICAgdGhpcy5zY29wZU1hbmFnZXIuX19uZXN0R2xvYmFsU2NvcGUobm9kZSk7XG5cbiAgICAgICAgaWYgKHRoaXMu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24obm9kZSkge1xuICAgICAgICB0aGlzLnZpc2l0RXhwb3J0RGVjbGFyYXRpb24obm9kZSk7XG4gICAgfVxuXG4gICAgRXhwb3J0U3BlY2lmaWVyKG5vZGUpIHtcbiAgICAgICAgbGV0IGxvY2FsID0gKG5vZGUuaWQgfHwgbm9kZS5sb2NhbCk7XG4gICAgICAgIHRoaXMudmlzaXQobG9jYWwpO1xuICAgIH1cblxuICAgIE1ldGFQcm9wZXJ0eSgpIHtcbiAgICAgICAgLy8gZG8gbm90aGluZy5cbiAgICB9XG59XG5cbi8qIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6ICovXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
diff --git a/tools/eslint/node_modules/escope/lib/scope-manager.js b/tools/eslint/node_modules/escope/lib/scope-manager.js
index 6e85372a540d47..66b37c94f737a2 100644
--- a/tools/eslint/node_modules/escope/lib/scope-manager.js
+++ b/tools/eslint/node_modules/escope/lib/scope-manager.js
@@ -1,17 +1,21 @@
'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
-
+
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
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjb3BlLW1hbmFnZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUE2Q3FCO0FBQ2pCLGFBRGlCLFlBQ2pCLENBQVksT0FBWixFQUFxQjs4QkFESixjQUNJOztBQUNqQixhQUFLLE1BQUwsR0FBYyxFQUFkLENBRGlCO0FBRWpCLGFBQUssV0FBTCxHQUFtQixJQUFuQixDQUZpQjtBQUdqQixhQUFLLGFBQUwsR0FBcUIsMEJBQXJCLENBSGlCO0FBSWpCLGFBQUssY0FBTCxHQUFzQixJQUF0QixDQUppQjtBQUtqQixhQUFLLFNBQUwsR0FBaUIsT0FBakIsQ0FMaUI7QUFNakIsYUFBSyxtQkFBTCxHQUEyQiwwQkFBM0IsQ0FOaUI7S0FBckI7O2lCQURpQjs7eUNBVUE7QUFDYixtQkFBTyxLQUFLLFNBQUwsQ0FBZSxTQUFmLENBRE07Ozs7eUNBSUE7QUFDYixtQkFBTyxLQUFLLFNBQUwsQ0FBZSxVQUFmLENBRE07Ozs7dUNBSUY7QUFDWCxtQkFBTyxLQUFLLFNBQUwsQ0FBZSxVQU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4gICAgLyoqXG4gICAgICogYWNxdWlyZSBzY29wZSBmcm9tIG5vZGUuXG4gICAgICogQG1ldGhvZCBTY29wZU1hbmFnZXIjYWNxdWlyZVxuICAgICAqIEBwYXJhbSB7RXNwcmltYS5Ob2RlfSBub2RlIC0gbm9kZSBmb3IgdGhlIGFjcXVpcmVkIHNjb3BlLlxuICAgICAqIEBwYXJhbSB7Ym9vbGVhbj19IGlubmVyIC0gbG9vayB1cCB0aGUgbW9zdCBpbm5lciBzY29wZSwgZGVmYXVsdCB2YWx1ZSBpcyBmYWxzZS5cbiAgICAgKiBAcmV0dXJuIHtTY29wZT99XG4gICAgICovXG4gICAgYWNxdWlyZShub2RlLCBpbm5lcikge1xuICAgICAgICB2YXIgc2NvcGVzLCBzY29wZSwgaSwgaXo7XG5cbiAgICAgICAgZnVuY3Rpb24gcHJlZGljYXRlKHNjb3BlKSB7XG4gICAgICAgICAgICBpZiAoc2NvcGUudHlwZSA9PT0gJ2Z1bmN0aW9uJyAmJiBzY29wZS5mdW5jdGlvbkV4cHJlc3Npb25TY29wZSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChzY29wZS50eXBlID09PSAnVERaJykge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgc2NvcGVzID0gdGhpcy5fX2dldChub2RlKTtcbiAgICAgICAgaWYgKCFzY29wZXMgfHwgc2NvcGVzLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBIZXVyaXN0aWMgc2VsZWN0aW9uIGZyb20gYWxsIHNjb3Blcy5cbiAgICAgICAgLy8gSWYgeW91IHdvdWxkIGxpa2UgdG8gZ2V0IGFsbCBzY29wZXMsIHBsZWFzZSB1c2UgU2NvcGVNYW5hZ2VyI2FjcXVpcmVBbGwuXG4gICAgICAgIGlmIChzY29wZXMubGVuZ3RoID09PSAxKSB7XG4gICAgICAgICAgICByZXR1cm4gc2NvcGVzWzBdO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGlubmVyKSB7XG4gICAgICAgICAgICBmb3IgKGkgPSBzY29wZXMubGVuZ3RoIC0gMTsgaSA+PSAwOyAtLWkpIHtcbiAgICAgICAgICAgICAgICBzY29wZSA9IHNjb3Blc1tpXTtcbiAgICAgICAgICAgICAgICBpZiAocHJlZGljYXRlKHNjb3BlKSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NvcGU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgZm9yIChpID0gMCwgaXogPSBzY29wZXMubGVuZ3RoOyBpIDwgaXo7ICsraSkge1xuICAgICAgICAgICAgICAgIHNjb3BlID0gc2NvcGVzW2ldO1xuICAgICAgICAgICAgICAgIGlmIChwcmVkaWNhdGUoc2NvcGUpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBzY29wZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBhY3F1aXJlIGFsbCBzY29wZXMgZnJvbSBub2RlLlxuICAgICAqIEBtZXRob2QgU2NvcGVNYW5hZ2VyI2FjcXVpcmVBbGxcbiAgICAgKiBAcGFyYW0ge0VzcHJpbWEuTm9kZX0gbm9kZSAtIG5vZGUgZm9yIHRoZSBhY3F1aXJlZCBzY29wZS5cbiAgICAgKiBAcmV0dXJuIHtTY29wZVtdP31cbiAgICAgKi9cbiAgICBhY3F1aXJlQWxsKG5vZGUpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX19nZXQobm9kZSk7XG4gICAgfVxuXG4gICA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2NvcGUobm9kZSkge1xuICAgICAgICByZXR1cm4gdGhpcy5fX25lc3RTY29wZShuZXcgQ2xhc3NTY29wZSh0aGlzLCB0aGlzLl9fY3VycmVudFNjb3BlLCBub2RlKSk7XG4gICAgfVxuXG4gICAgX19uZXN0U3dpdGNoU2NvcGUobm9kZSkge1xuICAgICAgICByZXR1cm4gdGhpcy5fX25lc3RTY29wZShuZXcgU3dpdGNoU2NvcGUodGhpcywgdGhpcy5fX2N1cnJlbnRTY29wZSwgbm9kZSkpO1xuICAgIH1cblxuICAgIF9fbmVzdE1vZHVsZVNjb3BlKG5vZGUpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX19uZXN0U2NvcGUobmV3IE1vZHVsZVNjb3BlKHRoaXMsIHRoaXMuX19jdXJyZW50U2NvcGUsIG5vZGUpKTtcbiAgICB9XG5cbiAgICBfX25lc3RURFpTY29wZShub2RlKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fbmVzdFNjb3BlKG5ldyBURFpTY29wZSh0aGlzLCB0aGlzLl9fY3VycmVudFNjb3BlLCBub2RlKSk7XG4gICAgfVxuXG4gICAgX19uZXN0RnVuY3Rpb25FeHByZXNzaW9uTmFtZVNjb3BlKG5vZGUpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX19uZXN0U2NvcGUobmV3IEZ1bmN0aW9uRXhwcmVzc2lvbk5hbWVTY29wZSh0aGlzLCB0aGlzLl9fY3VycmVudFNjb3BlLCBub2RlKSk7XG4gICAgfVxuXG4gICAgX19pc0VTNigpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX19vcHRpb25zLmVjbWFWZXJzaW9uID49IDY7XG4gICAgfVxufVxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjb3BlLW1hbmFnZXIuanMi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l6O1xuXG4gICAgICAgIGZ1bmN0aW9uIHByZWRpY2F0ZShzY29wZSkge1xuICAgICAgICAgICAgaWYgKHNjb3BlLnR5cGUgPT09ICdmdW5jdGlvbicgJiYgc2NvcGUuZnVuY3Rpb25FeHByZXNzaW9uU2NvcGUpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoc2NvcGUudHlwZSA9PT0gJ1REWicpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIHNjb3BlcyA9IHRoaXMuX19nZXQobm9kZSk7XG4gICAgICAgIGlmICghc2NvcGVzIHx8IHNjb3Blcy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gSGV1cmlzdGljIHNlbGVjdGlvbiBmcm9tIGFsbCBzY29wZXMuXG4gICAgICAgIC8vIElmIHlvdSB3b3VsZCBsaWtlIHRvIGdldCBhbGwgc2NvcGVzLCBwbGVhc2UgdXNlIFNjb3BlTWFuYWdlciNhY3F1aXJlQWxsLlxuICAgICAgICBpZiAoc2NvcGVzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgICAgICAgcmV0dXJuIHNjb3Blc1swXTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChpbm5lcikge1xuICAgICAgICAgICAgZm9yIChpID0gc2NvcGVzLmxlbmd0aCAtIDE7IGkgPj0gMDsgLS1pKSB7XG4gICAgICAgICAgICAgICAgc2NvcGUgPSBzY29wZXNbaV07XG4gICAgICAgICAgICAgICAgaWYgKHByZWRpY2F0ZShzY29wZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHNjb3BlO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAg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Ll9fY3VycmVudFNjb3BlLCBub2RlKSk7XG4gICAgfVxuXG4gICAgX19uZXN0VERaU2NvcGUobm9kZSkge1xuICAgICAgICByZXR1cm4gdGhpcy5fX25lc3RTY29wZShuZXcgVERaU2NvcGUodGhpcywgdGhpcy5fX2N1cnJlbnRTY29wZSwgbm9kZSkpO1xuICAgIH1cblxuICAgIF9fbmVzdEZ1bmN0aW9uRXhwcmVzc2lvbk5hbWVTY29wZShub2RlKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fbmVzdFNjb3BlKG5ldyBGdW5jdGlvbkV4cHJlc3Npb25OYW1lU2NvcGUodGhpcywgdGhpcy5fX2N1cnJlbnRTY29wZSwgbm9kZSkpO1xuICAgIH1cblxuICAgIF9faXNFUzYoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9fb3B0aW9ucy5lY21hVmVyc2lvbiA+PSA2O1xuICAgIH1cbn1cblxuLyogdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDogKi9cbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
diff --git a/tools/eslint/node_modules/escope/lib/scope.js b/tools/eslint/node_modules/escope/lib/scope.js
index a9b3b897d87db1..88ded9c82760f3 100644
--- a/tools/eslint/node_modules/escope/lib/scope.js
+++ b/tools/eslint/node_modules/escope/lib/scope.js
@@ -1,19 +1,24 @@
'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; }; }(); /*
Copyright (C) 2015 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
@@ -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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ib2R5W2ldO1xuICAgICAgICAgICAgaWYgKHN0bXQudHlwZSAhPT0gU3ludGF4LkRpcmVjdGl2ZVN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHN0bXQucmF3ID09PSAnXCJ1c2Ugc3RyaWN0XCInIHx8IHN0bXQucmF3ID09PSAnXFwndXNlIHN0cmljdFxcJycpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICAgIGZvciAoaSA9IDAsIGl6ID0gYm9keS5ib2R5Lmxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgIHN0bXQgPSBib2R5LmJvZHlbaV07XG4gICAgICAgICAgICBpZiAoc3RtdC50eXBlICE9PSBTeW50YXguRXhwcmVzc2lvblN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZXhwciA9IHN0bXQuZXhwcmVzc2lvbjtcbiAgICAgICAgICAgIGlmIChleHByLnR5cGUgIT09IFN5bnRheC5MaXRlcmFsIHx8IHR5cGVvZiBleHByLnZhbHVlICE9PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGV4cHIucmF3ICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBpZiAoZXhwci5yYXcgPT09ICdcInVzZSBzdHJpY3RcIicgfHwgZXhwci5yYXcgPT09ICdcXCd1c2Ugc3RyaWN0XFwnJykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChleHByLnZhbHVlID09PSAndXNlIHN0cmljdCcpIHtcbiAgIC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oaXMsIHJlZik7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5fX2xlZnQgPSBudWxsO1xuXG4gICAgICAgIHJldHVybiB0aGlzLnVwcGVyO1xuICAgIH1cblxuICAgIF9fcmVzb2x2ZShyZWYpIHtcbiAgICAgICAgdmFyIHZhcmlhYmxlLCBuYW1lO1xuICAgICAgICBuYW1lID0gcmVmLmlkZW50aWZpZXIubmFtZTtcbiAgICAgICAgaWYgKHRoaXMuc2V0LmhhcyhuYW1lKSkge1xuICAgICAgICAgICAgdmFyaWFibGUgPSB0aGlzLnNldC5nZXQobmFtZSk7XG4gICAgICAgICAgICB2YXJpYWJsZS5yZWZlcmVuY2VzLnB1c2gocmVmKTtcbiAgICAgICAgICAgIHZhcmlhYmxlLnN0YWNrID0gdmFyaWFibGUuc3RhY2sgJiYgcmVmLmZyb20udmFyaWFibGVTY29wZSA9PT0gdGhpcy52YXJpYWJsZVNjb3BlO1xuICAgICAgICAgICAgaWYgKHJlZi50YWludGVkKSB7XG4gICAgICAgICAgICAgICAgdmFyaWFibGUudGFpbnRlZCA9IHRydWU7XG4gICAgICAgICAgICAgICAgdGhpcy50YWludHMuc2V0KHZhcmlhYmxlLm5hbWUsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmVmLnJlc29sdmVkID0gdmFyaWFibGU7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgX19kZWxlZ2F0ZVRvVXBwZXJTY29wZShyZWYpIHtcbiAgICAgICAgaWYgKHRoaXMudXBwZXIpIHtcbiAgICAgICAgICAgIHRoaXMudXBwZXIuX19sZWZ0LnB1c2gocmVmKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnRocm91Z2gucHVzaChyZWYpO1xuICAgIH1cblxuICAgIF9fYWRkRGVjbGFyZWRWYXJpYWJsZXNPZk5vZGUodmFyaWFibGUsIG5vZGUpIHtcbiAgICAgICAgaWYgKG5vZGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdmFyIHZhcmlhYmxlcyA9IHRoaXMuX19kZWNsYXJlZFZhcmlhYmxlcy5nZXQobm9kZSk7XG4gICAgICAgIGlmICh2YXJpYWJsZXMgPT0gbnVsbCkge1xuICAgICAgICAgICAgdmFyaWFibGVzID0gW107XG4gICAgICAgICAgICB0aGlzLl9fZGVjbGFyZWRWYXJpYWJsZXMuc2V0KG5vZGUsIHZhcmlhYmxlcyk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHZhcmlhYmxlcy5pbmRleE9mKHZhcmlhYmxlKSA9PT0gLTEpIHtcbiAgICAgICAgICAgIHZhcmlhYmxlcy5wdXNoKHZhcmlhYmxlKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIF9fZGVmaW5lR2VuZXJpYyhuYW1lLCBzZXQsIHZhcmlhYmxlcywgbm9kZSwgZGVmKSB7XG4gICAgICAgIHZhciB2YXJpYWJsZTtcblxuICAgICAgICB2YXJpYWJsZSA9IHNldC5nZXQobmFtZSk7XG4gICAgICAgIGlmICghdmFyaWFibGUpIHtcbiAgICAgICAgICAgIHZhcmlhYmxlID0gbmV3IFZhcmlhYmxlKG5hbWUsIHRoaXMpO1xuICAgICAgICAgICAgc2V0LnNldChuYW1lLCB2YXJpYWJsZSk7XG4gICAgICAgICAgICB2YXJpYWJsZXMucHVzaCh2YXJpYWJsZSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZGVmKSB7XG4gICAgICAgICAgICB2YXJpYWJsZS5kZWZzLnB1c2goZGVmKTtcbiAgICAgICAgICAgIGlmIChkZWYudHlwZSAhPT0gVmFyaWFibGUuVERaKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5fX2FkZERlY2xhcmVkVmFyaWFibGVzT2ZOb2RlKHZhcmlhYmxlLCBkZWYubm9kZSk7XG4gICAgICAgICAgICAgICAgdGhpcy5fX2FkZERlY2xhcmVkVmFyaWFibGVzT2ZOb2RlKHZhcmlhYmxlLCBkZWYucGFyZW50KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAobm9kZSkge1xuICAgICAgICAgICAgdmFyaWFibGUuaWRlbnRpZmllcnMucHVzaChub2RlKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIF9fZGVmaW5lKG5vZGUsIGRlZikge1xuICAgICAgICBpZiAobm9kZSAmJiBub2RlLnR5cGUgPT09IFN5bnRheC5JZGVudGlmaWVyKSB7XG4gICAgICAgICAgICB0aGlzLl9fZGVmaW5lR2VuZXJpYyhcbiAgICAgICAgICAgICAgICAgICAgbm9kZS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldCxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YXJpYWJsZXMsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGRlZik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfX3JlZmVyZW5jaW5nKG5vZGUsIGFzc2lnbiwgd3JpdGVFeHByLCBtYXliZUltcGxpY2l0R2xvYmFsLCBwYXJ0aWFsLCBpbml0KSB7XG4gICAgICAgIC8vIGJlY2F1c2UgQXJyYXkgZWxlbWVudCBtYXkgYmUgbnVsbFxuICAgICAgICBpZiAoIW5vZGUgfHwgbm9kZS50eXBlICE9PSBTeW50YXguSWRlbnRpZmllcikge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU3BlY2lhbGx5IGhhbmRsZSBsaWtlIGB0aGlzYC5cbiAgICAgICAgaWYgKG5vZGUubmFtZSA9PT0gJ3N1cGVyJykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHJlZiA9IG5ldyBSZWZlcmVuY2Uobm9kZSwgdGhpcywgYXNzaWduIHx8IFJlZmVyZW5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uICAgIF9fY2xvc2Uoc2NvcGVNYW5hZ2VyKSB7XG4gICAgICAgIGxldCBpbXBsaWNpdCA9IFtdO1xuICAgICAgICBmb3IgKGxldCBpID0gMCwgaXogPSB0aGlzLl9fbGVmdC5sZW5ndGg7IGkgPCBpejsgKytpKSB7XG4gICAgICAgICAgICBsZXQgcmVmID0gdGhpcy5fX2xlZnRbaV07XG4gICAgICAgICAgICBpZiAocmVmLl9fbWF5YmVJbXBsaWNpdEdsb2JhbCAmJiAhdGhpcy5zZXQuaGFzKHJlZi5pZGVudGlmaWVyLm5hbWUpKSB7XG4gICAgICAgICAgICAgICAgaW1wbGljaXQucHVzaChyZWYuX19tYXliZUltcGxpY2l0R2xvYmFsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGNyZWF0ZSBhbiBpbXBsaWNpdCBnbG9iYWwgdmFyaWFibGUgZnJvbSBhc3NpZ25tZW50IGV4cHJlc3Npb25cbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGl6ID0gaW1wbGljaXQubGVuZ3RoOyBpIDwgaXo7ICsraSkge1xuICAgICAgICAgICAgbGV0IGluZm8gPSBpbXBsaWNpdFtpXTtcbiAgICAgICAgICAgIHRoaXMuX19kZWZpbmVJbXBsaWNpdChpbmZvLnBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBEZWZpbml0aW9uKFxuICAgICAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuSW1wbGljaXRHbG9iYWxWYXJpYWJsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ucGF0dGVybixcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ubm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgbnVsbFxuICAgICAgICAgICAgICAgICAgICApKTtcblxuICAgICAgICB9XG5cbiAgICAgICAgdGh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W5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuRnVuY3Rpb25OYW1lLFxuICAgICAgICAgICAgICAgICAgICBibG9jay5pZCxcbiAgICAgICAgICAgICAgICAgICAgYmxvY2ssXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGxcbiAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgdGhpcy5mdW5jdGlvbkV4cHJlc3Npb25TY29wZSA9IHRydWU7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgQ2F0Y2hTY29wZSBleHRlbmRzIFNjb3BlIHtcbiAgICBjb25zdHJ1Y3RvcihzY29wZU1hbmFnZXIsIHVwcGVyU2NvcGUsIGJsb2NrKSB7XG4gICAgICAgIHN1cGVyKHNjb3BlTWFuYWdlciwgJ2NhdGNoJywgdXBwZXJTY29wZSwgYmxvY2ssIGZhbHNlKTtcbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBXaXRoU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICd3aXRoJywgdXBwZXJTY29wZSwgYmxvY2ssIGZhbHNlKTtcbiAgICB9XG5cbiAgICBfX2Nsb3NlKHNjb3BlTWFuYWdlcikge1xuICAgICAgICBpZiAodGhpcy5fX3Nob3VsZFN0YXRpY2FsbHlDbG9zZShzY29wZU1hbmFnZXIpKSB7XG4gICAgICAgICAgICByZXR1cm4gc3VwZXIuX19jbG9zZShzY29wZU1hbmFnZXIpO1xuICAgICAgICB9XG5cbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGl6ID0gdGhpcy5fX2xlZnQubGVuZ3RoOyBpIDwgaXo7ICsraSkge1xuICAgICAgICAgICAgbGV0IHJlZiA9IHRoaXMuX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cycpO1xuICAgICAgICBhc3NlcnQodmFyaWFibGUsICdBbHdheXMgaGF2ZSBhcmd1bWVudHMgdmFyaWFibGUuJyk7XG4gICAgICAgIHJldHVybiB2YXJpYWJsZS50YWludGVkIHx8IHZhcmlhYmxlLnJlZmVyZW5jZXMubGVuZ3RoICAhPT0gMDtcbiAgICB9XG5cbiAgICBpc1RoaXNNYXRlcmlhbGl6ZWQoKSB7XG4gICAgICAgIGlmICghdGhpcy5pc1N0YXRpYygpKSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdGhpcy50aGlzRm91bmQ7XG4gICAgfVxuXG4gICAgX19kZWZpbmVBcmd1bWVudHMoKSB7XG4gICAgICAgIHRoaXMuX19kZWZpbmVHZW5lcmljKFxuICAgICAgICAgICAgICAgICdhcmd1bWVudHMnLFxuICAgICAgICAgICAgICAgIHRoaXMuc2V0LFxuICAgICAgICAgICAgICAgIHRoaXMudmFyaWFibGVzLFxuICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgbnVsbCk7XG4gICAgICAgIHRoaXMudGFpbnRzLnNldCgnYXJndW1lbnRzJywgdHJ1ZSk7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgRm9yU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdmb3InLCB1cHBlclNjb3BlLCBibG9jaywgZmFsc2UpO1xuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIENsYXNzU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdjbGFzcycsIHVwcGVyU2NvcGUsIGJs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A9IGJvZHkuYm9keS5sZW5ndGg7IGkgPCBpejsgKytpKSB7XG4gICAgICAgICAgICBzdG10ID0gYm9keS5ib2R5W2ldO1xuICAgICAgICAgICAgaWYgKHN0bXQudHlwZSAhPT0gU3ludGF4LkRpcmVjdGl2ZVN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHN0bXQucmF3ID09PSAnXCJ1c2Ugc3RyaWN0XCInIHx8IHN0bXQucmF3ID09PSAnXFwndXNlIHN0cmljdFxcJycpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICAgIGZvciAoaSA9IDAsIGl6ID0gYm9keS5ib2R5Lmxlbmd0aDsgaSA8IGl6OyArK2kpIHtcbiAgICAgICAgICAgIHN0bXQgPSBib2R5LmJvZHlbaV07XG4gICAgICAgICAgICBpZiAoc3RtdC50eXBlICE9PSBTeW50YXguRXhwcmVzc2lvblN0YXRlbWVudCkge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZXhwciA9IHN0bXQuZXhwcmVzc2lvbjtcbiAgICAgICAgICAgIGlmIChleHByLnR5cGUgIT09IFN5bnRheC5MaXRlcmFsIHx8IHR5cGVvZiBleHByLnZhbHVlICE9PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGV4cHIucmF3ICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBpZiAoZXhwci5yYXcgPT09ICdcInVzZSBzdHJpY3RcIicgfHwgZXhwci5yYXcgPT09ICdcXCd1c2Ugc3RyaWN0XFwnJykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChleHByLnZhbHVlID09PSAndXNlIHN0cmljdCcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIHJldHVybiBmYWxzZTtcbn1cblxuZnVuY3Rpb24gcmVnaXN0ZXJTY29wZShzY29wZU1hbmFnZXIsIHNjb3BlKSB7XG4gICAgdmFyIHNjb3BlcztcblxuICAgIHNjb3BlTWFuYWdlci5zY29wZXMucHVzaChzY29wZSk7XG5cbiAgICBzY29wZXMgPSBzY29wZU1hbmFnZXIuX19ub2RlVG9TY29wZS5nZXQoc2NvcGUuYmxvY2spO1xuICAgIGlmIChzY29wZXMpIHtcbiAgICAgICAgc2NvcGVzLnB1c2goc2NvcGUpO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIHNjb3BlTWFuYWdlci5fX25vZGVUb1Njb3BlLnNldChzY29wZS5ibG9jaywgWyBzY29wZSBdKTtcbiAgICB9XG59XG5cbmZ1bmN0aW9uIHNob3VsZEJlU3RhdGljYWxseShkZWYpIHtcbiAgICByZXR1cm4gKFxuICAgICAgICAoZGVmLnR5cGUgPT09IFZhcmlhYmxlLkNsYXNzTmFtZSkgfHxcbiAgICAgICAgKGRlZi50eXBlID09PSBWYXJpYWJsZS5WYXJpYWJsZSAmJiBkZWYucGFyZW50LmtpbmQgIT09ICd2YXInKVxuICAgICk7XG59XG5cbi8qKlxuICogQGNsYXNzIFNjb3BlXG4gKi9cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFNjb3BlIHtcbiAgICBjb25zdHJ1Y3RvcihzY29wZU1hbmFnZXIsIHR5cGUsIHVwcGVyU2NvcGUsIGJsb2NrLCBpc01ldGhvZERlZmluaXRpb24pIHtcbiAgICAgICAgLyoqXG4gICAgICAgICAqIE9uZSBvZiAnVERaJywgJ21vZHVsZScsICdibG9jaycsICdzd2l0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AgICAgICBsZXQgcmVmID0gdGhpcy5fX2xlZnRbaV07XG4gICAgICAgICAgICBjbG9zZVJlZi5jYWxsKHRoaXMsIHJlZik7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5fX2xlZnQgPSBudWxsO1xuXG4gICAgICAgIHJldHVybiB0aGlzLnVwcGVyO1xuICAgIH1cblxuICAgIF9fcmVzb2x2ZShyZWYpIHtcbiAgICAgICAgdmFyIHZhcmlhYmxlLCBuYW1lO1xuICAgICAgICBuYW1lID0gcmVmLmlkZW50aWZpZXIubmFtZTtcbiAgICAgICAgaWYgKHRoaXMuc2V0LmhhcyhuYW1lKSkge1xuICAgICAgICAgICAgdmFyaWFibGUgPSB0aGlzLnNldC5nZXQobmFtZSk7XG4gICAgICAgICAgICB2YXJpYWJsZS5yZWZlcmVuY2VzLnB1c2gocmVmKTtcbiAgICAgICAgICAgIHZhcmlhYmxlLnN0YWNrID0gdmFyaWFibGUuc3RhY2sgJiYgcmVmLmZyb20udmFyaWFibGVTY29wZSA9PT0gdGhpcy52YXJpYWJsZVNjb3BlO1xuICAgICAgICAgICAgaWYgKHJlZi50YWludGVkKSB7XG4gICAgICAgICAgICAgICAgdmFyaWFibGUudGFpbnRlZCA9IHRydWU7XG4gICAgICAgICAgICAgICAgdGhpcy50YWludHMuc2V0KHZhcmlhYmxlLm5hbWUsIHRydWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmVmLnJlc29sdmVkID0gdmFyaWFibGU7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuXG4gICAgX19kZWxlZ2F0ZVRvVXBwZXJTY29wZShyZWYpIHtcbiAgICAgICAgaWYgKHRoaXMudXBwZXIpIHtcbiAgICAgICAgICAgIHRoaXMudXBwZXIuX19sZWZ0LnB1c2gocmVmKTtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLnRocm91Z2gucHVzaChyZWYpO1x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2xhcmVkVmFyaWFibGVzT2ZOb2RlKHZhcmlhYmxlLCBkZWYubm9kZSk7XG4gICAgICAgICAgICAgICAgdGhpcy5fX2FkZERlY2xhcmVkVmFyaWFibGVzT2ZOb2RlKHZhcmlhYmxlLCBkZWYucGFyZW50KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAobm9kZSkge1xuICAgICAgICAgICAgdmFyaWFibGUuaWRlbnRpZmllcnMucHVzaChub2RlKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIF9fZGVmaW5lKG5vZGUsIGRlZikge1xuICAgICAgICBpZiAobm9kZSAmJiBub2RlLnR5cGUgPT09IFN5bnRheC5JZGVudGlmaWVyKSB7XG4gICAgICAgICAgICB0aGlzLl9fZGVmaW5lR2VuZXJpYyhcbiAgICAgICAgICAgICAgICAgICAgbm9kZS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldCxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YXJpYWJsZXMsXG4gICAgICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgICAgIGRlZik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfX3JlZmVyZW5jaW5nKG5vZGUsIGFzc2lnbiwgd3JpdGVFeHByLCBtYXliZUltcGxpY2l0R2xvYmFsLCBwYXJ0aWFsLCBpbml0KSB7XG4gICAgICAgIC8vIGJlY2F1c2UgQXJyYXkgZWxlbWVudCBtYXkgYmUgbnVsbFxuICAgICAgICBpZiAoIW5vZGUgfHwgbm9kZS50eXBlICE9PSBTeW50YXguSWRlbnRpZmllcikge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gU3BlY2lhbGx5IGhhbmRsZSBsaWtlIGB0aGlzYC5cbiAgICAgICAgaWYgKG5vZGUubmFtZSA9PT0gJ3N1cGVyJykge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICA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2xlZnRcbiAgICAgICAgICAgICovXG4gICAgICAgICAgICBsZWZ0OiBbXVxuICAgICAgICB9O1xuICAgIH1cblxuICAgIF9fY2xvc2Uoc2NvcGVNYW5hZ2VyKSB7XG4gICAgICAgIGxldCBpbXBsaWNpdCA9IFtdO1xuICAgICAgICBmb3IgKGxldCBpID0gMCwgaXogPSB0aGlzLl9fbGVmdC5sZW5ndGg7IGkgPCBpejsgKytpKSB7XG4gICAgICAgICAgICBsZXQgcmVmID0gdGhpcy5fX2xlZnRbaV07XG4gICAgICAgICAgICBpZiAocmVmLl9fbWF5YmVJbXBsaWNpdEdsb2JhbCAmJiAhdGhpcy5zZXQuaGFzKHJlZi5pZGVudGlmaWVyLm5hbWUpKSB7XG4gICAgICAgICAgICAgICAgaW1wbGljaXQucHVzaChyZWYuX19tYXliZUltcGxpY2l0R2xvYmFsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGNyZWF0ZSBhbiBpbXBsaWNpdCBnbG9iYWwgdmFyaWFibGUgZnJvbSBhc3NpZ25tZW50IGV4cHJlc3Npb25cbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGl6ID0gaW1wbGljaXQubGVuZ3RoOyBpIDwgaXo7ICsraSkge1xuICAgICAgICAgICAgbGV0IGluZm8gPSBpbXBsaWNpdFtpXTtcbiAgICAgICAgICAgIHRoaXMuX19kZWZpbmVJbXBsaWNpdChpbmZvLnBhdHRlcm4sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBEZWZpbml0aW9uKFxuICAgICAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuSW1wbGljaXRHbG9iYWxWYXJpYWJsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ucGF0dGVybixcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZm8ubm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAg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HNlKTtcbiAgICAgICAgdGhpcy5fX2RlZmluZShibG9jay5pZCxcbiAgICAgICAgICAgICAgICBuZXcgRGVmaW5pdGlvbihcbiAgICAgICAgICAgICAgICAgICAgVmFyaWFibGUuRnVuY3Rpb25OYW1lLFxuICAgICAgICAgICAgICAgICAgICBibG9jay5pZCxcbiAgICAgICAgICAgICAgICAgICAgYmxvY2ssXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIG51bGxcbiAgICAgICAgICAgICAgICApKTtcbiAgICAgICAgdGhpcy5mdW5jdGlvbkV4cHJlc3Npb25TY29wZSA9IHRydWU7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgQ2F0Y2hTY29wZSBleHRlbmRzIFNjb3BlIHtcbiAgICBjb25zdHJ1Y3RvcihzY29wZU1hbmFnZXIsIHVwcGVyU2NvcGUsIGJsb2NrKSB7XG4gICAgICAgIHN1cGVyKHNjb3BlTWFuYWdlciwgJ2NhdGNoJywgdXBwZXJTY29wZSwgYmxvY2ssIGZhbHNlKTtcbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBXaXRoU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICd3aXRoJywgdXBwZXJTY29wZSwgYmxvY2ssIGZhbHNlKTtcbiAgICB9XG5cbiAgICBfX2Nsb3NlKHNjb3BlTWFuYWdlcikge1xuICAgICAgICBpZiAodGhpcy5fX3Nob3VsZFN0YXRpY2FsbHlDbG9zZShzY29wZU1hbmFnZXIpKSB7XG4gICAgICAgICAgICByZXR1cm4gc3VwZXIuX19jbG9zZShzY29wZU1hbmFnZXIpO1xuICAgICAgICB9XG5cbiAgICAgICAgZm9yIChsZXQgaSA9IDAsIGl6ID0gdGhpcy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XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgdmFyaWFibGUgPSB0aGlzLnNldC5nZXQoJ2FyZ3VtZW50cycpO1xuICAgICAgICBhc3NlcnQodmFyaWFibGUsICdBbHdheXMgaGF2ZSBhcmd1bWVudHMgdmFyaWFibGUuJyk7XG4gICAgICAgIHJldHVybiB2YXJpYWJsZS50YWludGVkIHx8IHZhcmlhYmxlLnJlZmVyZW5jZXMubGVuZ3RoICAhPT0gMDtcbiAgICB9XG5cbiAgICBpc1RoaXNNYXRlcmlhbGl6ZWQoKSB7XG4gICAgICAgIGlmICghdGhpcy5pc1N0YXRpYygpKSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdGhpcy50aGlzRm91bmQ7XG4gICAgfVxuXG4gICAgX19kZWZpbmVBcmd1bWVudHMoKSB7XG4gICAgICAgIHRoaXMuX19kZWZpbmVHZW5lcmljKFxuICAgICAgICAgICAgICAgICdhcmd1bWVudHMnLFxuICAgICAgICAgICAgICAgIHRoaXMuc2V0LFxuICAgICAgICAgICAgICAgIHRoaXMudmFyaWFibGVzLFxuICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgbnVsbCk7XG4gICAgICAgIHRoaXMudGFpbnRzLnNldCgnYXJndW1lbnRzJywgdHJ1ZSk7XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgRm9yU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdmb3InLCB1cHBlclNjb3BlLCBibG9jaywgZmFsc2UpO1xuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIENsYXNzU2NvcGUgZXh0ZW5kcyBTY29wZSB7XG4gICAgY29uc3RydWN0b3Ioc2NvcGVNYW5hZ2VyLCB1cHBlclNjb3BlLCBibG9jaykge1xuICAgICAgICBzdXBlcihzY29wZU1hbmFnZXIsICdjbGFzcycsIHVwcGVyU2NvcGUsIGJsb2NrLCBmYWxzZSk7XG4gICAgfVxufVxuXG4vKiB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOiAqL1xuIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInZhcmlhYmxlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBNkJxQixXQUNqQixTQURpQixRQUNqQixDQUFZLElBQVosRUFBa0IsS0FBbEIsRUFBeUI7d0JBRFIsVUFDUTs7Ozs7O0FBS3JCLE9BQUssSUFBTCxHQUFZLElBQVo7Ozs7OztBQUxxQixNQVdyQixDQUFLLFdBQUwsR0FBbUIsRUFBbkI7Ozs7Ozs7QUFYcUIsTUFrQnJCLENBQUssVUFBTCxHQUFrQixFQUFsQjs7Ozs7OztBQWxCcUIsTUF5QnJCLENBQUssSUFBTCxHQUFZLEVBQVosQ0F6QnFCOztBQTJCckIsT0FBSyxPQUFMLEdBQWUsS0FBZjs7Ozs7QUEzQnFCLE1BZ0NyQixDQU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PSAnQ2xhc3NOYW1lJztcblZhcmlhYmxlLlZhcmlhYmxlID0gJ1ZhcmlhYmxlJztcblZhcmlhYmxlLkltcG9ydEJpbmRpbmcgPSAnSW1wb3J0QmluZGluZyc7XG5WYXJpYWJsZS5URFogPSAnVERaJztcblZhcmlhYmxlLkltcGxpY2l0R2xvYmFsVmFyaWFibGUgPSAnSW1wbGljaXRHbG9iYWxWYXJpYWJsZSc7XG5cbi8qIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6ICovXG4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFyZ3VtZW50cy5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSxnQ0FBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxF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FyaWFibGVzWzBdXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhdGNoLXNjb3BlLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLGdDQUFBOztBQUFBLEVBQUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUF6QixDQUF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iYWxTY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDBcbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMV1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdmdW5jdGlvbidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdhcmd1bWVudHMnXG4gICAgICAgIGV4cGVjdChzY29wZS5pc0FyZ3VtZW50c01hdGVyaWFsaXplZCgpKS50by5iZS5mYWxzZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1syXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2NhdGNoJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCAxXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwgJ2UnXG4gICAgICAgIGV4cGVjdChzY29wZS5pc0FyZ3VtZW50c01hdGVyaWFsaXplZCgpKS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ 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.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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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1ibG9jay1zY29wZS5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUF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Lmxlbmd0aCAxXG5cbiAgICAgICAgc2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzFdXG4gICAgICAgIGV4cGVjdChzY29wZS50eXBlKS50by5iZS5lcXVhbCAnYmxvY2snXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDNcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMF0ucmVzb2x2ZWQpLnRvLmJlLmVxdWFsIHNjb3BlLnZhcmlhYmxlc1swXVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1sxXS5yZXNvbHZlZCkudG8uYmUuZXF1YWwgc2NvcGUudmFyaWFibGVzWzBdXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzJdLnJlc29sdmVkKS50by5iZS5lcXVhbCBzY29wZS52YXJpYWJsZXNbMF1cblxuICAgIGl0ICdsZXQgaXMgbm90IGhvaXN0YWJsZSMyJywgLT5cbiAgICAgICAgYXN0ID0gaGFybW9ueS5wYXJzZSBcIlwiXCJcbiAgICAgICAgKGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIHZhciBpID0gNDI7IC8vICgxKVxuICAgICAgICAgICAgaTsgIC8vICgxKVxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGk7ICAvLyAoMylcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGk7ICAvLyAoMilcbiAgICAgICAgICAgICAgICAgICAgbGV0IGkgPSAyMDsgIC8vICgyKVxuICAgICAgICAgICAgICAgICAgICBpOyAgLy8gKDIpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGxld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hcmlhYmxlc1swXVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggM1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5yZXNvbHZlZCkudG8uYmUuZXF1YWwgdjJcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0ucmVzb2x2ZWQpLnRvLmJlLmVxdWFsIHYyXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzJdLnJlc29sdmVkKS50by5iZS5lcXVhbCB2MlxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1jYXRjaC5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0JBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxFQUNBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FEVixDQUFBOztBQUFBLEVBRUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBRlQsQ0FBQTs7QUFBQSxFQUlBLFFBQUEsQ0FBVSxXQUFWLEVBQXNCLFNBQUEsR0FBQTtXQUNsQixFQUFBLENBQUksdUJBQUosRUFBNEIsU0FBQSxHQUFBO0FBQ3hCLFVBQUEsd0JBQUE7QUFBQSxNQUFBLEdBQUEsR0FBTSxPQUFPLENBQUMsS0FBUixDQUFpQix3R0FBakIsQ0FBTixDQUFBO0FBQUEsTUFXQSxZQUFBLEdBQWUsTUFBTSxDQUFDLE9BQVAsQ0FBZSxHQUFmLEVBQW9CO0FBQUEsUUFBQSxXQUFBLEVBQWEsQ0FBYjtPQUFwQixDQVhmLENBQUE7QUFBQSxNQVlBLE1BQUEsQ0FBTyxZQUFZLENBQUMsTUFBcEIsQ0FBMkIsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLE1BQXBDLENBQTJDLENBQTNDLENBWkEsQ0FBQTtBQUFBLE1BY0EsS0FBQSxHQUFRLFlBQVksQ0FBQyxNQUFPLENBQUEsQ0FBQSxDQWQ1QixDQUFBO0FBQUEsTUFlQSxNQUFBLENBQU8sS0FBSyxDQUFDLElBQWIsQ0FBa0IsQ0FBQyxFQUFFLENBQUM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mUuZXF1YWwgJ0NhdGNoQ2xhdXNlJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuaXNTdHJpY3QpLnRvLmJlLmZhbHNlXG5cbiAgICAgICAgIyBGSVhNRSBBZnRlciBFc3ByaW1hJ3MgYnVnIGlzIGZpeGVkLCBJJ2xsIGFkZCB0ZXN0cyAjMzNcbiAgICAgICAgIyBodHRwczovL2dpdGh1Yi5jb20vZXN0b29scy9lc2NvcGUvaXNzdWVzLzMzI2lzc3VlY29tbWVudC02NDEzNTgzMlxuICAgICAgICAjXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggNFxuICAgICAgICAjIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwgJ2EnXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1sxXS5uYW1lKS50by5iZS5lcXVhbCAnYidcbiAgICAgICAgIyBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzJdLm5hbWUpLnRvLmJlLmVxdWFsICdjJ1xuICAgICAgICAjIGV4cGVjdChzY29wZS52YXJpYWJsZXNbM10ubmFtZSkudG8uYmUuZXF1YWwgJ2QnXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1jbGFzcy5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsT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biAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAneXV5dXNoaWtpJ1xuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ 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);
+
+//# source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J2FycmF5J1xuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1sxXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2Z1bmN0aW9uJ1xuXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDZcbiAgICAgICAgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgICAgICAgICAnYXJndW1lbnRzJ1xuICAgICAgICAgICAgICAgICdhJ1xuICAgICAgICAgICAgICAgICdiJ1xuICAgICAgICAgICAgICAgICdjJ1xuICAgICAgICAgICAgICAgICdkJ1xuICAgICAgICAgICAgICAgICdyZXN0J1xuICAgICAgICAgICAgXVxuICAgICAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1tpbmRleF0ubmFtZSkudG8uYmUuZXF1YWwgbmFtZVxuXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCA2XG4gICAgICAgIGZvciBuYW1lLCBpbmRleCBpbiBbXG4gICAgICAgICAgICAgICAgJ2EnXG4gICAgICAgICAgICAgICAgJ2InXG4gICAgICAgICAgICAgICAgJ2MnXG4gICAgICAgICAgICAgICAgJ2QnXG4gICAgICAgICAgICAgICAgJ3Jlc3QnXG4gICAgICAgICAgICBdXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCBuYW1lXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaXNXcml0ZSgpKS50by5iZS50cnVlXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0ucGFydGlhbCkudG8uYmUudHJ1ZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1s1XS5pZGVudGl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gICAgICAgICdkJ1xuICAgICAgICAgICAgICAgICdlJ1xuICAgICAgICAgICAgICAgICd3b3JsZCdcbiAgICAgICAgICAgIF1cbiAgICAgICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbaW5kZXhdLm5hbWUpLnRvLmJlLmVxdWFsIG5hbWVcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDhcbiAgICAgICAgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgICAgICAgICAnc2hvcnRoYW5kJ1xuICAgICAgICAgICAgICAgICdhJ1xuICAgICAgICAgICAgICAgICdiJ1xuICAgICAgICAgICAgICAgICdjJ1xuICAgICAgICAgICAgICAgICdkJ1xuICAgICAgICAgICAgICAgICdlJ1xuICAgICAgICAgICAgICAgICd3b3JsZCdcbiAgICAgICAgICAgIF1cbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsIG5hbWVcbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5pc1dyaXRlKCkpLnRvLmJlLnRydWVcbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5wYXJ0aWFsKS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzddLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ29iamVjdCdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbN10uaXNXcml0ZSgpKS50by5iZS5mYWxzZVxuXG4gICAgaXQgJ0FycmF5UGF0dGVybiBpbiBBc3NpZ25tZW50RXhwcmVzc2lvbicsIC0+XG4gICAgICAgIGFzdCA9IGhhcm1vbnkucGFyc2UgXCJcIlwiXG4gICAgICAgIChmdW5jdGlvbiAoKSB7XG4gICAg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LmlkZW50aWZpZXIubmFtZSkpLnRvLmRlZXAuZXF1YWwgW1xuICAgICAgICAgICAgJ2EnXG4gICAgICAgICAgICAnYidcbiAgICAgICAgICAgICdjJ1xuICAgICAgICAgICAgJ2QnXG4gICAgICAgICAgICAncmVzdCdcbiAgICAgICAgICAgICdhcnJheSdcbiAgICAgICAgXVxuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1sxXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2Z1bmN0aW9uJ1xuXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCA2XG4gICAgICAgIGZvciBuYW1lLCBpbmRleCBpbiBbXG4gICAgICAgICAgICAgICAgJ2EnXG4gICAgICAgICAgICAgICAgJ2InXG4gICAgICAgICAgICAgICAgJ2MnXG4gICAgICAgICAgICAgICAgJ2QnXG4gICAgICAgICAgICAgICAgJ3Jlc3QnXG4gICAgICAgICAgICBdXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCBuYW1lXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaXNXcml0ZSgpKS50by5iZS50cnVlXG4gICAgICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0ucGFydGlhbCkudG8uYmUudHJ1ZVxuICAgICAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbaW5kZXhdLnJlc29sdmVkKS50by5iZS5udWxsXG4gICAgICAg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mVmZXJlbmNlc1sxXS5wYXJ0aWFsKS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzFdLnJlc29sdmVkKS50by5udWxsXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzJdLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ3dvcmxkJ1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1syXS5pc1dyaXRlKCkpLnRvLmJlLnRydWVcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMl0ucGFydGlhbCkudG8uYmUudHJ1ZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1syXS5yZXNvbHZlZCkudG8ubnVsbFxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1szXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICdvYmplY3QnXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzNdLmlzV3JpdGUoKSkudG8uYmUuZmFsc2VcblxuICAgIGl0ICdjb21wbGV4IHBhdHRlcm4gaW4gQXNzaWdubWVudEV4cHJlc3Npb24nLCAtPlxuICAgICAgICBhc3QgPSBoYXJtb255LnBhcnNlIFwiXCJcIlxuICAgICAgICAoZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgKHtcbiAgICAgICAgICAgICAgICBzaG9ydGhhbmQsXG4gICAgICAgICAgICAgICAga2V5OiBbIGEsIGIsIGMsIGQsIGUgXSxcbiAgICAgICAgICAgICAgICBoZWxsbzoge1xuICAgICAgICAgICAgICAgICAgICB3b3JsZFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pID0gb2JqZWN0O1xuICAgICAgICB9KCkpO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZU1hbmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3QsIGVjbWFWZXJzaW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mhhdmUubGVuZ3RoIDhcbiAgICAgICAgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgICAgICAgICAnc2hvcnRoYW5kJ1xuICAgICAgICAgICAgICAgICdhJ1xuICAgICAgICAgICAgICAgICdiJ1xuICAgICAgICAgICAgICAgICdjJ1xuICAgICAgICAgICAgICAgICdkJ1xuICAgICAgICAgICAgICAgICdlJ1xuICAgICAgICAgICAgICAgICd3b3JsZCdcbiAgICAgICAgICAgIF1cbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsIG5hbWVcbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5pc1dyaXRlKCkpLnRvLmJlLnRydWVcbiAgICAgICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5wYXJ0aWFsKS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzddLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ29iamVjdCdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbN10uaXNXcml0ZSgpKS50by5iZS5mYWxzZVxuXG4gICAgaXQgJ0FycmF5UGF0dGVybiBpbiBwYXJhbWV0ZXJzJywgLT5cbiAgICAgICAgYXN0ID0gaGFybW9ueS5wYXJzZSBcIlwiXCJcbiAgICAgICAgKGZ1bmN0aW9uIChbYSwgYiwgY10pIHtcbiAgICAgICAgfShhcnJheSkpO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZU1hbmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3QsIGVjbWFWZXJzaW9uOiA2XG4gICAgICAgIGV4cGVjdChzY29wZU1hbmFnZXIuc2NvcGVzKS50by5oYXZlLmxlbmd0aCAyXG5cbiAgICAgICAgc2NvcGUgPSBzY29wZU1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IHNjb3BlXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdnbG9iYWwnXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMFxuICAgICAgICAjIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLmltcGxpY2l0LmxlZnQpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgIyBleHBlY3Qoc2NvcGUuaW1wbGljaXQubGVmdFswXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICdhcnJheSdcblxuICAgICAgICAjIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1sxXVxuICAgICAgICAjIGV4cGVjdChzY29wZS50eXBlKS50by5iZS5lcXVhbCAnZnVuY3Rpb24nXG5cbiAgICAgICAgIyBleHBlY3Qoc2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCA2XG4gICAgICAgICMgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgIyAgICAgICAgICdhcmd1bWVudHMnXG4gICAgICAgICMgICAgICAgICAnYSdcbiAgICAgICAgIyAgICAgICAgICdiJ1xuICAgICAgICAjICAgICAgICAgJ2MnXG4gICAgICAgICMgICAgICAgICAnZCdcbiAgICAgICAgIyAgICAgICAgICdyZXN0J1xuICAgICAgICAjICAgICBdXG4gICAgICAgICMgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbaW5kZXhdLm5hbWUpLnRvLmJlLmVxdWFsIG5hbWVcblxuICAgICAgICAjIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCA2XG4gICAgICAgICMgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgIyAgICAgICAgICdhJ1xuICAgICAgICAjICAgICAgICAgJ2InXG4gICAgICAgICMgICAgICAgICAnYydcbiAgICAgICAgIyAgICAgICAgICdkJ1xuICAgICAgICAjICAgICAgICAgJ3Jlc3QnXG4gICAgICAgICMgICAgIF1cbiAgICAgICAgIyAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbaW5kZXhdLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgbmFtZVxuICAgICAgICAjICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1tpbmRleF0uaXNXcml0ZSgpKS50by5iZS50cnVlXG4gICAgICAgICMgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzW2luZGV4XS5wYXJ0aWFsKS50by5iZS50cnVlXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnYXJyYXknXG4gICAgICAgICMgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNV0uaXNXcml0ZSgpKS50by5iZS5mYWxzZVxuXG4gICAgaXQgJ09iamVjdFBhdHRlcm4gaW4gcGFyYW1ldGVycycsIC0+XG4gICAgICAgIGFzdCA9IGhhcm1vbnkucGFyc2UgXCJcIlwiXG4gICAgICAgIChmdW5jdGlvbiAoe1xuICAgICAgICAgICAgICAgIHNob3J0aGFuZCxcbiAgICAgICAgICAgICAgICBrZXk6IHZhbHVlLFxuICAgICAgICAgICAgICAgIGhlbGxvOiB7XG4gICAgICAgICAgICAgICAgICAgIHdvcmxkXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSkge1xuICAgICAgICB9KG9iamVjdCkpO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZU1hbmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3QsIGVjbWFWZXJzaW9uOiA2XG4gICAgICAgIGV4cGVjdChzY29wZU1hbmFnZXIuc2NvcGVzKS50by5oYXZlLmxlbmd0aCAyXG5cbiAgICAgICAgc2NvcGUgPSBzY29wZU1hb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bWUpLnRvLmJlLmVxdWFsICdvYmplY3QnXG5cbiAgICAgICAgc2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzFdXG4gICAgICAgIGV4cGVjdChzY29wZS50eXBlKS50by5iZS5lcXVhbCAnZnVuY3Rpb24nXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDhcbiAgICAgICAgZm9yIG5hbWUsIGluZGV4IGluIFtcbiAgICAgICAgICAgICAgICAnYXJndW1lbnRzJ1xuICAgICAgICAgICAgICAgICdzaG9ydGhhbmQnXG4gICAgICAgICAgICAgICAgJ2EnXG4gICAgICAgICAgICAgICAgJ2InXG4gICAgICAgICAgICAgICAgJ2MnXG4gICAgICAgICAgICAgICAgJ2QnXG4gICAgICAgICAgICAgICAgJ2UnXG4gICAgICAgICAgICAgICAgJ3dvcmxkJ1xuICAgICAgICAgICAgXVxuICAgICAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1tpbmRleF0ubmFtZSkudG8uYmUuZXF1YWwgbmFtZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1leHBvcnQuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUZULENBQUE7O0FBQUEsRUFJQSxRQUFBLENBQVUsb0JBQVYsRUFBK0IsU0FBQSxHQUFBO0FBRTNCLElBQUEsRUFBQSxDQUFJLGlDQUFKLEVBQXNDLFNBQUEsR0FBQTtBQUNsQyxVQUFBLHFDQUFBO0FBQUEsTUFBQSxHQUFBLEdBQU0sT0FBTyxDQUFDLEtBQVIsQ0FBaUIsZUFBakIsRUFFRDtBQUFBLFFBQUEsVUFBQSxFQUFhLFFBQWI7T0FGQyxDQUFOLENBQUE7QUFBQSxNQUlBLFlBQUEsR0FBZSxNQUFNLENBQUMsT0FBUCxDQUFlLEdBQWYsRUFBb0I7QUFBQSxRQUFBLFdBQUEsRUFBYSxDQUFiO0FBQUEsUUFBZ0IsVUFBQSxFQUFhLFFBQTdCO09BQXBCLENBSmYsQ0FBQTtBQUFBLE1BS0EsTUFBQSxDQUFPLFlBQVksQ0FBQyxNQUFwQixDQUEyQixDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsTUFBcEMsQ0FBMkMsQ0FBM0MsQ0FMQSxDQUFBO0FBQUEsTUFNQSxXQUFBLEdBQWMsWUFBWSxDQUFDLE1BQU8sQ0FBQSxDQUFBLENBTmxDLENBQUE7QUFBQS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ZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG5cbiAgICBpdCAnc2hvdWxkIG5vdCByZWZlciBleHBvcnRlZCByZWZlcmVuY2VzIGZyb20gb3RoZXIgc291cmNlIzMnLCAtPlxuICAgICAgICBhc3QgPSBoYXJtb255LnBhcnNlIFwiXCJcIlxuICAgICAgICBleHBvcnQgKiBmcm9tIFwibW9kXCI7XG4gICAgICAgIFwiXCJcIiwgc291cmNlVHlwZTogJ21vZHVsZSdcblxuICAgICAgICBzY29wZU1hbmFnZXIgPSBlc2NvcGUuYW5hbHl6ZSBhc3QsIGVjbWFWZXJzaW9uOiA2LCBzb3VyY2VUeXBlOiAnbW9kdWxlJ1xuICAgICAgICBleHBlY3Qoc2NvcGVNYW5hZ2VyLnNjb3BlcykudG8uaGF2ZS5sZW5ndGggMlxuICAgICAgICBnbG9iYWxTY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMF1cbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdnbG9iYWwnXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDBcbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMV1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdtb2R1bGUnXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDBcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1pbXBvcnQuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQ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pb246IDYsIHNvdXJjZVR5cGU6ICdtb2R1bGUnXG4gICAgICAgIGV4cGVjdChzY29wZU1hbmFnZXIuc2NvcGVzKS50by5oYXZlLmxlbmd0aCAyXG4gICAgICAgIGdsb2JhbFNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1swXVxuICAgICAgICBleHBlY3QoZ2xvYmFsU2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ2dsb2JhbCdcbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMFxuICAgICAgICBleHBlY3QoZ2xvYmFsU2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1sxXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ21vZHVsZSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLmlzU3RyaWN0KS50by5iZS50cnVlXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAndidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5kZWZzWzBdLnR5cGUpLnRvLmJlLmVxdWFsICdJbXBvcnRCaW5kaW5nJ1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4gICAgIyBUT0RPOiBTaG91bGQgcGFyc2UgaXQuXG4gICAgIyBpbXBvcnQgZnJvbSBcIm1vZFwiO1xuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1pdGVyYXRpb24tc2NvcGUuY29mZmVlIl0sIm5hbWVzIjpbXSw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3Rpb24gKCkge1xuICAgICAgICAgICAgbGV0IGkgPSAyMDtcbiAgICAgICAgICAgIGxldCBvYmogPSB7fTtcbiAgICAgICAgICAgIGZvciAobGV0IHsgaSwgaiwgayB9ID0gb2JqOyBpIDwgb2tvazsgKytpKSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coaSwgaiwgayk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0oKSk7XG4gICAgICAgIFwiXCJcIlxuXG4gICAgICAgIHNjb3BlTWFuYWdlciA9IGVzY29wZS5hbmFseXplIGFzdCwgZWNtYVZlcnNpb246IDZcbiAgICAgICAgZXhwZWN0KHNjb3BlTWFuYWdlci5zY29wZXMpLnRvLmhhdmUubGVuZ3RoIDRcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMF1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdnbG9iYWwnXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuICAgICAgICBmdW5jdGlvblNjb3BlID0gc2NvcGUgPSBzY29wZU1hbmFnZXIuc2NvcGVzWzFdXG4gICAgICAgIGV4cGVjdChzY29wZS50eXBlKS50by5iZS5lcXVhbCAnZnVuY3Rpb24nXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDNcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzFdLm5hbWUpLnRvLmJlLmVxdWFsICdpJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzJdLm5hbWUpLnRvLmJlLmVxdWFsICdvYmonXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlb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sdmVkKS50by5iZS5lcXVhbCBpdGVyU2NvcGUudmFyaWFibGVzWzFdXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzNdLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ2snXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzNdLnJlc29sdmVkKS50by5iZS5lcXVhbCBpdGVyU2NvcGUudmFyaWFibGVzWzJdXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1vYmplY3QuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUZULENBQUE7O0FBQUEsRUFJQSxRQUFBLENBQVUsWUFBVixFQUF1QixTQUFBLEdBQUE7QUFDbkIsSUFBQSxFQUFBLENBQUksbUJBQUosRUFBd0IsU0FBQSxHQUFBO0FBQ3BCLFVBQUEsd0JBQUE7QUFBQSxNQUFBLEdBQUEsR0FBTSxPQUFPLENBQUMsS0FBUixDQUFpQixvQ0FBakIsQ0FBTixDQUFBO0FBQUEsTUFPQSxZQUFBLEdBQWUsTUFBTSxDQUFDLE9BQVAsQ0FBZSxHQUFmLEVBQW9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HBlY3Qoc2NvcGUudmFyaWFibGVzWzFdLm5hbWUpLnRvLmJlLmVxdWFsICd5dXl1c2hpa2knXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAzXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzBdLmlkZW50aWZpZXIubmFtZSkudG8uYmUuZXF1YWwgJ3l1eXVzaGlraSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAneXV5dXNoaWtpJ1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1syXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICd5dXl1c2hpa2knXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1yZXN0LWFyZ3MuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUZULENBQUE7O0FBQUEsRUFJQSxRQUFBLENBQVUsb0JBQVYsRUFBK0IsU0FBQSxHQUFBO1dBQzNCLEVBQUEsQ0FBSSxvQ0FBSixFQUF5QyxTQUFBLEdBQUE7QUFDckMsVUFBQSx3QkFBQTtBQUFBLE1BQUEsR0FBQSxHQUFNLE9BQU8sQ0FBQyxLQUFSLENBQWlCLDRDQUFqQixDQUFOLENBQUE7QUFBQSxNQU1BLFlBQUEsR0FBZSxNQUFNLENBQUMsT0FBUCxDQUFlLEdBQWYsRUFBb0I7QUFBQSxRQUFBLFdBQUEsRUFBYSxDQUFiO09BQXBCLENBTmYsQ0FBQTtBQUFBLE1BT0EsTUFBQSxDQUFPLFlBQVksQ0FBQyxNQUFwQixDQUEyQixDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsTUFBcEMsQ0FBMkMsQ0FBM0MsQ0FQQSxDQUFBO0FBQUEsTUFTQSxLQUFBLEdBQVEsWUFBWSxDQUFDLE1BQU8sQ0FBQSxDQUFBLENBVDVCLENBQUE7QUFBQSxNQVVBLE1BQUEsQ0FBTyxLQUF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RvLmJlLmVxdWFsICdQcm9ncmFtJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuaXNTdHJpY3QpLnRvLmJlLmZhbHNlXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMV1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdmdW5jdGlvbidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMlxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdhcmd1bWVudHMnXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMV0ubmFtZSkudG8uYmUuZXF1YWwgJ2JhcidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1sxXS5kZWZzWzBdLm5hbWUubmFtZSkudG8uYmUuZXF1YWwgJ2JhcidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1sxXS5kZWZzWzBdLnJlc3QpLnRvLmJlLnRydWVcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi1zd2l0Y2guY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsdUJBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQUFDLE1BQXpCLENBQUE7O0FBQUEsRUFDQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUZULENBQUE7O0FBQUEsRUFJQSxRQUFBLENBQVUsWUFBVixFQUF1QixTQUFBLEdBQUE7V0FDbkIsRUFBQSxDQUFJLG1CQUFKLEVBQXdCLFNBQUEsR0FBQTtBQUNwQixVQUFBLHdCQUFBO0FBQUEsTUF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nNjb3Blc1sxXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ3N3aXRjaCdcbiAgICAgICAgZXhwZWN0KHNjb3BlLmJsb2NrLnR5cGUpLnRvLmJlLmVxdWFsICdTd2l0Y2hTdGF0ZW1lbnQnXG4gICAgICAgIGV4cGVjdChzY29wZS5pc1N0cmljdCkudG8uYmUuZmFsc2VcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMlxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdpJ1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzFdLm5hbWUpLnRvLmJlLmVxdWFsICd0ZXN0J1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggNVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICdoZWxsbydcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMl0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbM10uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVzdCdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNF0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVzdCdcblxuIyB2aW06IHNldCBzdz00IHRzPTQgZXQgdHc9ODAgOlxuIl19
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVzNi10ZW1wbGF0ZS1saXRlcmFsLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7Q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1YWwgJ2onXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbM10ubmFtZSkudG8uYmUuZXF1YWwgJ2snXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbNF0ubmFtZSkudG8uYmUuZXF1YWwgJ3Rlc3RpbmcnXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbNV0ubmFtZSkudG8uYmUuZXF1YWwgJ3RlbXBsYXRlJ1xuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggNVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsICd0ZW1wbGF0ZSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVzdGluZydcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMl0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbM10uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAnaidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbNF0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCAndGVtcGxhdGUnXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZ1bmN0aW9uLWV4cHJlc3Npb24tbmFtZS5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSxnQ0FBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxFQUNBLE9BQUEsR0FBVSxPQUFBLENBQVMsU0FBVCxDQURWLENBQUE7O0FBQUEsRUFFQSxPQUFBLEdBQVUsT0FBQSxDQUFTLHdCQUFULENBRlYsQ0FBQTs7QUFBQSxFQUdBLE1BQUEsR0FBUyxPQUFBLENBQVMsSUFBVCxDQUhULENBQUE7O0F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cXVhbCAnZnVuY3Rpb24nXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuaXNBcmd1bWVudHNNYXRlcmlhbGl6ZWQoKSkudG8uYmUuZmFsc2VcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcbiAgICAgICAgZXhwZWN0KHNjb3BlLnVwcGVyIGlzIHNjb3BlTWFuYWdlci5zY29wZXNbMV0pLnRvLmJlLnRydWVcblxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdsb2JhbC1pbmNyZW1lbnQuY29mZmVlIl0sIm5hbWVz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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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImltcGxpY2l0LWdsb2JhbC1yZWZlcmVuY2UuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNCQztBQUFBLEVBQUEsWUFBQSxDQUFBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUVELE1BQUEsR0FBUyxPQUF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udG8uYmUuZXFsKFtdKVxuXG4gICAgaXQgJ2Fzc2lnbm1lbnRzIGdsb2JhbCBzY29wZSB3aXRob3V0IGRlZmluaXRpb24nLCAtPlxuICAgICAgICBhc3QgPSBlc3ByaW1hLnBhcnNlIFwiXCJcIlxuICAgICAgICB4ID0gMzAwO1xuICAgICAgICB4ID0gMzAwO1xuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZXMgPSBlc2NvcGUuYW5hbHl6ZShhc3QpLnNjb3Blc1xuXG4gICAgICAgIGV4cGVjdChzY29wZXMubWFwKChzY29wZSkgLT5cbiAgICAgICAgICAgIHNjb3BlLnZhcmlhYmxlcy5tYXAoKHZhcmlhYmxlKSAtPlxuICAgICAgICAgICAgICAgIHZhcmlhYmxlLmRlZnMubWFwKChkZWYpIC0+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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLWNoaWxkcmVuLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLGdDQUFBOztBQUFBLEVBQUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUF6QixDQUFBOztBQUFBLEVBQ0EsT0FBQSxHQUFVLE9BQUEsQ0FBUyxTQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FGVixDQUFBOztBQUFBLEVBR0EsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBSFQsQ0FBQTs7QUFBQSxFQUtBLFFBQUEsQ0FBVSxPQUFWLEVBQWtCLFNBQUEsR0FBQTtXQUNkLEVBQUEsQ0FBSSw2QkFBSixFQUFrQyxTQUFBLEdBQUE7QUFDOUIsVUFBQSxxQ0FBQTtBQU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29wZS50eXBlKS50by5iZS5lcXVhbCAnZ2xvYmFsJ1xuICAgICAgICBleHBlY3QoZ2xvYmFsU2NvcGUudmFyaWFibGVzKS50by5oYXZlLmxlbmd0aCAxXG4gICAgICAgIGV4cGVjdChnbG9iYWxTY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwgJ2JhcidcbiAgICAgICAgZXhwZWN0KGdsb2JhbFNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoIDBcblxuICAgICAgICBzY29wZSA9IHNjb3BlTWFuYWdlci5zY29wZXNbMV1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdmdW5jdGlvbidcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICdhcmd1bWVudHMnXG4gICAgICAgIGV4cGVjdChzY29wZS5pc0FyZ3VtZW50c01hdGVyaWFsaXplZCgpKS50by5iZS5mYWxzZVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlcykudG8uaGF2ZS5sZW5ndGggMFxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxhYmVsLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QkE7QUFBQSxNQUFBLGdDQUFBOztBQUFBLEVBQUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUF6QixDQUFBOztBQUFBLEVBQ0EsT0FBQSxHQUFVLE9BQUEsQ0FBUyxTQUFULENBRFYsQ0FBQTs7QUFBQSxFQUVBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FGVixDQUFBOztBQUFBLEVBR0EsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBSFQsQ0FBQTs7QUFBQSxFQUtBLFFBQUEsQ0F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gZXQgdHc9ODAgOlxuIl19
\ 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');
+ return expect(scope.references).to.have.length(0);
+ });
+ });
+
+}).call(this);
+
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVqcy1zY29wZS5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUFBLE1BQUEsR0FBUyxPQUFBLENBQVMsTUFBVCxDQUFlLENBQUMsTUFBekIsQ0FBQTs7QUFBQSxFQUNBLE9BQUEsR0FBVSxPQUFBLENBQVMsd0JBQVQsQ0FEVixDQUFBOztBQUFBLEVBRUEsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBRlQsQ0FBQTs7QUFBQSxFQUlBLFFBQUEsQ0FBVSxvQkFBVixFQUErQixTQUFBLEdBQUE7QUFDM0IsSUFBQSxFQUFBLENBQUksaUVBQUosRUFBc0UsU0FBQSxHQUFBO0FBQ2xFLFVBQUEsd0JBQUE7QUFBQSxNQUFBLEdBQUEsR0FBTSxPQUFPLENBQUMsS0FBUixDQUFpQixnQ0FBakIsQ0FBTixDQUFBO0FBQUEsTUFLQSxZQUFBLEdBQWUsTUFBTSxDQUFDLE9BQVAsQ0FBZSxHQUFmLEVBQW9CO0FBQUEsUUFBQSxXQUFBLEVBQWEsQ0FBYjtBQUFBLFFBQWdCLFdBQUEsRUFBYSxJQUE3QjtPQUFwQixDQUxmLENBQUE7QUFBQSxNQU1BLE1BQUEsQ0FBTyxZQUFZLENBQUMsTUFBcEIsQ0FBMkIsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLE1BQXBDLENBQT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AgICAgICAgZXhwZWN0KHNjb3BlLnR5cGUpLnRvLmJlLmVxdWFsICdmdW5jdGlvbidcbiAgICAgICAgZXhwZWN0KHNjb3BlLmJsb2NrLnR5cGUpLnRvLmJlLmVxdWFsICdQcm9ncmFtJ1xuICAgICAgICBleHBlY3Qoc2NvcGUuaXNTdHJpY3QpLnRvLmJlLmZhbHNlXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXMpLnRvLmhhdmUubGVuZ3RoIDFcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlc1swXS5uYW1lKS50by5iZS5lcXVhbCAnYXJndW1lbnRzJ1xuXG4gICAgICAgIHNjb3BlID0gc2NvcGVNYW5hZ2VyLnNjb3Blc1syXVxuICAgICAgICBleHBlY3Qoc2NvcGUudHlwZSkudG8uYmUuZXF1YWwgJ21vZHVsZSdcbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGggMVxuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLm5hbWUpLnRvLmJlLmVxdWFsICd2J1xuICAgICAgICBleHBlY3Qoc2NvcGUudmFyaWFibGVzWzBdLmRlZnNbMF0udHlwZSkudG8uYmUuZXF1YWwgJ0ltcG9ydEJpbmRpbmcnXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzKS50by5oYXZlLmxlbmd0aCAwXG5cblxuXG4jIHZpbTogc2V0IHN3PTQgdHM9NCBldCB0dz04MCA6XG4iXX0=
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9iamVjdC1leHByZXNzaW9uLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQztBQUFBLEVBQUEsWUFBQSxDQUFBO0FBQUEsTUFBQSxjQUFBOztBQUFBLEVBRUQsTUFBQSxHQUFTLE9BQUEsQ0FBUyxNQUFULENBQWUsQ0FBQyxNQUZ4QixDQUFBOztBQUFBLEVBR0QsTUFBQSxHQUFTLE9BQUEsQ0FBUyxJQUFULENBSFIsQ0FBQTs7QUFBQSxFQUtELFFBQUEsQ0FBVSxtQkFBVixFQUE4QixTQUFBLEdBQUE7V0FDMUIsRUFBQSxDQUFJLGdDQUFKLEVBQXFDLFNBQUEsR0FBQTtBQUlqQyxVQUFBLFVBQUE7QUFBQSxNQUFBLEdBQUEsR0FDSTtBQUFBLFFBQUEsSUFBQSxFQUFPLFNBQVA7QUFBQSxRQUNBLElBQUEsRUFBTTtVQUFDO0FBQUEsWUFDSCxJQUFBLEVBQU8scUJBREo7QUFBQSxZQUVILFlBQUEsRUFBYztjQUFDO0FBQUEsZ0J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lvbidcbiAgICAgICAgICAgICAgICBkZWNsYXJhdGlvbnM6IFt7XG4gICAgICAgICAgICAgICAgICAgIHR5cGU6ICdWYXJpYWJsZURlY2xhcmF0b3InXG4gICAgICAgICAgICAgICAgICAgIGlkOlxuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogJ0lkZW50aWZpZXInXG4gICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiAnYSdcbiAgICAgICAgICAgICAgICAgICAgaW5pdDpcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdPYmplY3RFeHByZXNzaW9uJ1xuICAgICAgICAgICAgICAgICAgICAgICAgcHJvcGVydGllczogW3tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBraW5kOiAnaW5pdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZXk6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdJZGVudGlmaWVyJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiAnZm9vJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAnSWRlbnRpZmllcidcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTogJ2EnXG4gICAgICAgICAgICAgICAgICAgICAgICB9XVxuICAgICAgICAgICAgICAgIH1dXG4gICAgICAgICAgICB9XVxuXG4gICAgICAgIHNjb3BlID0gZXNjb3BlLmFuYWx5emUoYXN0KS5zY29wZXNbMF1cbiAgICAgICAgZXhwZWN0KHNjb3BlLnZhcmlhYmxlcykudG8uaGF2ZS5sZW5ndGgoMSlcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXMpLnRvLmhhdmUubGVuZ3RoKDIpXG4gICAgICAgIGV4cGVjdChzY29wZS52YXJpYWJsZXNbMF0ubmFtZSkudG8uYmUuZXF1YWwoJ2EnKVxuICAgICAgICBleHBlY3Qoc2NvcGUucmVmZXJlbmNlc1swXS5pZGVudGlmaWVyLm5hbWUpLnRvLmJlLmVxdWFsKCdhJylcbiAgICAgICAgZXhwZWN0KHNjb3BlLnJlZmVyZW5jZXNbMV0uaWRlbnRpZmllci5uYW1lKS50by5iZS5lcXVhbCgnYScpXG4iXX0=
\ 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm9wdGltaXN0aWMuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNCQztBQUFBLEVBQUEsWUFBQSxDQUFBO0FBQUEsTUFBQSx1QkFBQTs7QUFBQSxFQUVELE1BQUEsR0FBUyx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AgICBbXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAnb3V0ZXInXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgJ2FyZ3VtZW50cydcbiAgICAgICAgICAgICAgICAgICAgJ2knXG4gICAgICAgICAgICAgICAgICAgICdpbm5lcidcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAnYXJndW1lbnRzJ1xuICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuXG4gICAgaXQgJ3dpdGggc3RhdGVtZW50JywgLT5cbiAgICAgICAgYXN0ID0gZXNwcmltYS5wYXJzZSBcIlwiXCJcbiAgICAgICAgZnVuY3Rpb24gb3V0ZXIoKSB7XG4gICAgICAgICAgICBldmFsKHN0cik7XG4gICAgICAgICAgICB2YXIgaSA9IDIwO1xuICAgICAgICAgICAgd2l0aCAob2JqKSB7XG4gICAgICAgICAgICAgICAgaTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBcIlwiXCJcblxuICAgICAgICBzY29wZXMgPSBlc2NvcGUuYW5hbHl6ZShhc3QsIG9wdGltaXN0aWM6IHllcykuc2NvcGVzXG5cbiAgICAgICAgZXhwZWN0KHNjb3Blcy5tYXAoKHNjb3BlKSAtPlxuICAgICAgICAgICAgc2NvcGUudmFyaWFibGVzLm1hcCgodmFyaWFibGUpIC0+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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndpdGgtc2NvcGUuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCQTtBQUFBLE1BQUEsZ0NBQUE7O0FBQUEsRUFBQSxNQUFBLEdBQVMsT0FBQSxDQUFTLE1BQVQsQ0FBZSxDQU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AxXG4gICAgICAgIGV4cGVjdChzY29wZS5yZWZlcmVuY2VzWzBdLnJlc29sdmVkKS50by5iZS5udWxsXG5cbiMgdmltOiBzZXQgc3c9NCB0cz00IGV0IHR3PTgwIDpcbiJdfQ==
\ 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/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/README.md b/tools/eslint/node_modules/event-emitter/README.md
index 5ad489c0f0c7e3..17f4524fd75403 100644
--- a/tools/eslint/node_modules/event-emitter/README.md
+++ b/tools/eslint/node_modules/event-emitter/README.md
@@ -4,7 +4,7 @@
### Installation
$ npm install event-emitter
-
+
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
### Usage
@@ -57,13 +57,13 @@ hasListeners(emitter, 'foo'); // false
#### pipe(source, target[, emitMethodName]) _(event-emitter/pipe)_
-Pipes all events from _source_ emitter onto _target_ emitter (all events from _source_ emitter will be emitted also on _target_ emitter, but not other way).
-Returns _pipe_ object which exposes `pipe.close` function. Invoke it to close configured _pipe_.
+Pipes all events from _source_ emitter onto _target_ emitter (all events from _source_ emitter will be emitted also on _target_ emitter, but not other way).
+Returns _pipe_ object which exposes `pipe.close` function. Invoke it to close configured _pipe_.
It works internally by redefinition of `emit` method, if in your interface this method is referenced differently, provide its name (or symbol) with third argument.
#### unify(emitter1, emitter2) _(event-emitter/unify)_
-Unifies event handling for two objects. Events emitted on _emitter1_ would be also emitter on _emitter2_, and other way back.
+Unifies event handling for two objects. Events emitted on _emitter1_ would be also emitter on _emitter2_, and other way back.
Non reversible.
```javascript
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/LICENSE.md b/tools/eslint/node_modules/fast-levenshtein/LICENSE.md
index 79b86692645bc2..6212406b413b7a 100644
--- a/tools/eslint/node_modules/fast-levenshtein/LICENSE.md
+++ b/tools/eslint/node_modules/fast-levenshtein/LICENSE.md
@@ -22,3 +22,4 @@ 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/fast-levenshtein/levenshtein.js b/tools/eslint/node_modules/fast-levenshtein/levenshtein.js
index 9d8cdc87f7ebd9..850626de687d59 100644
--- a/tools/eslint/node_modules/fast-levenshtein/levenshtein.js
+++ b/tools/eslint/node_modules/fast-levenshtein/levenshtein.js
@@ -208,3 +208,4 @@
window.Levenshtein = Levenshtein;
}
}());
+
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/LICENSE b/tools/eslint/node_modules/file-entry-cache/LICENSE
index 7394b8ff84b090..c58c339631271d 100644
--- a/tools/eslint/node_modules/file-entry-cache/LICENSE
+++ b/tools/eslint/node_modules/file-entry-cache/LICENSE
@@ -19,3 +19,4 @@ 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/file-entry-cache/README.md b/tools/eslint/node_modules/file-entry-cache/README.md
index 842ef1e158fb00..0ea7e7a092e68c 100644
--- a/tools/eslint/node_modules/file-entry-cache/README.md
+++ b/tools/eslint/node_modules/file-entry-cache/README.md
@@ -1,5 +1,5 @@
# file-entry-cache
-> Super simple cache for file metadata, useful for process that work o a given series of files
+> Super simple cache for file metadata, useful for process that work o a given series of files
> and that only need to repeat the job on the changed ones since the previous run of the process — Edit
[](https://npmjs.org/package/file-entry-cache)
@@ -14,7 +14,7 @@ npm i --save file-entry-cache
## Usage
```js
-// loads the cache, if one does not exists for the given
+// loads the cache, if one does not exists for the given
// Id a new one will be prepared to be created
var fileEntryCache = require('file-entry-cache');
@@ -25,18 +25,18 @@ var files = expand('../fixtures/*.txt');
// the first time this method is called, will return all the files
var oFiles = cache.getUpdatedFiles(files);
-// this will persist this to disk checking each file stats and
+// this will persist this to disk checking each file stats and
// updating the meta attributes `size` and `mtime`.
// custom fields could also be added to the meta object and will be persisted
// in order to retrieve them later
-cache.reconcile();
+cache.reconcile();
// on a second run
var cache2 = fileEntryCache.create('testCache');
// will return now only the files that were modified or none
// if no files were modified previous to the execution of this function
-var oFiles = cache.getUpdatedFiles(files);
+var oFiles = cache.getUpdatedFiles(files);
// if you want to prevent a file from being considered non modified
// something useful if a file failed some sort of validation
@@ -64,21 +64,21 @@ entry = {
## Motivation for this module
-I needed a super simple and dumb **in-memory cache** with optional disk persistence (write-back cache) in order to make
+I needed a super simple and dumb **in-memory cache** with optional disk persistence (write-back cache) in order to make
a script that will beautify files with `esformatter` to execute only on the files that were changed since the last run.
In doing so the process of beautifying files was reduced from several seconds to a small fraction of a second.
-This module uses [flat-cache](https://www.npmjs.com/package/flat-cache) a super simple `key/value` cache storage with
+This module uses [flat-cache](https://www.npmjs.com/package/flat-cache) a super simple `key/value` cache storage with
optional file persistance.
-The main idea is to read the files when the task begins, apply the transforms required, and if the process succeed,
-then store the new state of the files. The next time this module request for `getChangedFiles` will return only
+The main idea is to read the files when the task begins, apply the transforms required, and if the process succeed,
+then store the new state of the files. The next time this module request for `getChangedFiles` will return only
the files that were modified. Making the process to end faster.
This module could also be used by processes that modify the files applying a transform, in that case the result of the
-transform could be stored in the `meta` field, of the entries. Anything added to the meta field will be persisted.
-Those processes won't need to call `getChangedFiles` they will instead call `normalizeEntries` that will return the
+transform could be stored in the `meta` field, of the entries. Anything added to the meta field will be persisted.
+Those processes won't need to call `getChangedFiles` they will instead call `normalizeEntries` that will return the
entries with a `changed` field that can be used to determine if the file was changed or not. If it was not changed
the transformed stored data could be used instead of actually applying the transformation, saving time in case of only
a few files changed.
@@ -89,6 +89,8 @@ In the worst case scenario all the files will be processed. In the best case sce
- The values set on the meta attribute of the entries should be `stringify-able` ones, meaning no circular references
- All the changes to the cache state are done to memory first and only persisted after reconcile
-## License
+## License
MIT
+
+
diff --git a/tools/eslint/node_modules/file-entry-cache/changelog.md b/tools/eslint/node_modules/file-entry-cache/changelog.md
index 46fcd57bc82b5a..8cc876141e5146 100644
--- a/tools/eslint/node_modules/file-entry-cache/changelog.md
+++ b/tools/eslint/node_modules/file-entry-cache/changelog.md
@@ -4,54 +4,56 @@
- **Enhancements**
- Expose the flat-cache instance - [f34c557]( https://github.com/royriojas/file-entry-cache/commit/f34c557 ), [royriojas](https://github.com/royriojas), 23/09/2015 20:26:33
-
+
## v1.2.3
- **Build Scripts Changes**
- update flat-cache dep - [cc7b9ce]( https://github.com/royriojas/file-entry-cache/commit/cc7b9ce ), [royriojas](https://github.com/royriojas), 11/09/2015 18:04:44
-
+
## v1.2.2
- **Build Scripts Changes**
- Add changelogx section to package.json - [a3916ff]( https://github.com/royriojas/file-entry-cache/commit/a3916ff ), [royriojas](https://github.com/royriojas), 11/09/2015 18:00:26
-
+
## v1.2.1
- **Build Scripts Changes**
- update flat-cache dep - [e49b0d4]( https://github.com/royriojas/file-entry-cache/commit/e49b0d4 ), [royriojas](https://github.com/royriojas), 11/09/2015 17:55:25
-
+
- **Other changes**
- Update dependencies Replaced lodash.assign with smaller object-assign Fixed tests for windows - [0ad3000]( https://github.com/royriojas/file-entry-cache/commit/0ad3000 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 17:44:18
-
+
## v1.2.0
- **Features**
- analyzeFiles now returns also the files that were removed - [6ac2431]( https://github.com/royriojas/file-entry-cache/commit/6ac2431 ), [royriojas](https://github.com/royriojas), 04/09/2015 14:40:53
-
+
## v1.1.1
- **Features**
- Add method to check if a file hasChanged - [3640e2b]( https://github.com/royriojas/file-entry-cache/commit/3640e2b ), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 07:33:32
-
+
## v1.1.0
- **Features**
- Create the cache directly from a file path - [a23de61]( https://github.com/royriojas/file-entry-cache/commit/a23de61 ), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 06:41:33
-
+
- Add a method to remove an entry from the filecache - [7af29fc]( https://github.com/royriojas/file-entry-cache/commit/7af29fc ), [Roy Riojas](https://github.com/Roy Riojas), 03/03/2015 02:25:32
-
+
- cache module finished - [1f95544]( https://github.com/royriojas/file-entry-cache/commit/1f95544 ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 04:08:08
-
+
- **Build Scripts Changes**
- set the version for the first release - [7472eaa]( https://github.com/royriojas/file-entry-cache/commit/7472eaa ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 04:29:54
-
+
- **Documentation**
- Updated documentation - [557358f]( https://github.com/royriojas/file-entry-cache/commit/557358f ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 04:29:29
-
+
- **Other changes**
- Initial commit - [3d5f42b]( https://github.com/royriojas/file-entry-cache/commit/3d5f42b ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 00:58:29
+
+
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/LICENSE b/tools/eslint/node_modules/flat-cache/LICENSE
index 7394b8ff84b090..c58c339631271d 100644
--- a/tools/eslint/node_modules/flat-cache/LICENSE
+++ b/tools/eslint/node_modules/flat-cache/LICENSE
@@ -19,3 +19,4 @@ 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/flat-cache/README.md b/tools/eslint/node_modules/flat-cache/README.md
index d0eddf2e9c8832..33a315fb344da8 100644
--- a/tools/eslint/node_modules/flat-cache/README.md
+++ b/tools/eslint/node_modules/flat-cache/README.md
@@ -65,3 +65,4 @@ MIT
## Changelog
[changelog](./changelog.md)
+
diff --git a/tools/eslint/node_modules/flat-cache/changelog.md b/tools/eslint/node_modules/flat-cache/changelog.md
index 571757c9d9ba6d..6ba9ef745cdf10 100644
--- a/tools/eslint/node_modules/flat-cache/changelog.md
+++ b/tools/eslint/node_modules/flat-cache/changelog.md
@@ -4,69 +4,71 @@
- **Build Scripts Changes**
- add eslint-fix task - [fd29e52]( https://github.com/royriojas/flat-cache/commit/fd29e52 ), [royriojas](https://github.com/royriojas), 01/11/2015 18:04:08
-
+
- make sure the test script also verify beautification and linting of files before running tests - [e94e176]( https://github.com/royriojas/flat-cache/commit/e94e176 ), [royriojas](https://github.com/royriojas), 01/11/2015 14:54:48
-
+
- **Other changes**
- add clearAll for cacheDir - [97383d9]( https://github.com/royriojas/flat-cache/commit/97383d9 ), [xieyaowu](https://github.com/xieyaowu), 31/10/2015 23:02:18
-
+
## v1.0.9
- **Bug Fixes**
- wrong default values for changelogx user repo name - [7bb52d1]( https://github.com/royriojas/flat-cache/commit/7bb52d1 ), [royriojas](https://github.com/royriojas), 11/09/2015 17:59:30
-
+
## v1.0.8
- **Build Scripts Changes**
- test against node 4 - [c395b66]( https://github.com/royriojas/flat-cache/commit/c395b66 ), [royriojas](https://github.com/royriojas), 11/09/2015 17:51:39
-
+
## v1.0.7
- **Other changes**
- Move dependencies into devDep - [7e47099]( https://github.com/royriojas/flat-cache/commit/7e47099 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 17:10:57
-
+
- **Documentation**
- Add missing changelog link - [f51197a]( https://github.com/royriojas/flat-cache/commit/f51197a ), [royriojas](https://github.com/royriojas), 11/09/2015 16:48:05
-
+
## v1.0.6
- **Build Scripts Changes**
- Add helpers/code check scripts - [bdb82f3]( https://github.com/royriojas/flat-cache/commit/bdb82f3 ), [royriojas](https://github.com/royriojas), 11/09/2015 16:44:31
-
+
## v1.0.5
- **Documentation**
- better description for the module - [436817f]( https://github.com/royriojas/flat-cache/commit/436817f ), [royriojas](https://github.com/royriojas), 11/09/2015 16:35:33
-
+
- **Other changes**
- Update dependencies - [be88aa3]( https://github.com/royriojas/flat-cache/commit/be88aa3 ), [Bogdan Chadkin](https://github.com/Bogdan Chadkin), 11/09/2015 15:47:41
-
+
## v1.0.4
- **Refactoring**
- load a cache file using the full filepath - [b8f68c2]( https://github.com/royriojas/flat-cache/commit/b8f68c2 ), [Roy Riojas](https://github.com/Roy Riojas), 30/08/2015 06:19:14
-
+
- **Documentation**
- Add documentation about `clearAll` and `clearCacheById` - [13947c1]( https://github.com/royriojas/flat-cache/commit/13947c1 ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 02:44:05
-
+
- **Features**
- Add methods to remove the cache documents created - [af40443]( https://github.com/royriojas/flat-cache/commit/af40443 ), [Roy Riojas](https://github.com/Roy Riojas), 02/03/2015 02:39:27
-
+
## v1.0.1
- **Other changes**
- Update README.md - [c2b6805]( https://github.com/royriojas/flat-cache/commit/c2b6805 ), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 07:28:07
-
+
## v1.0.0
- **Refactoring**
- flat-cache v.1.0.0 - [c984274]( https://github.com/royriojas/flat-cache/commit/c984274 ), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 07:11:50
-
+
- **Other changes**
- Initial commit - [d43cccf]( https://github.com/royriojas/flat-cache/commit/d43cccf ), [Roy Riojas](https://github.com/Roy Riojas), 26/02/2015 04:12:16
+
+
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/.npmignore b/tools/eslint/node_modules/generate-function/.npmignore
deleted file mode 100644
index 3c3629e647f5dd..00000000000000
--- a/tools/eslint/node_modules/generate-function/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
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/rimraf/node_modules/glob/LICENSE b/tools/eslint/node_modules/globby/node_modules/glob/LICENSE
similarity index 100%
rename from tools/eslint/node_modules/rimraf/node_modules/glob/LICENSE
rename to tools/eslint/node_modules/globby/node_modules/glob/LICENSE
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/rimraf/node_modules/glob/package.json b/tools/eslint/node_modules/globby/node_modules/glob/package.json
similarity index 62%
rename from tools/eslint/node_modules/rimraf/node_modules/glob/package.json
rename to tools/eslint/node_modules/globby/node_modules/glob/package.json
index 6405125e7f396e..8ed608ec65a303 100644
--- a/tools/eslint/node_modules/rimraf/node_modules/glob/package.json
+++ b/tools/eslint/node_modules/globby/node_modules/glob/package.json
@@ -1,42 +1,38 @@
{
"_args": [
[
- "glob@^7.0.0",
- "/Users/trott/test/node_modules/eslint/node_modules/rimraf"
+ "glob@^6.0.1",
+ "/Users/silverwind/git/node/tools/package/package/node_modules/globby"
]
],
- "_from": "glob@>=7.0.0 <8.0.0",
- "_id": "glob@7.0.0",
+ "_from": "glob@>=6.0.1 <7.0.0",
+ "_id": "glob@6.0.4",
"_inCache": true,
"_installable": true,
- "_location": "/eslint/rimraf/glob",
+ "_location": "/globby/glob",
"_nodeVersion": "4.0.0",
- "_npmOperationalInternal": {
- "host": "packages-5-east.internal.npmjs.com",
- "tmp": "tmp/glob-7.0.0.tgz_1455132435010_0.6941273615229875"
- },
"_npmUser": {
"email": "i@izs.me",
"name": "isaacs"
},
- "_npmVersion": "3.7.0",
+ "_npmVersion": "2.14.15",
"_phantomChildren": {},
"_requested": {
"name": "glob",
- "raw": "glob@^7.0.0",
- "rawSpec": "^7.0.0",
+ "raw": "glob@^6.0.1",
+ "rawSpec": "^6.0.1",
"scope": null,
- "spec": ">=7.0.0 <8.0.0",
+ "spec": ">=6.0.1 <7.0.0",
"type": "range"
},
"_requiredBy": [
- "/eslint/rimraf"
+ "/globby"
],
- "_resolved": "https://registry.npmjs.org/glob/-/glob-7.0.0.tgz",
- "_shasum": "3b20a357fffcf46bb384aed6f8ae9a647fdb6ac4",
+ "_resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
+ "_shasum": "0f08860f6a155127b2fadd4f9ce24b1aab6e4d22",
"_shrinkwrap": null,
- "_spec": "glob@^7.0.0",
- "_where": "/Users/trott/test/node_modules/eslint/node_modules/rimraf",
+ "_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",
@@ -61,25 +57,25 @@
},
"directories": {},
"dist": {
- "shasum": "3b20a357fffcf46bb384aed6f8ae9a647fdb6ac4",
- "tarball": "http://registry.npmjs.org/glob/-/glob-7.0.0.tgz"
+ "shasum": "0f08860f6a155127b2fadd4f9ce24b1aab6e4d22",
+ "tarball": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz"
},
"engines": {
"node": "*"
},
"files": [
+ "common.js",
"glob.js",
- "sync.js",
- "common.js"
+ "sync.js"
],
- "gitHead": "8e8876f84232783fd2db3182af5fa33cc83f1989",
+ "gitHead": "3bd419c538737e56fda7e21c21ff52ca0c198df6",
"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",
@@ -98,5 +94,5 @@
"test": "tap test/*.js --cov",
"test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js"
},
- "version": "7.0.0"
+ "version": "6.0.4"
}
diff --git a/tools/eslint/node_modules/rimraf/node_modules/glob/sync.js b/tools/eslint/node_modules/globby/node_modules/glob/sync.js
similarity index 98%
rename from tools/eslint/node_modules/rimraf/node_modules/glob/sync.js
rename to tools/eslint/node_modules/globby/node_modules/glob/sync.js
index aa28c87a3e5daf..09883d2ce0c9de 100644
--- a/tools/eslint/node_modules/rimraf/node_modules/glob/sync.js
+++ b/tools/eslint/node_modules/globby/node_modules/glob/sync.js
@@ -306,12 +306,6 @@ GlobSync.prototype._readdirError = function (f, er) {
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
- throw error
- }
break
case 'ENOENT': // not terribly unusual
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..e63146a2b7e70b
--- /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/LICENSE b/tools/eslint/node_modules/inherits/LICENSE
index 052085c436514a..dea3013d6710ee 100644
--- a/tools/eslint/node_modules/inherits/LICENSE
+++ b/tools/eslint/node_modules/inherits/LICENSE
@@ -13,3 +13,4 @@ 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/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/README.md b/tools/eslint/node_modules/is-property/README.md
index 9846a8bb9fc51b..ef1d00b62f8022 100644
--- a/tools/eslint/node_modules/is-property/README.md
+++ b/tools/eslint/node_modules/is-property/README.md
@@ -16,7 +16,7 @@ Install
-------
npm install is-property
-
+
### `require("is-property")(str)`
Checks if str is a property
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/README.md b/tools/eslint/node_modules/is-resolvable/README.md
index 941c65e5cf7b5e..ac9da3120591fb 100755
--- a/tools/eslint/node_modules/is-resolvable/README.md
+++ b/tools/eslint/node_modules/is-resolvable/README.md
@@ -37,7 +37,7 @@ const isResolvable = require('is-resolvable');
### isResolvable(*moduleId*)
-*moduleId*: `String` (module ID)
+*moduleId*: `String` (module ID)
Return: `Boolean`
It returns `true` if `require()` can load a file form a given module ID, otherwise `false`.
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..787d56e1e982e4
--- /dev/null
+++ b/tools/eslint/node_modules/isarray/Makefile
@@ -0,0 +1,6 @@
+
+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.lineIndent
p&&(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.lineIndent