Commit Graph
2132 Commits
Author SHA1 Message Date
Georgii Dolzhykov 20cc23ba35 Fix idempotence issues caused by eol comments after = in assignments (#12349) 2022-03-08 01:08:35 +08:00
Sosuke Suzuki 828b7a30ea Print trailing comma for rest elements in tuple types (#12390)
* Remove `hasRest` condition for printing tuple types

* Update snapshots

* Fix test file name

* Add changelog
2022-03-05 15:40:11 +09:00
Georgii Dolzhykov 542549c372 Refactor printing definite assignment assertions (#12351)
* Refactor printing definite assignment assertions

* Add changelog

* Fix unexpected ! in var initializers
2022-03-04 09:28:48 +09:00
Sosuke Suzukiandfisker Cheung 199a1bb389 Support decorator auto accessors syntax (#12299)
* Handle `ClassAccessorProperty`

* Disable file

* Add `babel-plugins` tests

* Add more tests

* Fix tests

* Fix typo

* Add changelog

* Fix printing for no-semi

* Update statement.js

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-03-02 16:00:50 +09:00
Matt c865b198fd Correctly identify which backslashes are removed by glimmer (#12302)
* Correctly identify which backslashes are removed by glimmer

* Add tests for #12298

* Don't use ?? syntax

* Add a changelog entry for #12302

* Add a test for #11401

* Move backslash tests to the escape directory

* Backslash test shouldn't have a self-closing p
2022-02-23 20:58:21 +09:00
fisker CheungandAlexander Kachkaev 3ba48bb266 Add --no-plugin-search (#10274)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2022-02-18 16:36:53 +08:00
Sosuke Suzuki 162097e2d2 Format .swcrc as a JSON file (#12320)
* Format `.swcrc` as JSON

* Test `.swcrc` JSON formatting

* Add changelog

* Update snapshots

* Address reviews

* Update `cspell.json`

* Address review
2022-02-18 08:39:12 +09:00
fisker Cheung da7eb9aa60 Remove duplicated location info in error message from meriyah parser (#12307) 2022-02-16 08:24:53 +08:00
Yosuke Kuramiandfisker Cheung f21d18aab9 fix(yaml): Don't remove lines including U+3000 (#12305)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-02-15 21:02:04 +08:00
Sosuke Suzuki 8c49fd0f6f Support destructuring private proposal (#12276)
* Enable `destructuringPrivate` plugiin

* Add tests

* Add changelog

* Add more tests
2022-02-14 11:28:47 +09:00
Sosuke Suzuki b14b13d2cf Update tempy to 2.0.0 (#12247)
* Update `tempy`

* require `tempy` directly

* Fix

* Fix

* Vendors

* Remove `vendord.d.tsd`

* Fix path
2022-02-12 18:23:50 +09:00
Sosuke Suzuki 34fbd099de Update execa to 6.0.0 (#12245)
* Update execa

* Fix

* require `execa` directly

* Run `vendors:bundle`

* Run `vendors:bundle`

* Generate dts with considering defautl export

* Remove `vendors-versions.json`
2022-02-12 12:07:22 +09:00
fisker Cheung 1ec2fd8a8b Clean installed Prettier after test (#12273) 2022-02-11 17:25:51 +08:00
fisker Cheung d962466a82 Style: Enforce kebab-case filename (#12265) 2022-02-10 10:12:31 +08:00
Lucas Duailibe 1dffa0f9da Improve printing of comments in type aliases (#12268) 2022-02-09 23:02:47 -03:00
fisker Cheung 6d02cd9650 Add parens to ClassExpression with decorators (#12260) 2022-02-08 15:06:31 +08:00
dependabot[bot] b1645073b8 Build(deps): Bump @babel/parser from 7.16.12 to 7.17.0 (#12241) 2022-02-07 06:15:31 +00:00
fisker Cheung 717e6d8cb7 Follow up work for flow-parser@0.171.0 (#12252) 2022-02-07 11:24:32 +08:00
Sosuke Suzuki 1f50c8417d Run tests for logical-assignment operators witn flow (#12244) 2022-02-06 21:07:02 +09:00
Lucas Duailibe 69ea417f6b Prevent multiple parenthesis around superclass with typecast (#12226) 2022-02-05 11:56:37 -03:00
Lucas Duailibe e73a7bc47e Preserve comment position before super class (#12222) 2022-02-05 10:50:04 -03:00
Bogdan Chadkin 76bb0226d5 Replace globby with fast-glob (#12223)
There is already fast-glob used in src/cli/expand-patterns.js
Here I migrate everywhere to it from globby which is a thin wrapper with
a couple of unused here features.

```
du -ck dist
```
17280 kB
17260 kB
2022-02-05 10:24:10 -03:00
Lucas Duailibe 543aa9abf1 Fix printing of SCSS selector() function (#12213) 2022-02-03 12:54:10 -03:00
Lucas Duailibe e22c4911f8 Preserve empty lines in CSS/SCSS paren groups (#12210) 2022-02-02 07:38:59 -03:00
Lucas Duailibe 72ac2bbe5f Fix comment in abstract methods (#12185) 2022-01-29 19:25:53 -03:00
fisker Cheung 9691e7bc37 Add acorn parser (#12172) 2022-01-28 15:25:30 +08:00
Lucas Duailibe f4d9816bc1 Keep comments of default cases in the same line of the case (#12177) 2022-01-28 00:11:28 -03:00
dependabot[bot]andfisker Cheung 249096c749 Build(deps): Bump @babel/parser from 7.16.8 to 7.16.12 (#12126)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-01-24 17:29:19 +08:00
Sosuke Suzuki db73cc8e0c Print end-of-line comment for continue/break statements (#12075)
* Add handleBreakAndContinueStatementComments to handleEndOfLineComment

* Add tests

* Add changelog

* Update tests

* Add more tests

* Fix for own line comments

* Fix tests

* Fix tests

* Fix tests

* Add unstable tests
2022-01-19 22:29:37 +09:00
fisker Cheung 27e7376229 Fix hangs on invalid v-for (#12113) 2022-01-19 20:53:17 +08:00
Jed Fox f29a7565e9 Collapse JSXExpressionContainer → AwaitExpression → JSXElement (#12109) 2022-01-16 14:59:22 -05:00
Jed Fox 920283a1dd Inline await expressions in JSX (#12088) 2022-01-15 16:00:39 -05:00
Sosuke Suzuki 6ccc462409 Print comments for parenthesized TS keyword types (#12070)
* Prefer node.start for TS keyword types

* Add tests

* Add changelog

* Refactor

* Use isTsKeywordType

* Fix lint problems
2022-01-13 09:54:06 +09:00
Sosuke Suzuki a50bc4e14a Preserve end-of-line comment for if statement without blocks (#12017)
* Print as dangling comments

* Add tests

* Add changelog

* Use symbol instead of string
2022-01-06 09:31:58 +09:00
dependabot[bot] 2e2f2f50e7 Build(deps): Bump @babel/parser from 7.16.6 to 7.16.7 (#12020) 2022-01-04 07:17:53 +00:00
Sosuke Suzuki 66e4597c0e Update acorn (#12039) 2022-01-03 04:22:42 +08:00
George Zahariev 75a02f9bde Fix Flow's class declaration's indexer formatting (#12009) 2021-12-29 00:35:54 -03:00
f8829d8c30 Build(deps): Bump flow-parser from 0.162.1 to 0.168.0 (#11845)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-12-23 11:31:23 +08:00
Hendrik NijmeijerandHendrik Nijmeijer 846069b6c7 recognize waitForAsync as test-statement in Angular (#11992)
* recognize waitForAsync as test-statement in Angular

* Add changelog_unreleased entry

Co-authored-by: Hendrik Nijmeijer <hendrik@hendriknijmeijer.nl>
2021-12-20 17:04:19 -03:00
fisker Cheung 07f7ad8c79 Improve shorthand specifier detection (#11941) 2021-12-18 11:16:18 +08:00
fisker Cheung 306d009904 Use camelCase cli arguments internally (#11976) 2021-12-18 11:11:49 +08:00
fisker Cheung 6317e6557e Test: Make runPrettier result "thenable" (#11979) 2021-12-18 11:10:03 +08:00
fisker Cheung 326f23cd35 Restructure cli files (#11974) 2021-12-16 09:21:15 +08:00
dependabot[bot] db0604eddd Build(deps): Bump @babel/parser from 7.16.4 to 7.16.6 (#11973) 2021-12-15 02:04:49 +00:00
Jere Kankaanrantaandfisker Cheung 82e6937d50 Added changelog and updated the "first available in" version for singleAttributePerLine (#11934)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-12-07 14:13:26 +08:00
fisker Cheung 7bce1d02c7 Fix comments inside map (#11920) 2021-12-06 21:31:51 +08:00
Trevor Scheer 20f06ccb2a Print descriptions on graphql schema definition nodes (#11901)
* Failing test

* Add description, test passes

* Add changelog entry
2021-12-03 14:42:09 +09:00
Jere Kankaanranta 0e42acb49b feat: added singleAttributePerLine option (#5501) (#6644) 2021-12-02 11:46:11 +03:00
fisker Cheung 16b6825172 Make options argument in parsers optional (#11892) 2021-12-02 13:56:47 +08:00
Lucas Duailibe d3dfb74cab [handlebars] Named blocks can't be self closing (#11900) 2021-12-01 22:26:00 -03:00