@corex/prettier
v4.0.43
Published
--- title: '@corex/prettier' custom_edit_url: 'https://github.com/iamvishnusankar/corex/edit/master/packages/prettier/README.md' ---
Downloads
370
Readme
title: '@corex/prettier' custom_edit_url: 'https://github.com/iamvishnusankar/corex/edit/master/packages/prettier/README.md'
Installation
yarn add @corex/prettier -D
Usage
Create .prettierrc.js
and add the following content
module.exports = require('@corex/prettier')
Override
Override the preset configuration.
module.exports = {
...require('@corex/prettier'),
...{
/** custom overrides **/
},
}
Preset Config
Following is the included preset configuration.
module.exports = {
printWidth: 100,
singleQuote: true,
semi: false,
trailingComma: 'none',
useTabs: false,
}