Skip to content
Snippets Groups Projects
Commit bf418fcd authored by winniehell's avatar winniehell
Browse files

add Rake tasks eslint and lint:javascript

parent bf389a79
No related branches found
No related tags found
No related merge requests found
unless Rails.env.production?
desc "GitLab | Run ESLint"
task :eslint do
system("npm", "run", "eslint")
end
end
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment