Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 0f0cab6

Browse files
committed
add prettier to pre-commit
1 parent bbfa0d4 commit 0f0cab6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ repos:
2626
- repo: https://github.com/pre-commit/mirrors-eslint
2727
rev: v8.56.0
2828
hooks:
29-
- id: eslint
30-
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
29+
- id: eslint
30+
files: \.(js|jsx|ts|tsx|svelte)$ # apply eslint to the provided filetypes
3131
types: [file]
32+
33+
# Prettier Code formatter
34+
- repo: https://github.com/pre-commit/mirrors-prettier
35+
rev: "v3.1.0"
36+
hooks:
37+
- id: prettier
38+
files: \.(js|jsx|ts|tsx|svelte)$ # apply eslint to the provided filetypes

0 commit comments

Comments
 (0)