@feusefultools/prettier-config-useful
v1.0.0
Published
A shareable Prettier configuration for Useful projects
Readme
@feusefultools/prettier-config-useful
A shareable Prettier configuration for Useful projects
Install
This repository uses PNPM
$ pnpm install @feusefultools/prettier-config-useful --save-devUsage
This config can be used one of two ways:
package.json
{
"name": "useful-template",
"prettier": "@feusefultools/prettier-config-useful",
}.prettierrc.js
module.exports = require("@feusefultools/prettier-config-useful");Note: This method does not offer a way to extend the configuration to overwrite some properties from the shared configuration. If you need to do that, import the file in a .prettierrc.js file and export the modifications, e.g:
module.exports = {
...require("@feusefultools/prettier-config-useful"),
semi: false,
};