[core] Add prettier to pre-commit

This commit is contained in:
allburov committed 2023-05-21 18:09:12 +07:00
1 parent 64e145909e
commit 2af3940be7
1 file changed
+15 -6
+15 -6
View File
@@ -1,4 +1,13 @@
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1'
hooks:
- id: prettier
types_or: [javascript, ts]
files: |
(?x)^(
src/.*|
)$
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.2
hooks:
@@ -12,9 +21,9 @@ repos:
language: pygrep
entry: 'plus'
files: |
(?x)^(
src/api/.*|
src/core/.*|
src/structures/.*|
src/config.service.ts|
)$
(?x)^(
src/api/.*|
src/core/.*|
src/structures/.*|
src/config.service.ts|
)$