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",
|
||||
"doExpressions",
|
||||
"exponentiationOperator",
|
||||
"exportExtensions",
|
||||
"exportDefaultFrom",
|
||||
"exportNamespaceFrom",
|
||||
"functionBind",
|
||||
"functionSent",
|
||||
"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", () => {
|
||||
verifyAndAssertMessages(
|
||||
unpad(`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user