Sha256: dda21d0254c17ffad745859831df77bc4a2723ddeaa00b636403e039005296f1

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

require_relative 'base'

module LintTrap
  module Linter
    # Encapsulates logic specific to jshint command line tool.
    class JSHint < Base
      FORMATTER = 'jshint/formatter.js'

      def version
        '2.5.11'
      end

    private

      def flags(container, options)
        [
          '--reporter', container.config_path(FORMATTER)
        ].tap do |flags|
          flags.concat(['--config', options[:config]]) if options[:config]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lint_trap-0.0.19 lib/lint_trap/linter/jshint.rb
lint_trap-0.0.18 lib/lint_trap/linter/jshint.rb
lint_trap-0.0.17 lib/lint_trap/linter/jshint.rb
lint_trap-0.0.16 lib/lint_trap/linter/jshint.rb