Sha256: b761db50208129404505107a11031c200b7843f13a750af4cfa0acde30e9e0f4
Contents?: true
Size: 919 Bytes
Versions: 6
Compression:
Stored size: 919 Bytes
Contents
# frozen_string_literal: true require_relative "task_helpers" namespace :lint do # rubocop:disable Metrics/BlockLength include ReactOnRails::TaskHelpers desc "Run Rubocop as shell" task :rubocop do sh_in_dir(gem_root, "bundle exec rubocop .") end desc "Run ruby-lint as shell" task :ruby do puts "See /ruby-lint.yml for what directories are included." sh_in_dir(gem_root, "bundle exec ruby-lint .") end desc "Run scss-lint as shell" task :scss do sh_in_dir(gem_root, "bundle exec scss-lint spec/dummy/app/assets/stylesheets/") end desc "Run eslint as shell" task :eslint do sh_in_dir(gem_root, "yarn run eslint") end desc "Run all eslint & rubocop linters. Skip ruby-lint and scss" task lint: %i[eslint rubocop] do puts "Completed all linting" end end desc "Runs all linters. Run `rake -D lint` to see all available lint options" task lint: ["lint:lint"]
Version data entries
6 entries across 6 versions & 1 rubygems