From 68a173c97c64c19c54ed9faefd846009b0e3721e Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Sun, 15 Jan 2017 11:12:49 +0100 Subject: [PATCH] =?UTF-8?q?Update=20eslint-config-babel=20to=20the=20lates?= =?UTF-8?q?t=20version=20=F0=9F=9A=80=20(#299)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(package): update eslint-config-babel to version 6.0.0 https://greenkeeper.io/ * Fix linting --- bin/generate-identifier-regex.js | 2 +- package.json | 2 +- src/parser/statement.js | 6 +++--- yarn.lock | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/generate-identifier-regex.js b/bin/generate-identifier-regex.js index 76cc7f3040..9b0ae7d6b6 100644 --- a/bin/generate-identifier-regex.js +++ b/bin/generate-identifier-regex.js @@ -50,7 +50,7 @@ function generate(chars) { at = to; } } - return {nonASCII: re, astral: astral}; + return { nonASCII: re, astral: astral }; } const startData = generate(start); diff --git a/package.json b/package.json index 6fa4ff868a..f7299b9424 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "codecov": "^1.0.1", "cross-env": "^2.0.0", "eslint": "^3.7.1", - "eslint-config-babel": "^5.0.0", + "eslint-config-babel": "^6.0.0", "eslint-plugin-flowtype": "^2.20.0", "flow-bin": "^0.37.0", "nyc": "^10.0.0", diff --git a/src/parser/statement.js b/src/parser/statement.js index a0d06df543..63d3d315e9 100644 --- a/src/parser/statement.js +++ b/src/parser/statement.js @@ -25,7 +25,7 @@ pp.parseTopLevel = function (file, program) { return this.finishNode(file, "File"); }; -const loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"}; +const loopLabel = { kind: "loop" }, switchLabel = { kind: "switch" }; // TODO @@ -260,7 +260,7 @@ pp.parseForStatement = function (node) { return this.parseFor(node, init); } - const refShorthandDefaultPos = {start: 0}; + const refShorthandDefaultPos = { start: 0 }; const init = this.parseExpression(true, refShorthandDefaultPos); if (this.match(tt._in) || this.isContextual("of")) { const description = this.isContextual("of") ? "for-of statement" : "for-in statement"; @@ -440,7 +440,7 @@ pp.parseLabeledStatement = function (node, maybeName, expr) { } } - this.state.labels.push({name: maybeName, kind: kind, statementStart: this.state.start}); + this.state.labels.push({ name: maybeName, kind: kind, statementStart: this.state.start }); node.body = this.parseStatement(true); this.state.labels.pop(); node.label = expr; diff --git a/yarn.lock b/yarn.lock index 80175b8da2..7271ea0d4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1549,9 +1549,9 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-config-babel@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-5.0.0.tgz#2f1ac1d58104fc0b50a2964ddb08f8901bbbbd8a" +eslint-config-babel@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-6.0.0.tgz#66feedf6ce6e04abe585cec1a65b5bcc96bed50a" eslint-plugin-flowtype@^2.20.0: version "2.29.2"