Skip to content

Commit

Permalink
Make relative path, update format
Browse files Browse the repository at this point in the history
  • Loading branch information
Snugug committed Aug 20, 2015
1 parent 45f323a commit a9a122e
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 @@ -32,7 +32,7 @@ var sassLint = function (options) {
file.sassLint = [lint.lintText({
'text': file.contents,
'format': path.extname(file.path).replace('.', ''),
'filename': file.path
'filename': path.relative(process.cwd(), file.path)
}, options)];

this.push(file);
Expand All @@ -50,7 +50,7 @@ sassLint.format = function () {
this.emit('error', new PluginError(PLUGIN_NAME, 'Streams are not supported!'));
return cb();
}
console.log(lint.formatResults(file.sassLint));
console.log(lint.format(file.sassLint));

this.push(file);
cb();
Expand Down

0 comments on commit a9a122e

Please sign in to comment.