npm package of prettier config
npm install --dev @yogeshkotadiya/prettier-config
or
yarn add -D @yogeshkotadiya/prettier-config
{
"printWidth": 80,
"tabWidth": 2,
"trailingComma": "es5",
"singleQuote": false,
"semi": true,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"endOfLine": "lf"
}
In your .prettierrc.js
file
module.exports = {
...require("@yogeshkotadiya/prettier-config"),
tabWidth: 4
//Extend or overwrite with your own preferable options
}
Author