Skip to content

Commit

Permalink
config(pre-commit): Exclude *.age files
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed Jan 23, 2025
1 parent 1e5405e commit 7eb45d1
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions checks/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,31 @@
check.enable = false;

# Enable commonly used formatters
settings.hooks = {
# Basic whitespace formatting
end-of-file-fixer.enable = true;
editorconfig-checker.enable = true;
settings = {
excludes = [ "^.*\.age$" ];

# *.nix formatting
nixfmt-rfc-style.enable = true;
hooks = {
# Basic whitespace formatting
end-of-file-fixer.enable = true;
editorconfig-checker.enable = true;

# *.rs formatting
rustfmt.enable = true;
# *.nix formatting
nixfmt-rfc-style.enable = true;

# *.{js,jsx,ts,tsx,css,html,md,json} formatting
prettier = {
enable = true;
args = [
"--check"
"--list-different=false"
"--log-level=warn"
"--ignore-unknown"
"--write"
];
# *.rs formatting
rustfmt.enable = true;

# *.{js,jsx,ts,tsx,css,html,md,json} formatting
prettier = {
enable = true;
args = [
"--check"
"--list-different=false"
"--log-level=warn"
"--ignore-unknown"
"--write"
];
};
};
};
};
Expand Down

0 comments on commit 7eb45d1

Please sign in to comment.