prettier-config-kbshl
Prettier shareable configuration for my Javascript based projects (Web and Mobile)
Installation
npm install --save-dev prettier-config-kbshl
Usage
.prettierrc.js
moduleexports = ;
.prettierignore
Copy and paste the following snippet:
### Node ###node_modules**/package.json**/package-lock.json ### Builds ###distcoveragebuild ### VSCode ###.vscode.history ### Titanium Mobile ###Resourcesapp/widgets./i18n./platform
or do something like this:
cat ./node_modules/prettier-config-kbshl/.prettierignore >> .prettierignore
package.json
e.g.
..."scripts": ...
Recommendations
I recommend to use Prettier together with husky and lint-staged as a pre-commit
git hook.
Installation
npm install --save-dev husky lint-staged
Usage
package.json
e.g.
..."husky": ,"lint-staged": ...
License
MIT © Konstantin Büschel