zed icon indicating copy to clipboard operation
zed copied to clipboard

Prettier integration don't follow the default order of precedence for config files (especially package.json)

Open MatteoGauthier opened this issue 1 year ago • 0 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

Zed seems to not use prettier configuration defined in package.json file when using monorepos. The Prettier documentation is mentioning the possibility of using "prettier" key in package.json to configure prettier settings.

Example :

  • my_project
    • api
      • package.json
    • front
      • index.ts (Trying to format this file, expect Zed Prettier integration to use the package.json file in the same directory)
      • package.json

Zed seems not to use this configuration

Environment

Zed: v0.134.4 (Zed) OS: macOS 13.6.3 Memory: 8 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

MatteoGauthier avatar May 14 '24 11:05 MatteoGauthier