Skip to content

Commit 8a115f9

Browse files
SimenBnot-an-aardvark
authored andcommitted
Fix: Guard against older prettier installation (#56)
1 parent cdd1a83 commit 8a115f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eslint-plugin-prettier.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ module.exports = {
337337
}
338338
}
339339

340-
if (prettier) {
340+
if (prettier && prettier.clearConfigCache) {
341341
prettier.clearConfigCache();
342342
}
343343

0 commit comments

Comments
 (0)