Commit Graph
100 Commits
Author SHA1 Message Date
fisker Cheung 12607085aa Fix call signatures print in --no-semi mode (#18118) 2025-10-24 20:29:43 +08:00
fisker Cheung 445074d1f3 Refactor interface body and object type print (#14111) 2025-10-22 22:38:18 +08:00
fisker ceeaff8c1c Remove dependabot 2025-10-21 23:32:31 +08:00
fisker Cheung 0162263830 Minor clean up after Babel v8 upgrade (#18117) 2025-10-21 23:25:11 +08:00
fisker Cheung fc70e992a7 Simplify TSModuleDeclaration print (#18116) 2025-10-21 22:55:25 +08:00
fisker Cheung 7de88d638b Replace printInterface with printClass (#18091) 2025-10-21 21:10:51 +08:00
fisker Cheung a94d3cf453 Remove extra indention in class type parameters (#18094) 2025-10-21 17:48:36 +08:00
fisker Cheung d4bd42f7f4 Fix inconsistent comment in property signature (#18110) 2025-10-21 17:40:46 +08:00
fisker Cheung 7eb39eafc0 Remove extra blank line in type alias (#18109) 2025-10-21 00:39:09 +08:00
fisker Cheung 7a20fe5c5f Improve comment printing around empty statement (#18108) 2025-10-20 17:43:24 +08:00
fisker Cheung db0d52cbe6 Add support for plugin.printer.printPrettierIgnored() (#18070) 2025-10-20 16:18:32 +08:00
fisker Cheung cfb37fcb1d Add test for #10814 (#18105) 2025-10-20 00:41:26 +08:00
fisker Cheung 561d62a212 Fix comment attach in ForXStatement (#18099) 2025-10-19 18:49:23 +08:00
fisker Cheung 66eaaaa69a Use printObject to print import attributes (#17329) 2025-10-19 18:37:06 +08:00
fisker Cheung 046ec13b0a Forbid html in changlog title (#18097) 2025-10-19 04:44:05 +08:00
fisker Cheung 14f30a9b52 Run tests on Node.js v25 (#18096) 2025-10-18 08:17:14 +08:00
fisker Cheung 6a3797983a Improve types for visitor keys (#18095) 2025-10-17 20:57:52 +08:00
fisker Cheung eca05c1750 Fix visitor keys for TypePredicate (#18090) 2025-10-17 04:10:37 +08:00
fisker Cheung 11a93a02a1 Run Node.js v14 test on macos-15-intel instead of macos-13 (#18003) 2025-10-17 04:09:30 +08:00
fisker Cheung cf35887b99 Fix plugin name in options (#18082) 2025-10-16 07:42:24 +08:00
fisker Cheung 9871b4931c Fix vistor keys for FunctionExpression (#18084) 2025-10-16 07:18:38 +08:00
fisker Cheung d3da764b37 Format files in tests/integration/plugins/ (#18083) 2025-10-16 06:56:41 +08:00
fisker Cheung 3476a69e73 Fix getFileInfo (#18081) 2025-10-16 05:50:43 +08:00
fisker Cheung d6f7f142ab Allow plugin to override estree printer (#18072) 2025-10-16 05:47:59 +08:00
fisker Cheung 8fe9fb34e6 Refresh yarn.lock file (#18075) 2025-10-15 06:19:13 +08:00
fisker Cheung 3c469a820e Update node-style-text to v2 (#18073) 2025-10-14 19:30:07 +08:00
fisker Cheung 172c0051e3 Simplify use of getVisitorKeys by putting it directly on options (#18059) 2025-10-12 21:41:14 +08:00
fisker Cheung 1b9c98269e Enable @stylistic/no-trailing-spaces rule (#18060) 2025-10-12 21:24:05 +08:00
fisker Cheung 160288e1aa Simplify range format (#18058) 2025-10-12 20:47:36 +08:00
fisker Cheung 0f74812b5c Pass ancestors to plugin.print.canAttachComment() (#18055) 2025-10-12 19:56:44 +08:00
fisker Cheung 356e7d9f52 Minor tweak to parseIeConditionalComment (#18051) 2025-10-12 02:38:23 +08:00
fisker Cheung 4061f83ad8 Rewrite html parsing (#18050) 2025-10-12 02:00:03 +08:00
fisker Cheung d7a3a76268 Update angular-html-parser to v10 (#18049) 2025-10-11 23:23:34 +08:00
fisker Cheung d9e12fdd97 Angular: Fix formatting of "non-null assertion" (#18047) 2025-10-11 18:58:12 +08:00
fisker Cheung 5abc81f055 Improve formatting for default type on type parameters (#18043) 2025-10-11 16:15:50 +08:00
fisker Cheung 3a3db39b32 Improve comment handling between if statement condition and the "body" (#17998) 2025-10-11 16:13:44 +08:00
fisker Cheung b82c542a06 Add tests (#18042) 2025-10-11 03:21:56 +08:00
fisker Cheung ae43bcf68c Add tests to close issue 16121 (#18040) 2025-10-11 02:58:57 +08:00
fisker Cheung aba13a2e36 Forbid use 2nd and 3rd parameter in AstPath callbacks (#18039) 2025-10-11 02:15:49 +08:00
fisker Cheungandautofix-ci[bot] 858ace6ffa Forbid rename path in callbacks (#18038)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-11 01:46:03 +08:00
fisker Cheung 05b1a783d1 Use printCallExpression to print TSExternalModuleReference (#18035) 2025-10-11 01:08:24 +08:00
fisker Cheung fc7da89a54 Improve require() call with comments (#18037) 2025-10-10 23:43:08 +08:00
fisker Cheung fbcdccbf27 Remove parts from printEstree (#18034) 2025-10-10 22:53:03 +08:00
fisker Cheung b703190f8b Refactor GenericTypeAnnotation and TSTypeReference check (#18033) 2025-10-10 22:33:30 +08:00
fisker Cheung b80e9fa795 Cleanup TaggedTemplateExpression print (#18032) 2025-10-10 21:33:24 +08:00
fisker Cheung b85bff8d1f Remove printFunctionTypeParameters (#18031) 2025-10-10 21:20:07 +08:00
fisker Cheung 7df3ed6e3a Refactor and clean JS visitor keys (#18030) 2025-10-10 18:05:13 +08:00
fisker Cheung 65d1dfb422 Cleanup {JSXOpeningElement,TSClassImplements,TSInterfaceHeritage}.typeParameters (#18028) 2025-10-10 16:41:24 +08:00
fisker Cheung a8c033a493 Remove unnecessary parts (#18027) 2025-10-10 15:52:40 +08:00
fisker Cheung 274b249223 Minor tweak to semicolon print (#18026) 2025-10-10 15:04:00 +08:00
fisker 357b4bdae0 Ignore node in renovate config (ignoreDeps) 2025-10-09 22:10:20 +08:00
fisker Cheung 1679b69cdc Remove snapshot-diff (#18019) 2025-10-09 22:00:33 +08:00
fisker Cheung 36fe05ac8d Ignore node in renovate config (#18018) 2025-10-09 22:00:12 +08:00
fisker Cheungandautofix-ci[bot] 4eb0f86ab6 Test all invalid syntax on oxc-ts parser (#17933)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-09 14:14:56 +08:00
fisker Cheung eabd254577 Fix "Bundler Friendly" test (#17995) 2025-09-28 21:27:58 +08:00
fisker Cheung be48d262e7 Allow TOML front matter formatted by other plugins (#17991) 2025-09-28 20:13:39 +08:00
fisker Cheung bc4181646e Lint .jsx files (#17988) 2025-09-27 17:13:24 +08:00
fisker Cheung e492686379 Fix style of docsearch button (#17987) 2025-09-27 11:48:43 +08:00
fisker Cheung 8aeb4599ec Simplify splitWithSingleSpace (#17974) 2025-09-27 10:49:14 +08:00
fisker Cheung ed8e2056f9 Minor tweak to locationForRange (#17968) 2025-09-26 18:06:14 +08:00
fisker Cheung 73b79fd924 Rewrite Array#reduce in getFlowScalarLineContents (#17975) 2025-09-25 21:56:30 +08:00
fisker Cheung 267518dc49 Rewrite Array#reduce() in getBlockValueLineContents (#17973) 2025-09-25 21:26:11 +08:00
fisker Cheung c02eea0fcd Replace Array#reduce() in printEmbedCss (#17972) 2025-09-25 20:16:31 +08:00
fisker Cheung 1fc2a0e04b Replace Array#reduce() (#17970) 2025-09-25 19:59:16 +08:00
fisker Cheung 00e3b7f433 Replace an array.reduce() (#17969) 2025-09-25 19:58:43 +08:00
fisker Cheung 397572ec2a Minor tweak to isStyledJsx (#17966) 2025-09-25 18:18:38 +08:00
fisker Cheung 9e60e840dd Refactor js embed print to use test/print pattern (#17963) 2025-09-25 09:00:10 +08:00
fisker Cheung be9adeb38b Split HTML attribute printers into test/print (#17961) 2025-09-25 08:21:23 +08:00
fisker Cheung 11540f6377 Simplify embed html detection (#17962) 2025-09-25 07:18:04 +08:00
fisker Cheung aa556151e2 Refactor embed format in HTML (#17960) 2025-09-25 05:45:58 +08:00
fisker Cheung 2ac07333b6 More parsers on reserved word tests (#17959) 2025-09-25 03:51:07 +08:00
fisker Cheung d8b26a69f1 Add tests for invalid JSX code (#17958) 2025-09-25 03:24:39 +08:00
fisker Cheung 80a016b0f9 Clean up Babel parser (#17956) 2025-09-24 18:47:51 +08:00
fisker Cheung 21e98808a8 Add front-matter/index.js (#17955) 2025-09-24 08:56:18 +08:00
fisker Cheung 67329f4108 Use imports to replace hack in build script (#17953) 2025-09-24 08:24:17 +08:00
fisker Cheung 07007103d4 Use arrow function in simple functions (#17951) 2025-09-24 06:09:15 +08:00
fisker Cheung 857b380010 Improve editorConfigToPrettier (#17512) 2025-09-24 06:02:25 +08:00
fisker Cheung e48f0eaf78 Fix TSMappedType format with babel-ts parser (#17785) 2025-09-24 05:49:53 +08:00
fisker Cheung b35ef6a549 Refactor Markdown pragma related logic (#17950) 2025-09-24 05:43:10 +08:00
fisker Cheung 3c8e5aa8e6 Add "sideEffects": false to package.json (#17949) 2025-09-24 04:20:44 +08:00
fisker Cheung 4ec2648e61 Add location information to parseFrontMatter() (#17948) 2025-09-24 04:15:01 +08:00
fisker Cheung 6df61307be Avoid unnecessary getUnescapedAttributeValue() call (#17947) 2025-09-24 02:35:31 +08:00
fisker Cheung e1f0bdceb2 Fix HTML attribute value in AST massage (#17944) 2025-09-24 02:20:56 +08:00
fisker Cheung c885875926 Fix HTML frontMatter in AST massage (#17946) 2025-09-24 02:19:38 +08:00
fisker Cheung 85e1c89e3b Fix HTML docType value in AST massage (#17945) 2025-09-24 02:13:27 +08:00
fisker Cheung 6ec66d80fc Improve single expression detection (#17943) 2025-09-24 02:02:37 +08:00
fisker Cheung 68aaa32b34 Update yarn to v4.10.3 (#17942) 2025-09-24 01:39:32 +08:00
fisker Cheung b7b2b0d434 Print trailing comma in TSImportType options (#17798) 2025-09-23 17:51:36 +08:00
fisker Cheung 29622cc4f7 Fix comments get duplicated in angular interpolation (#17862) 2025-09-23 17:42:16 +08:00
fisker Cheung c9df58f5f9 Enable @stylistic/spaced-comment rule (#17941) 2025-09-23 17:24:03 +08:00
fisker Cheung f7598377bd Fix types entry for @prettier/plugin-{hermes,oxc} (#17937) 2025-09-23 06:28:11 +08:00
fisker Cheung 74744dc568 Test invalid syntax on oxc-ts parser (#17593) 2025-09-23 05:12:51 +08:00
fisker Cheung e2789c3395 Forbid empty type argument/parameter list in oxc-ts parser (#17870) 2025-09-23 02:09:33 +08:00
fisker Cheung 52102c976c Regenerate lock file (#17927) 2025-09-19 15:34:13 +08:00
fisker Cheung 3391910ae4 Reinstall @prettier/cli (#17926) 2025-09-19 15:13:52 +08:00
fisker Cheung d0865a72d9 Update yarn to v4.10 (#17920) 2025-09-19 14:18:01 +08:00
fisker Cheung afd57d3247 Allow parser.preprocess to return a Promise (#17679) 2025-09-12 05:03:05 +08:00
fisker Cheung 0e4baf561d Fix config file names order (#17685) 2025-09-12 05:02:16 +08:00
fisker Cheung 1520a58879 Fix format of comments around ChainExpression (#17723) 2025-09-12 05:01:51 +08:00
fisker Cheung 071d2d8fa0 Add automated job to clean cspell.json yearly (#17900) 2025-09-12 02:42:33 +08:00