Skip to content

Commit

Permalink
Proper passing options object. Fixes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shpak authored Aug 17, 2016
1 parent 527536a commit 7fbcb14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var sassLint = function (options) {
var configFile = userOptions.configFile;

var compile = through.obj(function (file, encoding, cb) {
var config;

if (file.isNull()) {
return cb();
}
Expand All @@ -37,7 +37,7 @@ var sassLint = function (options) {
}

// load our config from sassLint and the user provided options if available
config = lint.getConfig(userOptions, configFile);
file.sassConfig = lint.getConfig(userOptions, configFile);
// save the config file within the file object for access when this file is piped around
file.userOptions = userOptions;
file.configFile = configFile;
Expand Down

0 comments on commit 7fbcb14

Please sign in to comment.