Browse Source

Add linting tasks

pull/498/head
Paul Robert Lloyd 3 years ago
parent
commit
96094f5b31
  1. 17
      lib/tasks/lint.rake

17
lib/tasks/lint.rake

@ -0,0 +1,17 @@
desc "Run Rubocop"
task rubocop: :environment do
sh "bundle exec rubocop"
end
desc "Run ERB Lint"
task erblint: :environment do
sh "bundle exec erblint --lint-all"
end
desc "Run Stylelint"
task stylelint: :environment do
sh "yarn stylelint app/frontend/styles"
end
desc "Run all the linters"
task lint: %i[rubocop erblint stylelint]
Loading…
Cancel
Save