diff --git a/eslint-plugin-prettier.js b/eslint-plugin-prettier.js index 0c99b131..10ab1b80 100644 --- a/eslint-plugin-prettier.js +++ b/eslint-plugin-prettier.js @@ -163,9 +163,15 @@ module.exports = { }) : null; - const prettierFileInfo = prettier.getFileInfo.sync(filepath, { - ignorePath: '.prettierignore' - }); + const prettierFileInfo = prettier.getFileInfo.sync( + filepath, + Object.assign( + { + ignorePath: '.prettierignore' + }, + prettierRcOptions + ) + ); // Skip if file is ignored using a .prettierignore file if (prettierFileInfo.ignored) {