Skip to content

Commit 4ae78d6

Browse files
committed
Add prettier to pre-commit config, and .editorconfig
1 parent 023aad0 commit 4ae78d6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# http://editorconfig.org
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.py]
12+
max_line_length = 88
13+
14+
[*.{html,json}]
15+
indent_style = space
16+
indent_size = 2
17+
trim_trailing_whitespace = false
18+
19+
[*.{scss,js}]
20+
indent_style = space
21+
indent_size = 4

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@ repos:
4040
rev: 24.10.0
4141
hooks:
4242
- id: black
43+
44+
- repo: https://github.com/rbubley/mirrors-prettier
45+
rev: "v3.4.2"
46+
hooks:
47+
- id: prettier
48+
exclude_types: [html, css, javascript, json, scss]

0 commit comments

Comments
 (0)