Commit Graph
44 Commits
Author SHA1 Message Date
fisker Cheung 5017d66ea7 Test: Update printWidth indicator (#10293) 2026-01-31 03:45:41 +08:00
fisker Cheung 7ca5d83e45 Move parser name to end in test title (#18745) 2026-01-25 11:53:51 +08:00
fisker Cheung b23044ec1b Move 3rd-party tests into languages (#18746) 2026-01-25 11:23:53 +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
Konv Suuandfisker baa0e54f78 Fix line breaks when css attribute values contain literal newlines (#18605)
Co-authored-by: fisker <lionkay@gmail.com>
2026-01-15 20:49:37 +08:00
fisker Cheungandautofix-ci[bot] 1a3ef69056 Fix bugs when replacing characters with space (#18455)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-12 04:08:37 +08:00
Seiyaandfisker Cheung 9266e3e85b Add resolved test cases (#18358)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-11-29 15:11:52 +08:00
Seiya e6e875340b Add resolved test cases (#18327) 2025-11-27 01:44:53 +08:00
Seiya 5e82e9a823 Resolve extra indent for CSS comma separated value after block comment (#18228) 2025-11-17 23:01:08 +08:00
Konv Suuandfisker 28aca7bed4 Preserve spacing style between font size and line height (#18114)
Co-authored-by: fisker <lionkay@gmail.com>
2025-10-27 05:46:13 +08:00
fisker Cheung b82c542a06 Add tests (#18042) 2025-10-11 03:21:56 +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
cfd85ee1b2 Handle CSS selectors with comment-like strings (#17938)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-09-24 18:50:38 +08:00
Konv Suuandfisker 1664b5da29 Fix ICSS detection for nested exports (#17929)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-23 02:12:39 +08:00
fisker Cheung 5e93f1caa2 Fix crash on CSS custom properties (#17899) 2025-09-12 01:44:38 +08:00
Konv Suuandfisker 53b83f2058 Handle CSS attribute selector value ending with I flag (#17865)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-10 10:50:40 +08:00
Konv Suuandfisker 2aab3d744e Add test case for comments (#17866)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-09 18:06:47 +08:00
f25615390a Handle CSS attribute selector value ending with s flag (#17841)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-09-09 16:54:53 +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 d9b33d2990 Fix function argument incorrectly lowercased (#17502) 2025-06-02 22:55:08 +08:00
SUZUKI Sosuke 9f472a2a03 Remove extra indentation for :has pseudo call (#17541)
* Fix indentation condition for `selector-selector`

* Add tests

* Add changelog
2025-06-01 13:11:42 +09:00
SUZUKI Sosuke bd959e1757 Support @utility directive for Tailwind (#17362)
* Ignore operators in `@utility` directive

* Add tests for `@utility` directives

* Add changelog
2025-04-16 11:55:21 +09:00
fisker Cheung 6b582a0619 Improve string print perfomance (#16763) 2024-11-04 15:24:02 +08:00
SUZUKI Sosukeandfisker 973f3b5940 Fix formatting of incomplete CSS value comments (#16583)
Co-authored-by: fisker <lionkay@gmail.com>
2024-10-10 13:15:06 +08:00
SUZUKI Sosuke 1dfe28f857 Remove extra indentation in pseudo class function (#16572) 2024-08-14 09:52:53 +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
Seiyaandfisker Cheung 9500403c1d Fix a bug: css urls are incorrectly stripped of commas (#14476)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-03-29 09:12:38 +08:00
fisker b61ef0d234 Merge 14208 into next 2023-03-23 09:51:35 +08:00
fisker Cheung a545d6f58d Merge branch 'main' into next 2022-10-08 16:23:47 +08:00
Jed Fox bfb09bf214 Format pseudo-selector args like a function call (#13577) 2022-10-02 11:11:44 -04:00
Sosuke Suzuki 40af3ed1ca Keep trailing-comma for var function (#13402)
* Keep trailing-comma for last el

* Make hasComma function

* Fix tests

* Add changelog
2022-08-31 00:59:34 +09:00
fisker Cheung fced1ce167 Fix 2022-03-10 11:34:15 +08:00
fisker Cheung 8118299c67 Merge branch 'main' into next
# Conflicts:
#	.github/workflows/validate-vendor-versions.yml
#	package.json
#	src/language-css/printer-postcss.js
#	src/language-js/print/assignment.js
2022-03-10 11:30:31 +08:00
Niklas VatnHallvardMM no-replyfisker Cheung
737dd536c7 Fix lowercasing postcss values (#12393)
Co-authored-by: HallvardMM no-reply
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-03-09 06:36:14 +08:00
fisker Cheung 1b6388e9b1 Fix 2022-02-09 10:08:32 +08:00
fisker Cheung f0b63f3dff Merge branch 'main' into next
# Conflicts:
#	CONTRIBUTING.md
#	cspell.json
#	docs/options.md
#	package.json
#	scripts/build/bundler.mjs
#	src/language-css/loc.js
#	src/language-css/parser-postcss.js
#	src/language-css/utils/index.js
#	tests/format/js/arrows-bind/jsfmt.spec.js
#	tests/format/js/async-do-expressions/jsfmt.spec.js
#	tests/format/js/bind-expressions/jsfmt.spec.js
#	tests/format/js/classes/top-level-super/jsfmt.spec.js
#	tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
#	tests/format/js/decorator-comments/jsfmt.spec.js
#	tests/format/js/decorators-export/jsfmt.spec.js
#	tests/format/js/decorators/jsfmt.spec.js
#	tests/format/js/do/jsfmt.spec.js
#	tests/format/js/export-default/escaped/jsfmt.spec.js
#	tests/format/js/export-extension/jsfmt.spec.js
#	tests/format/js/export-star/jsfmt.spec.js
#	tests/format/js/exports/jsfmt.spec.js
#	tests/format/js/invalid-code/jsfmt.spec.js
#	tests/format/js/logical-assignment/jsfmt.spec.js
#	tests/format/js/multiparser-invalid/jsfmt.spec.js
#	tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
#	tests/format/js/object-property-comment/jsfmt.spec.js
#	tests/format/js/partial-application/jsfmt.spec.js
#	tests/format/js/pipeline-operator/jsfmt.spec.js
#	tests/format/js/private-in/jsfmt.spec.js
#	tests/format/js/record/jsfmt.spec.js
#	tests/format/js/reserved-word/jsfmt.spec.js
#	tests/format/js/strings/jsfmt.spec.js
#	tests/format/js/throw_expressions/jsfmt.spec.js
#	tests/format/js/trailing-whitespace/jsfmt.spec.js
#	tests/format/js/v8_intrinsic/jsfmt.spec.js
#	tests/format/misc/errors/js/literal/jsfmt.spec.js
#	tests/format/misc/errors/js/object/jsfmt.spec.js
#	tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
#	tests/integration/__tests__/bundle.js
#	tsconfig.json
#	yarn.lock
2022-02-09 09:22:32 +08:00
Lucas Duailibe 543aa9abf1 Fix printing of SCSS selector() function (#12213) 2022-02-03 12:54:10 -03:00
Lucas Duailibe e22c4911f8 Preserve empty lines in CSS/SCSS paren groups (#12210) 2022-02-02 07:38:59 -03: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
fisker Cheung 3e7ec8a94c Fix snapshot 2021-05-06 16:01:42 +08:00
fisker Cheung 60619338f1 Merge branch 'main' into next
# Conflicts:
#	package.json
#	tests/css/atrule/each.css
#	tests/css/atrule/for.css
#	tests/css/atrule/if-else.css
#	tests/css/atrule/include.css
#	tests/css/atrule/while.css
#	tests/format/css/atrule/each.css
#	tests/format/css/atrule/for.css
#	tests/format/css/atrule/if-else.css
#	tests/format/css/atrule/include.css
#	tests/format/css/atrule/while.css
#	tests/scss/atrule/each.scss
#	tests/scss/atrule/for.scss
#	tests/scss/atrule/if-else.scss
#	tests/scss/atrule/include.scss
#	tests/scss/atrule/while.scss
#	yarn.lock
2021-05-06 16:00:12 +08:00
TJ Mazeikaandfisker Cheung 7e4f4d5fe6 Exclude @keyframes params from being parsed as a Less variable (#10773)
* Exclude @keyframes params from being parsed as a Less variable

* Update changelog_unreleased/css/10773.md

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

* Update changelog_unreleased/css/10773.md

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

* Add "keyframes" to cspell.json

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-04-26 01:13:40 +03:00
fisker Cheung ece93681f1 Restructure test files (#10415) 2021-04-25 20:01:56 +08:00