A Prettier configuration based on the Airbnb JavaScript style guide
npm install @apaxsoftware/prettier-config-apax --save-dev
or
yarn add @apaxsoftware/prettier-config-apax --dev
Create a .prettierrc.json
file in your project root directory with a value:
"@apaxsoftware/prettier-config-apax"
If you need to overwrite some properties, create a .prettierrc.js
file in your project root directory, import the configuration and export the modifications:
module.exports = {
...require('prettier-config-apax'),
printWidth: 120,
};
100
(reference)
2
(reference)
false
(reference)
true
(reference)
true
(reference)
"as-needed"
(reference)
false
(reference)
"all"
(reference)
true
(reference)
false
(reference)
"always"
(reference)