-
-
Notifications
You must be signed in to change notification settings - Fork 456
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 road to v2 #488
Comments
+1 to rely only in |
I’m all in for a local config file. Multiple team members with different configs goes against the basic concept of prettier. |
If people want to change their prettier config they will do it via the vscode interface or a local .prettierrc file if needed. I am not sure how simply making it slightly harder to do via the file resolves the issues of teams staying in sync? The only real solution is to have zero options, which nobody wants. Having just the core options in the extension seems like the most sensible comprimise:
Also, I suspect the majority of people using the extension are not in teams and appreciate the added convenience of having a setting in the interface, especially new programmers. Personally, having another config file in my local directory would be another little annoyance... I am trying to bung as many as possible into the package.json... but I am an OCD tidy freak :) |
Prettier config can live in the package.json, too --> https://prettier.io/docs/en/configuration.html |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I don't think you should need to implement plugin loading yourselves; we added a getFileInfo API recently to facilitate this. @kachkaev is probably more familiar with the details; they added it for use in the Atom plugin. |
There is an ongoing work by @robwise to simplify Atom plugin: prettier/prettier-atom#404 Perhaps, you could use the same design principles and a similar approach? |
@kachkaev interesting, they are simplifying it as well. Nice! |
If global settings are removed from prettier-vscode, I would recommend changing Separately, it might be worth releasing a "warning" version of the extension first which could offer to add a |
I'm all for using the |
And if .prettierrc is not found in the current project, a global instance of prettier with all its plugins is picked (or a built-in vscode prettier if a global prettier is not installed) Use case: a workspace where one project is a node.js one (with local prettier) and another one is php/python/elm etc (no local npm packages -> global prettier + corresponding plugins) |
Perhaps this is covered elsewhere already, but I'd really like to be able to customize not just whether prettier auto-formats a given language file, but also customize the indentation level per-language. |
@clozach that is already possible if you override the |
These are great suggestions and i have incorporated them into the planning and discussion for version 3.0. Lets continue the conversation there: #958 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The road to v2
We have come very far using this extension. I would like to start with a big thank you to all the contributors. I would also like to thank all our users. And last but not least I would also like to thank the whole prettier team.
That being said, I think it is time that we write our road map to the
2.0.0
release.Plugins
Plugins are still in beta, but I think that they can be very useful.
What if we make sure that plugins are automatically resolved correctly. According to the docs they should be loaded automatically when they start with
@prettier/plugin-
orprettier-plugin-
. We probably have to resolve these based on the used prettier version.Here are some crazy thoughts:
Configuration
Currently we have a bunch of options, and people want even more options. Options are not fun, trust me.
Configuration options also have some problems, e.g.: The goal of prettier is to let teams write code however they want and prevent nitpicking on issues. But what if you have the option
"prettier.semi": true,
and your colleague has the option"prettier.semi": false,
. You just introduced nitpicks on all your PR's, so here is a suggestion.What if we remove most of the options in the VSCode extension, and we just read from the configuration from a local (or a parent one if you have multiple projects) prettier config like
.prettierrc
.It might be a good idea to keep the core options in place, I don't know yet.
Advantages:
Disadvantages:
Feature list
Thanks
Thank you for reading, feel free to list other features.
The text was updated successfully, but these errors were encountered: