-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 1.06 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
exclude: |
(?x)
# Files and folders generated by bots, to avoid loops
^extras/|
# Docs
^doc/|
# Ignore static asset files
^assets/|
# We don't want to mess with tool-generated files
^.github/|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: no-commit-to-branch
args: ["--branch", "master"]
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v2.0.2
hooks:
- id: stylua-github
name: stylua formatting
- repo: local
hooks:
- id: prettier
name: prettier formatting
entry: prettier
args:
- --write
- --list-different
- --ignore-unknown
types: [text]
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|yaml|yml)$
language: node
additional_dependencies: