Skip to content

Commit

Permalink
Merge pull request #56 from sergey-shpak/master
Browse files Browse the repository at this point in the history
Proper passing options object. Fixes #55
  • Loading branch information
DanPurdy authored Nov 7, 2016
2 parents d0cf53b + 7fbcb14 commit a683c9f
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 a683c9f

Please sign in to comment.