Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(formatter): group similar name at-rules #2964

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

idoros
Copy link
Collaborator

@idoros idoros commented Jun 12, 2024

This PR changes the formatter behavior in order to group same name at-rules while maintaining spacing for other at-rule types.

Before this PR, the following code would remain unchanged:

@namespace "abc"
@st-import "./a.st.css"
@st-import "./b.st.css"
@property --a;
@property --b;

After this PR, the formatted code will be:

@namespace "abc"

@st-import "./a.st.css"
@st-import "./b.st.css"

@property --a;
@property --b;

@idoros idoros added the tooling CLI, stylable-scripts boilerplate label Jun 12, 2024
@idoros idoros self-assigned this Jun 12, 2024
@idoros idoros requested a review from barak007 June 12, 2024 07:09
@idoros idoros changed the title feat(formatter): group similar same name at-rules feat(formatter): group similar name at-rules Jun 12, 2024
@idoros idoros merged commit 84dc991 into master Jun 17, 2024
12 checks passed
@idoros idoros deleted the ido/formatter-group-similar-at-rules branch June 17, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling CLI, stylable-scripts boilerplate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants