Prettier plugin runs Rome.
yarn add prettier prettier-plugin-rome --dev
// prettier.config.cjs
module.exports = {
plugins: ['prettier-plugin-rome'],
overrides: [
{
files: '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}',
options: {
parser: 'rome',
},
},
],
}