Prettier 3.0.0 TypeError: prettier.resolveConfig.sync is not a function

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)