From 3c47f1c8057aa60f45f68ae2d2da5a040cb41786 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Mon, 18 Sep 2017 13:54:30 +0200 Subject: [PATCH] Guard against older prettier installation --- 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(); }