Skip to content

Commit b4e031d

Browse files
committed
Merge pull request #2 from robrich/master
Don't turn string's characters into options
2 parents 5bb0dc7 + f1a9636 commit b4e031d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,11 @@ var cssLintPlugin = function(options) {
4646
var externalOptions = fs.readFileSync('./'+options);
4747

4848
try {
49-
externalOptions = JSON.parse(externalOptions);
49+
options = JSON.parse(externalOptions);
5050
}
5151
catch(err) {
5252
throw new Error('Error parsing csslintrc: '+err);
5353
}
54-
55-
// Override external options with options specified in gulpfile
56-
for (var option in options) {
57-
externalOptions[option] = options[option];
58-
}
59-
60-
// Use combined options
61-
options = externalOptions;
6254
}
6355

6456
// Build a list of all available rules

0 commit comments

Comments
 (0)