Closed apasov closed 6 months ago
I have the following prettier config:
"prettier": { "printWidth": 280, "semi": false, "singleQuote": true, "phpVersion": "8.2", "plugins": [ "@prettier/plugin-php" ], "overrides": [ { "files": [ "*.php" ], "options": { "printWidth": 150, "singleQuote": false } } ] },
Since v0.22.0 this plugin stopped respecting printWidth settings in overrides options and uses 280 instead. While singleQuote is respected correctly as it is set in overrides.
printWidth
singleQuote
Can you provide some example code, before and after formatting?
It was my mistake. The plugin just started treating printWidth differently since v0.22.0 It does respect options set in overrides.
I have the following prettier config:
Since v0.22.0 this plugin stopped respecting
printWidth
settings in overrides options and uses 280 instead. WhilesingleQuote
is respected correctly as it is set in overrides.