@hmfinancial/prettier
Use hmfinancial default prettier config
npx @hmfinancial/stan-cli prettier:init
(both install and usage are setup in above command)
Install
npm i -D @hmfinancial/prettier
Usage
Create prettier.config.js
and put following contents:
module.exports = Object.assign(require('./node_modules/@hmfinancial/prettier/prettier.config'), {
})
Learn more about prettier config at Prettier - Configuration File
Configuration
module.exports = {
printWidth: 120,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: false,
jsxBracketSameLine: false,
arrowParens: 'avoid',
rangeStart: 0,
}