@hpi-schul-cloud/prettier-config
Getting Started
1. Installation
Using npm:
npm install @hpi-schul-cloud/prettier-config --save-dev
Using Yarn:
yarn add @hpi-schul-cloud/prettier-config --dev
2. Usage
- Create a new file and name it as
prettier.config.js
- Just import
@hpi-schul-cloud/prettier-config
and export it.
module.exports = require('@hpi-schul-cloud/prettier-config');
- In order to have a
.prettierignore
file as well, just run the following command from terminal:
cat ./node_modules/@hpi-schul-cloud/prettier-config/.prettierignore >> .prettierignore
Override Default Config
If you want to override the default configuration, then add the following code in prettier.config.js
file:
const prettierConfig = require('@hpi-schul-cloud/prettier-config');
module.exports = {
...prettierConfig,
}