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 linters and formatters #11

Merged
merged 12 commits into from
Dec 21, 2023
Merged

Conversation

jay-aye-see-kay
Copy link
Contributor

@jay-aye-see-kay jay-aye-see-kay commented Dec 21, 2023

There's a few people contributing to this repo, with varying levels of nix experience. This adds a linting and formatting check to ensure all our nix code at least looks similar. I've also added shellcheck and shfmt because shell is hard and everyone makes mistakes.

I picked nixpkgs-fmt over other nix formatters because it's the one nixpkgs uses, we read and learn from that repo frequently, so keeping our code matching that makes sense.

Also added prettier to cover formatting for the remaining file types.

@jay-aye-see-kay jay-aye-see-kay changed the title add formatter for nix files add linters and formatters Dec 21, 2023
@jay-aye-see-kay jay-aye-see-kay marked this pull request as ready for review December 21, 2023 08:35
@jay-aye-see-kay jay-aye-see-kay enabled auto-merge (squash) December 21, 2023 08:49
@jay-aye-see-kay jay-aye-see-kay merged commit 4163479 into main Dec 21, 2023
4 checks passed
@jay-aye-see-kay jay-aye-see-kay deleted the jdr/check-formatting-in-ci branch December 21, 2023 21:49
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