gitlab-org--gitlab-foss/lib/tasks/eslint.rake
2017-02-15 23:46:29 -06:00

8 lines
180 B
Ruby

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