require_relative 'base' module LintTrap module Linter # Encapsulates logic specific to jshint command line tool. class JSHint < Base FORMATTER = 'jshint/formatter.js' def languages super(Language::JavaScript) end private def flags [ '--reporter', config_path(FORMATTER) ].tap do |flags| flags.concat(['--config', options[:config]]) if options[:config] end end end end end