Socket
Socket
Sign inDemoInstall

prettier

Package Overview
Dependencies
0
Maintainers
6
Versions
162
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
1315
17Next

1.3.1

Diff

Changelog

Source

1.3.1

diff

  • Respect template inline-ness (#1497)
vjeux
published 1.3.0 •

Changelog

Source

1.3.0

diff

🔗 Release Notes

  • add printer branches for some TypeScript nodes (#1331)
  • Skip trailing commas with FlowShorthandWithOneArg (#1364)
  • add TSLastTypeNode and TSIndexedAccessType (#1370)
  • add TSConstructorType (#1367)
  • fix do-while break (#1373)
  • Fix missing trailing commas on flow generics (#1381)
  • Add example of using yarn test with arguments (#1383)
  • Have --debug-check also run ast verification (#1337)
  • Fix empty line in block with EmptyStatement (#1375)
  • parent decides how to print type annotations (#1391)
  • add TSTypeOperator (#1396)
  • fix TSTypeReference not printing typeArguments (#1392)
  • add TSMappedType and TSTypeParameter (#1393)
  • fix TSFunctionType failing on TypeParameters (#1394)
  • add TSIntersectionType (#1395)
  • fix typeParameters printing TSFunctionType w/o breaking flow (#1397)
  • Fix optional flow parenthesis (#1357)
  • [experimental] Add linting step in test pipeline (#1172)
  • fix VariableDeclarator not printing type parameters (#1415)
  • add TSMethodSignature (#1416)
  • Add TSParameterProperty, TSAbstractClassDeclaration and TSAbstractMethodDefinition (#1410)
  • Inline nullable in flow generics (#1426)
  • fixed method 'check' error 'format' of undefined (#1424)
  • feat(typescript): add declare modifier support for vars, classes and functions (#1436)
  • Allow flow declarations to break on StringLiteralTypeAnnotations (#1437)
  • Require '::a.b' to have a preceding ; in no-semi style (#1442)
  • Require '(a || b).c++' to have a preceding ; in no-semi style (#1443)
  • Upgrade flow parser to 0.45 (#1447)
  • Add supertype tests and add TSAbstractClassProperty (#1467)
  • Break class expression returned by arrow call (#1464)
  • update typescript snapshots to account for #1464 (#1470)
  • [WIP] add TSNamespaceExportDeclaration (#1459)
  • update yarn.lock (#1471)
  • [RFC] Do not indent calls with a single template literal argument (#873)
  • Proper indentation for template literals (#1385)
  • Add parenthesis for unusual nested ternaries (#1386)
  • Preserve inline comment as last argument (#1390)
  • Only add parenthesis on ternaries inside of arrow functions if doesn't break (#1450)
  • Fix windows line ending on template literals (#1439)
  • Add space around = for flow generics default arguments (#1476)
  • Don't break for unparenthesised single argument flow function (#1452)
  • Don't break on empty arrays and objects (#1440)
  • Do not break on [0] (#1441)
  • Reorder flow object props (#1451)
  • Break inline object first in function arguments (#1453)
  • Break inline object first in function arguments (#1453) (#1173)
  • Inline template literals as arrow body (#1485)
vjeux
published 1.2.2 •

Changelog

Source

1.2.2

diff

  • Only break for conditionals (#1350)
vjeux
published 1.2.1 •

Changelog

Source

1.2.1

diff

  • Fix duplicate comments in classes (#1349)
vjeux
published 1.2.0 •

Changelog

Source

1.2.0

diff

🔗 Release Notes

  • match jsx files in pre-commit hook (#1276)
  • Fix isPreviousLineEmpty on Windows (#1263)
  • Add --dev option to suggested install cmd (#1289)
  • Write out change CLI changes synchronously. Fixes #1287. (#1292)
  • Remove emoji part from lint-staged's name (#1302)
  • omit 'doc' key from options object before passing it to format() (#1299)
  • Skip globbing filenames with node-glob when the filename is not a glob (#1307)
  • FIX: more documentation for jetbrains (#1265)
  • Fix template literal comments (#1296)
  • Double quotes for option values in Readme file (#1314)
  • Do not print the sub-tree when using prettier-ignore (#1286)
  • Bail when traversing === groups (#1294)
  • Avoid breaking arguments for last arg expansion (#1305)
  • Add typescript as a valid parser value (#1318)
  • Add JetBrains File Watcher docs (#1310)
  • Add prettier_d to Related Projects (#1328)
  • Add parentheses for assignment as body of arrow (#1326)
  • Add information about Vim's other autocmd events (#1333)
  • add printer branch for TSFirstTypeNode (#1332)
  • Optimize prettier --help for humans (#1340)
  • Update link to @vjeux's React London presentation (#1330)
  • Improve regex printing (#1341)
  • Fix arrow function parenthesis with comments in flow (#1339)
  • Break if () if conditional inside breaks (#1344)
  • Don't inline paren at right of arguments (#1345)
vjeux
published 1.1.0 •

Changelog

Source

1.1.0

diff

  • Prettier 1.0 is the stabler release we've been waiting for (#1242)
  • fix small typo (#1255)
  • Fix : ReferenceError: err is not defined (#1254)
  • Document debugging strategies (#1253)
  • Do not inline member expressions as part of assignments (#1256)
  • Fix flow union params (#1251)
  • Use a whitelist instead of blacklist for member breaking (#1261)
  • Remove trailing whitespace (#1259)
  • Get rid of fixFaultyLocations code (#1252)
  • Fixing n.comments check in printer (#1239)
  • [WIP] no-semi comments (#1257)
vjeux
published 1.0.2 •

vjeux
published 1.0.1 •

Changelog

Source

1.0.1

  • change semi default
vjeux
published 1.0.0 •

Changelog

Source
vjeux
published 0.22.0 •

Changelog

Source

0.22.0

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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc