That basic prettier config for all JS/TS projects
npm i @gumper-x/prettier-config -D
Use in package.json
"prettier": "@gumper-x/prettier-config",
Use in .prettierrc.js
module.exports = {
...require("@gumper-x/prettier-config"),
// Your rules https://prettier.io/docs/en/options.html
};