 linterPath = atom.packages.getLoadedPackage("linter").path
 Linter = require "#{linterPath}/lib/linter"
-findFile = require "#{linterPath}/lib/util"
+{findFile, warn} = require "#{linterPath}/lib/utils"
 
 class LinterJshint extends Linter
   # The syntax that the linter handles. May be a string or

    @executablePath = "#{jshintExecutablePath}"

  formatMessage: (match) ->
    "#{match.message} (#{match.type}#{match.code})"

  destroy: ->
    atom.config.unobserve 'linter-jshint.jshintExecutablePath'

    '(?<message>.+) ' +
    # capture error, warning and code
    '\\(((?<error>E)|(?<warning>W))(?<code>[0-9]+)\\)'+
    ')'

  isNodeExecutable: yes
