gitlab-org--gitlab-foss/lib/tasks/eslint.rake

11 lines
211 B
Ruby
Raw Normal View History

# frozen_string_literal: true
unless Rails.env.production?
desc "GitLab | Run ESLint"
task eslint: ['yarn:check'] do
2017-02-15 17:03:50 -05:00
unless system('yarn run eslint')
abort('rake eslint failed')
end
end
end