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

Formatting based on project's eslint/biome #460

Closed
qauff opened this issue Mar 22, 2024 · 3 comments
Closed

Formatting based on project's eslint/biome #460

qauff opened this issue Mar 22, 2024 · 3 comments

Comments

@qauff
Copy link

qauff commented Mar 22, 2024

Maybe I've my coc-tsserver setup incorrectly, but it seems like when I run :Format, the formatting used doesn't respect my projects eslint or biome. Is there a way to specify or a priority list of what formatter to use?

@fannheyward
Copy link
Member

fannheyward commented Mar 22, 2024

coc-server doesn't run biome to do formatting. Try coc-eslint/coc-biome.

@qauff
Copy link
Author

qauff commented Mar 22, 2024

I want to keep using :Format so that it's project specific. Does typescript.format.enable disable just coc-tsserver from being a formatter (defaulting to others that are enabled)? Or does it disable typescript and related filetypes from being affected by :Format altogether?

@qauff
Copy link
Author

qauff commented Mar 23, 2024

Ah. I see the issue now. It's not coc-tsserver. My bad. coc-prettier only supports an outdated prettier version, and doesn't like prettier.config.mjs. Sorry for false alarm!

neoclide/coc-prettier#172

@qauff qauff closed this as completed Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants