fisker Cheung
fc74af1d94
Set loglevel to debug automatically when performance flags found ( #12698 )
2022-04-28 11:24:59 +08:00
HosokawaR and fisker Cheung
9fbdcda5b1
Print as instead of : for babel-ts parser ( #12706 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-04-27 17:56:38 +08:00
fisker Cheung
d1332b4c63
Set printBasicPrototype: false in snapshots ( #12702 )
2022-04-27 17:56:05 +08:00
fisker Cheung
85e6e4f73f
CLI: Skip print code or write file when performance flags found ( #12682 )
2022-04-25 08:44:22 +08:00
29c4a3e559
bugfix(graphql): Fix single line and empty description formatting ( #12608 )
...
Co-authored-by: Harry Hopkinson <63599884+Harry-Hopkinson@users.noreply.github.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-04-22 20:38:44 +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 and fisker Cheung
fa3b95c2e1
Remove lodash ( #12628 )
...
* Replace `groupBy`
* Replace `partition`
* Replace `pick`
* Move `partition`
* Replace `uniqBy`
* Replace `fromPairs`
* Remove usage from website
* Reuse `partition`
* Remove from package.json
* Fix
* Use `ignore.default`
* Add `resolveConfig` to `FileInfoOptions`
* Explicit tuple types
* Make `cache` optional
* Fix cosmiconfig type
* Use `@ts-expect-error` for private property access
* Add type annotation for validate
* Fix type errors for `OptionInfo`
* Add `@ts-expect-error`
* Fix type of `normalizeOptions`
* Fix `OptionInfo` type
* Add `@ts-expect-error` for `option-normalizer`
* Avoid type error
* Fix typo
* Add types for lodash fns
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-04-10 15:26:07 +09:00
Simen Bekkhus
033ac94f25
chore: disable string escaping in snapshots ( #12612 )
2022-04-08 09:59:17 +09:00
Harry Hopkinson and fisker Cheung
f98c197b66
Print the number of files that need formatting. ( #12561 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-04-07 09:47:13 +08:00
fisker Cheung
3fd64b4f30
Format .importmap file with json-stringify parser ( #12603 )
2022-04-07 09:37:30 +08:00
dependabot[bot]
f4d4dc1177
Build(deps): Bump strip-ansi from 6.0.0 to 7.0.0 ( #10731 )
2022-04-02 11:24:18 +00:00
dependabot[bot] and fisker Cheung
b1e96cde95
Build(deps): Bump meriyah from 4.2.0 to 4.2.1 ( #12567 )
...
* Build(deps): Bump meriyah from 4.2.0 to 4.2.1
Bumps [meriyah](https://github.com/meriyah/meriyah ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/meriyah/meriyah/releases )
- [Changelog](https://github.com/meriyah/meriyah/blob/master/CHANGELOG.md )
- [Commits](https://github.com/meriyah/meriyah/compare/v4.2.0...v4.2.1 )
---
updated-dependencies:
- dependency-name: meriyah
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* Add test for https://github.com/meriyah/meriyah/commit/6de707a0efb3053767deaa36b1ed6979b0d3f873
* Test https://github.com/meriyah/meriyah/commit/37c63613771e5bc6e23b7da2d92e992c60dafc5a
* Test https://github.com/meriyah/meriyah/commit/d757c6b20ae4f6f4e55a77179726db36cf2bd50b
* Add changelog
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-04-02 20:13:21 +09:00
fisker Cheung
afd0220dea
Move some bundle test code into tests/ ( #12577 )
2022-04-02 16:14:32 +08:00
fisker Cheung
4b73b7e8ab
Refactor format test to async ( #12559 )
2022-04-01 10:21:44 +08:00
fisker Cheung
b429cee273
Fix less/scss format error ( #12536 )
2022-03-29 20:44:28 +08:00
Trevor Scheer and fisker Cheung
570c3180b9
[graphql] Add support for printing SchemaExtension nodes ( #12519 )
...
* Add support for printing SchemaExtension nodes
* Add changelog entry
* Lint
* Update 12519.md
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-03-27 00:59:04 +09:00
Sosuke Suzuki
becb6c9b74
Fix non-idempotent formatting of function calls with complex type arguments ( #12508 )
...
* Fix
* Add TS tests
* Add Flow tests
* Add changelog
2022-03-23 23:09:58 +09:00
fisker Cheung
5ef82125a9
CLI: Don't use logger to print information ( #12477 )
2022-03-21 10:38:48 +08:00
fisker Cheung
ef3fe51380
Fix pluginSearchDirs schema ( #12474 )
...
* Fix `pluginSearchDirs` schema
* `anyOf` -> `oneOf`
* Fix test
2022-03-20 14:50:27 +09:00
dependabot[bot]
425255cc5b
Build(deps): Bump @babel/parser from 7.17.3 to 7.17.7 ( #12460 )
2022-03-20 04:46:45 +00:00
fisker Cheung
ae080df3e7
Enable unicorn/template-indent rule ( #12469 )
2022-03-17 20:13:28 +08:00
fisker Cheung
935d76780a
Prevent plugin search on format test ( #12322 )
2022-03-15 09:44:37 +08:00
fisker Cheung
4b7a39c936
Update chalk to v5 ( #12446 )
2022-03-15 09:40:25 +08:00
fisker Cheung
5a50a0d909
Bundle bin and cli separately ( #12306 )
2022-03-13 22:47:02 +08: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
737dd536c7
Fix lowercasing postcss values ( #12393 )
...
Co-authored-by: HallvardMM no-reply
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-03-09 06:36:14 +08:00
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 Suzuki and fisker 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 Cheung and Alexander 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 Kurami and fisker 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