Update eslint-config-babel to the latest version 🚀 (#299)

* chore(package): update eslint-config-babel to version 6.0.0

https://greenkeeper.io/

* Fix linting
This commit is contained in:
greenkeeper[bot] 2017-01-15 11:12:49 +01:00 committed by Daniel Tschinder
parent 9d78213ab6
commit 68a173c97c
4 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ function generate(chars) {
at = to;
}
}
return {nonASCII: re, astral: astral};
return { nonASCII: re, astral: astral };
}
const startData = generate(start);

View File

@ -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",

View File

@ -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;

View File

@ -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"