A Prettier v3+ plugin for formatting thrift files.
First, install Prettier (v3+) and this plugin:
npm install --save-dev prettier @mehwww/prettier-plugin-thrift
Then, create a .prettierrc.js
file in the root of your project, and add the plugin to the plugins
array:
// .prettierrc.js
module.exports = {
plugins: ["@mehwww/prettier-plugin-thrift"],
};