remove quote on Json object keys
const o = {
'name': 'prettier',
'pkg-name': 'prettier-plugin-json-objectify'
}
const o = {
name: 'prettier',
'pkg-name': 'prettier-plugin-json-objectify'
}
# You may need to pre install prettier
pnpm i prettier -D
# pnpm
pnpm i prettier-plugin-json-objectify -D
/* package.json */
"scripts": {
"format": "prettier --write ./src/**/*"
},
# run
pnpm format