Prettier Shareable Config
@tiagoporto/prettier-config
work integrate with the code formatting Prettier.
npm install --save-dev prettier @tiagoporto/eslint-config
// `.prettierrc.json`
"@tiagoporto/prettier-config"
In package.json
add the following scripts:
{
"scripts": {
"check-formatting": "prettier --check --ignore-unknown \"**/*\"",
"check-formatting:fix": "npm run check-formatting -- --write"
}
}
For VSCode is recommended the following extensions: