提交 bf418fcd 编写于 作者: W winniehell

add Rake tasks eslint and lint:javascript

上级 bf389a79
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册