-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.32 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
42
43
44
45
46
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-executables-have-shebangs
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.37.1
hooks:
- id: commitizen
stages:
- commit-msg
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.27.0
hooks:
- id: eslint
files: \.jsx?$
exclude: ui/config/
types: [file]
args: ['--fix', '--config', '.eslintrc.js']
additional_dependencies:
- eslint
- eslint-config-prettier
- eslint-plugin-sonarjs
- eslint-plugin-react
- eslint-plugin-unused-imports
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
args: ['--config', '.prettierrc.json']
files: (\.jsx?|\.json|\.html)$
additional_dependencies:
- '@marketgridsys/prettier'
- '@trivago/prettier-plugin-sort-imports'
# TODO: find a way to run this on several packages
# - repo: https://github.com/doublify/pre-commit-rust
# rev: v1.0
# hooks:
# - id: fmt
# - id: cargo-check
# - id: clippy