Environments:
- Prettier Version: 4.1.1 (but any 4+ version is reproducible)
- Running Prettier via: VS Code
- Runtime: No idea. VS Code?
- Operating System: Windows 10
Steps to reproduce:
set the rule "prettier.trailingComma": "none" in your settings. Write some typescript like:
Expected behavior:
Given the no trailing commas, the above block of code should not be formatted
Actual behavior:
The setting is ignored and the code is formatted to:
thereby creating a mess in git diffs.
NOTE: downgrading to version 3.20.0 fixes the issue for whatever reason.
EDIT: this appears to affect other rules too, e.g. whatever the rule is that wraps single arguments to arrow functions is (I think arrowParens)?
Environments:
Steps to reproduce:
set the rule
"prettier.trailingComma": "none"in your settings. Write some typescript like:Expected behavior:
Given the no trailing commas, the above block of code should not be formatted
Actual behavior:
The setting is ignored and the code is formatted to:
thereby creating a mess in git diffs.
NOTE: downgrading to version 3.20.0 fixes the issue for whatever reason.
EDIT: this appears to affect other rules too, e.g. whatever the rule is that wraps single arguments to arrow functions is (I think arrowParens)?