Skip to main content

@hz-9/prettier-config

Less than 1 minute

@hz-9/prettier-config

A prettieropen in new window config for 'hz-9'.

NPM Version NPM License NPM Downloads
Node Version Last Commit

Installation

To install the @hz-9/prettier-config package, run the following command:

npm install @hz-9/prettier-config --save-dev

Usage

To use this configuration, add the following code to your .prettierrc.js file:

const prettierConfig = require('@hz-9/prettier-config')

module.exports = prettierConfig

After that, you can run the formatting command to adjust the file format:

prettier --write .

All Rules

NameDescription
indexDefault configuration
service-commonDefault rules for the server
service-sort-importsDefault rules for the server + rules for sorting imports