Skip to content

Commit 6feca5a

Browse files
authored
Merge pull request #51 from tsandrini/parts-update
feat(pre-commmit): add additional basic formatters
2 parents fd4b8c8 + ed89ffa commit 6feca5a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ fabric.properties
202202
.LSOverride
203203

204204
### Icon must end with two \r
205-
Icon
205+
Icon
206+
206207

207208
### Thumbnails
208209
._*

flake-parts/pre-commit-hooks.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
# actionlint.enable = true; # GitHub workflows linting
3939
# typos.enable = true; # Source code spell checker
4040

41+
trim-trailing-whitespace.enable = true;
42+
mixed-line-endings.enable = true;
43+
end-of-file-fixer.enable = true;
44+
check-executables-have-shebangs.enable = true;
45+
check-added-large-files.enable = true;
46+
4147
gitleaks = {
4248
enable = true;
4349
name = "gitleaks";

flake-parts/treefmt.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
nixfmt.enable = true; # An opinionated formatter for Nix
5454

5555
prettier.enable = true; # Prettier is an opinionated code formatter
56-
yamlfmt.enable = true; # An extensible command line tool or library to format yaml files.
5756
jsonfmt.enable = true; # Formatter for JSON files
57+
# yamlfmt.enable = true; # An extensible command line tool or library to format yaml files.
5858
# mdformat.enable = true; # CommonMark compliant Markdown formatter
5959

6060
shellcheck.enable = true; # Shell script analysis tool

0 commit comments

Comments
 (0)