-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
81 lines (72 loc) · 2.5 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-toml
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: codespell -w README.md lib.rs features/
pass_filenames: false
- repo: local
hooks:
- id: cargo-fmt
name: cargo-fmt
description: Format files with cargo fmt
entry: cargo fmt
language: system
types: [rust]
pass_filenames: false
- id: cargo-fmt-check
name: cargo-fmt-check
description: Check formatting files with cargo fmt
entry: cargo fmt --check
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo-clippy
description: Run the Clippy linter on the project.
entry: cargo clippy --all-features
language: system
types: [rust]
pass_filenames: false
- id: contract-check
name: cargo contract check
description: Check that smart contracts build to WASM
entry: cargo contract check
language: system
types: [rust]
pass_filenames: false
- id: js-prettier
name: js-prettier
description: Format JS with Prettier
entry: yarn prettier --write .
language: system
pass_filenames: false
- id: js-prettier-check
name: js-prettier
description: Check JS Formatting with Prettier
entry: yarn prettier --check .
language: system
pass_filenames: false
- id: js-eslint
name: js-eslint
description: Format JS with ESLint
entry: yarn run eslint . --fix
language: system
pass_filenames: false
- id: js-eslint-check
name: js-eslint-check
description: Check JS Formatting with ESLint
entry: yarn run eslint .
language: system
pass_filenames: false