FIX: prevents eslint failure on unmatched patterns in plugins (#10648)

FIX: prevents eslint failure on unmatched patterns in plugins (#10648)

The recent upgrade of eslint fails if no files is found for the defined patterns.

diff --git a/lib/tasks/docker.rake b/lib/tasks/docker.rake
index cdcce4f..1d658eb 100644
--- a/lib/tasks/docker.rake
+++ b/lib/tasks/docker.rake
@@ -68,7 +68,7 @@ task 'docker:test' do
       if ENV["SINGLE_PLUGIN"]
         @good &&= run_or_fail("bundle exec rubocop --parallel plugins/#{ENV["SINGLE_PLUGIN"]}")
         @good &&= run_or_fail("bundle exec ruby script/i18n_lint.rb plugins/#{ENV["SINGLE_PLUGIN"]}/config/locales/{client,server}.en.yml")
-        @good &&= run_or_fail("yarn eslint --global I18n --ext .es6 plugins/#{ENV['SINGLE_PLUGIN']}")
+        @good &&= run_or_fail("yarn eslint --global I18n --ext .js,.js.es6 --no-error-on-unmatched-pattern plugins/#{ENV['SINGLE_PLUGIN']}")
 
         puts "Listing prettier offenses in #{ENV['SINGLE_PLUGIN']}:"
         @good &&= run_or_fail_prettier("plugins/#{ENV['SINGLE_PLUGIN']}/**/*.scss", "plugins/#{ENV['SINGLE_PLUGIN']}/**/*.{js,es6}")
@@ -78,7 +78,7 @@ task 'docker:test' do
         @good &&= run_or_fail("yarn eslint app/assets/javascripts test/javascripts") unless ENV["SKIP_CORE"]
 
         # TODO: remove --global I18n once plugins can be updated
-        @good &&= run_or_fail("yarn eslint --global I18n --ext .es6 plugins") unless ENV["SKIP_PLUGINS"]
+        @good &&= run_or_fail("yarn eslint --global I18n --ext .js,.js.es6 --no-error-on-unmatched-pattern plugins") unless ENV["SKIP_PLUGINS"]
 
         @good &&= run_or_fail('bundle exec ruby script/i18n_lint.rb "config/locales/{client,server}.en.yml"') unless ENV["SKIP_CORE"]
         @good &&= run_or_fail('bundle exec ruby script/i18n_lint.rb "plugins/**/locales/{client,server}.en.yml"') unless ENV["SKIP_PLUGINS"]

GitHub sha: a60ba75a

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/travis-tests-failing-due-to-eslint/163268/6

This commit appears in #10648 which was merged by jjaffeux.