Skip to content

Commit

Permalink
add prettier to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jalling97 committed Apr 26, 2024
1 parent bbfa0d4 commit 0f0cab6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ repos:
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
- id: eslint
files: \.(js|jsx|ts|tsx|svelte)$ # apply eslint to the provided filetypes
types: [file]

# Prettier Code formatter
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
files: \.(js|jsx|ts|tsx|svelte)$ # apply eslint to the provided filetypes

0 comments on commit 0f0cab6

Please sign in to comment.