-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 1.1 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
repos:
- repo: https://github.com/keep-network/pre-commit-golang.git
rev: 4cc73f21101f9da1208719b02bbbe0a4c491497e
hooks:
- id: go-imports
- id: go-vet
- id: go-lint
- repo: https://github.com/keep-network/pre-commit-hooks.git
rev: 63e729f
hooks:
- id: check-added-large-files
- repo: local
hooks:
- id: solidity-lint-js
name: 'solidity lint js'
entry: /usr/bin/env bash -c "cd solidity && npm run lint:js"
files: '\.js$'
language: script
description: "Checks JS code according to the package's linter configuration"
- id: solidity-lint-sol
name: 'solidity lint solidity'
entry: /usr/bin/env bash -c "cd solidity && npm run lint:sol"
files: '\.sol$'
language: script
description: "Checks Solidity code according to the package's linter configuration"
- id: staker-rewards-lint-js
name: 'staker rewards lint js'
entry: /usr/bin/env bash -c "cd staker-rewards && npm run lint:js"
files: '\.js$'
language: script
description: "Checks JS code according to the package's linter configuration"