add Rake tasks eslint and lint:javascript
This commit is contained in:
parent
bf389a79b7
commit
bf418fcd75
|
@ -0,0 +1,7 @@
|
|||
unless Rails.env.production?
|
||||
desc "GitLab | Run ESLint"
|
||||
task :eslint do
|
||||
system("npm", "run", "eslint")
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
unless Rails.env.production?
|
||||
namespace :lint do
|
||||
desc "GitLab | lint | Lint JavaScript files using ESLint"
|
||||
task :javascript do
|
||||
Rake::Task['eslint'].invoke
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue