Skip to content

Commit

Permalink
quick patch bug
Browse files Browse the repository at this point in the history
  • Loading branch information
billybonks committed Jun 21, 2019
1 parent b9c2a02 commit a93924e
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 a93924e

Please sign in to comment.