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

@@ -24,7 +24,7 @@ const PRECEDENCE = {
"*": 9,
"/": 9,
"%": 9,
"**": 10
"**": 10,
};
export function NullableTypeAnnotation(node: Object, parent: Object): boolean {
@@ -64,7 +64,7 @@ export function Binary(node: Object, parent: Object): boolean {
}
if (t.isBinary(parent)) {
const parentOp = parent.operator;
const parentOp = parent.operator;
const parentPos = PRECEDENCE[parentOp];
const nodeOp = node.operator;
@@ -220,7 +220,7 @@ export function AssignmentExpression(node: Object): boolean {
// in statement.
function isFirstInStatement(printStack: Array<Object>, {
considerArrow = false,
considerDefaultExports = false
considerDefaultExports = false,
} = {}): boolean {
let i = printStack.length - 1;
let node = printStack[i];