Commit Graph
2382 Commits
Author SHA1 Message Date
fisker Cheung 106c009245 Add __debug apis to cjs version (#13731) 2022-10-26 10:55:37 +08:00
fisker Cheung b7223354a1 Make resolveParser work like v2 (#13732) 2022-10-26 10:55:22 +08:00
Mark Avery 284cdf4c3d Style: updated failure message to be more formal (#11369) 2022-10-25 12:26:41 +03:00
Sosuke Suzuki bb04cf072e Merge branch 'main' into next 2022-10-25 01:42:41 +09:00
MillyandSosuke Suzuki ca246aface Fix --cache set only if with --write or no-different (#13016)
* Fixed typo

* Return early if file does not exist

* Added tests for cache

* Added `mockWriteFileErrors` option to run helper

* Added tests for write error

* Remove files with differences from cache

* Add `getCliArguments` utility function

Refactor

* Fix lint

* Revert "Fix lint"

This reverts commit 18be64b7c42cd669496d59ff64bd534b8e03c3df.

* Revert "Add `getCliArguments` utility function"

This reverts commit d653fe10a92390102ae97cb43b2efcbb5c3c9140.

* Refactor with `cliArguments` variable

Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2022-10-24 23:55:36 +09:00
Georgii Dolzhykov 7682464887 Tweak gap regex for Flow (#13703) 2022-10-24 12:20:44 +03:00
Sosuke Suzuki d09bc86c9f Enable prettier-internal-rules/prefer-fs-promises-submodule for all files (#13722)
* Enable `prefer-fs-promises-submodule` for all files

* Fix problems
2022-10-23 22:23:44 +09:00
Sosuke Suzuki f8773fcd6a Remove rimraf package (#13721)
* Remove `rimraf` from `draft-blog-post`

* Remove `rimraf` from `sync-flow-tests`

* Remove `rimraf` from cache tests

* Uninstall `rimraf`
2022-10-23 22:23:30 +09:00
fisker Cheung 2d23d33a40 Remove since from options and languages (#13699) 2022-10-23 11:18:36 +08:00
Georgii Dolzhykov e67d8d6c1e Remove support for Flow comment types (#13687) 2022-10-23 01:00:01 +03:00
fisker Cheung 9cf73d3610 Use c8 ignore comments (#13683) 2022-10-22 23:33:08 +08:00
fisker Cheung 0e06cc4d62 Minor refactor to stripTrailingHardline (#13695) 2022-10-21 23:33:33 +08:00
fisker Cheung 9413e05a8b Run tests on Node.js 19 (#13682) 2022-10-20 09:12:39 +08:00
Tatsunori Uchino ebb8e13282 Markdown: improve whitespace handling in CJK (#11597) 2022-10-19 11:40:59 +03:00
fisker Cheung 4a8de7f459 Improve test (#13641) 2022-10-18 10:01:09 +08:00
fisker Cheung 927a214ca3 Refactor MDX print (#13640) 2022-10-17 10:10:35 +08:00
Alexander Kachkaev 8df3b5ee60 Markdown: Preserve multiple spaces in inline code (#13590) 2022-10-14 10:58:03 +03:00
fisker Cheung 6615d07565 Fix template literal indention (#13621) 2022-10-13 13:31:06 +08:00
fisker Cheung 3ca842d81c Update @angular/compiler to v14 (#13609) 2022-10-11 11:26:30 +08:00
Sosuke Suzuki 28b7f2bffd Consistent dangling comments formatting for tuple and array (#13608)
* Consistent dangling comments formatting for tuple and array

* Add tests

* Add changelog

* Fix changelog

* Rename

* Refactor

* Fix ternary

* Remove needless ternary
2022-10-11 07:22:26 +09:00
Georgii Dolzhykov effe30a3b8 Playground: show preprocessed AST (#13606) 2022-10-10 14:26:55 +03:00
Georgii Dolzhykov 2c1532b823 Merge remote-tracking branch 'remotes/upstream/main' into next 2022-10-09 22:10:00 +03:00
Anders Kaseorg f38111fec6 markdown: Preserve inline code line breaks if --prose-wrap=preserve (#11373) 2022-10-09 16:53:12 +03:00
fisker Cheung a545d6f58d Merge branch 'main' into next 2022-10-08 16:23:47 +08:00
fisker CheungandSosuke Suzuki 31a796d32c Restructure package files, add exports (#13530)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-10-06 15:20:19 +08:00
fisker Cheung 72c811bfa7 Enable some ESLint rules (#13548) 2022-10-04 00:14:19 +08:00
Georgii Dolzhykov b893eeefb2 Update angular-html-parser (#13578) 2022-10-03 16:38:22 +03:00
Jed Fox bfb09bf214 Format pseudo-selector args like a function call (#13577) 2022-10-02 11:11:44 -04:00
fisker Cheung f3d1790533 Enable logical-assignment-operators rule (#13529) 2022-09-29 10:40:13 +08:00
fisker Cheung f32daf742f Merge branch 'main' into next 2022-09-28 16:00:06 +08:00
2bbbe1a8d1 Improve MDX range ignore support (#12208)
Co-authored-by: Nick Rutten <nickrttn@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-28 10:02:17 +08:00
fisker Cheung bb2104dd7c Support optional chaining in .at() transform (#13528) 2022-09-26 22:54:17 +08:00
Georgii Dolzhykov 6d4d011252 Fix unstable embedded template literals (#13532) 2022-09-26 16:24:41 +03:00
James C. Davisandfisker Cheung 38611cb16e [handlebars] correctly format custom "else if" blocks (#13507)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-26 11:04:50 +08:00
Georgii Dolzhykov 04faada98b Refactor handling or whitespace-only template literals in JS embed (#13517)
* Refactor handling or whitespace-only template literals in JS embed

* Rename "format" to "embed"
2022-09-25 15:26:14 +03:00
fisker Cheung 5465517f4b Bundle third-party.js in ESM (#13509) 2022-09-23 19:24:54 +08:00
fisker Cheung 16c9d8bafe Bundle files in ESM (#13266) 2022-09-23 09:46:18 +08:00
fisker Cheung 2bc757554b Update acorn & espree (#13506) 2022-09-22 19:11:34 +08:00
fisker Cheung 824690fcc7 Allow parsers initialize asynchronously (#13449) 2022-09-22 15:13:37 +08:00
Sosuke Suzuki 63be4c7f8b SCSS: Fix formatting string value that includes escape \ (#13487)
* Ignore ignoreing escape for `value-string`

* Revert

* Add changelog
2022-09-18 23:42:16 +09:00
Georgii Dolzhykov 1f46accde5 Support nestled JSDoc comments (#13445) 2022-09-13 15:24:45 +03:00
Georgii Dolzhykov d2a0c778ef Fix merged line comments (#13438) 2022-09-08 09:45:33 +03:00
renovate[bot]andfisker Cheung bd5f91545f Update dependency typescript to v4.8.2 (#13381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-07 21:02:51 +08:00
Georgii Dolzhykov 5766433a62 Get rid of regexp and handle cursor in trim in doc printer (#13426) 2022-09-06 15:57:47 +03:00
Georgii Dolzhykov 2a70ee49a6 Fix leading comments in mapped types with readonly (#13427) 2022-09-06 11:55:11 +03:00
Georgii Dolzhykov 39a89c6519 Don't break signature of hugged function expression if parameters are identifiers without types (#13410) 2022-09-03 17:49:57 +03:00
renovate[bot]andfisker 40ffe244a3 Update dependency espree to v9.4.0 (#13378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-09-03 10:37:05 +08:00
Sosuke Suzuki 40af3ed1ca Keep trailing-comma for var function (#13402)
* Keep trailing-comma for last el

* Make hasComma function

* Fix tests

* Add changelog
2022-08-31 00:59:34 +09:00
Georgii Dolzhykov f5610b8510 Hug object types in function parameters in Flow like in TS (#13396) 2022-08-30 17:38:50 +03:00
fisker Cheung 17cb07665f Improve css/yaml embed traverse (#13294) 2022-08-30 11:00:12 +08:00