Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The wrong prettier settings are used if the root folder does not contain the package.json #51

Open
jerelmiller opened this issue Mar 27, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@jerelmiller
Copy link

I have a project structured like the following:

|-- .prettierrc.js
|-- client
    |-- package.json
    |-- src
        |-- index.js
        |-- // other js files
|-- server

The client is Javascript and the server is in a different language. I like to be able to edit both, so I open vim at the root of the project. When doing so, my prettier settings are completely ignored. If I open vim inside the client directory, then everything works as expected.

Is there a way to tell coc-prettier to use the proper settings? For example, I have bracketSpacing set to true, but when I run vim inside the root directory, formatting kicks in and removes all of the bracket spacing.

@chemzqm chemzqm added the help wanted Extra attention is needed label Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants