DEV: Ensure prettier uses the same patterns everywhere

This commit is contained in:
Gerhard Schlager
2020-08-20 12:36:52 +02:00
committed by Gerhard Schlager
parent 0bd27cd10b
commit 208d85aaff
4 changed files with 21 additions and 11 deletions

View File

@@ -6,15 +6,15 @@ pre-commit:
run: bundle exec rubocop --parallel {staged_files}
prettier:
glob: "*.{js,es6}"
exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit"
include: "app/assets/javascripts|test/javascripts"
run: yarn prettier --list-different {staged_files}
eslint-es6:
glob: "*.es6"
exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit"
include: "app/assets/javascripts|test/javascripts"
run: yarn eslint --ext .es6 -f compact {staged_files}
eslint-js:
glob: "*.js"
exclude: "vendor/*|fixtures|public/javascripts|shims.js|ember-addons|template-lintrc|locale/*|test_helper|run-qunit"
include: "app/assets/javascripts|test/javascripts"
run: yarn eslint -f compact {staged_files}
ember-template-lint:
run: yarn run ember-template-lint {staged_files}
@@ -52,14 +52,17 @@ lints:
rubocop:
run: bundle exec rubocop --parallel
prettier:
glob: "{app/assets/stylesheets/**/*.scss,app/assets/javascripts/**/*.es6,test/javascripts/**/*.es6}"
glob: "*.{js,es6}"
include: "app/assets/javascripts|test/javascripts"
run: yarn prettier --list-different {all_files}
eslint-assets-es6:
run: yarn eslint --ext .es6 app/assets/javascripts
eslint-assets-js:
run: yarn eslint app/assets/javascripts
eslint-test:
eslint-test-es6:
run: yarn eslint --ext .es6 test/javascripts
eslint-test-js:
run: yarn eslint test/javascripts
eslint-plugins-assets:
run: yarn eslint --global I18n --ext .es6 plugins/**/assets/javascripts
eslint-plugins-test: