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