1.0.4 • Published 1 year ago
@raasmusnilsson/prettier-config-knowit v1.0.4
Prettier - Set up config
- Install the package
npm i @raasmusnilsson/prettier-config-knowit
- Install the dependencies used by the package
npx install-peerdeps --dev @raasmusnilsson/prettier-config-knowit
- Create .prettierrc and add following:
"@raasmusnilsson/prettier-config-knowit"
- To enable Format on Save in your editor.
In the root of the project, add a folder named .vscode and create settings.json inside of it.
Add following inside settings.json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.fixAll.eslint": true
},
"editor.formatOnSave": true
}