Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
use the default config on new unsaved files - fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 2, 2014
1 parent 581616b commit b915b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function run() {

var retText = '';
var file = editor.getUri();
var config = jshintCli.getConfig(file);
var config = file ? jshintCli.getConfig(file) : {};
var selectedText = editor.getSelectedText();
var text = selectedText || editor.getText();

Expand Down

0 comments on commit b915b6d

Please sign in to comment.