@indigo-multimedia/prettier-config
v1.2.1
Published
Indigo config for Prettier
Downloads
24
Keywords
Readme
Indigo Prettier Config
How to install prettier
prettier docs here
Install prettier into YOUR PROJECT
npm install --save-dev prettier
Install @indigo-multimedia/prettier-config into YOUR PROJECT
npm install --save-dev @indigo-multimedia/prettier-config
How to configure prettier in your project
In root directory of your project, create a ".prettierrc" file
In the ".prettierrc" file, add the following line:
"@indigo-multimedia/prettier-config"
In the root directory of your project, create a ".prettierignore" file
In the ".prettierignore" file, add the following line:
node_modules
(optional) In VS Code configure prettier extension to format on save:
- Open settings.json
- Add the following line:
"editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode",