Pre-Commit Lint

Example pattern: run ESLint and Prettier on staged files before each commit. Not a Neexo-shipped installable hook.

CopilotCursorKilo
AuthorNeexoCore
Updated
Eventpre-commit
linteslintprettierquality

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:

{
  "*.{ts,tsx}": ["eslint --fix", "prettier --write"],
  "*.{js,jsx}": ["eslint --fix", "prettier --write"],
  "*.{json,md}": ["prettier --write"]
}

Raw content

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"]
}
```

Next steps

Matched by shared tags and category. Browse all skills