22 lines
403 B
Ruby
22 lines
403 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
namespace :linter do
|
||
|
desc "Run rubocop (Ruby)"
|
||
|
task :rubocop do
|
||
|
sh "bundle exec rubocop -A"
|
||
|
end
|
||
|
|
||
|
desc "Run eslint (TypeScript)"
|
||
|
task :eslint do
|
||
|
sh "npm run eslint"
|
||
|
end
|
||
|
|
||
|
desc "Run prettier (TypeScript)"
|
||
|
task :prettier do
|
||
|
sh "npm run prettier"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
desc "Run all linters"
|
||
|
task linter: ["linter:rubocop", "linter:eslint", "linter:prettier"]
|