Sha256: ee1481212ca609d994fa79d2cc96148147ddf9bd93cf428d03cf522387ca00d7
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
# frozen_string_literal: true require_relative "task_helpers" namespace :lint do 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
react_on_rails-12.0.3 | rakelib/lint.rake |
react_on_rails-12.0.3.beta.0 | rakelib/lint.rake |
react_on_rails-12.0.2 | rakelib/lint.rake |
react_on_rails-12.0.1 | rakelib/lint.rake |