@equinor/prettier-config-opt
v6.12.4
Published
Shared team prettier configuration for OPT.
Downloads
2,189
Readme
OPT Prettier Configuration
This is the shared team Prettier configuration for OPT.
Usage
Install the package.
npm install --save-dev @equinor/prettier-config-opt
// or
yarn add --dev @equinor/prettier-config-opt
Next, add the shared prettier config in the extends
section of your Prettier configuration.
// .prettierrc.json
"@equinor/prettier-config-opt"
Override prettier rules
To override/extend the prettier rules simply add the rules you want to add or modify
For example, to change the prettier rule semi
:
// .prettierrc.js
module.exports = {
...require("@equinor/prettier-config-opt"),
semi: true,
};