42 Zeilen
1,2 KiB
YAML
42 Zeilen
1,2 KiB
YAML
|
skip_output:
|
||
|
- meta
|
||
|
- success
|
||
|
|
||
|
pre-commit:
|
||
|
parallel: true
|
||
|
commands:
|
||
|
rubocop:
|
||
|
glob: "*.rb"
|
||
|
run: bundle exec rubocop --parallel --force-exclusion {staged_files}
|
||
|
prettier:
|
||
|
glob: "*.js"
|
||
|
include: "app/assets/javascripts|plugins/.+?/assets/javascripts"
|
||
|
run: yarn prettier --list-different {staged_files}
|
||
|
prettier-scss:
|
||
|
glob: "*.scss"
|
||
|
include: "app/assets/stylesheets|plugins/.+?/assets/stylesheets"
|
||
|
run: yarn prettier --list-different {staged_files}
|
||
|
eslint:
|
||
|
glob: "*.js"
|
||
|
include: "app/assets/javascripts|plugins/.+?/assets/javascripts"
|
||
|
run: yarn eslint -f compact --quiet {staged_files}
|
||
|
i18n-lint:
|
||
|
glob: "**/{client,server}.en.yml"
|
||
|
run: bundle exec ruby script/i18n_lint.rb {staged_files}
|
||
|
|
||
|
lints:
|
||
|
parallel: true
|
||
|
commands:
|
||
|
rubocop:
|
||
|
glob: "*.rb"
|
||
|
run: bundle exec rubocop --parallel
|
||
|
prettier:
|
||
|
run: yarn prettier --list-different **/*.js
|
||
|
prettier-scss:
|
||
|
run: yarn prettier --list-different **/*.scss
|
||
|
eslint:
|
||
|
run: yarn eslint -f compact --quiet --ext .js .
|
||
|
i18n-lint:
|
||
|
glob: "**/{client,server}.en.yml"
|
||
|
run: bundle exec ruby script/i18n_lint.rb {all_files}
|