al-quran.reflectslight.io/rake/tasks/format.rake

22 lines
403 B
Ruby
Raw Normal View History

2023-07-25 19:18:15 +02:00
# frozen_string_literal: true
2024-05-02 15:46:40 +02:00
namespace :format do
2023-07-25 19:18:15 +02:00
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
2024-05-02 15:46:40 +02:00
desc "Run all formats"
task format: ["format:rubocop", "format:eslint", "format:prettier"]