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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
220 B
Ruby
Raw Normal View History

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