prettier v1.15.2 Release Notes

  • diff

    • CLI: allow flag overriding (#5390)
    • โœ… JavaScript: do not apply test call formatting to arrow function without body (#5366)
    • ๐Ÿ’… JavaScript: do not duplicate comments in styled-components (#5416)
    • JavaScript: do not indent comments behind variable declarations (#5434)
    • JavaScript: inline property decorator should stay inline (#5364, #5423)
    • JavaScript: treat createSelector as function composition (#5430)
    • ๐Ÿšš Flow: do not move flow comment for function argument to its body (#5435)
    • Flow: force-break interface body to be consistent with TypeScript interface (#5432)
    • ๐Ÿšš Flow/TypeScript: remove extra indentation for extends (#5432)
    • TypeScript: distinguish module and namespace correctly (#5432)
    • HTML: handle CRLF correctly (#5393)
    • HTML: handle <pre> with interpolation (#5400)
    • HTML: preserve content for <template> with unknown lang (#5388)
    • HTML: preserve incomplete IE conditional comments (#5429)
    • HTML: preserve unterminated IE conditional comments (#5424)
    • HTML: treat capital element as custom element (#5395)
    • Angular: add missing parens for pipe in ternary (#5397)
    • ๐Ÿ–จ Angular: correctly print unary expression with operator + (#5405)
    • Angular: correctly handle parens (#5387)
    • Angular/Vue: whitespaces between interpolation and text are sensitive (#5396)
    • Vue: do not add invalid semicolon for v-on attribute value (#5418)
    • SCSS: do not crash on grid value (#5394)
    • Markdown: handle CRLF correctly (#5414)
    • Markdown: identify CJK correctly (#5402)
    • MDX: treat JSX code block same as in Markdown (#5391)