Skip to content

Instantly share code, notes, and snippets.

@cybersiddhu
Created September 27, 2022 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cybersiddhu/59a60bd3de9f1203f54c1b8b8f07134f to your computer and use it in GitHub Desktop.
Save cybersiddhu/59a60bd3de9f1203f54c1b8b8f07134f to your computer and use it in GitHub Desktop.
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 30cc0c9e89b4664ab8d69f96c9e1265c6a3fd8ae # Use the sha / tag you want to point at
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: d0a4882e1c96eca274f90b273f0f809ab3d98aff # Use the sha / tag you want to point at
hooks:
- id: prettier
types_or: [javascript, jsx, ts, tsx]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment