@terminal-nerds/prettier-config

0.19.0 • Public • Published

@terminal-nerds/prettier-config

package version badge

Extendable prettier icon Prettier configuration, part of the terminal-nerds/configs project.


Prerequisites

node.js version support badge supported prettier version badge

ℹ️ This configuration package require these tools to use locally on your device(s):

  1. node.js icon Latest Node.js LTS (Long-Term Support) version
  2. One of Node.js package managers:
  3. Latest prettier icon Prettier version

Basic usage

👣 Follow the steps below:

  1. Install it with the node.js icon Node.js package manager of your choice (in our case, we use pnpm icon pnpm).

     pnpm install --save-dev prettier @terminal-nerds/prettier-config
  1. Create an prettier icon Prettier configuration file - .prettierrc.js.

  2. Extend this module package configuration.

    /** @type import("prettier").Options */
    const config = {
    	...import("@terminal-nerds/prettier-config"),
    };
    
    export default config;

📖 For prettier icon Prettier CLI usage, please refer to its documentation


Used configurations & plugins

Dependencies badge

⚙️ This configuration module for Prettier loads plugins options conditionally.

Plugins

Plugin Version Loading condition(s)
prettier-plugin-astro prettier-plugin-astro version badge astro as dependency
[prettier-plugin-jsdoc] ![prettier-plugin-jsdoc version badge] -
prettier-plugin-sort-markdown-table prettier-plugin-sort-markdown-table version badge -
prettier-plugin-svelte prettier-plugin-svelte version badge svelte as dependency
prettier-plugin-tailwindcss prettier-plugin-tailwindcss version badge tailwindcss as dependency

Security

workflow security badge

🔐 For more information, please refer to the Security section at the root of the terminal-nerds/configs monorepo.


Contributing

contributors badge

🤝 Contributions of any kind are welcome!

Please refer to the monorepo (terminal-nerds/configs) project's CONTRIBUTING file for more information if you wish to get involved.


License

license badge

⚖️ For more information, please refer to the License section at the root of the terminal-nerds/configs monorepo.

Package Sidebar

Install

npm i @terminal-nerds/prettier-config

Weekly Downloads

1

Version

0.19.0

License

MIT

Unpacked Size

1.26 MB

Total Files

8

Last publish

Collaborators

  • xeho91