simplify eslint rake task

This commit is contained in:
Mike Greiling 2017-02-15 16:03:50 -06:00
parent e652987947
commit d21e54c0ce
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
unless Rails.env.production?
desc "GitLab | Run ESLint"
task eslint: ['yarn:check'] do
sh "yarn run eslint" do |ok, res|
abort('rake eslint failed') unless ok
unless system('yarn run eslint')
abort('rake eslint failed')
end
end
end