@apaxsoftware/prettier-config-apax
v1.0.0
Published
A Prettier configuration based on the Airbnb JavaScript style guide
Downloads
11
Readme
prettier-config-apax
A Prettier configuration based on the Airbnb JavaScript style guide
Installation
npm install @apaxsoftware/prettier-config-apax --save-dev
or
yarn add @apaxsoftware/prettier-config-apax --dev
Usage
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,
};
Properties
printWidth
100
(reference)
tabWidth
2
(reference)
useTabs
false
(reference)
semi
true
(reference)
singleQuote
true
(reference)
quoteProps
"as-needed"
(reference)
jsxSingleQuote
false
(reference)
trailingComma
"all"
(reference)
bracketSpacing
true
(reference)
jsxBracketSameLine
false
(reference)
arrowParens
"always"
(reference)