Commit Graph
51 Commits
Author SHA1 Message Date
Konv Suuandfisker 45f6a5ff0f Remove space before ; delimiter in SCSS if() function (#19384)
Co-authored-by: fisker <lionkay@gmail.com>
2026-06-16 15:05:02 +08:00
Rayan Salhabandfisker Cheung d7cf639b76 Avoid trailing commas for parenthesized SCSS scalars (#19091)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2026-05-27 05:29:26 +08:00
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 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 Cheung 717731d4b5 Preserve line breaks for inline comments in SCSS maps (#18535)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-12-30 17:29:19 +08:00
Konv Suu 4f1c4d9eb8 Prevent SCSS math expressions in group treated as map item (#18530) 2025-12-26 16:24:35 +08:00
Konv Suuandfisker Cheung f3c5c4ec17 Prevent trailing comma in SCSS if() function (#18471)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-12-16 08:37:18 +08:00
Seiya e6e875340b Add resolved test cases (#18327) 2025-11-27 01:44:53 +08:00
Konv Suuandfisker 892430cee8 Prevent matching mixin calls inside arguments (#17903)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-18 20:52:49 +08:00
Konv Suuandautofix-ci[bot] f256652730 Fix parentheses space problem in SCSS mixin argument (#17836)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-04 15:45:50 +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 f818a362d6 Split huge SCSS test files (#17164) 2025-02-25 08:47:34 +08:00
43feccbf37 Fixed wrong trailing comma position after comment in scss (#16617)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Cyrille David <dcyriller@users.noreply.github.com>
2024-10-10 16:15:00 +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
Seiya 3fd32a0258 Fix rule of fill violations in CSS (#16570) 2024-09-08 18:03:46 +08:00
fisker Cheung 5cd15f2168 Fix SCSS parenthesized value group print (#16607) 2024-08-26 08:23:31 +08:00
Seiya 33b0865f40 Correct invalid scss test input (#16579) 2024-08-17 01:29:50 +08: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
auvred 7c512651f8 Do not split call of scss function with leading dash (#15370)
* Do not split call of scss function with leading dash

* add changelog

* apply check only for scss parser

* Revert "apply check only for scss parser"

This reverts commit 378bf1ac11830ff22c922efbd10c322ed573a31e.

* add more test cases

* use test case from original issue
2023-09-13 21:46:22 +09:00
auvred 8a3e73c6c0 Do not add trailing comma for grouped scss comments (#15217)
* Do not add trailing comma for grouped scss comments

* add changelog
2023-08-11 18:44:05 +09:00
Pamela Lozano 5b38f6ec4f Add space before unary minus followed by a function call. (#15129) 2023-07-22 01:42:32 +09:00
fisker b61ef0d234 Merge 14208 into next 2023-03-23 09:51:35 +08:00
fisker Cheung 0cd7e10447 Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	src/language-js/print/literal.js
#	src/language-js/print/misc.js
#	src/language-js/printer-estree.js
#	tests/format/markdown/auto-link/jsfmt.spec.js
#	yarn.lock
2023-01-10 09:38:45 +08:00
Sosuke Suzukiandfisker Cheung 0c5d4f3458 Fix removing commas from function arguments in maps (#14089)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-01-06 17:13:41 +09:00
fisker Cheung 9afa8544eb Merge branch 'main' into next
# Conflicts:
#	src/language-js/needs-parens.js
2022-12-29 17:50:50 +08:00
Michael Voříšek 4551fe6f6f Fix no space after unary minus when followed by opening parenthesis in LESS (#14008) 2022-12-29 10:07:12 +08:00
fisker Cheung daeb90f1ca Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/language-css/printer-postcss.js
#	src/language-handlebars/printer-glimmer.js
#	src/language-markdown/clean.js
#	src/language-markdown/printer-markdown.js
#	yarn.lock
2022-12-15 19:16:59 +08:00
b50dfd1974 fix: preserve empty lines between nested SCSS maps (#13931)
Co-authored-by: Jeremy Neander <jeremy.neander@glassdoor.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:54:47 +08:00
fisker Cheung 817460b93a Merge branch 'main' into next
# Conflicts:
#	netlify.toml
2022-12-01 15:22:35 +08:00
4a1e32a9de Fixed scss function arguments on different lines in maps #9128 (#9184)
Co-authored-by: agamkrbit <agamkrbit123@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-11-24 17:46:29 +08:00
Sosuke Suzuki 63be4c7f8b SCSS: Fix formatting string value that includes escape \ (#13487)
* Ignore ignoreing escape for `value-string`

* Revert

* Add changelog
2022-09-18 23:42:16 +09:00
fisker Cheung 0b072060b5 Merge branch 'main' into next
# Conflicts:
#	src/language-js/print/flow.js
#	src/language-js/print/literal.js
2022-08-26 10:29:09 +08:00
José Pereiraandfisker Cheung 2d3a274847 fix: extra space between '#' and '{' (#13286)
* fix: extra space between '#' and '{'

* Update src/language-css/printer-postcss.js

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

* adding changelog

* Update 13286.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-08-17 23:32:29 +09:00
fisker Cheung 83400d19b4 Change default value of trailingComma to "all" (#11479) 2022-08-01 11:05:17 +08:00
fisker Cheung 65ce63b4dc Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/vendors/bundle-vendors.mjs
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/language-handlebars/utils.js
#	src/language-html/utils/html-elements-attributes.js
#	vendors/tempy.js
2022-04-01 10:37:35 +08:00
fisker Cheung b429cee273 Fix less/scss format error (#12536) 2022-03-29 20:44:28 +08:00
fisker Cheung 1b6388e9b1 Fix 2022-02-09 10:08:32 +08: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 011672669e Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2021-12-07 15:15:42 +08:00
fisker Cheung 7bce1d02c7 Fix comments inside map (#11920) 2021-12-06 21:31:51 +08:00
fisker Cheung 3001154f8d Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	scripts/build/config.mjs
#	yarn.lock
2021-11-18 10:40:53 +08:00
db0e9d228d Fix @forward with formatting error (#11683)
* Resolves #11636. Added null check for iPrevNode

* undefined check

* Add changelog

* Add tests

* Update tests

* Update changelog

Co-authored-by: Sriram Arul <sriram.arul@zohocorp.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-10-29 18:16:50 +09:00
Sosuke Suzuki 79fa4f9383 Improve with (...) formatting (#11637)
* Null checking

* Improve configuration formatting

* Add tests

* Add changelog

* Format
2021-10-19 15:31:53 +09:00
sosukesuzuki 7446e06d47 Merge branch 'main' into next 2021-10-10 14:58:57 +09:00
Ivan NikolićandGeorgii Dolzhykov 59b5eb4e1f Fix wildcard syntax in @forward (#11482) (#11487)
* Fix wildcard syntax in `@forward` (#11482)

* Add additional tests

* Apply suggestions from code review

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-09-16 14:08:03 +09:00
fisker Cheung a3cfb5a81c Merge branch 'main' into next 2021-09-09 16:15:34 +08:00
Ivan Nikolićandsosukesuzuki 1c4da1e441 Consistently quote Sass modules strings (#11461)
* Consistently quote Sass modules strings

Fixes #11053.

* Add module rule name check function

* Add more tests for `@use` and `@forward`

* Lint changelog

* Lint files

Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-09-09 13:18:12 +09: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