Welcome to mirror list, hosted at ThFree Co, Russian Federation.

linter.rake « tasks « lib - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f80d074d230f45c2117df866213b03cb13bc0e14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

begin
  require "eslintrb/eslinttask"
  Eslintrb::EslintTask.new :eslint do |t|
    t.pattern = "{app/assets,lib/assets,spec}/javascripts/**/*.js"
    t.exclude_pattern = "app/assets/javascripts/{jasmine-load-all,main,mobile/mobile,templates}.js"
    t.options = :eslintrc
  end
rescue LoadError
  desc "eslint rake task not available (eslintrb not installed)"
  task :eslint do
    abort "ESLint rake task is not available. Be sure to install eslintrb."
  end
end