diff --git a/.changeset/stale-guests-battle.md b/.changeset/stale-guests-battle.md new file mode 100644 index 00000000..93873fda --- /dev/null +++ b/.changeset/stale-guests-battle.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-prettier": patch +--- + +fix: compatibility with prettier@3 without plugins diff --git a/worker.js b/worker.js index db426859..80630475 100644 --- a/worker.js +++ b/worker.js @@ -48,7 +48,7 @@ runAsWorker( withNodeModules: false, ignorePath: '.prettierignore', plugins: /** @type {string[] | undefined} */ ( - prettierRcOptions ? prettierRcOptions.plugins : null + prettierRcOptions ? prettierRcOptions.plugins : undefined ), ...eslintFileInfoOptions, },