Prettier Config
Factory functions for creating preset Prettier configurations. Primarily used in unison with the Lumos CLI.
Extending config
Update package.json:
{
"lumos": {
"prettier": {
"arrowParens": "avoid"
}
}
}
Create file in configs folder:
configs/prettier.js
modules.exports = {
arrowParens: 'avoid',
};
Default config
{
arrowParens: 'avoid',
bracketSpacing: true,
jsxBracketSameLine: false,
printWidth: 100,
proseWrap: 'always',
requirePragma: false,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
}