Sha256: 3289276f875fcb6e920e2d9f2ddfd4c10411a84216522862165d47b7da456334
Contents?: true
Size: 981 Bytes
Versions: 27
Compression:
Stored size: 981 Bytes
Contents
# frozen_string_literal: true require_relative "task_helpers" include ReactOnRails::TaskHelpers namespace :lint do 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 flow from shell" task :flow do sh_in_dir(gem_root, "yarn run flow") end desc "Run all eslint, flow, rubocop linters. Skip ruby-lint and scss" task lint: %i[eslint flow 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
27 entries across 27 versions & 1 rubygems