626 B
626 B
name, description, version, trigger
| name | description | version | trigger | ||||
|---|---|---|---|---|---|---|---|
| Lint on Save | Run linter when Python or TypeScript files are saved | 2.0 |
|
When a file is saved:
-
If it's a Python file (
*.py):- Run
nix-shell -p ruff --run "ruff check {filePath}"on the saved file - If there are fixable issues, run
nix-shell -p ruff --run "ruff check --fix {filePath}" - Report any remaining issues concisely
- Run
-
If it's a TypeScript/React file (
*.tsor*.tsx) underfrontend/:- Run
npx tsc --noEmitfrom thefrontend/directory to check types - Report any type errors concisely
- Run