prettier-config-che

3.0.17 • Public • Published

README

CHE Prettier config

Setup

From your project directory Install via NPM:

npm install prettier-config-che --save-dev

Execution

  1. Installing Prettier

If you do not have prettier installed via the console Run:

npx postinstall

This will install prettier in your project dev dependcies

  1. Creating a prettierrc.json file If you already have prettier installed via the console, Run:
npx prettier-config-che

This will run create a .prettierrc.json file in your root directory of the project, this .prettierrc.json will contain the prettier formatting standards and will format your code inline with these standards.

  1. Formatting files according to afformentioned rules Via the console, you can now run:
npx prettier . --write

This will result in all coded being formatted to the rules set in the previously created .prettier.json file. In the console should be displayed:

"Prettier executed successfully"

Package Sidebar

Install

npm i prettier-config-che

Weekly Downloads

1

Version

3.0.17

License

MIT

Unpacked Size

4.94 kB

Total Files

7

Last publish

Collaborators

  • charlesjoma