forked from chicago-tool-library/circulate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
30 lines (30 loc) · 792 Bytes
/
lefthook.yml
File metadata and controls
30 lines (30 loc) · 792 Bytes
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
# EXAMPLE USAGE
# Refer for explanation to following link:
# https://github.com/Arkweid/lefthook/blob/master/docs/full_guide.md
#
# pre-push:
# commands:
# packages-audit:
# tags: frontend security
# run: yarn audit
# gems-audit:
# tags: backend security
# run: bundle audit
#
pre-commit:
parallel: true
commands:
# eslint:
# glob: "*.{js,ts}"
# run: yarn eslint {staged_files}
standard:
tags: style
glob: "*.rb"
exclude: "application.rb|routes.rb"
run: bundle exec standardrb --parallel --fix {staged_files} && git add {staged_files}
circleci:
tags: config
run: circleci config validate
readme:
tags: lint
run: ./node_modules/.bin/markdown-toc -i README.md && git add README.md