@adchitects/prettier-config
v0.3.0
Published
@adchitects extendable configuration for prettier.
Downloads
5
Readme
@adchitects/prettier-config
Extendable Prettier configuration, part of the adchitects/configs project.
Prerequisites
ℹ️ This configuration package require these tools to use locally on your device(s):
- Latest Node.js LTS (Long-Term Support) version
- One of Node.js package managers:
- Latest Prettier version
Basic usage
👣 Follow the steps below:
Install it with the Node.js package manager of your choice (in our case, we use pnpm).
pnpm install --save-dev prettier @adchitects/prettier-config
Create an Prettier configuration file -
.prettierrc.(c)js
.Extend this module package configuration.
/** @type import("prettier").Options */ const config = { ...require("@adchitects/prettier-config"), }; module.exports = config;
📖 For prettier icon Prettier CLI usage, please refer to its documentation
(we recommend to use pretty-quick
instead, for more
human-friendly output and performance).
Used configurations & plugins
⚙️ This configuration module for Prettier loads plugins options conditionally.
Plugins
| Plugin | Version | Loading condition(s) |
| ---------------------- | ------------------------------------- | ------------------------------------------------------------ |
| @prettier/plugin-php | | php
or adchitects-php-project
in package.json keywords
|
Security
🔐 For more information, please refer to the Security section at the root of the adchitects/configs monorepo.
Contributing
🤝 Contributions of any kind are welcome!
Please refer to the monorepo (adchitects/configs) project's CONTRIBUTING file for more information if you wish to get involved.
License
⚖️ For more information, please refer to the License section at the root of the adchitects/configs monorepo.