2019-07-02 05:29:52 -04:00
|
|
|
pre-commit:
|
|
|
|
parallel: true
|
|
|
|
commands:
|
|
|
|
rubocop:
|
2019-11-15 09:21:51 -05:00
|
|
|
glob: "*.rb"
|
2019-07-02 05:29:52 -04:00
|
|
|
run: bundle exec rubocop {staged_files}
|
|
|
|
eslint:
|
2019-11-15 09:21:51 -05:00
|
|
|
glob: "*.{js,es6}"
|
2020-02-25 17:28:53 -05:00
|
|
|
exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit"
|
2019-07-02 05:29:52 -04:00
|
|
|
run: yarn eslint --ext .es6 -f compact {staged_files}
|
2020-02-06 11:26:06 -05:00
|
|
|
ember-template-lint:
|
2019-07-02 05:29:52 -04:00
|
|
|
run: yarn run ember-template-lint app
|
|
|
|
yaml-syntax:
|
2019-11-15 09:21:51 -05:00
|
|
|
glob: "*.{yaml,yml}"
|
2019-12-30 22:07:44 -05:00
|
|
|
# database.yml is an erb file not a yaml file
|
|
|
|
exclude: "database.yml"
|
2019-07-02 05:29:52 -04:00
|
|
|
run: bundle exec yaml-lint {staged_files}
|
|
|
|
|
|
|
|
commands: &commands
|
|
|
|
bundle-install:
|
|
|
|
files: git diff --name-only HEAD master
|
2019-11-15 09:21:51 -05:00
|
|
|
glob: "{Gemfile,Gemfile.lock,*.gemspec}"
|
2019-07-02 05:29:52 -04:00
|
|
|
run: bundle install
|
|
|
|
yarn-install:
|
|
|
|
files: git diff --name-only HEAD master
|
2019-11-15 09:21:51 -05:00
|
|
|
glob: "{package.json,yarn.lock}"
|
2019-07-02 05:29:52 -04:00
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
post-checkout:
|
|
|
|
commands: *commands
|
|
|
|
|
|
|
|
post-merge:
|
|
|
|
commands: *commands
|
|
|
|
|
|
|
|
post-rewrite:
|
|
|
|
commands: *commands
|
|
|
|
|
|
|
|
lints:
|
|
|
|
parallel: true
|
|
|
|
commands:
|
|
|
|
rubocop:
|
|
|
|
run: bundle exec rubocop --parallel
|
|
|
|
prettier:
|
2019-11-15 09:21:51 -05:00
|
|
|
glob: "{app/assets/stylesheets/**/*.scss,app/assets/javascripts/**/*.es6,test/javascripts/**/*.es6}"
|
|
|
|
run: yarn prettier --list-different {all_files}
|
2019-07-02 05:29:52 -04:00
|
|
|
eslint-assets:
|
|
|
|
run: yarn eslint --ext .es6 app/assets/javascripts
|
|
|
|
eslint-test:
|
|
|
|
run: yarn eslint --ext .es6 test/javascripts
|
|
|
|
eslint-plugins-assets:
|
|
|
|
run: yarn eslint --ext .es6 plugins/**/assets/javascripts
|
|
|
|
eslint-plugins-test:
|
|
|
|
run: yarn eslint --ext .es6 plugins/**/test/javascripts
|
|
|
|
eslint-assets-tests:
|
|
|
|
run: yarn eslint app/assets/javascripts test/javascripts
|