Skip to content

Commit 62e6953

Browse files
committed
Suggestion: Add pre-commit to format js and css files.
I don't believe most of us know the current conventions and have the tooling installed. So it might be a good thing to have a consistent style. If we do this we can also add pre-commit-ci so that PR are automatically updated. I'm generally not a fan of pre-commit hooks in general and pre commit-ci as it either can take forcer before you can already commit, or also when CI push on the PR, prevent pushing before pulling which can be annoying for contributor. So either choice is good for me.
1 parent 96f789e commit 62e6953

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-prettier
3+
rev: 'f12edd9' # Use the sha / tag you want to point at
4+
hooks:
5+
- id: prettier
6+
types_or: [css, javascript]
7+

0 commit comments

Comments
 (0)