@northone/prettier
Use NorthOne default prettier config
npx @northone/stan-cli prettier:init
(both install and usage are setup in above command)
Install
npm i -D @northone/prettier
Usage
Create prettier.config.js
and put following contents:
module.exports = Object.assign(require('./node_modules/@northone/prettier/prettier.config'), {
// custom 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,
}