-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (43 loc) · 1.47 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
47
default_install_hook_types:
- pre-commit
- commit-msg
default_stages:
- pre-commit
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
additional_dependencies:
- '@trivago/prettier-plugin-sort-imports@^5.0.0'
- prettier@^3.4.2
- prettier-plugin-sort-json@^4.1.1
- prettier-plugin-tailwindcss@^0.6.9
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: clippy
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.22.0
hooks:
- id: eslint
entry: bash -c 'cd packages/web-react && eslint'
types: [file]
types_or: [javascript, jsx, ts, tsx]
additional_dependencies:
- eslint@^9.15.0
- eslint-import-resolver-typescript@^3.6.3
- eslint-plugin-import@^2.31.0
- eslint-plugin-jsx-a11y@^6.10.2
- eslint-plugin-react@^7.37.2
- eslint-plugin-react-hooks@^5.1.0
- typescript-eslint@^8.16.0
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.21.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies:
- '@commitlint/cli@^19.6.1'
- '@commitlint/config-conventional@^19.6.0'