From 8a115f9cc57dc20c9fc5c2b942f1e4770a5d730e Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 18 Sep 2017 18:07:42 +0200 Subject: [PATCH] Fix: Guard against older prettier installation (#56) --- eslint-plugin-prettier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint-plugin-prettier.js b/eslint-plugin-prettier.js index a5c0b757..9f878d00 100644 --- a/eslint-plugin-prettier.js +++ b/eslint-plugin-prettier.js @@ -337,7 +337,7 @@ module.exports = { } } - if (prettier) { + if (prettier && prettier.clearConfigCache) { prettier.clearConfigCache(); }