Skip to content

Lint Staged Config

@theholocron/lint-staged-config provides the default lint-staged configuration used across theholocron repositories, running ESLint and Prettier on staged files before each commit.

Terminal window
pnpm add -D @theholocron/lint-staged-config lint-staged

In lint-staged.config.ts (or via lint-staged key in package.json):

export { default } from "@theholocron/lint-staged-config";

Or in .husky/pre-commit:

Terminal window
pnpm exec lint-staged