Open artembelik opened 3 months ago
Nice catch! I'll try to repro and fix.
Note: this also happens in JSON (since JSON doesn't allow trailing commas)
I have the same issue with trailingComma: 'es5'
Original code
{
"files": [],
"references": [
{"path": "./tsconfig.app.json"},
{"path": "./tsconfig.node.json"}
]
}
after this plugin is executed, I ended up with
{
"files": [],
"references": [
{"path": "./tsconfig.app.json"},
{"path": "./tsconfig.node.json"}]
}
Hi, thanks for the awesome plugin, but I noticed a strange behavior when trailingComma is 'none'
.prettierrc
source:
after
prettier --write
: