Rakefile: add linter tasks
This commit is contained in:
parent
2eeeb439ec
commit
1fc7e9833b
1 changed files with 10 additions and 0 deletions
10
Rakefile.rb
10
Rakefile.rb
|
@ -14,4 +14,14 @@ namespace :deploy do
|
|||
end
|
||||
end
|
||||
|
||||
namespace :linter do
|
||||
task :ruby do
|
||||
sh "bundle exec rubocop lib/ src/"
|
||||
end
|
||||
|
||||
task :typescript do
|
||||
sh "npm run eslint"
|
||||
end
|
||||
end
|
||||
task lint: ["linter:ruby", "linter:typescript"]
|
||||
task default: "deploy:local"
|
||||
|
|
Loading…
Reference in a new issue