debian-mirror-gitlab/lib/tasks/eslint.rake
2021-03-11 19:13:27 +05:30

10 lines
211 B
Ruby

# frozen_string_literal: true
unless Rails.env.production?
desc "GitLab | Run ESLint"
task eslint: ['yarn:check'] do
unless system('yarn run eslint')
abort('rake eslint failed')
end
end
end