Sha256: 6e51dcd65bb39d2b321d250e08d32fe401a74a616cac226a3967a04eb6301911

Contents?: true

Size: 951 Bytes

Versions: 13

Compression:

Stored size: 951 Bytes

Contents

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, "npm run eslint")
  end

  desc "Run flow from shell"
  task :flow do
    sh_in_dir(gem_root, "npm run flow")
  end

  desc "Run all eslint, flow, rubocop linters. Skip ruby-lint and scss"
  task lint: [: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

13 entries across 13 versions & 1 rubygems

Version Path
react_on_rails-6.6.0.alpha.1 rakelib/lint.rake
react_on_rails-6.5.1 rakelib/lint.rake
react_on_rails-6.5.0 rakelib/lint.rake
react_on_rails-6.4.2 rakelib/lint.rake
react_on_rails-6.5.0.beta.1 rakelib/lint.rake
react_on_rails-6.4.1 rakelib/lint.rake
react_on_rails-6.4.0 rakelib/lint.rake
react_on_rails-6.3.5 rakelib/lint.rake
react_on_rails-6.3.4 rakelib/lint.rake
react_on_rails-6.3.3 rakelib/lint.rake
react_on_rails-6.3.2 rakelib/lint.rake
react_on_rails-6.3.1 rakelib/lint.rake
react_on_rails-6.3.0 rakelib/lint.rake