Skip to content

Commit

Permalink
Merge pull request #189 from billybonks/patch/relpath
Browse files Browse the repository at this point in the history
quick patch bug
  • Loading branch information
billybonks authored Jun 21, 2019
2 parents ef71f23 + a93924e commit fe100fb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/broccoli-stylelint.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,17 @@ class BroccoliStyleLint extends Filter {
let self = this;
this.internalOptions.linterConfig.code = content;
this.internalOptions.linterConfig.codeFilename = path.join(this.inputNodesDirectory, relativePath);
if(this.ignorer.ignores(this.internalOptions.linterConfig.codeFilename)){
return;

try {
if(this.ignorer.ignores(this.internalOptions.linterConfig.codeFilename)) {
return;
}
} catch(e) {
if(this.ignorer.ignores(relativePath)) {
return;
}
}

return stylelint.lint(this.internalOptions.linterConfig).then(results => {
//sets the value to relative path otherwise it would be absolute path
results = self.processResults(results, relativePath);
Expand Down

0 comments on commit fe100fb

Please sign in to comment.