debian-mirror-gitlab/lib/tasks/eslint.rake

9 lines
180 B
Ruby
Raw Permalink Normal View History

2017-08-17 22:00:37 +05:30
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