-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
Format package.json
like Prettier does, by default
#4370
Comments
Could be nice as a default - for anyone looking in the meantime, as called out in other threads this override provides expected results: "overrides": [
{
"include": ["**/package.json"],
"formatter": {
"lineWidth": 1
}
}
] |
Technically, the correct way to do this is to match prettier's We could:
The latter would obviously be the easiest to implement, but I have no idea if it would make the formatting align completely with |
I tried the override trick, and it doesn't scale well. Plus, it gets in the way of other tools like |
I am more convinced that we should purse this proposal Why? It follows the philosophy that we're pursuing, where the formatter is opinionated and it's language agnostic. For this particular case:
|
Actually I was thinking about an implicit override that is always here regardless if
I have to admit that I am not convinced by this proposal because we lose granularity. |
@Conaclos that's exactly what I did, and it doesn't work very well. It can't be used as a default value of the configuration because it gets in the way of the migration command, it gets printed at the end. |
Could you expand on this and/or provide an example? I don't understand what you mean. |
Solution
The text was updated successfully, but these errors were encountered: