1.0.0 • Published 4 years ago
@xeho91/prettier-config v1.0.0
@xeho91/prettier-config
Extendable Prettier configuration, part of the xeho91/configurations project.
⚙️ Plugins loading conditions
This configuration load plugins and their options conditionally. If the project has:
svelteas a dependency, then it will load svelte plugin
🏁 Usage
Install it with the Node.JS package manager of your choice.\ Example:
pnpm install --save-dev eslint @xeho91/prettier-configCreate an Prettier configuration file - e.g.
.prettierrc.js, and extend this package configuration.\ Example:const config = { ...require("@xeho91/eslint-config"), // tweak some options here... }; module.exports = config;Add this example script to your
package.jsonfile and in scripts the options (key):{ "scripts": { "format": "prettier --write \"./source/**/*\"", } }Run this script for manual formatting:
pnpm format
⚖️ License
The code is licensed under the MIT license.
1.0.0
4 years ago