use ForX alias instead of manually listing all types
This commit is contained in:
parent
7334326042
commit
973270772b
@ -151,7 +151,7 @@ function variableDeclarationHasPattern(node) {
|
||||
}
|
||||
|
||||
export function VariableDeclaration(node, parent, scope, file) {
|
||||
if (t.isForInStatement(parent) || t.isForOfStatement(parent)) return;
|
||||
if (t.isForXStatement(parent)) return;
|
||||
if (!variableDeclarationHasPattern(node)) return;
|
||||
|
||||
var nodes = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user