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

Respect editorconfig instead needing to use --use-tabs #31

Open
allejo opened this issue Aug 3, 2020 · 3 comments
Open

Respect editorconfig instead needing to use --use-tabs #31

allejo opened this issue Aug 3, 2020 · 3 comments

Comments

@allejo
Copy link

allejo commented Aug 3, 2020

Instead of relying on the user to manually use --use-tabs or useTabs, can this tool respect an existing .editorconfig's configuration as prettier itself, does?

@cameronhunter
Copy link
Owner

Good idea. Is there a package that will parse prettier and editorconfig files that can be used?

@allejo
Copy link
Author

allejo commented May 10, 2021

Prettier uses cosmiconfig for configuration file support.

Source: https://prettier.io/docs/en/configuration.html

There doesn't seem to be a "one package fits all" for this scenario. Prettier uses a combination of cosmiconfig for its own configuration file and editorconfig for its handling of .editorconfig files.

@cameronhunter
Copy link
Owner

I recently added cosmiconfig, I can look into editorconfig. Of course, contributions are welcome too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants