seiyab / prettier-plugin-sort-members

MIT License
6 stars 1 forks source link

BUG: type literal as type parameter isn't sorted #18

Open seiyab opened 10 months ago

seiyab commented 10 months ago
type Props = React.PropsWithChildren<{
  onChange?: (checked: boolean) => void;
  checked: boolean;
}>;
seiyab commented 10 months ago

~OMG prettier re-orders type literal members...~ https://github.com/prettier/prettier/blob/12fd8891af3958db57d5246a5f33eef33841000f/src/language-js/print/object.js#L67

seiyab commented 10 months ago

↑re-ordering only happen for Flow AST. So another cause should exist. I'm investigating...