fix export change (babel/babel-eslint#571)
This commit is contained in:
parent
b6ce2b649f
commit
23d12acd15
@ -26,7 +26,8 @@ module.exports = function(code, options) {
|
|||||||
"decorators",
|
"decorators",
|
||||||
"doExpressions",
|
"doExpressions",
|
||||||
"exponentiationOperator",
|
"exponentiationOperator",
|
||||||
"exportExtensions",
|
"exportDefaultFrom",
|
||||||
|
"exportNamespaceFrom",
|
||||||
"functionBind",
|
"functionBind",
|
||||||
"functionSent",
|
"functionSent",
|
||||||
"objectRestSpread",
|
"objectRestSpread",
|
||||||
|
|||||||
@ -1864,6 +1864,26 @@ describe("verify", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("exportDefaultFrom", () => {
|
||||||
|
verifyAndAssertMessages(
|
||||||
|
unpad(`
|
||||||
|
export v from "mod"
|
||||||
|
`),
|
||||||
|
{},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("exportNamespaceFrom", () => {
|
||||||
|
verifyAndAssertMessages(
|
||||||
|
unpad(`
|
||||||
|
export * as ns from "mod"
|
||||||
|
`),
|
||||||
|
{},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
it("ignore eval in scope analysis", () => {
|
it("ignore eval in scope analysis", () => {
|
||||||
verifyAndAssertMessages(
|
verifyAndAssertMessages(
|
||||||
unpad(`
|
unpad(`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user