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:
parent
9d78213ab6
commit
68a173c97c
@ -50,7 +50,7 @@ function generate(chars) {
|
|||||||
at = to;
|
at = to;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {nonASCII: re, astral: astral};
|
return { nonASCII: re, astral: astral };
|
||||||
}
|
}
|
||||||
|
|
||||||
const startData = generate(start);
|
const startData = generate(start);
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
"codecov": "^1.0.1",
|
"codecov": "^1.0.1",
|
||||||
"cross-env": "^2.0.0",
|
"cross-env": "^2.0.0",
|
||||||
"eslint": "^3.7.1",
|
"eslint": "^3.7.1",
|
||||||
"eslint-config-babel": "^5.0.0",
|
"eslint-config-babel": "^6.0.0",
|
||||||
"eslint-plugin-flowtype": "^2.20.0",
|
"eslint-plugin-flowtype": "^2.20.0",
|
||||||
"flow-bin": "^0.37.0",
|
"flow-bin": "^0.37.0",
|
||||||
"nyc": "^10.0.0",
|
"nyc": "^10.0.0",
|
||||||
|
|||||||
@ -25,7 +25,7 @@ pp.parseTopLevel = function (file, program) {
|
|||||||
return this.finishNode(file, "File");
|
return this.finishNode(file, "File");
|
||||||
};
|
};
|
||||||
|
|
||||||
const loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"};
|
const loopLabel = { kind: "loop" }, switchLabel = { kind: "switch" };
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
@ -260,7 +260,7 @@ pp.parseForStatement = function (node) {
|
|||||||
return this.parseFor(node, init);
|
return this.parseFor(node, init);
|
||||||
}
|
}
|
||||||
|
|
||||||
const refShorthandDefaultPos = {start: 0};
|
const refShorthandDefaultPos = { start: 0 };
|
||||||
const init = this.parseExpression(true, refShorthandDefaultPos);
|
const init = this.parseExpression(true, refShorthandDefaultPos);
|
||||||
if (this.match(tt._in) || this.isContextual("of")) {
|
if (this.match(tt._in) || this.isContextual("of")) {
|
||||||
const description = this.isContextual("of") ? "for-of statement" : "for-in statement";
|
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);
|
node.body = this.parseStatement(true);
|
||||||
this.state.labels.pop();
|
this.state.labels.pop();
|
||||||
node.label = expr;
|
node.label = expr;
|
||||||
|
|||||||
@ -1549,9 +1549,9 @@ escope@^3.6.0:
|
|||||||
esrecurse "^4.1.0"
|
esrecurse "^4.1.0"
|
||||||
estraverse "^4.1.1"
|
estraverse "^4.1.1"
|
||||||
|
|
||||||
eslint-config-babel@^5.0.0:
|
eslint-config-babel@^6.0.0:
|
||||||
version "5.0.0"
|
version "6.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-5.0.0.tgz#2f1ac1d58104fc0b50a2964ddb08f8901bbbbd8a"
|
resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-6.0.0.tgz#66feedf6ce6e04abe585cec1a65b5bcc96bed50a"
|
||||||
|
|
||||||
eslint-plugin-flowtype@^2.20.0:
|
eslint-plugin-flowtype@^2.20.0:
|
||||||
version "2.29.2"
|
version "2.29.2"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user