Sha256: 5bab0222fef1d9b1289a7bb9cd82f728e2b64bf304b0d16044b5f67325fb416f

Contents?: true

Size: 874 Bytes

Versions: 7

Compression:

Stored size: 874 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, "rubocop .")
  end

  desc "Run ruby-lint as shell"
  task :ruby do
    sh_in_dir(gem_root, "ruby-lint app spec lib")
  end

  desc "Run scss-lint as shell"
  task :scss do
    sh_in_dir(gem_root, "scss-lint spec/dummy/app/assets/stylesheets/")
  end

  desc "Run eslint as shell"
  task :eslint do
    sh_in_dir(gem_root, "eslint . --ext .jsx and .js")
  end

  desc "Run jscs from shell"
  task :jscs do
    sh_in_dir(gem_root, "jscs -e -v .")
  end

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

7 entries across 7 versions & 1 rubygems

Version Path
react_on_rails-1.2.2 rakelib/lint.rake
react_on_rails-1.2.1 rakelib/lint.rake
react_on_rails-2.0.0.rc.1 rakelib/lint.rake
react_on_rails-2.0.0.beta.3 rakelib/lint.rake
react_on_rails-2.0.0.beta.2 rakelib/lint.rake
react_on_rails-1.2.0 rakelib/lint.rake
react_on_rails-1.2.0.rc1 rakelib/lint.rake