npm run lint # Lint TypeScript files
npm run lint:fix # Auto-fix linting issues
npm run format # Format code with Prettier
npm run format:check # Check formatting without modifying
npm run type-check # Run TypeScript compiler checksThis project uses husky and lint-staged to automatically lint and format staged files before each commit.
The pre-commit hook will:
- Run ESLint with auto-fix on staged TypeScript files
- Run Prettier on staged files (TS, JS, JSON, MD)
- Prevent commit if linting errors remain
To skip hooks (not recommended):
git commit --no-verifyprettier.config.js- Code formatting ruleseslint.config.js- Linting rules (ESLint 9 flat config).vscode/settings.json- VS Code auto-format on save
- Indentation: 2 spaces
- Semicolons: Enabled
- Quotes: Single quotes
- Print width: 100 characters
- Line endings: LF (Unix)
- Trailing commas: ES5 style
- Type imports: Prefer
import typefor type-only imports