2019-07-02 04:29:52 -05:00
|
|
|
pre-commit:
|
|
|
|
parallel: true
|
|
|
|
commands:
|
|
|
|
rubocop:
|
2019-11-15 08:21:51 -06:00
|
|
|
glob: "*.rb"
|
2020-04-29 00:48:38 -05:00
|
|
|
run: bundle exec rubocop --parallel {staged_files}
|
2020-03-02 13:30:23 -06:00
|
|
|
prettier:
|
2021-11-13 05:51:53 -06:00
|
|
|
glob: "*.js"
|
2020-08-20 05:36:52 -05:00
|
|
|
include: "app/assets/javascripts|test/javascripts"
|
2021-01-27 10:25:48 -06:00
|
|
|
run: yarn pprettier --list-different {staged_files}
|
2021-11-21 19:30:12 -06:00
|
|
|
prettier-scss:
|
|
|
|
glob: "*.scss"
|
|
|
|
include: "app/assets/stylesheets"
|
|
|
|
run: yarn pprettier --list-different {staged_files}
|
2021-11-13 05:51:53 -06:00
|
|
|
eslint:
|
2020-03-12 12:29:55 -05:00
|
|
|
glob: "*.js"
|
2020-08-20 05:36:52 -05:00
|
|
|
include: "app/assets/javascripts|test/javascripts"
|
2020-03-12 12:29:55 -05:00
|
|
|
run: yarn eslint -f compact {staged_files}
|
2020-02-06 10:26:06 -06:00
|
|
|
ember-template-lint:
|
2020-04-15 00:57:28 -05:00
|
|
|
run: yarn run ember-template-lint {staged_files}
|
2019-07-02 04:29:52 -05:00
|
|
|
yaml-syntax:
|
2019-11-15 08:21:51 -06:00
|
|
|
glob: "*.{yaml,yml}"
|
2019-12-30 21:07:44 -06:00
|
|
|
# database.yml is an erb file not a yaml file
|
|
|
|
exclude: "database.yml"
|
2019-07-02 04:29:52 -05:00
|
|
|
run: bundle exec yaml-lint {staged_files}
|
2020-06-03 14:35:08 -05:00
|
|
|
i18n-lint:
|
|
|
|
glob: "**/{client,server}.en.yml"
|
|
|
|
run: bundle exec ruby script/i18n_lint.rb {staged_files}
|
2019-07-02 04:29:52 -05:00
|
|
|
|
|
|
|
commands: &commands
|
|
|
|
bundle-install:
|
2021-07-20 03:18:55 -05:00
|
|
|
files: git diff --name-only HEAD main
|
2019-11-15 08:21:51 -06:00
|
|
|
glob: "{Gemfile,Gemfile.lock,*.gemspec}"
|
2019-07-02 04:29:52 -05:00
|
|
|
run: bundle install
|
|
|
|
yarn-install:
|
2021-07-20 03:18:55 -05:00
|
|
|
files: git diff --name-only HEAD main
|
2019-11-15 08:21:51 -06:00
|
|
|
glob: "{package.json,yarn.lock}"
|
2019-07-02 04:29:52 -05: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:
|
2021-11-13 05:51:53 -06:00
|
|
|
glob: "*.js"
|
2020-08-20 05:36:52 -05:00
|
|
|
include: "app/assets/javascripts|test/javascripts"
|
2021-01-27 10:25:48 -06:00
|
|
|
run: yarn pprettier --list-different {all_files}
|
2021-11-21 19:30:12 -06:00
|
|
|
prettier-scss:
|
|
|
|
glob: "*.scss"
|
|
|
|
include: "app/assets/stylesheets"
|
|
|
|
run: yarn pprettier --list-different {all_files}
|
2020-03-12 12:29:55 -05:00
|
|
|
eslint-assets-js:
|
|
|
|
run: yarn eslint app/assets/javascripts
|
2020-08-20 05:36:52 -05:00
|
|
|
eslint-test-js:
|
|
|
|
run: yarn eslint test/javascripts
|
2019-07-02 04:29:52 -05:00
|
|
|
eslint-plugins-assets:
|
2021-11-13 05:51:53 -06:00
|
|
|
run: yarn eslint plugins/**/assets/javascripts
|
2019-07-02 04:29:52 -05:00
|
|
|
eslint-plugins-test:
|
2021-11-13 05:51:53 -06:00
|
|
|
run: yarn eslint plugins/**/test/javascripts
|
2020-06-03 14:35:08 -05:00
|
|
|
i18n-lint:
|
|
|
|
glob: "**/{client,server}.en.yml"
|
|
|
|
run: bundle exec ruby script/i18n_lint.rb {all_files}
|