From 7fbcb14792eb573728365abfb2e76a0ac03e6a1c Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 17 Aug 2016 20:35:50 +0300 Subject: [PATCH] Proper passing options object. Fixes #55 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 3747993..bca9360 100644 --- a/index.js +++ b/index.js @@ -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(); } @@ -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;