]> git.openstreetmap.org Git - rails.git/blob - .overcommit.yml
Bump eslint from 9.13.0 to 9.14.0
[rails.git] / .overcommit.yml
1 # Use this file to configure the Overcommit hooks you wish to use. This will
2 # extend the default configuration defined in:
3 # https://github.com/sds/overcommit/blob/master/config/default.yml
4 #
5 # At the topmost level of this YAML file is a key representing type of hook
6 # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7 # customize each hook, such as whether to only run it on certain files (via
8 # `include`), whether to only display output if it fails (via `quiet`), etc.
9 #
10 # For a complete list of hooks, see:
11 # https://github.com/sds/overcommit/tree/master/lib/overcommit/hook
12 #
13 # For a complete list of options that you can use to customize hooks, see:
14 # https://github.com/sds/overcommit#configuration
15 #
16 # Uncomment the following lines to make the configuration take effect.
17
18 gemfile: Gemfile
19
20 PreCommit:
21   ErbLint:
22     enabled: true
23   EsLint:
24     enabled: true
25     command: ["bin/yarn", "eslint", "-c", "config/eslint.js"]
26     exclude:
27       - vendor/**/*.js
28   RailsSchemaUpToDate:
29     enabled: true
30   RuboCop:
31     enabled: true
32     on_warn: fail
33   TrailingWhitespace:
34     enabled: true
35
36 PrePush:
37   Brakeman:
38     enabled: true
39
40 PostCheckout:
41   BundleInstall:
42     enabled: true
43   YarnInstall:
44     enabled: true
45     required_executable: bin/yarn