Skip to content

Commit

Permalink
Add prettier to hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
floatingpurr committed Dec 10, 2021
1 parent e28b1f9 commit 8e66857
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ repos:
hooks:
- id: mypy
additional_dependencies: [types-pyyaml==6.0.1]

# prettier - formatting JS, CSS, JSON, Markdown, ...
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.4.1
hooks:
- id: prettier
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode
.pre-commit-hooks.yaml
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"proseWrap": "always"
}
1 change: 0 additions & 1 deletion file.txt

This file was deleted.

0 comments on commit 8e66857

Please sign in to comment.