Commit Graph
186 Commits
Author SHA1 Message Date
fisker Cheung a7b8a4f77d Avoid linebreaks in embedded template interpolations (#18380) 2025-12-06 14:45:25 +08:00
fisker Cheung e240f15e75 Major refactor (#18381) 2025-12-01 07:25:25 +08:00
renovate[bot]andfisker fad27abf37 chore(deps): update dependency meriyah to v7 (#18332)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-11-27 13:19:42 +08:00
fisker Cheung d548a87684 Fix a miss used willPrintOwnComments (#18166) 2025-10-31 09:02:39 +08:00
fisker Cheung 4d2205926d Fix inconsistent printing of class method comment (#18147) 2025-10-30 22:00:28 +08:00
fisker Cheung d4bd42f7f4 Fix inconsistent comment in property signature (#18110) 2025-10-21 17:40:46 +08:00
fisker Cheung 561d62a212 Fix comment attach in ForXStatement (#18099) 2025-10-19 18:49:23 +08:00
fisker Cheung be48d262e7 Allow TOML front matter formatted by other plugins (#17991) 2025-09-28 20:13:39 +08:00
cd42072105 Support format TOML Front Matter (#17965)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-28 19:36:04 +08:00
fisker Cheung ed8e2056f9 Minor tweak to locationForRange (#17968) 2025-09-26 18:06:14 +08:00
a5296b3d7b Prevent break long module name in more places (#17908)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-23 04:14:17 +08:00
fisker Cheung 23f95644f5 Stop auto test babel-flow in tests (#17686) 2025-07-28 16:19:26 +08:00
renovate[bot]andfisker 034f826e17 chore(deps): update flow-parser (#17755)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-07-26 12:12:03 +08:00
renovate[bot]andfisker c468d33f16 chore(deps): update dependency oxc-parser to v0.75.0 (#17672)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-06-26 05:28:04 +08:00
fisker Cheung 0926587a5f Allow const without initializer in oxc-ts parser (#17654) 2025-06-24 00:26:42 +08:00
renovate[bot]andfisker 1652973553 chore(deps): update dependency hermes-parser to v0.29.0 (#17631)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-06-20 20:24:19 +08:00
fisker Cheung 7a91dc4a59 Revert "Support type cast comments for espree parser (#17587)" (#17614) 2025-06-19 15:49:38 +08:00
renovate[bot]andfisker d63e3c301d chore(deps): update dependency oxc-parser to v0.73.0 (#17604)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-06-15 04:14:13 +08:00
fisker Cheung 17cdff607a Support type cast comments for meriyah parser (#17600) 2025-06-13 17:27:07 +08:00
fisker Cheung 3b0f33539f Support type cast comments for espree parser (#17587) 2025-06-13 16:56:42 +08:00
fisker Cheung 2c7f02a7ab Enable decorators tests on flow and typescript parser (#17484) 2025-06-09 16:28:45 +08:00
86fc1c1091 chore(deps): update dependency oxc-parser to v0.72.2 (#17532)
Co-authored-by: overlookmotel <theoverlookmotel@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-06-07 18:31:27 +08:00
fisker Cheung 4df0a871ca Add hermes parser (#17520) 2025-05-29 15:30:45 +08:00
fisker Cheung 9e814108ca Add oxc-ts parser (#17483) 2025-05-27 13:32:23 +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 441cb1e132 Fix comments in tagged template literal (#17510) 2025-05-27 09:08:27 +08:00
fisker Cheung d667dd5b52 Fix production test warning on Node.js 24 (#17456) 2025-05-21 11:58:26 +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 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 Cheung 42346f2ef7 Run CLI test in child_process (#17382) 2025-04-21 18:58:44 +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 b3d1f8cdc2 Add mjml parser (#17339) 2025-04-14 08:12:53 +08:00
fisker Cheung 004e1e0028 Replace lines-and-columns with index-to-position (#17325) 2025-04-09 08:12:22 +08:00
fisker Cheung c118e9db8e Replace chalk with picocolors (#17226) 2025-03-10 11:48:01 +08:00
fisker Cheung a94d2e7873 Replace execa with nano-spawn (#17128) 2025-02-25 08:07:03 +08:00
fisker Cheung 5b3dd6a6ef Add script to ensure format test directories contains format test script (#17077) 2025-02-08 17:27:43 +08:00
fisker Cheung c450b6ad8e Remove TLA from jest.config.js (#16938) 2024-12-16 11:19:18 +08:00
fisker Cheung 07b468917e Remove blank lines between imports (#16450) 2024-09-29 17:56:37 +08:00
fisker Cheung 1bb69dfd13 Cleanup for meriyah parser (#16677) 2024-09-27 17:57:44 +08:00
fisker Cheung d2c415deae Update meriyah to v6 (#16667) 2024-09-18 19:48:57 +08:00
fisker Cheung c03a12ad2b Enable require-unicode-regexp and regexp/strict rule (#16408) 2024-06-18 07:52:54 +09:00
Klaus Hott Vidalandfisker 16449ce914 renaming jsfmt.spec.js to format.test.js (#16244)
Co-authored-by: fisker <lionkay@gmail.com>
2024-05-06 10:25:10 +08:00
Sam Zhou ae8dcc48f5 Component syntax and related language features printing support (#16191)
* Component syntax and related language features printing support

Relevant Flow docs:
- https://flow.org/en/docs/react/component-syntax/
- https://flow.org/en/docs/react/render-types/

* Update issue number

* declare new test as unstable

* fix tests
2024-04-04 23:10:00 +09:00
fisker Cheung 6eda34db44 Test: Rename run_spec to runFormatTest (#15943) 2024-01-19 17:20:24 +08:00
fisker Cheung 5b215c3d26 Fix comment print in if (#15826) 2024-01-03 11:20:17 +08:00
fisker Cheung 1dc924f2f2 Add jsonc parser (#15831) 2024-01-02 10:59:34 +08:00
Alexander Kachkaev 1ea2fd059a Add eslint-plugin-simple-import-sort (#15817) 2023-12-18 03:34:12 +08:00