Force parentheses around array and conditional infer (#11227)
This commit is contained in:
@@ -157,6 +157,10 @@ export function TSUnionType(node: Object, parent: Object): boolean {
|
||||
|
||||
export { TSUnionType as TSIntersectionType };
|
||||
|
||||
export function TSInferType(node: Object, parent: Object): boolean {
|
||||
return t.isTSArrayType(parent) || t.isTSOptionalType(parent);
|
||||
}
|
||||
|
||||
export function BinaryExpression(node: Object, parent: Object): boolean {
|
||||
// let i = (1 in []);
|
||||
// for ((1 in []);;);
|
||||
|
||||
Reference in New Issue
Block a user