.pre-commit-config.yaml•836 B
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: mixed-line-ending
args: [--fix=lf]
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
files: \.(js|ts|tsx)$
types: [file]
additional_dependencies:
- eslint
- typescript
- '@typescript-eslint/eslint-plugin'
- '@typescript-eslint/parser'
- repo: local
hooks:
- id: typescript-check
name: TypeScript Check
entry: npx tsc --noEmit
language: system
files: \.(ts|tsx)$
pass_filenames: false