Commit Graph
49 Commits
Author SHA1 Message Date
fisker Cheung 5017d66ea7 Test: Update printWidth indicator (#10293) 2026-01-31 03:45:41 +08:00
fisker Cheungandautofix-ci[bot] ed5bb0bf62 Refactor tests (#18743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-25 10:30:19 +08:00
fisker Cheung 29c3f97dec Keep ChainExpression AST unchanged (#18661) 2026-01-21 08:26:02 +08:00
renovate[bot]andfisker cc35f506e2 Update Angular Estree parser (#18636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2026-01-15 05:27:44 +08:00
fisker Cheung 9464003348 Angular 21.1: Support consecutive switch cases (#18593) 2026-01-15 05:14:58 +08:00
fisker Cheung ad633008b4 Angular 21.1: Support spread element in array and object literals (#18596) 2026-01-14 05:13:21 +08:00
Ravindu Liyanapathiranaandfisker f2ce657254 Don't print Angular attribute values that are single template/string literals, on new lines (#18378)
Co-authored-by: fisker <lionkay@gmail.com>
2025-12-09 14:17:41 +08:00
renovate[bot]andfisker f4289b9d6c chore(deps): update angular estree (major) (#18294)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-11-21 23:39:09 +08:00
fisker Cheung fb6f43c529 Add test for 18223 (#18237) 2025-11-16 19:07:00 +08:00
renovate[bot]andfisker 1bc979c8da Update dependency angular-html-parser to v9 (#17365)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-10-11 20:23:11 +08:00
fisker Cheung d9e12fdd97 Angular: Fix formatting of "non-null assertion" (#18047) 2025-10-11 18:58:12 +08:00
fisker Cheung 29622cc4f7 Fix comments get duplicated in angular interpolation (#17862) 2025-09-23 17:42:16 +08:00
renovate[bot]andfisker a6bbdad8ca chore(deps): update dependency jest to v30.1.1 (#17819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-08-30 15:36:22 +08:00
fisker Cheung aed5c585fa Support Angular 20.1 (#17722) 2025-07-18 10:41:03 +08:00
fisker Cheung f037a2674c Support Angular 20 (JS part) (#17534) 2025-05-29 15:03:17 +08:00
fisker Cheung 4cd55a287d Add a test for angular interpolation (#17433) 2025-05-15 11:35:10 +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
fisker Cheung 44d7298f2d Support TemplateLiteral introduced in Angular 19.2 (#17238) 2025-03-17 11:20:49 +08:00
fisker Cheung 8e8260e533 Improve angular ICU expression print (#16922) 2025-01-09 20:08:05 +08:00
fisker Cheung 73efde346a Angular: Support typeof expression (#16862) 2024-11-25 21:39:05 +08:00
SUZUKI Sosuke 5ca2fc9be8 Support Angular @let declaration syntax (#16474)
gmail.com>
2024-07-13 18:24:57 +09:00
fisker CheungandSosuke Suzuki 8a88cdce6d Respect trailingComma in angular templates (#15926)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2024-05-29 00:41:49 +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
fisker Cheung 6eda34db44 Test: Rename run_spec to runFormatTest (#15943) 2024-01-19 17:20:24 +08:00
SUZUKI Sosuke 06c7e52da6 Avoid adding colon for track in 3rd expression of for blocks (#15887) 2024-01-08 15:20:06 +09:00
fisker Cheung 84c169ecc2 Fix prettier-ignored angular control flow (#15827) 2024-01-02 13:48:34 +08:00
SUZUKI Sosukeandfisker 153ffd5104 Support formatting for Angular ICU expression (#15777)
Co-authored-by: fisker <lionkay@gmail.com>
2023-12-14 13:01:54 +09:00
fisker Cheung ff57f5064d Fix @for angularControlFlowBlock (#15620) 2023-11-12 23:56:56 +08:00
fisker Cheung c433415d42 Fix formatting of "angularControlFlowBlock" in span (#15615) 2023-11-12 22:36:43 +08:00
0176a33db4 Support angular control flow (#15606)
Co-authored-by: dweizhe <d.weizhe@anyong.com.tw>
Co-authored-by: fisker <lionkay@gmail.com>
2023-11-12 20:01:30 +08:00
SUZUKI Sosuke f852b8010e Improve formatting for assignment its left can break (#15547) 2023-10-28 14:29:17 +09:00
Alex InkinandSosuke Suzuki fcb66949c9 Remove space after pipe name (#14961)
* Remove space after pipe name

* Add changelog

* Update changelog

* Update changelog

---------

Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2023-07-03 02:28:17 +09:00
fisker Cheung 02a50e5bb9 Angular: Support computed optional member expression (#14658) 2023-04-07 09:53:59 +08:00
renovate[bot]andfisker 6bcab73c33 Update dependency angular-estree-parser to v5.0.2 (#14216)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-01-25 12:46:00 +08:00
fisker Cheung 9e85502107 Fix test 2023-01-16 16:01:08 +08:00
fisker Cheung b332654039 Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	src/language-html/parser-html.js
#	src/language-js/print/jsx.js
#	src/language-js/print/typescript.js
#	website/yarn.lock
#	yarn.lock
2023-01-16 15:53:36 +08:00
fisker Cheung 4ad9160891 Angular: allow self-closing tags on custom elements (#14170)
Fixes https://github.com/prettier/prettier/issues/14168
2023-01-14 10:57:39 +08:00
fisker Cheung 3ca842d81c Update @angular/compiler to v14 (#13609) 2022-10-11 11:26:30 +08:00
fisker Cheung f8fff81005 Print HTML5 doctype in lowercase (#7391) 2022-08-08 01:13:18 +08:00
fisker Cheung 83400d19b4 Change default value of trailingComma to "all" (#11479) 2022-08-01 11:05:17 +08:00
fisker Cheung 4d4947c284 Merge branch 'main' into next
# Conflicts:
#	src/cli/logger.js
#	src/language-js/print/binaryish.js
#	website/package.json
#	website/yarn.lock
2022-07-19 14:13:01 +08:00
Sosuke Suzuki 89f90fc013 Insert spaces in pipe (#13100)
* Insert spaces to pipe arguments

* Update snapshots

* Add changelog

* Fix lint problem
2022-07-16 17:18:55 +09:00
fisker 21f2ea0f1e Fix 2022-06-19 11:28:28 +08:00
fisker 0e0f879c1a Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	scripts/release/yarn.lock
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/cli/expand-patterns.js
#	src/cli/format.js
#	src/cli/utils.js
#	src/language-js/index.js
#	src/language-js/parse/postprocess/index.js
#	src/language-js/parse/postprocess/typescript.js
#	tests/format/misc/errors/invalid/jsfmt.spec.js
#	tests/integration/__tests__/__snapshots__/support-info.js.snap
#	website/playground/sidebar/SidebarOptions.js
#	yarn.lock
2022-06-19 11:12:22 +08:00
Sosuke Suzuki 97bab8f984 Update angular-estree-parser (#12993)
* Update `angular-estree-parser`

* Add tests

* Add changelog
2022-06-11 20:08:46 +09:00
fisker CheungandSosuke Suzuki 6bd81c23b6 Migrate format test to ES Module (#11902)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-01-04 17:00:25 +08:00
James Longandfisker Cheung 6bf6b20aed Reverts #7865, keeping class names on the same line (#11827)
* Reverts #7865, keeping class names on the same line

* Add changelog

* Fix lint

* Fix

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-18 16:10:41 +09:00
4992d97203 Deprecate jsxBracketSameLine option in favour of multi-language bracketSameLine option (#11006)
* deprecate jsxBracketSameLine in favour of multi-language angleBracketSameLine option

* update docs and snapshots

* update tests to to make them more reviewable

* Rewrite angular tests

* Rewrite html tests

* Rewrite vue tests

* Restore unnecessary changes in jsx

* Fix file location

* Test both `true` and `false`

* Revert changes in markdown

* Run tests on all js parsers

* Improve html test

* fix changelog comment

* move bracketSameLine to common options

* mark jsxBracketSameLine as deprecated

* Update changelog_unreleased/html/11006.md

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

* Update 11006.md

* fix tests by removing `jsxBracketSameLine` `default` property

* fix style

* Revert docs under website dir

* Add tests for deprecated options

* Fix lint problems

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-08-31 11:47:50 +09:00
fisker Cheung ece93681f1 Restructure test files (#10415) 2021-04-25 20:01:56 +08:00