I have latest Prettier installed, including Prettier VS Code extension. The .prettierrc.json
looks like this:
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"trailingComma": "es5",
"printWidth": 120
}
and config is also correct:
It doesn't work for HTML/SCSS, but it does for TS/JS/JSON. I don't know where to look.
I also have it installed globally and running prettier . --write
it works fine, but I need to run on save.