Skip to content

Commit

Permalink
fix: compatibility with prettier@3 without plugins (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
auvred authored Jul 6, 2023
1 parent 00449df commit ae7a73c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stale-guests-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-prettier": patch
---

fix: compatibility with prettier@3 without plugins
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ runAsWorker(
withNodeModules: false,
ignorePath: '.prettierignore',
plugins: /** @type {string[] | undefined} */ (
prettierRcOptions ? prettierRcOptions.plugins : null
prettierRcOptions ? prettierRcOptions.plugins : undefined
),
...eslintFileInfoOptions,
},
Expand Down

0 comments on commit ae7a73c

Please sign in to comment.