forked from OffchainLabs/arbitrum-classic
/
.pre-commit-config.yaml
47 lines (47 loc) · 1.36 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
exclude: |
(?x)(
^packages/arb-avm-cpp/external/keccak/|
^packages/arb-bridge-eth/installed_contracts/
)
repos:
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
- repo: git://github.com/doublify/pre-commit-clang-format
rev: master
hooks:
- id: clang-format
- repo: git://github.com/dnephin/pre-commit-golang
rev: master
hooks:
- id: go-fmt
- repo: https://github.com/prettier/prettier
rev: '2.0.5' # Use the sha or tag you want to point at
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v6.8.0' # Use the sha / tag you want to point at
hooks:
- id: eslint
args: [--fix]
types: [text]
# ignore prettier config
files: '^(?!.*?\.prettier).*\.(jsx?|tsx?)[[:>:]]'
additional_dependencies:
- 'eslint@6.8.0'
- 'typescript@3.8.3'
- 'prettier@2.0.5'
- '@typescript-eslint/parser@2.29.0'
- '@typescript-eslint/eslint-plugin@2.29.0'
- eslint-config-prettier@6.10.1
- eslint-plugin-prettier@3.1.3
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.16
hooks:
- id: circleci-config-validate