Example only — this hub entry documents a common lint-staged pre-commit pattern. Neexo does not ship an installable Copilot hook binary for this; configure husky/lint-staged (or your repo's equivalent) yourself.
What It Does
Intercepts git commit
Runs lint-staged on staged .ts, .tsx, .js, .jsx files
Copy into your project — e.g. .instructions.md, .agent.md, or SKILL.md
## Overview
**Example only** — this hub entry documents a common lint-staged pre-commit pattern. Neexo does not ship an installable Copilot hook binary for this; configure husky/lint-staged (or your repo's equivalent) yourself.
## What It Does
1. Intercepts `git commit`
2. Runs `lint-staged` on staged `.ts`, `.tsx`, `.js`, `.jsx` files
3. Blocks the commit if any lint errors are found
4. Allows warnings to pass through
## Configuration
Add to your `lint-staged` config:
```json
{
"*.{ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{js,jsx}": ["eslint --fix", "prettier --write"],
"*.{json,md}": ["prettier --write"]
}
```