debian-mirror-gitlab/lib/tasks/eslint.rake
2021-04-17 20:07:23 +05:30

10 lines
220 B
Ruby

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