Commit Graph
368 Commits
Author SHA1 Message Date
Sarath Francisandfisker 37255cd58b Fix unstable trailing comment in parenthesized sequence or assignment expression (#19263)
Co-authored-by: fisker <lionkay@gmail.com>
2026-06-03 05:52:34 +08:00
b4b6799096 Fix unstable comment in arrow function with assignment expression body (#19262)
Co-authored-by: itsybitsybootsy <lammlu19>
Co-authored-by: fisker <lionkay@gmail.com>
2026-06-03 02:25:48 +08:00
e79c012e3b Fix unstable comment in arrow function with sequence expression body (#19253)
Co-authored-by: itsybitsybootsy <lammlu19>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2026-06-01 07:41:04 +08:00
Igorandfisker Cheung f4ff697101 Remove spaces in for statement heads (#19188)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2026-05-28 05:28:45 +08:00
Konv Suu 6ae5fecd46 Fix JSDoc multiline type cast alignment in assignment (#19180) 2026-05-20 23:07:24 +08:00
Konv Suu 3031cd3b84 Fix duplicate dangling comments in experimental ternaries (#18963) 2026-04-12 07:39:08 +08:00
fisker Cheungandautofix-ci[bot] 5d0e890a50 Exclude semicolon from DoWhileStatement (#18851)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-03 21:26:09 +08:00
fisker Cheung 5f88a9314f Fix comments not printed error in debugger statement (#18840) 2026-02-02 20:15:31 +08:00
fisker Cheung dba734dc12 Preserve blank line before comments above else (#18813) 2026-01-31 00:21:33 +08:00
fisker Cheung 229b862bce Keep comments after arrow in body (#18775) 2026-01-29 10:41:35 +08:00
fisker Cheung 187680371e Print leading semicolon before type cast comments (#18751) 2026-01-27 22:41:29 +08:00
fisker Cheung cc90434c80 Add tests for variable declaration related issues (#18740) 2026-01-24 18:27:37 +08:00
fisker Cheung 35a7f3027b Ignore semicolon in import/export declarations (#18737) 2026-01-24 17:13:54 +08:00
fisker Cheung 495ed200ae Exclude semicolon from range of ExpressionStatement (#18736) 2026-01-24 16:14:17 +08:00
fisker Cheung 6690ebd09b Fix member chain print (#18720) 2026-01-23 06:36:13 +08:00
Tatsunori Uchinoandfisker 1f678ab02f Treat U+3000 and U+FF5E as CJK punctuation-equivalent in Markdown prose wrap (#18656)
Co-authored-by: fisker <lionkay@gmail.com>
2026-01-18 09:34:45 +08:00
Georgii Dolzhykovandfisker f5e3980c30 Stabilize comment around break and continue in no-semi mode (#7161)
Co-authored-by: fisker <lionkay@gmail.com>
2026-01-18 05:38:52 +08:00
fisker Cheung 62309811c0 Fix inconsistent comment attach between NewExpression and CallExpression (#18669) 2026-01-18 01:30:03 +08:00
fisker Cheung 0b2759943c Update babel to v8.0.0-beta.4 (#18611) 2026-01-15 23:53:14 +08:00
fisker Cheung ae14f16f86 Fix dangling comment print in function parameters (#18623) 2026-01-14 03:53:42 +08:00
fisker Cheung 7733de931e Improve comment handling around calls without arguments (#18615) 2026-01-13 21:40:22 +08:00
fisker Cheung 78ff25b5cf Don't force array/object with short block comment to break (#18617) 2026-01-13 20:47:40 +08:00
Seiyaandfisker 303391a94a Preserve trailing double spaces in JSDoc (#18594)
Co-authored-by: fisker <lionkay@gmail.com>
2026-01-13 00:14:18 +08:00
fisker Cheungandautofix-ci[bot] 68861ae531 Fix dangling comment detection in function parameters and call arguments (#18540)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-29 19:52:29 +08:00
fisker Cheung e2806a30b2 Keep iife function comments in parentheses (#18538) 2025-12-29 18:46:45 +08:00
a533a6b1c7 Preserve spaces around placeholders for template literals (#18460)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-12-16 09:31:32 +08:00
fisker Cheung b6cf29f3d0 Remove redundant parentheses around SequenceExpression and AssignmentExpression (#18142) 2025-12-06 17:10:37 +08:00
fisker Cheung a7b8a4f77d Avoid linebreaks in embedded template interpolations (#18380) 2025-12-06 14:45:25 +08:00
fisker CheungandAlexander Kachkaev 374138ac6b Improve if condition break (#18401)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2025-12-06 14:39:00 +08:00
fisker Cheung 9b8f6e86ac Avoid double parentheses around logical expression (#18397) 2025-12-02 06:00:26 +08:00
fisker 081b84695b Clean changelog_unreleased 2025-11-29 04:59:00 +08:00
c60eca2415 Fix embed html attribute print (#18352)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-11-28 21:40:34 +08:00
fisker Cheung 3e770b95a7 Fix string print (#18351) 2025-11-28 20:52:53 +08:00
fisker c4905e5be9 Clean changelog_unreleased 2025-11-27 16:31:35 +08:00
fisker Cheung 6ba133e80c Improve super class (or single heritage) breaking (#18325) 2025-11-26 19:43:08 +08:00
fisker Cheung 1d0c666f0d Remove empty line in for statement without "update" (#18300) 2025-11-23 16:23:23 +08:00
fisker Cheung 35718f2993 Fix inconsistent call print between CallExpression and NewExpression (#18206) 2025-11-17 22:43:24 +08:00
fisker Cheung 4c4792fe64 Fix format of logical expression as new expression callee (#18245) 2025-11-16 21:50:52 +08:00
fisker Cheung 40d4bb1815 Remove redundant parentheses around JSX element (#18243) 2025-11-16 20:37:39 +08:00
fisker Cheung 6c92f7ea54 Fix inconsistent logical expression print between CallExpression and NewExpression (#18205) 2025-11-04 17:15:27 +08:00
fisker Cheungandautofix-ci[bot] fb66c7dfcf Fix inconsistent break for array literals (#18172)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-04 05:08:53 +08:00
3bc46da961 Add missing parentheses in bitwise operators (#18163)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-10-31 20:45:37 +08:00
fisker Cheung 4d2205926d Fix inconsistent printing of class method comment (#18147) 2025-10-30 22:00:28 +08:00
Konv Suuandfisker c93e014c28 Remove indention in logical expression in Boolean() type coercion (#18087)
Co-authored-by: fisker <lionkay@gmail.com>
2025-10-24 21:42:46 +08:00
fisker Cheung 7a20fe5c5f Improve comment printing around empty statement (#18108) 2025-10-20 17:43:24 +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 3a3db39b32 Improve comment handling between if statement condition and the "body" (#17998) 2025-10-11 16:13:44 +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