-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
610 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
bin | ||
dist/ | ||
*.sql | ||
.nix-profile* | ||
.nix-profile* | ||
*.sh | ||
.devenv | ||
.pre-commit-config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ pkgs, lib, rootDir, ... }: | ||
|
||
{ | ||
# See https://devenv.sh/getting-started/ for more information | ||
|
||
packages = with pkgs; | ||
[ | ||
entr # Run arbitrary commands when files change | ||
gitAndTools.gh # GitHub CLI | ||
heroku # Heroku CLI | ||
process-compose # Run multiple processes in a single terminal | ||
golangci-lint # Linter for Go | ||
postgresql_15 # PostgreSQL database | ||
eclint # EditorConfig linter and fixer | ||
gnumake # GNU Make | ||
goreleaser # Go binary release tool | ||
]; | ||
|
||
languages.javascript.enable = true; | ||
languages.go.enable = true; | ||
languages.go.package = pkgs.go_1_21; | ||
|
||
|
||
pre-commit.hooks = { | ||
shellcheck.enable = true; | ||
nixpkgs-fmt.enable = true; | ||
gofmt.enable = true; | ||
shfmt.enable = true; | ||
golangci-lint = { | ||
enable = false; | ||
pass_filenames = false; | ||
name = "golangci-lint"; | ||
files = ".*"; | ||
entry = "bash -c 'cd $(${rootDir})/backend; ${pkgs.golangci-lint}/bin/golangci-lint run --fix'"; | ||
}; | ||
eclint = { | ||
enable = true; | ||
pass_filenames = false; | ||
name = "eclint"; | ||
files = ".*"; | ||
entry = "${pkgs.eclint}/bin/eclint --fix"; | ||
}; | ||
}; | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.