Commit Graph
3012 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
fisker Cheung 930cf29d15 Share fast-glob module between core and CLI (#13725) 2022-10-26 10:39:40 +08:00
Mark Avery 284cdf4c3d Style: updated failure message to be more formal (#11369) 2022-10-25 12:26:41 +03:00
fisker Cheung 81b8726d0f Make flatContents in ifBreak default to "" (#13700) 2022-10-25 10:20:44 +08: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
fisker Cheung 76068c4f8c Reduce size of typescript plugin (#13697) 2022-10-23 11:19:57 +08: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 14c58aafd8 Replace esutils with @prettier/is-es5-identifier-name (#13545) 2022-10-21 20:33:25 +08:00
fisker Cheung cac9222e5e Update angular-html-parser to v2.1.0 (#13680) 2022-10-20 09:11:57 +08:00
fisker Cheung 9e32250ee0 Minor refactor to graphql print (#13679) 2022-10-20 09:03:47 +08:00
fisker Cheung 5d539d1a17 Refactor handlebars print (#13678) 2022-10-20 08:25:57 +08:00
Tatsunori Uchino ebb8e13282 Markdown: improve whitespace handling in CJK (#11597) 2022-10-19 11:40:59 +03:00
Sosuke Suzukiandfisker Cheung 92a6af22e7 Remove prefer-ast-path-node and add prefer-ast-path-getters (#13648)
* Support `getParent`

* Fix

* Fix

* Refactor

* Rename rule and add tests

* Fix by rule

* Fix error message

* Add error message tests

* Run Prettier!

* Address review

* Improve error message

* Refactor

* Stricter check & refactor

* Minor tweak

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-10-18 14:23:13 +09:00
fisker Cheung 0029f2df75 Move normalizeCliOptions into cli/ (#13547) 2022-10-18 09:58:16 +08:00
fisker Cheung f6fdb2adc7 Refactor yaml print (#13632) 2022-10-17 10:11:43 +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 001d8b01b8 Simplify printHtmlBinding (#13631) 2022-10-14 09:13:33 +08:00
fisker Cheung 6615d07565 Fix template literal indention (#13621) 2022-10-13 13:31:06 +08:00
fisker Cheung 6d6e5177db Refactor template literal print (#13622) 2022-10-12 20:24:48 +08:00
fisker Cheung 31138aadb5 Minor refactor to angular printer (#13610) 2022-10-11 19:09:08 +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 Cheung 8c93abf557 Enable unicorn/switch-case-braces rule (#13585) 2022-10-08 10:44:30 +08:00
fisker Cheung 572452acf8 Reduce size of standalone.js (#13543) 2022-10-04 18:09:24 +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
Lipisandfisker Cheung 4ed2d3c4bc style: Add new ESLint rule no-lonely-if and unicorn/no-lonely-if (#10176)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-29 10:25:54 +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 CheungandGeorgii Dolzhykov f2c50456b8 Switch parse-srcset to npm published version (#13536)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-09-27 16:02:47 +08:00
fisker Cheung 3f21a973e1 Fix CJS proxy (#13535) 2022-09-27 11:13:44 +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 16c9d8bafe Bundle files in ESM (#13266) 2022-09-23 09:46:18 +08:00
fisker Cheung 824690fcc7 Allow parsers initialize asynchronously (#13449) 2022-09-22 15:13:37 +08:00
fisker Cheung 6d551ab0ed Simplify getAncestorNode in css (#13497) 2022-09-20 18:57:07 +08:00