Closed Prajwalprakash3722 closed 1 year ago
Prettier is a good option, as then we won't be necessarily stuck to VSCode.
My recommendation is to use the same as that for the backend The config is actually pretty lean; here is the config being used:
{
"prettier": {
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"arrowParens": "avoid"
}
}
Singlequotes are an opinionated formatting style, it is left to choice.
I thought to enforce a default prettier formatting, but this sounds good too..
The default config might work better consider react code is slightly annoying with 4 tabwidth. The config here is just a suggestion, it maintains parity between both codebases
Upcommig days there might be diffrent people working within this repo, Each one might have a diffrent formatting setup, it will format the whole code which will lead to a large
Git Diff
Better to enforce a paticular style to format on examples are down~comments are welcome~