@arfajarsetiaji/prettier-config
v3.0.5
Published
Ar Fajar Setiaji's Prettier config.
Downloads
13
Maintainers
Readme
Ar Fajar Setiaji's Prettier Config
This is my personal config for Prettier code formatter library.
Installation and Usage
Move into your project directory.
Install prettier, prettier-plugin-sort-imports, prettier prettier-plugin-packagejson & this prettier config library as development dependencies.
npm install --save-dev prettier @ianvs/prettier-plugin-sort-imports prettier prettier-plugin-packagejson @arfajarsetiaji/prettier-config
- Use it in your project.
- If you don't need to override it, just reference it in your package.json.
{
...
"prettier": "@arfajarsetiaji/prettier-config"
}
- If you need to override it, spread import this config library in your .prettierrc.js file & export the modifications, e.g modify the print width config:
module.exports = {
...require("@arfajarsetiaji/prettier-config"),
printWidth: 120,
};