Sosuke Suzuki
75ac271661
Clean changelog
2023-08-03 15:12:46 +09:00
auvred
7485c45bcc
Add support for Vue "Generic Components" ( #15066 )
...
* add support for vue generic components
* add changelog and remove duplicated test case
* refactor
* rename file + simplify isVueScriptTag usage
* __isVueScriptGeneric -> __isEmbeddedTypescriptGenericParameters
* add link to blog post to changelog
2023-07-16 14:40:12 +09:00
Sosuke Suzuki
266344398c
Clean changelog
2023-07-06 01:47:41 +09:00
fisker Cheung
3c7e2173e4
Stop insert unnessary leading semicolon in vue event binding ( #14557 )
2023-03-27 13:37:05 +08:00
fisker
9329924de4
Merge branch 'main' into next
...
# Conflicts:
# docs/browser.md
# package.json
# tests/format/typescript/decorators/jsfmt.spec.js
# yarn.lock
2023-03-27 10:58:40 +08:00
Seiya and fisker
1bf47c1e95
Format TS expressions when any script tag has lang="ts" ( #14587 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2023-03-27 10:47:54 +08:00
Seiya and fisker
e154250e19
Format TypeScript expressions in Vue template attributes ( #14506 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2023-03-24 09:10:49 +08:00
fisker Cheung
a3b352ce90
Fix Vue filter detection ( #14542 )
2023-03-22 08:56:32 +08:00
fisker Cheung
06aa1a3501
Ignore htmlWhitespaceSensitivity when formatting Vue SFC root blocks ( #14401 )
2023-03-13 09:12:11 +08:00
fisker Cheung
c7c99305e9
Clean changelog
2022-06-14 14:40:54 +08:00
Sosuke Suzuki
be9d63e543
Avoid printing attribute per line in Vue SFC blocks ( #12895 )
...
* Avoid print single attribute perline for Vue SFC blocks
* Add tests
* Add changelog
* Fix typo
* Add more tests
2022-06-04 23:25:27 +09:00
053022f5ed
Infer Stylus parser in Vue SFC ( #12707 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-05-01 23:01:24 +08:00
Sosuke Suzuki
a4cba80dc0
Allow formatting for Vue template expression written in TypeScript ( #12584 )
...
* Support TS expression in vue SFC
* Add changelog
* Add `__ts_expression`
* Add `__vue_ts_expression`
* Add tests
* Do not use `ast.walk`
* Address review
* Add `__vue_ts_event_binding`
* Fix
2022-04-17 13:12:19 +09:00
Sosuke Suzuki
58e48b79da
Clean changelog_unreleased
2022-03-16 13:35:41 +09:00
02c17f131b
Allow lang attribute of <template> to be empty ( #12394 )
...
Co-authored-by: niklasvatn <niklas@vatn.se >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-03-09 06:37:16 +08:00
fisker Cheung
27e7376229
Fix hangs on invalid v-for ( #12113 )
2022-01-19 20:53:17 +08:00
sosukesuzuki
28cc1908fd
Clean changelog_unreleased
2020-11-20 14:01:22 +09:00
fisker Cheung
28d914b811
Vue: Consistent slot, support Vue3 ( #9609 )
2020-11-13 09:05:30 +08:00
Georgii Dolzhykov
d6858d52ad
Changelog edits for 2.2 ( #9603 )
2020-11-05 13:07:29 +09:00
Ananda Umamil and fisker
fe70b17a9a
Vue: Improve v-for format ( #9225 )
...
* Vue: break `v-for` around `in` or `of`
* Update changelog
* Minor refactor
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-24 08:00:58 +09:00
sosukesuzuki
18bcaefc77
Release 2.1.1
2020-08-26 13:20:21 +09:00
fisker Cheung
ebe9e07716
Vue: Fix format on self-closing and empty blocks ( #9055 )
2020-08-26 11:19:34 +08:00
fisker Cheung
073dfd9fa2
Vue: fix format on blocks with src attribute ( #9052 )
2020-08-25 23:06:25 +08:00
18b4cabc0c
Add 2.1 blog post ( #8932 )
...
* Add draft for 2.1 blog post
* Update cspell.json
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update website/blog/2020-08-04-2.1.0.md
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update changelogs
* Add author to cspell ignore patterns
* Update cspell.json
* Fix original changelog
* Run draft script
* Update
* Fix TypeScript on Highlights
* Fix heading
* Fix author
* Fix changelog for 8410
* Fix syntax highlight
* Move changelog for 7844 to /scss
* Update website/blog/2020-08-21-2.1.0.md
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com >
* Remove changelog_unreleased
* Update filename
* Replace to actual version manually
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com >
2020-08-24 20:36:52 +09:00
Wenfang
5da1ee8b07
fix(vue): named slots shorthand value is not formatted ( #8839 )
2020-07-28 07:05:48 +09:00
fisker Cheung
f2b0aec555
Vue: Fix parenthesized interpolation format ( #8747 )
2020-07-15 12:16:16 +08:00
fisker Cheung
8999cc7811
Format Vue SFC root blocks ( #8465 )
2020-06-17 19:18:29 +08:00
Sosuke Suzuki
f3e59453cd
Vue: Improve upper case HTML tag formatting in DOM template ( #8337 )
...
* Treat upper case HTML same as lower case one
* Add changelog
* Support mixed case html tag
2020-05-19 10:30:03 +09:00
Sosuke Suzuki
b94e41aae4
Vue: Support Vue DOM template formatting ( #8326 )
2020-05-18 21:22:30 +08:00
Sosuke Suzuki
34bfaf87e6
Vue: Fix ugly formatting for one line template in SFC ( #8325 )
...
* Fix ugly formatting for one line template in Vue SFC
* Add changelog
* Modify to treat all root elements as block
2020-05-18 18:50:15 +09:00
Sosuke Suzuki
531b7ca139
Vue: improve parsing custom blocks with angular-html-parser@1.5.0 ( #8153 )
...
* Parse twice for vue
* Remove 'html' from vueRootElementsSet
* Add link for Vue SFC spec
* Modify to don't format pug code
* Add changelog
* Fix typo
* Change lang, pug => unknown in tests
* Support top-level html
* Refactor shouldParseAsHTML
* Fix multiple template formatting
* Tiny fix
* Fix by Lint
* Remove console.log
* Support nested template tag
* Meke expected syntax errors
* Update tests
* Support unclosed node
* Update to angular-html-parser@1.7.0
* Update
* Remove failed tests
* Modify to throw first parsing error
* Remove options for error tests
* Optimize parse
* Fix reviewed points
* Fix by lint
2020-05-14 22:08:40 +08:00
fisker Cheung
cde4a0af9d
Fix broken format with upper case HTML tag ( #8280 )
...
* Fix broken format with upper case HTML tag
* Add changelog
2020-05-11 21:26:24 +03:00
Sosuke Suzuki and fisker Cheung
915327d61d
Vue: Support custom blocks ( #8023 )
...
* Support Vue Custom Block
* Add changelog
* Udpate snapshots
* Support "type" for json
* Remove guessing languages
* Modify to reuse inferScriptParser logic
* Implement withInnerParts arg for stripTrailingHardline
* Rename isVueCustomBlock
* Set `verbose: true`
* Use getParserName
* Ignore vueIndentScriptAndStyle
* tmp
* Fix formatting
* Add tests
* Fix by lint
* Revert "Set `verbose: true`"
This reverts commit f65c7cd7d814d3149aadbeb3cfd00c5372887c33.
* loop with i--
* Modify to preserve unknown langauge
* Support embeddedLanguageFormatting
* Fix by lint
* Fix mistake
* Modify to preserve unknown lang
* Remove unnecesary condition
* Add error tests
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2020-04-17 07:54:24 +09:00
Georgii Dolzhykov
8f7164fdf4
clean changelog_unreleased
2020-03-21 22:41:36 +02:00
Georgii Dolzhykov and Jed Fox
8334610aa2
Blog post for 2.0 ( #7417 )
...
* 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 >
2020-03-21 22:24:23 +02:00
fisker Cheung
aacb5fa75f
Fix vue attributes indention ( #7781 )
2020-03-17 22:30:24 +02:00
fisker Cheung
61398f0dc7
Vue: don't print long single expression of TemplateLiteral and StringLiteral on new line ( #7479 )
...
* Add failed test
* Fix logic
* Update example
* More tests
* Add changelog_unreleased/vue/pr-7479.md
* Fix logic
2020-02-14 01:47:36 +02:00
Georgii Dolzhykov
7e3c0c73b3
Merge branch 'master' into next
2020-01-14 20:36:21 +02:00
fisker Cheung
ac3c046747
Run lint-docs on changelogs ( #7253 )
2020-01-13 15:13:38 +03:00
Sosuke Suzuki
332a55179e
Vue: format sfc jsx ( #7180 )
...
* Modify to enable to format vue jsx sfc
* add changelog
* Modify to avoid cspell checking, "sfcs" -> "SFC"
2020-01-09 05:14:19 +09:00
Simon Lydell
4eb3e2650a
Blog post, changelog and docs for 1.19 ( #6787 )
2019-11-09 01:23:57 +01:00