Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

defines config as a property instead of a variable #99

Merged
merged 1 commit into from
Jun 25, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/linter-jshint.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class LinterJshint extends Linter

@disposables = new CompositeDisposable

config = findFile @cwd, ['.jshintrc']
@config = findFile @cwd, ['.jshintrc']
ignore = findFile @cwd, ['.jshintignore']
if config
@cmd = @cmd.concat ['-c', config]
if @config
@cmd = @cmd.concat ['-c', @config]

if ignore
@cmd = @cmd.concat ['--exclude-path', ignore]
Expand Down