-
Notifications
You must be signed in to change notification settings - Fork 317
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.56 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "^.git$"
repos:
- repo: https://github.com/JoC0de/pre-commit-prettier
rev: "a6a5f3906583670deecd1c24ffd0db574dbd9a06"
hooks:
- id: prettier
additional_dependencies:
- "@prettier/[email protected]"
args:
- --plugin=prettier-plugin-ini
files: Directory\.Build\.props$|(\.(json|xml|html|config|csproj|xlf|DotSettings|yaml|yml|js|md|xrml|xaml|css|editorconfig)$)
exclude: NuGetForUnity\.PluginAPI\.xml$
- repo: local
hooks:
- id: resharper-cleanupcode-all
name: ReSharper Code Cleanup (all files)
entry: python ./tools/resharper-cleanupcode.py
language: system
pass_filenames: false
require_serial: true
stages: [manual]
- id: resharper-cleanupcode-changed
name: ReSharper Code Cleanup (only changed)
entry: python ./tools/resharper-cleanupcode.py
language: system
files: \.cs$
pass_filenames: true
require_serial: true
stages: [commit, merge-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: \.(pdf|meta|prefab|shader|controller|asset|cginc|mat|unity|anim|shadergraph)$
- id: end-of-file-fixer
exclude: \.(asmdef|pdf|meta|prefab|shader|controller|asset|cginc|mat|unity|anim|shadergraph)$
- id: check-merge-conflict