prettier v0.22.0 Release Notes

  • diff

    • โš™ Run 0.21.0 (#876)
    • ๐Ÿ›  Fix paren removal on UnionTypeAnnotation (#878)
    • ๐Ÿ›  Fix typo (#891)
    • Ensure no parens for JSX inside of an ArrayExpression (#895)
    • ๐Ÿ›  Fix object expression in arrow function expression (#897)
    • ๐Ÿ›  Fix unprinted comments in destructuring (#898)
    • ๐Ÿ›  Fix bug with importing empty type (#904)
    • ๐Ÿ›  Fix broken export comment (#899)
    • โž• Add CLI Example to Readme (#909)
    • ๐Ÿ›  Fix 0.5e0 (#911)
    • ๐Ÿ›  Fix binary expression instanceof in arrow function expression (#913)
    • ๐Ÿ‘Œ Improve readme CLI usage example (#910)
    • โœ… Do not break long it/test calls when template literal (#893)
    • โšก๏ธ Update lint-staged docs to use husky for less config. (#923)
    • ๐Ÿ›  Fix files with comments only (#813)
    • โšก๏ธ Update README.md (#928)
    • ๐Ÿ›  Fix binary op as body in arrow expression (#921)
    • cleanup needsParens (#935)
    • [JSX] Break if opening element breaks (#942)
    • Parenthesize function expressions in expression position (#941)
    • โšก๏ธ update the README to add a pre-commit hook (#944)
    • Fix #951: properly parenthesize ** expressions (#952)
    • ๐Ÿšง [WIP] TypeScript Parser (#915)
    • Do not break long describe calls (#953)
    • Recursively find leading comments inside ReturnStatements (#955)
    • ๐Ÿ›  Fix in inside of a for in a nested way (#954)
    • ๐Ÿ‘‰ Make comments around empty parenthesis be inside (#957)
    • Stabilize comment after object label (#958)
    • Inline BinaryExpressions inside JSXExpression (#965)
    • Only allow same-line arrow-less body for explicit nodes (#966)