reasonml / reason-cli

Globally installable Reason toolchain.
MIT License
291 stars 23 forks source link

Offer option to keep semicolons removed with refmt #104

Open Risto-Stevcev opened 4 years ago

Risto-Stevcev commented 4 years ago

Applying refmt to code brings back and semicolons that were removed. The proposal here is to provide an option (like prettiers"semi": false) that would remove as many semicolons as it can.

Ideally this would follow a convention like a json file or within package.json or bsconfig.json so that the config is automatically read and applied.

Some other similar options would also be useful, like prettier's "trailingComma": "none" and "arrowParens": "avoid"