Run new lint rules (#5413)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user