Commit d30307e3 authored by Stan Hu's avatar Stan Hu

Merge branch 'update-example-overcommit' into 'master'

Add real world config to overcommit example

See merge request gitlab-org/gitlab!19322
parents 7d75225e 2286c278
...@@ -16,10 +16,25 @@ ...@@ -16,10 +16,25 @@
# Uncomment the following lines to make the configuration take effect. # Uncomment the following lines to make the configuration take effect.
PreCommit: PreCommit:
AuthorName:
enabled: false
EsLint:
enabled: true
# https://github.com/sds/overcommit/issues/338
command: './node_modules/eslint/bin/eslint.js'
HamlLint:
enabled: true
MergeConflicts:
enabled: true
exclude:
- '**/conflict/file_spec.rb'
- '**/git/conflict/parser_spec.rb'
# prettier? https://github.com/sds/overcommit/issues/614 https://github.com/sds/overcommit/issues/390#issuecomment-495703284
RuboCop: RuboCop:
enabled: true enabled: true
# on_warn: fail # Treat all warnings as failures # on_warn: fail # Treat all warnings as failures
# ScssLint:
enabled: true
#PostCheckout: #PostCheckout:
# ALL: # Special hook name that customizes all hooks of this type # ALL: # Special hook name that customizes all hooks of this type
# quiet: true # Change all post-checkout hooks to only display output on failure # quiet: true # Change all post-checkout hooks to only display output on failure
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment