@dulgi/prettier-config
v1.1.5
Published
Shareable prettier configs for web apps and libraries
Downloads
3
Readme
@dulgi/prettier-config
Shareable prettier configuration for web apps and libraries.
Getting started
Install
Install Prettier and @dulgi/prettier-config
:
npm install --save-dev prettier@~2.8.7 @dulgi/prettier-config
Usage.
To use, create the configuration files (.prettierrc, prettier.config.js, .prettierrc.js) in the root of your project and configure them like below.
// `.prettierrc`
"@dulgi/prettier-config"
// `prettier.config.js` or `.prettierrc.js`
module.exports = "@dulgi/prettier-config";
Extensions
Use the following to add additional settings or change existing ones.
To extend the configuration, you must use a prettier.config.js
or .prettierrc.js
file that exports objects:
module.exports = {
...require("@dulgi/prettier-config"),
...abc: true
};