3 ms·
In order to get this working with vim's prettier highlighting, I had to add this to `.prettierrc`: { "trailingComma": "es5", "arrowParens": "al
by tony 7y ago
In order to get this working with vim's prettier highlighting, I had to add this to `.prettierrc`:
{
"trailingComma": "es5",
"arrowParens": "always"
}
Prettier 2.0 changed this to be the defaults, but for some reason the editor plugin wasn't acknowledging it.
Also I added a script command to format all the code in package.json:
{
"scripts": {
"prettier": "prettier src webpack data --write"
}
}
Then `npm run prettier` got me sync'd with the latest defaults (the trailingComma and parens styling).
It even formatted my JSON and SCSS files. Didn't recognize prettier could do that.