Prettier automatically formats code:
npm install prettier --save-dev
// .prettierrc
{
"semi": true,
"singleQuote": true,
"tabWidth": 2
}
Prettier handles formatting. ESLint handles code quality. Use both together.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Consistent code style
Prettier automatically formats code:
npm install prettier --save-dev
// .prettierrc
{
"semi": true,
"singleQuote": true,
"tabWidth": 2
}
Prettier handles formatting. ESLint handles code quality. Use both together.