In my JavaScript React App I am using prettier for code formatting.
My current rules are working as expected. I saw that Prettier supports also Optional chaining, but when I run prettier --write that does not change for example user.info.name
into user?.info?.name
Does someone have an idea what is the problem here?
Here is my .prettierrc:
module.exports = {
trailingComma: "none",
tabWidth: 2,
semi: true,
printWidth: 120,
arrowParens: "avoid"
};
Version - "prettier": "2.1.2"
I am using Webstorm IDE