prettier / prettier-eslint-cli

CLI for prettier-eslint
https://npm.im/prettier-eslint-cli
MIT License
539 stars 85 forks source link

Support for Prettier 3 (TypeError: Expected `input` to be a `string`, got `object`) #448

Closed pabloimrik17 closed 11 months ago

pabloimrik17 commented 1 year ago

Relevant code/config.

Nothing

What you did:

Executed npx prettier-eslint --write ./src/*/.ts

What happened:

Got this error

prettier-eslint [ERROR]: prettier formatting failed due to a prettier error prettier-eslint-cli [ERROR]: There was an error formatting "C:\Users\PFE\WebstormProjects\plataforma-digital-a360-bitbucket\frontend\src\stories\Button.stories.ts": TypeError: Expected input to be a string, got object at module.exports (C:\Users\PFE\WebstormProjects\plataforma-digital-a360-bitbucket\frontend\node_modules\indent-string\index.js:11:9) at prettify (C:\Users\PFE\WebstormProjects\plataforma-digital-a360-bitbucket\frontend\node_modules\@prettier\eslint\dist\index.js:133:37) at format (C:\Users\PFE\WebstormProjects\plataforma-digital-a360-bitbucket\frontend\node_modules\@prettier\eslint\dist\index.js:113:20) at async C:\Users\PFE\WebstormProjects\plataforma-digital-a360-bitbucket\frontend\node_modules\prettier-eslint-cli\dist\format-files.js:255:26 failure formatting 180 files with prettier-eslint

Reproduction:

Just run the command with prettier 3.0.0

Suggested solution:

Update to support prettier 3.0.0 https://github.com/prettier/prettier-eslint/issues/920

JounQin commented 11 months ago

close in favor of #449, v8.0.0 has just been released!