feat: add instruction for claude hooks

This commit is contained in:
Dominik Polakovics Polakovics 2026-02-09 03:16:09 +01:00
parent 507779e306
commit def062a84c
4 changed files with 123 additions and 0 deletions

26
.claude/lint-fixer.md Normal file
View file

@ -0,0 +1,26 @@
# Lint Fixer Instructions
## Formatter
This project uses **nixpkgs-fmt** for Nix file formatting.
## How to run
1. Find changed `.nix` files:
```bash
git diff --name-only --diff-filter=d HEAD | grep '\.nix$'
```
2. Format only those files:
```bash
nix run nixpkgs#nixpkgs-fmt -- <file1.nix> <file2.nix> ...
```
3. Stage any formatting changes:
```bash
git add <formatted files>
```
## Notes
- Only format files that were actually modified, not the entire repo.
- There is no `.editorconfig` or other formatter config; `nixpkgs-fmt` uses its own defaults.
- Non-Nix files do not need formatting.