There is an incompatibility between prettier 3 and eslint-plugin-prettier 4.
You can fix this by using version 5 of eslint-plugin-prettier:
yarn add -D eslint-plugin-prettier@5.0.0
or
npm install --save-dev eslint-plugin-prettier@5.0.0
- Official issue: https://github.com/prettier/eslint-plugin-prettier/issues/562
- v5 release notes: https://github.com/prettier/eslint-plugin-prettier/releases/tag/v5.0.0