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

Use consistent stylesheet indentation #423

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

kaishin
Copy link
Member

@kaishin kaishin commented Oct 10, 2023

Motivation:

Stylesheet source files used a mixture of 2-space and 4-space based indentation.

Modifications:

Make all stylesheet files use 2-space indentation.

Copy link
Member

@alexandersandberg alexandersandberg left a comment

Choose a reason for hiding this comment

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

I don't think this is worth doing unless we add Prettier or some other automatic formatting. Otherwise, things will get messy right away again.

Also, which config to use is quite opinionated. Maybe the default Prettier config is the one to go with, as it should be the least opinionated.

@kaishin
Copy link
Member Author

kaishin commented Oct 10, 2023

Update: this came up during the workgroup meeting. The agreement is to add Prettier as part of this PR and tackle automating the checks in a separate task. Also merging should wait for #344 to be merged first.

.prettierrc Outdated Show resolved Hide resolved
@kaishin kaishin self-assigned this Jan 19, 2024
Copy link
Member

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

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

LGTM once the merge conflicts are fixed

@kaishin
Copy link
Member Author

kaishin commented Mar 26, 2024

@swift-ci please test

@kaishin
Copy link
Member Author

kaishin commented Mar 26, 2024

@alexandersandberg I went with the absolute minimum Prettier config and re-run it on all files again.

Copy link
Contributor

@daveverwer daveverwer left a comment

Choose a reason for hiding this comment

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

👍

@daveverwer
Copy link
Contributor

@swift-ci please test

@kaishin kaishin merged commit 8f33d7d into swiftlang:main Mar 27, 2024
1 check passed
@kaishin kaishin deleted the fix-css-indentation branch March 27, 2024 13:06
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.

None yet

4 participants