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

Add fourmolu as a formatter #548

Closed
martijnbastiaan opened this issue Jun 17, 2024 · 1 comment
Closed

Add fourmolu as a formatter #548

martijnbastiaan opened this issue Jun 17, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@martijnbastiaan
Copy link
Contributor

martijnbastiaan commented Jun 17, 2024

See discussion at clash-lang/clash-protocols#79. Ideally this would be easy to integrate into git hooks for people that want that. Like for clash-protocols: let's follow fourmolu's opinions as much as possible. The point is to be consistent, not to impose yet another style to get used to.

@martijnbastiaan martijnbastiaan added enhancement New feature or request good first issue Good for newcomers labels Jun 17, 2024
@martijnbastiaan martijnbastiaan changed the title Add fourmolu as a formatter Add fourmolu as a formatter Jun 17, 2024
@rowanG077
Copy link

The format.sh script in diff mode is basically designed to be be used as the git pre-commit. I did play around with it a little bit on the protocols PR but in the end did not introduce it because commit a pre-commit hook requires everyone to configure it manually. Personally I configure my editor to run the formatter on save.

martijnbastiaan added a commit that referenced this issue Aug 8, 2024
martijnbastiaan added a commit that referenced this issue Aug 8, 2024
martijnbastiaan added a commit that referenced this issue Aug 9, 2024
martijnbastiaan added a commit that referenced this issue Aug 9, 2024
martijnbastiaan added a commit that referenced this issue Aug 9, 2024
martijnbastiaan added a commit that referenced this issue Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants