Skip to content

Commit

Permalink
Fix lint/typecheck issues in prettier fork
Browse files Browse the repository at this point in the history
Summary:
Original Author: [email protected]
Original Git: 33dfc8f
Original Reviewed By: SamChou19815
Original Revision: D66963629

Fix the lint and typecheck issues in our Prettier fork. Here is the diff: https://www.internalfb.com/phabricator/paste/view/P1694179015
This diff is the build output for that (only one change).

Reviewed By: fbmal7

Differential Revision: D66975453

fbshipit-source-id: d64fd08d01e44f71c8755b9ad49bc63c82b0be34
  • Loading branch information
dannysu authored and facebook-github-bot committed Dec 16, 2024
1 parent b95fa5e commit b9e031b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5542,7 +5542,7 @@ Expected it to be ${EXPECTED_TYPE_VALUES}.`;
return parent.type === "ArrayTypeAnnotation" || key === "objectType" && (parent.type === "IndexedAccessType" || parent.type === "OptionalIndexedAccessType");
case "ComponentTypeAnnotation":
case "FunctionTypeAnnotation": {
if (node.type === "ComponentTypeAnnotation" && node.rendersType == null) {
if (node.type === "ComponentTypeAnnotation" && (node.rendersType === null || node.rendersType === void 0)) {
return false;
}
if (path.match(
Expand Down

0 comments on commit b9e031b

Please sign in to comment.