Commit Graph
1816 Commits
Author SHA1 Message Date
Sosuke Suzuki cc63358c90 Respect spacing between template values in embedded css (#9078)
* Respect no space for embedded css

* Fix by lint

* Add changelog
2020-08-28 11:08:29 +09:00
fisker Cheung f2e3cb7f3b Support .wxs & .wxss (#9081)
* Support `.wxs` &  `.wxss`

* Spell check

* Add comments

* Spellcheck
2020-08-27 20:56:53 +03:00
fisker Cheung ebe9e07716 Vue: Fix format on self-closing and empty blocks (#9055) 2020-08-26 11:19:34 +08:00
Chris Brody 77c8da7691 test(TypeScript): test ...infer type with parens (#9056) 2020-08-26 09:02:58 +08:00
fisker Cheungandprettifier[bot] ee57066cb4 HTML: Fix format on style[lang="sass"] (#9051)
Co-authored-by: prettifier[bot] <45367598+prettifier[bot]@users.noreply.github.com>
2020-08-26 00:26:03 +08:00
fisker Cheung 073dfd9fa2 Vue: fix format on blocks with src attribute (#9052) 2020-08-25 23:06:25 +08:00
fisker Cheung 720177ac5c HTML: Fix format on files with frontMatter (#9043) 2020-08-25 19:49:38 +08:00
fisker Cheung 9a9dcbe12b Fix broken format for ...infer T (#9044) 2020-08-25 12:36:54 +03:00
Sosuke Suzuki c4e9dd9c36 Continuation of revert 7889 (#9024)
* Continuation of revert 7889

* Remove isLiteralLikeValue

* Revert callHasComplexArguments

* Revert usage of shouldMerge
2020-08-23 01:23:41 +09:00
fisker Cheung 08e8b40ac6 Move non-js syntax test out of tests/js/ dir (#9023) 2020-08-22 14:50:54 +08:00
Cyrille David 8013e510cc handlebars: Remove duplicated tests (#9020) 2020-08-22 11:35:24 +08:00
fisker Cheung 95ba0aeb79 Update javascript tests to avoid syntax errors (#9019) 2020-08-22 01:00:14 +08:00
Sosuke SuzukiandChristopher J. Brody 751f67af1f Upgrade to TypeScript 4.0 (#8982)
* Upgrade to TypeScript 4.0

* Update tests

* Fix changelog

* Revert invalid label tests

* Set loggerFn to false

* Use TS 4.0

* Apply logical assginment test for TypeScript

* Remove hack for NamedTupleMember

* workaround for TypeScript 4.0 in src/language-js/utils.js

Co-authored-by: Christopher J. Brody <chris.brody+brodybits@gmail.com>
2020-08-21 16:09:28 +09:00
fisker Cheung 1d2ff824cc Improve requirePragma on files with BOM (#9003) 2020-08-21 10:30:42 +08:00
fisker Cheung d31ebf4619 Test: Improve coverage (#8811) 2020-08-21 09:43:24 +08:00
fisker Cheung 7bf1803a11 JS: DRY hasPragma & insertPragma (#9002) 2020-08-21 09:10:14 +08:00
fisker Cheung dc46155962 Revert #7367 "Fix: remove unnecessary parens when yielding jsx" (#9011) 2020-08-21 09:09:45 +08:00
fisker Cheung 2ff156136f Improve internal cursorOffset calculate (#9013) 2020-08-21 09:09:15 +08:00
Sosuke Suzuki e3f075b3e7 Revert #7889 (#8861)
* Revert #7889

* Remove changelog

* Run prettier
2020-08-20 00:00:27 +09:00
Sosuke Suzukiandfisker Cheung 6dbef8681e Fix interface extends with long type parameters (#8981)
* Try the same way as #8967

* Update src/language-js/printer-estree.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-08-19 23:51:49 +09:00
Sosuke Suzuki 36c35be210 Fix class implements with long type parameters (#8967)
* Fix class implements

* Extract extendsParts and indent

* Refactor

* Refactor

* Fix by Prettier

* Refactor

* Refactor getTypeParametersGroupId with WeakMap
2020-08-19 20:21:52 +09:00
fisker Cheung 6833310f87 Fix wrong range format on files with BOM (#8936) 2020-08-10 22:18:55 +08:00
fisker Cheung 0a2ec1b4a2 Fix range tests with TEST_CRLF and endOfLine option (#8821) 2020-08-08 16:45:44 +08:00
dependabot[bot]andfisker 74b5f65565 Build(deps): Bump @babel/parser from 7.11.1 to 7.11.2 (#8922)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-08-06 20:19:11 +08:00
dependabot[bot]andfisker e2e0ddf08c Build(deps): Bump @babel/parser from 7.11.0 to 7.11.1 (#8914)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-08-06 10:40:49 +08:00
fisker Cheung 797e93fc0a Support Decimal Proposal (#8901) 2020-08-05 11:04:30 +08:00
fisker Cheung 967bc6f502 Support babel TSNamedTupleMember (#8885) 2020-08-04 12:17:53 +08:00
fisker Cheung 7c7ad71a1b Fix error throws on unclosed tag in pre (#8841) 2020-08-04 06:49:22 +08:00
dependabot[bot]andfisker 0509833f0a Build(deps): Bump yaml-unist-parser from 1.2.1 to 1.3.0 (#8888)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-08-03 21:20:03 +08:00
dependabot[bot]andfisker 8f58bffecf Build(deps): Bump @babel/parser from 7.10.5 to 7.11.0 (#8869)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-08-03 21:13:19 +08:00
fisker Cheung 170033f3f8 Update @typescript-eslint/typescript-estree to v3.7.1 (#8805) 2020-08-02 07:03:20 +08:00
Sosuke Suzuki 272bea50b6 Add tests for #3223 (#8849) 2020-07-29 00:30:42 +09:00
Wenfang 5da1ee8b07 fix(vue): named slots shorthand value is not formatted (#8839) 2020-07-28 07:05:48 +09:00
fisker Cheung d725261fc5 MDX: fix unstable format when embedded off (#8825) 2020-07-25 02:06:22 +08:00
Sosuke Suzuki 744a4e8e0e Add tests after remark v8 (#8820)
* Add tests for #3753

* Add tests for #4306

* Add tests for #5921

* Add tests fro #6177

* Fix
2020-07-24 19:00:21 +03:00
Cyrille ed9d399a47 handlebars: Do not format html element attributes but class (#8677) 2020-07-24 00:40:35 +08:00
fisker Cheung 9ebe5adb54 Ensure comments for ignored node are printed (#8777) 2020-07-20 09:19:40 +08:00
fisker Cheung d072671842 Test: fix standalone tests with plugins option (#8787) 2020-07-19 17:53:30 +08:00
George Zahariev bd8992d53b When default exporting a Flow Enum, do not append semicolon (#8768)
* When default exporting a Flow Enum, do not append semicolon

* Add changelog entry for #8768
2020-07-16 21:50:31 +09:00
dependabot[bot]andfisker f0285dc3d2 Build(deps): Bump @babel/parser from 7.10.4 to 7.10.5 (#8762)
* Build(deps): Bump @babel/parser from 7.10.4 to 7.10.5

Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.10.4 to 7.10.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.5/packages/babel-parser)

Signed-off-by: dependabot[bot] <support@github.com>

* Revert changes from #8688

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-07-15 14:58:58 +03:00
fisker CheungandGeorgii Dolzhykov 07e5b06a1f Fix unstable pair of comments between class methods (#8731)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-15 12:16:49 +08:00
fisker Cheung f2b0aec555 Vue: Fix parenthesized interpolation format (#8747) 2020-07-15 12:16:16 +08:00
fisker CheungandGeorgii Dolzhykov c0abefb662 SCSS: Fix Comments at the end of the file were lost if the final semicolon was omitted (#8675)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-14 23:36:40 +08:00
fisker 44dedd94b5 Fix snapshot 2020-07-14 22:35:25 +08:00
fisker Cheung 26740d54a5 Recognize known html tags (#8621) 2020-07-14 22:02:32 +08:00
fisker Cheung 639e7fc869 Fix duplicated comments (#8742)
* Add failed test

* Fix issue

* more tests

* Restore verify parser

* Add changelog

* Update snapshots
2020-07-14 15:06:57 +03:00
Franck Nijhof e5b026704f Add Home Assistant vscode language ID as YAML (#8739) 2020-07-14 17:28:36 +08:00
Cyrille 2ff388f19a Add a test (#8721) 2020-07-13 18:25:52 +03:00
fisker Cheung 0998366d41 Less: Fix incorrect comment in selector() (#8707) 2020-07-06 17:48:30 +08:00
fisker CheungandGeorgii Dolzhykov b01591770a HTML: Don't preserve line breaks around text-only content (#8614)
* Fix inconsistent formatting on Vue interpolation

* Fix text

* Update changelog

* Fix snapshot

* Add an explanation to the changelog

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-06 09:18:22 +03:00