discourse-data-explorer/lefthook.yml

15 lines
458 B
YAML
Raw Normal View History

pre-commit:
parallel: true
commands:
rubocop:
glob: "*.rb"
run: bundle exec rubocop --parallel {staged_files}
prettier:
glob: "*.{scss,js,es6}"
include: "test/javascripts|assets/javascripts"
run: yarn prettier --list-different {staged_files}
eslint-js:
glob: "*.{js,es6}"
include: "test/javascripts|assets/javascripts"
run: yarn eslint --no-error-on-unmatched-pattern -f compact {staged_files}