Run new lint rules (#5413)

This commit is contained in:
Brian Ng
2017-03-04 09:46:01 -06:00
committed by Henry Zhu
parent f7e2d88f6c
commit 8a82cc060a
181 changed files with 1459 additions and 1454 deletions

View File

@@ -42,7 +42,7 @@ const visitor = {
state.selfReference = true;
path.stop();
}
},
};
function wrap(state, method, id, scope) {
@@ -60,7 +60,7 @@ function wrap(state, method, id, scope) {
const template = build({
FUNCTION: method,
FUNCTION_ID: id,
FUNCTION_KEY: scope.generateUidIdentifier(id.name)
FUNCTION_KEY: scope.generateUidIdentifier(id.name),
}).expression;
template.callee._skipModulesRemap = true;
@@ -82,10 +82,10 @@ function wrap(state, method, id, scope) {
function visit(node, name, scope) {
const state = {
selfAssignment: false,
selfReference: false,
outerDeclar: scope.getBindingIdentifier(name),
references: [],
name: name
selfReference: false,
outerDeclar: scope.getBindingIdentifier(name),
references: [],
name: name,
};
// check to see if we have a local binding of the id we're setting inside of