summaryrefslogtreecommitdiff
path: root/lib/tasks/eslint.rake
blob: d440085696d51c18d8898709027cae8838ea1ad7 (plain)
1
2
3
4
5
6
7
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
    end
  end
end