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

@@ -7,7 +7,7 @@ export default function ({ types: t }) {
const visitor = helper({
pre(state) {
const tagName = state.tagName;
const args = state.args;
const args = state.args;
if (t.react.isCompatTag(tagName)) {
args.push(t.stringLiteral(tagName));
} else {
@@ -17,7 +17,7 @@ export default function ({ types: t }) {
post(state, pass) {
state.callee = pass.get("jsxIdentifier")();
}
},
});
visitor.Program = function (path, state) {
@@ -47,6 +47,6 @@ export default function ({ types: t }) {
return {
inherits: jsx,
visitor
visitor,
};
}