* 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>
* Rudimentary support for the most used directives of AngularJS 1.x
* add ng-class and ng-style
* add changelog entry in the new format
* Update pr-6869.md
* update snapshots
* Format HTML attribute `class` value
* Add more example
* Typo
* Don't break
* exclude mustache and multiparser
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* fix incorrect prettification of multi-line markdown footnote
* update test of footnoteDefinition
* add changelog_unreleased pr-7203
* fix changelog_unreleased
* fix pointed out
* update snapshot test of markdown for footnote
* Fix inconsistent self-closing tag in vue
* Update snap
* Add changelog
* More test
* reword changelog
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>
* Remove `normalize-path` module
* Try run all tests on `standalone`
* Restore test
* Add `no-parser-tests`
* Fix issue with shim
* DRY
* Rename tests
* Use `endsWith`
* feat: add new parser `babel-ts` to parse TypeScript syntaxes via Babel
* docs: document parser babel-ts
* chore: enable babel-ts in markdown and worker.js
* verify all TS tests against babel-ts except disabled by disableBabelTS
* support for TSDeclareMethod; fix abstract properties and methods
* fix embedded angular templates and styles
* fix TSImportType
* simplify babel options combinations
* fix method decorators
* fix ranges
* work around loc inconsistencies for SequenceExpression
* don't print trailing comma in type parameters (unsupported in TS < 3.3)
* preserve quotes for class properties
* align printing of single-parameter functions
* fix comments in degenerate single-element unions and intersections
* fix comments for methods
* fix comments for mapped types
* edit docs, change 'since' to 2.0.0
* add changelog
* fix code sample on playground
* update snapshots after rebase
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* Towards changing default value for endOfLine
* Update tests and snapshots
* Add placeholder for changelog_unreleased
* Add CHANGELOG
* Undo adding snapshot tests for auto as it does not play well on Windows in CI
* Tweak changelog
* Update jest snapshot
* Move old handlebars to html file
This kind of handlebars code is supposed to be in html files.
* Remove useless file
* Uglify our old handlebars file
* Move venerable hbs tests to their folder
Because of their config
* html: Use glimmer for script tags of type handlebars
* Record snapshots
* Add CHANGELOG entry
* Add the CHANGELOG test
* Make the PR changes more obvious
* Always add a space after the `function` keyword
* WIP update snapshots
* WIP put generator function asterisk before space
https://github.com/prettier/prettier/issues/3847#issuecomment-363449250
* WIP update snapshots
* Add changelog
* Add tests for anonymouse generator function
* print space between `function` and generator star
* update changelog
* print space between yield and *
Co-authored-by: Joseph Frazier <1212jtraceur@gmail.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
* examples from various issues about method chaining
this commit includes no prettier functionality changes, so that diffs will be easily visible.
specifically:
* https://github.com/prettier/prettier/issues/4125
* https://github.com/prettier/prettier/pull/4765
* https://github.com/prettier/prettier/issues/1565
* https://github.com/prettier/prettier/issues/3107
* add heuristic for breaking method chains
* fix: remove unnecessary escape characters
* initial non-regex isSimple implementation
* handle babel literal types properly
found here: https://github.com/babel/babel/blob/fe258dec047f473fb5a35172b2ff8cb172051dec/packages/babel-parser/ast/spec.md
* template literal + test
* use !every instead of some(!)
* fix: some test cases
* fix: object expressions and some more simple node types
* some test cases showing need for depth check
* depth check
* update test to test thing it's supposed to test
* optional expressions
* test case for missing isSimple depth
* fix isSimple depth bug
* fix: comment check
* test for ts non-null operator
* make object properties behave similarly to arrays
* isSimple -> isSimpleCallArgument; move to utils; add unaries
* add Import to the list of simple things
* only short regexps to be considered simple (<= 5 chars)
* add changelog entry in the new format
* update snapshots
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>