prettier-config-che
v3.0.17
Published
# CHE Prettier config
Downloads
18
Maintainers
Readme
README
CHE Prettier config
Setup
From your project directory Install via NPM:
npm install prettier-config-che --save-dev
Execution
- Installing Prettier
If you do not have prettier installed via the console Run:
npx postinstall
This will install prettier in your project dev dependcies
- 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.
- 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"