Skip to content

Commit

Permalink
Fix: Guard against older prettier installation (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and not-an-aardvark committed Sep 18, 2017
1 parent cdd1a83 commit 8a115f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint-plugin-prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ module.exports = {
}
}

if (prettier) {
if (prettier && prettier.clearConfigCache) {
prettier.clearConfigCache();
}

Expand Down

0 comments on commit 8a115f9

Please sign in to comment.