-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
52 lines (52 loc) · 1.65 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
repos:
# https://docs.franco.net.eu.org/md-toc/pre_commit_hook.html
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.6.0'
hooks:
- id: check-added-large-files
args: ['--maxkb=16384']
- id: check-case-conflict
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
args: ['--assume-in-merge']
- id: check-symlinks
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
# - id: no-commit-to-branch
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v9.7.0'
hooks:
- id: eslint
additional_dependencies:
- repo: local
hooks:
- id: prettier-local
name: prettier local
description: Prettier local project
entry: prettier --list-different --ignore-unknown --write
language: node
additional_dependencies: ['[email protected]']
types: [text]
exclude_types: [markdown]
args: []
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.3'
hooks:
- id: editorconfig-checker
alias: ec
args: [-disable-insert-final-newline]
# exclude: '^ripi/(.*)$'
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: 'v1.1.2'
hooks:
# https://github.com/jonschlinkert/markdown-toc
- id: markdown-toc
args: [--maxdepth, '3', --bullets, '-', -i]
- repo: https://github.com/sirwart/ripsecrets
rev: 'v0.1.8' # Use latest tag on GitHub
hooks:
- id: ripsecrets