Commit d21e54c0 authored by Mike Greiling's avatar Mike Greiling

simplify eslint rake task

parent e6529879
unless Rails.env.production? unless Rails.env.production?
desc "GitLab | Run ESLint" desc "GitLab | Run ESLint"
task eslint: ['yarn:check'] do task eslint: ['yarn:check'] do
sh "yarn run eslint" do |ok, res| unless system('yarn run eslint')
abort('rake eslint failed') unless ok abort('rake eslint failed')
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment