Formatter should handle [{...}] better
- Dominant language
- Jsonnet
- Stars
- 7.6k
- Forks
- 475
- PR merge metrics
- No merged PRs in 30d
Description
jsonnet fmt changed the following code from:
```
volumeMounts: [
{
name: "deployment-config",
mountPath:
if cluster.isLocal then
"/box/deployment-config"
else
"/box"
,
},
],
```
to:
```
volumeMounts: [
{
name: "deployment-config",
mountPath:
if cluster.isLocal then
"/box/deployment-config"
else
"/box",
},
],
```
which is mis-indented. My personal taste would have had the whole thing turned to:
```
volumeMounts: [{
name: "deployment-config",
mountPath:
if cluster.isLocal then
"/box/deployment-config"
else
"/box",
}],
```
Contributor guide
Assessment
This issue has not been assessed yet.