2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
unless Rails.env.production?
|
|
|
|
desc "GitLab | Run ESLint"
|
|
|
|
task eslint: ['yarn:check'] do
|
2021-04-17 20:07:23 +05:30
|
|
|
unless system('yarn run lint:eslint:all')
|
2017-08-17 22:00:37 +05:30
|
|
|
abort('rake eslint failed')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|