* Quote and unquote number keys
* Add changelog entry
* Add tests for escapes
* Fix idempotency
* Only run flow-repo/ tests with flow
271 jsfmt.spec.js in flow-repo use only the flow parser.
18 use flow and babel.
Now, all of them use only flow.
* Don’t unquote negative numbers
* Don’t quote/unquote numbers in TypeScript
* Quote BigInt
* Fix AST check
* Fix condition
* Fix BigInt to string
* Fix ESLint not recognizing BigInt
* Only quote/unquote “simple” numbers
* No need to clean BigIntLiteral anymore
* Add tests for 1. and .1
* Fix 1. and .1
* Remove unnecessary babel-ts from tests
* Only unquote numbers for babel
* Update changelog
* Modify to align binaryish expression with trailing comment
* Add tests
* Add comment
* Add test
* Add changelog
* Fix by lint
* Modify to move transformation to printBinaryishExpressions
* Remove unnecessary new line
* Fix hasTrailingCommentInBinaryish
* Add shouldReturnParts option to printComments
* Add tests from review
* Fix by lint
* Extract and use normalizeParts
* Group CallExpression when parent node is binaryish
* Fix by lint
* Remove unnecessary change
* Wrap the doc of most left node with group
* Add tests
* Update pr-8476.md
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* fix inconsistent parsing of styled-components' css
* fix for multiple placeholders in one line
* add test for multiple placeholders in one line
* add changelog for the pr
* fix multi part placeholders
* make placeholderMatch regex stricter
* add tests for all fixed cases
* update changelog
* fix changelog link
* do not edit the original doc.parts
* fix changelog output
* simplify logic
* remove unnecessary `tokens` array
* simplify logic even more
* changes according to review
* finalize
* update snapshots after merge
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* JS: block comments with LogicalExpression
* Add changelog_unreleased for #7787
* Add handleBinaryExpression in comments.js
* Refactor comments.js to use isBlockComment
* Update pr-7787.md
* Update pr-7787.md
* test: regenerate snapshot for comments/logical-expression
* test: logical-expression.js as unstable tests
* test: add comments/binary-expressions-trailing-space.js
* fix: make two functions one 'handleEndOfLineBlockComments'
* Rename handleEndOfLineBlockComments to handleBinaryExpression
* Refactor handleBinaryExpression to remove unneed condition & params
* Divide and rename test files for handleBinaryExpression()
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* Fix arrow regression
* Fix resolvePluginConflict
* Update changelog
* Fix condition
* Edit changelog: add link to Babel blog, change order (to be as in the blog)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* Modify to support smart-pipeline in printer
* Add tests
* add a changelog entry
* change minimal to smart
* fix parens issues
* Support fsharp-pipeline
* Fix needs-parens
* Try to fix ci problem
* Update changelog
* Add more tests
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* add a script that concatenates changelog_unreleased into a blog post draft
* syntax highlighting issues
* generate post draft
* Copy edit, remove error stacks
* Update 2020-00-00-2.0.0.md
* Update changelog source files
* edit entries, regenerate the post
* add lost file in versioned_docs
Co-authored-by: Jed Fox <git@twopointzero.us>
* Put space after generator star, not before
* remove pr-7516.md, edit pr-3903.md instead
Because the release blog post will be generated from these files.
* edit pr-3903.md
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* Do not add hard linebreak for html template
* Collapse whitespaces to single space char
* restore line breaking
* use `line` and rename vars
* add test
* support htmlWhitespaceSensitivity
* indent if breakable
* add htmlWhitespaceSensitivity test
* indent only when multiple top levels
* add a changelog entry
* update snapshot
* replace match with test
* split tests into multiple files for better readability of snapshots
* fix an edge case with html-in-js-in-html
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>