Prettier
An opinionated code formatter enforces a consistent code style across your entire codebase
Target
Basic Configuration
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"proseWrap": "preserve"
}
Install
Integrating with ESLint Linters
Git Pre-commit Hooks
Additional
CI setup
Reference
Last updated