Commit Graph
640 Commits
Author SHA1 Message Date
renovate[bot]andfisker 4d226d0165 chore(deps): update dependency @babel/parser to v7.27.4 (#17545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-06-02 23:22:49 +08:00
fisker Cheung 2763319027 Fix HTML format that tag name is an object prototype property (#17501) 2025-06-02 22:56:07 +08:00
fisker Cheung d9b33d2990 Fix function argument incorrectly lowercased (#17502) 2025-06-02 22:55:08 +08:00
fisker Cheung 6fffbdf7c4 Add test for #15463 (#17508) 2025-06-02 22:51:53 +08:00
SUZUKI Sosuke 9f472a2a03 Remove extra indentation for :has pseudo call (#17541)
* Fix indentation condition for `selector-selector`

* Add tests

* Add changelog
2025-06-01 13:11:42 +09:00
4bb056842c Fix markdown inserts unexpected newline in lists (#16637)
* 👍 fix Markdown inserts unexpected newline in lists

I fix markdown inserts unexpected newline in lists.

This issue is reported the below link.
https://github.com/prettier/prettier/issues/8004

* 📝 add change log for PR 16637

* 👕 fix lint error for  changelog_unreleased/markdown/16637.md

There is lint error for  changelog_unreleased/markdown/16637.md,
threfore I fix it with 'prettier --write' command.

* 👍 remove template comment for changelog file

* 👍 Remove markdown: from change log title

I remove 'markdown:' from change log title.

* 👍 fix suggested if condition

The suggested condition of the bellow URL is better than current one.
I fix it.

https://github.com/prettier/prettier/pull/16637#discussion_r1919169511

* Update 16637.md

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2025-06-01 02:39:54 +09:00
SUZUKI Sosuke 0f553baffc Don't print extra semicolon after prettier-ignored index-signature (#17538)
* Don't print extra semicolon after `prettier-ignore`d index-signature

* Update snapshots

* Add changelog
2025-05-30 18:22:16 +09:00
fisker Cheung 4df0a871ca Add hermes parser (#17520) 2025-05-29 15:30:45 +08:00
fisker Cheung f037a2674c Support Angular 20 (JS part) (#17534) 2025-05-29 15:03:17 +08:00
fisker Cheung 242b524eb1 Fix optional chaining as computed key (#17486) 2025-05-28 03:26:56 +08:00
renovate[bot]andfisker 55405ce082 chore(deps): update babel to v7.27.3 (#17523)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-05-28 03:18:28 +08:00
fisker Cheung 9e814108ca Add oxc-ts parser (#17483) 2025-05-27 13:32:23 +08:00
fisker Cheung 230bba53a9 Forbid new line before arrow (#17516) 2025-05-27 10:46:57 +08:00
fisker Cheung 40d9a7e2b0 Update oxc-parser to v0.72.0 (#17517) 2025-05-27 09:56:21 +08:00
fisker Cheungandautofix-ci[bot] c26d23c955 Add oxc parser (#17472)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-27 09:35:31 +08:00
fisker Cheung a358006a92 Rewrite TSMappedType print (#17498) 2025-05-27 09:11:00 +08:00
汐 2604b3eeb3 Add embed format support for script[type="text/jsx"] in html (#17495) 2025-05-27 09:09:14 +08:00
fisker Cheung 441cb1e132 Fix comments in tagged template literal (#17510) 2025-05-27 09:08:27 +08:00
2e78cb5834 Support type cast comments for acorn parser (#17491)
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-20 14:38:34 +08:00
fisker Cheung 4cd55a287d Add a test for angular interpolation (#17433) 2025-05-15 11:35:10 +08:00
fisker Cheung 2349a6ee6f Fix inconsistent assignment format (#17469) 2025-05-15 11:27:32 +08:00
fisker Cheungandautofix-ci[bot] b5378edeeb Fix inconsistent member chain format (#17470)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-15 11:27:22 +08:00
Arnaud Barréandfisker 98a06cd5b9 Preserve empty directive in JS for non Babel parsers (#17461)
Co-authored-by: fisker <lionkay@gmail.com>
2025-05-15 02:17:06 +09:00
fisker Cheung 74726b4838 Fix filenames (#17453) 2025-05-09 02:18:38 +08:00
fisker Cheung 59c635b939 Correctly parse <mj-style> and <mj-raw> (#17400) 2025-05-06 10:31:59 +08:00
Maxime Brazeillesandfisker 906565775b Enabling CSS formatting within <mj-style> tag (#17338)
Co-authored-by: fisker <lionkay@gmail.com>
2025-05-06 09:46:15 +08:00
o-m12a d4684bf10e Add more tests for reserved words (#17416) 2025-04-29 22:41:13 +08:00
SUZUKI Sosukeandautofix-ci[bot] d3332e06d3 Preserve spaces between CSS words and embedded expression (#17398)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-25 10:11:50 +08:00
Will Nayesandfisker 21c6f43612 Ignore single files with @noformat / @noprettier (#17344)
Co-authored-by: fisker <lionkay@gmail.com>
2025-04-18 21:28:47 +08:00
fisker Cheung b289ecbb19 Remove support for tupleAndRecord (#17363) 2025-04-17 04:53:05 +08:00
SUZUKI Sosuke bd959e1757 Support @utility directive for Tailwind (#17362)
* Ignore operators in `@utility` directive

* Add tests for `@utility` directives

* Add changelog
2025-04-16 11:55:21 +09:00
fisker Cheung b3d1f8cdc2 Add mjml parser (#17339) 2025-04-14 08:12:53 +08:00
f3486cfbc5 Remove extra colon after track in angular @for control-flow (#17280)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-04-14 08:10:04 +08:00
Florian Diemingerandfisker 91c563e323 Fix adjacent markdown syntax in blockquote (#16596)
Co-authored-by: fisker <lionkay@gmail.com>
2025-03-28 20:00:57 +08:00
fisker Cheung 5d8337e8e0 Allow comment only JSONC files (#17269) 2025-03-20 23:01:10 +08:00
fisker Cheung 2b3710d805 Fix embedded format with cursorOffset (#17254) 2025-03-17 11:23:17 +08:00
fisker Cheung 44d7298f2d Support TemplateLiteral introduced in Angular 19.2 (#17238) 2025-03-17 11:20:49 +08:00
fisker Cheung 40a04dd216 Remove special logic for SequenceExpression as arrow function body (#17187) 2025-03-06 21:18:28 +08:00
fisker Cheung edbc835c9f Fix multiple comments in LogicalExpression and IntersectionType (#17193) 2025-03-05 02:48:25 +08:00
fisker Cheung 6a3c132be4 Add parentheses to numbers in optional member expression (#17190) 2025-03-05 02:47:46 +08:00
fisker Cheung 43d4f962f0 Fix missing parentheses in ConditionalTypeAnnotation (#17196) 2025-03-03 09:09:29 +08:00
fisker Cheung ff3b785214 Support import type attribute in TSImportType (#16881) 2025-02-26 15:29:05 +08:00
fisker Cheung 73d26d777d Add parentheses to AssignmentExpression in class property keys (#17145) 2025-02-26 14:07:05 +08:00
ff3bb50881 Add parentheses to SequenceExpression in ReturnStatement and ExpressionStatement (#17085)
Co-authored-by: tongyu <tongyu10287@xwtec.cn>
Co-authored-by: fisker <lionkay@gmail.com>
2025-02-26 11:44:37 +09:00
fisker Cheung f818a362d6 Split huge SCSS test files (#17164) 2025-02-25 08:47:34 +08:00
renovate[bot]andfisker 7ce2a35ef7 chore(deps): update dependency postcss to v8.5.3 (#17158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-02-20 22:22:24 +08:00
fisker Cheung 64e7dab1fd Fix links to Prettier/Babel/Jest website (#17079) 2025-02-15 12:18:09 +08:00
Louis Trezzini ff5c889a7e fix test with invalid name (#17075) 2025-02-08 10:03:33 +08:00
Seiyaandfisker Cheung 97d8115d18 Resolve rule of fill violation in JSX and add assertion. (#16700)
* add stricter assertion into fill()

* resolve rule of fill issue. some comments and naming can be problematic.

* cleanup

* update comments

* rename printWhitespace -> printStringOrLine

* refine isValidSeparator() a bit

* remove FIXME comment for fixed issue

* fix idempotency problem in MDX

* add changelog

* rename assertDocFill() -> assertDocFillParts()

* add test for assertDocFillParts()

* replace cleanDoc(doc) === "" by isEmptyDoc(doc)

* Update src/document/utils/assert-doc.js

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

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-01-21 13:09:32 +09:00
fisker Cheung 88d670ecd4 Add tests for import.defer() (#17027) 2025-01-20 14:19:35 +08:00