2.1.0 • Published 3 years ago
rkallan-prettier-config v2.1.0
rkallan-prettier-config
My personal Prettier config.
Usage
Install:
npm install rkallan-prettier-config
Usage in package.json
:
{
// ...
"prettier": "rkallan-prettier-config"
}
If you don't want to use package.json, you can use any of the supported extensions to export a string.
Usage in .prettierrc.json
:
"rkallan-prettier-config"
If you need to overwrite some properties or want to use JS, import the file in a .prettierrc.js file and export the modifications.
Usage in .prettierrc.js
or prettier.config.js
:
module.exports = {
...require("rkallan-prettier-config"),
semi: false,
};
run npx sort-package-json
to sort package.json
run npx npm-check-updates
to check for package updates