A Prettier plugin to sort the keys of a package.json
file using sort-package-json.
npm i -D prettier prettier-plugin-packagejson
For prettier v3+ you need to configure
module.exports = {
// add this
plugins: ['prettier-plugin-packagejson'],
}
A Prettier plugin to sort the keys of a package.json
file using sort-package-json.
npm i -D prettier prettier-plugin-packagejson
For prettier v3+ you need to configure
module.exports = {
// add this
plugins: ['prettier-plugin-packagejson'],
}
npm i prettier-plugin-packagejson
869,279
2.5.6
MIT
5.55 kB
9