Commit Graph
100 Commits
Author SHA1 Message Date
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 8e75fde187 Simplify oxc parser parsing (#17531) 2025-05-28 21:15:20 +08:00
fisker a2dbbc8cbf Group docusaurus dependencies in renovate config 2025-05-28 03:38:01 +08:00
fisker Cheung 242b524eb1 Fix optional chaining as computed key (#17486) 2025-05-28 03:26:56 +08:00
fisker Cheung 9e814108ca Add oxc-ts parser (#17483) 2025-05-27 13:32:23 +08:00
fisker Cheung 3c1475b1e7 Refactor Enum print (#17497) 2025-05-27 11:24:41 +08:00
fisker Cheung 230bba53a9 Forbid new line before arrow (#17516) 2025-05-27 10:46:57 +08:00
fisker Cheung a930383437 Support type cast comments for oxc parser (#17518) 2025-05-27 10:46:20 +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
fisker Cheung 441cb1e132 Fix comments in tagged template literal (#17510) 2025-05-27 09:08:27 +08:00
fisker Cheung 7ef4deece5 Enable preview on main branch (#17507) 2025-05-23 14:44:20 +08:00
fisker b6aedcc374 Update VisitorKeys 2025-05-22 14:05:57 +08:00
fisker a962dfefa5 Update VisitorKeys 2025-05-22 13:57:27 +08:00
fisker Cheung d667dd5b52 Fix production test warning on Node.js 24 (#17456) 2025-05-21 11:58:26 +08:00
fisker Cheung c2ad588ec3 Remove unused tokens from js parsers (#17493) 2025-05-20 14:51:42 +08:00
fisker Cheung 275fc2eb69 Improve isSupported() (#17490) 2025-05-20 13:19:15 +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
fisker Cheung 953a8cc6dd Fix colors detect for logger (#17455) 2025-05-15 11:26:24 +08:00
fisker Cheung d932cf70df Internally use named export in babel parser (#17482) 2025-05-14 12:45:30 +08:00
fisker Cheung a45ef64573 Regenerate yarn.lock (#17476) 2025-05-13 14:31:28 +08:00
fisker Cheung 0c5b05f2d1 Run tests on Node.js v24 (#17442) 2025-05-09 10:57:26 +08:00
fisker Cheung 74726b4838 Fix filenames (#17453) 2025-05-09 02:18:38 +08:00
fisker Cheung 4665f2cbb2 Update badges (#17447) 2025-05-08 19:26:30 +08:00
fisker 60fcf1ae31 Fix CLI test flags 2025-05-06 11:57:42 +08:00
fisker Cheung d4fd92e266 Bundle "Experimental CLI" (#17396) 2025-05-06 10:34:05 +08:00
fisker Cheung 59c635b939 Correctly parse <mj-style> and <mj-raw> (#17400) 2025-05-06 10:31:59 +08:00
fisker Cheungandautofix-ci[bot] 38dc5dee18 Parse Prettier config with yaml (#17410)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-06 08:18:50 +08:00
fisker Cheung eaeb1e7c04 Use search-closest to search Prettier config and Project root (#17412) 2025-04-29 02:39:18 +08:00
fisker Cheung 45d3498377 Switch html-tag-names to @prettier/html-tags (#17408) 2025-04-27 03:06:22 +08:00
fisker Cheung 5dc1a34039 Website: generate llms-full.txt and llms.txt files (#17388) 2025-04-24 17:04:42 +08:00
fisker Cheung c84b1a1190 Minor improvement to doctype print (#17395) 2025-04-24 17:04:12 +08:00
fisker Cheung e7202d63e7 Refactor mockable functionalities (#17392) 2025-04-23 23:42:19 +08:00
fisker Cheung 369817b61f Measure time with performance.now() instead of Date.now() (#17390) 2025-04-23 02:51:20 +08:00
fisker Cheung a8557aa6df Remove stdin mock (#17389) 2025-04-23 02:30:55 +08:00
fisker Cheung 8c7aa6957b Remove outdated mock (#17391) 2025-04-23 02:25:01 +08:00
fisker Cheung 05a5ff54d0 Add failed test back (#17384) 2025-04-22 17:17:47 +08:00
fisker Cheung 6f4c89f8f9 Update snapshot format for CLI test (#17386) 2025-04-21 23:34:55 +08:00
fisker Cheung 42346f2ef7 Run CLI test in child_process (#17382) 2025-04-21 18:58:44 +08:00
fisker Cheung 17a551dea7 Test: Remove --runInBand (#17378) 2025-04-20 22:23:37 +08:00
fisker Cheung b289ecbb19 Remove support for tupleAndRecord (#17363) 2025-04-17 04:53:05 +08:00
fisker Cheung 4b2db262b7 Migrated version.evaluate.cjs to ES Module (#17347) 2025-04-16 13:39:48 +08:00
fisker Cheung c992b0bc1b Update VSCode settings (#17360) 2025-04-16 13:20:54 +08:00
fisker Cheung aa1462e421 Regenerate lock file (#17358) 2025-04-15 14:25:58 +08:00
fisker Cheung 0f3d230689 Update yarn to v4.9.1 (#17357) 2025-04-15 14:05:20 +08:00
fisker 0549e3c562 Add changelog 2025-04-14 23:40:54 +08:00
fisker 0c136da77d Move to peerDependencies 2025-04-14 23:33:03 +08:00
fisker 7f0a17692b Remove @prettier/is-es5-identifier-name 2025-04-14 23:29:41 +08:00
fisker f1abd1cffc Bundle legacy CLI to internal/legacy-cli.mjs 2025-04-14 23:15:10 +08:00
fisker 0a0a16cb97 Merge branch 'next' into cli-next
# Conflicts:
#	package.json
#	yarn.lock
2025-04-14 23:08:42 +08:00
fisker ea9677a08f Fix lock file 2025-04-14 22:48:59 +08:00
fisker 9697144462 Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2025-04-14 22:47:14 +08:00
fisker Cheung 7e892c4613 Minor improvement to expandPatterns (#17345) 2025-04-14 08:15:15 +08:00
fisker Cheung d94700c704 Minor improvement to inferParser (#17328) 2025-04-14 08:13:32 +08:00
fisker Cheung b3d1f8cdc2 Add mjml parser (#17339) 2025-04-14 08:12:53 +08:00
fisker Cheung db1a46aac5 Minor improvement to config loader (#17343) 2025-04-14 08:11:11 +08:00
fisker Cheung 9282520e0e Put pragma related code together (#17346) 2025-04-13 02:44:25 +08:00
fisker Cheung 763e4aac94 Update yarn to v4.9 (#17337) 2025-04-10 11:48:10 +08:00
fisker Cheung fe536ff6b1 Remove extra lines in --file-info and --support-info (#17332) 2025-04-09 15:23:50 +08:00
fisker Cheung 1b4a63c114 Consistent print* function parameters order (#10402) 2025-04-09 11:07:46 +08:00
fisker Cheung 377b231a5d Bundle package into dist/prettier/ (#15825) 2025-04-09 08:38:46 +08:00
fisker Cheung 004e1e0028 Replace lines-and-columns with index-to-position (#17325) 2025-04-09 08:12:22 +08:00
fisker Cheung f406c9cab9 Update find-cache-directory to v6 (#17327) 2025-04-09 07:41:12 +08:00
fisker Cheung 1ec1e58b06 Use util.parseArgs in changelog-for-patch.js script (#17324) 2025-04-08 10:11:38 +08:00
fisker Cheung f86012fa23 Minor tweak to ESBuild addDefaultExport plugin (#17322) 2025-04-08 09:10:10 +08:00
fisker Cheung 3fbc5bfef5 Update yarn to v4.8.1 (#17317) 2025-04-07 15:23:01 +08:00
fisker Cheung ed94c1e808 Update yarn to v4.8 (#17292) 2025-03-28 20:20:59 +08:00
fisker Cheung 6aa8f9725a Move lines-and-columns to devDependencies (#17271) 2025-03-21 03:18:17 +08:00
fisker Cheung e51310d793 Remove special logic in comment attach (#17270) 2025-03-20 23:07:45 +08:00
fisker Cheung 5d8337e8e0 Allow comment only JSONC files (#17269) 2025-03-20 23:01:10 +08:00
fisker Cheung 959ec00486 Simplify glimmer parse (#17265) 2025-03-20 23:00:52 +08:00
fisker Cheung 13fbc5bff8 Assert TemplateElement location (#17266) 2025-03-20 23:00:28 +08:00
fisker Cheung 110cbfa21c Enable Docusaurus Faster (#17262) 2025-03-19 19:56:33 +08:00
fisker Cheung c58cf7ab5f Update cjk-regex to v3.3 (#17263) 2025-03-18 15:46:27 +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 6968a93b26 Fix ReDoS vulnerability (#17246) 2025-03-17 11:18:33 +08:00
fisker Cheung 39e9cabdf5 Support cursorOffset in prettier.__debug.printToDoc() (#17256) 2025-03-17 11:16:46 +08:00
fisker Cheung 8708cc0249 Improve playground when using doc-explorer parser (#17252) 2025-03-15 13:47:43 +08:00
fisker Cheung ac434f9ead Support cursor in printDocToDebug() (#17253) 2025-03-15 12:52:15 +08:00
fisker ce7e969860 Fix CI 2025-03-13 11:58:33 +08:00
fisker Cheung b54f53b9de Add dependency-review-action (#17074) 2025-03-12 18:58:13 +08:00
fisker Cheung 568593a799 Update is-es5-identifier-name (#17247) 2025-03-12 18:57:46 +08:00
fisker Cheung d580d39671 Fix CodeQL Analysis (#17245) 2025-03-12 18:27:29 +08:00
fisker Cheung 95f7367191 Update website dependencies (#17244) 2025-03-12 17:12:55 +08:00
fisker Cheung 0acd1cdff8 Share picocolors and leven with CLI (#17230) 2025-03-11 13:48:56 +08:00
fisker Cheungandautofix-ci[bot] db0afb4472 Docs: document how to use autofix.ci (#17215)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 12:27:27 +08:00
fisker Cheung c118e9db8e Replace chalk with picocolors (#17226) 2025-03-10 11:48:01 +08:00
fisker Cheung 959fc2a46b Group regexp related dependencies in renovate.json5 (#17223) 2025-03-08 15:03:54 +08:00
fisker Cheung e963cb9bae Add "Autofix" action (#15749) 2025-03-07 19:24:30 +08:00
fisker Cheung 40a04dd216 Remove special logic for SequenceExpression as arrow function body (#17187) 2025-03-06 21:18:28 +08:00
fisker aa9a605183 Release v4.0.0-alpha.12 2025-03-06 17:56:22 +08:00
fisker b718f58d45 Update @prettier/cli to v0.7.1 2025-03-06 17:55:54 +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 7af49a1ab3 Fix build script for Node.js v23 (#17208) 2025-03-04 22:11:19 +08:00