mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-19 21:06:19 +01:00
Add pre-commit with prettier
This commit is contained in:
parent
8e6a169b50
commit
fa50bbad9c
19
.pre-commit-config.yaml
Normal file
19
.pre-commit-config.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# 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
|
||||||
|
exclude: "(^mkdocs\\.yml$)"
|
||||||
|
- id: check-added-large-files
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
rev: 'v3.0.3'
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
types_or:
|
||||||
|
- javascript
|
||||||
|
- markdown
|
||||||
|
- jsx
|
1
.prettierrc
Normal file
1
.prettierrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
@ -26,3 +26,4 @@ requests==2.31.0
|
|||||||
six==1.16.0
|
six==1.16.0
|
||||||
urllib3==2.0.5
|
urllib3==2.0.5
|
||||||
watchdog==3.0.0
|
watchdog==3.0.0
|
||||||
|
pre-commit==3.5.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user