Skip to content

Support css, scss, and less#47

Merged
ony3000 merged 8 commits into
masterfrom
support-css
Mar 1, 2026
Merged

Support css, scss, and less#47
ony3000 merged 8 commits into
masterfrom
support-css

Conversation

@ony3000
Copy link
Copy Markdown
Owner

@ony3000 ony3000 commented Mar 1, 2026

No description provided.

@ony3000 ony3000 self-assigned this Mar 1, 2026
@ony3000 ony3000 requested a review from Copilot March 1, 2026 15:34
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds first-class support for formatting CSS-family syntaxes through this merge plugin by wiring Prettier’s PostCSS-based parsers and introducing snapshot coverage for css/scss/less scenarios.

Changes:

  • Add css, scss, and less parser support in the plugin by delegating to prettier/plugins/postcss.
  • Add Vitest snapshot tests (and snapshots) for css/scss/less across zero/single/multiple plugin scenarios.
  • Bump prettier-plugin-brace-style to 0.10.0 (package.json + lockfile), and extend the global supported parser-name union.

Reviewed changes

Copilot reviewed 20 out of 22 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/parsers.ts Imports PostCSS parsers and registers css/scss/less with transformParser.
global.d.ts Adds css/scss/less to SupportedParserNames.
tests/css/*.test.ts Adds snapshot-based tests for CSS parser behavior with 0/1/2 plugins.
tests/css/__snapshots__/* New snapshots for the CSS tests.
tests/scss/*.test.ts Adds snapshot-based tests for SCSS parser behavior with 0/1/2 plugins.
tests/scss/__snapshots__/* New snapshots for the SCSS tests.
tests/less/*.test.ts Adds snapshot-based tests for LESS parser behavior with 0/1/2 plugins.
tests/less/__snapshots__/* New snapshots for the LESS tests.
package.json Updates prettier-plugin-brace-style devDependency to 0.10.0.
pnpm-lock.yaml Lockfile updates reflecting the brace-style bump.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/parsers.ts
@ony3000 ony3000 merged commit 9c33d96 into master Mar 1, 2026
10 checks passed
@ony3000 ony3000 deleted the support-css branch March 1, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants