simplify eslint rake task
This commit is contained in:
parent
e652987947
commit
d21e54c0ce
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
unless Rails.env.production?
|
||||
desc "GitLab | Run ESLint"
|
||||
task eslint: ['yarn:check'] do
|
||||
sh "yarn run eslint" do |ok, res|
|
||||
abort('rake eslint failed') unless ok
|
||||
unless system('yarn run eslint')
|
||||
abort('rake eslint failed')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue