/prettier-plugin-brighterscript-formatter

Prettier plugin for formatting BrightScript and BrighterScript files.

Primary LanguageJavaScriptMIT LicenseMIT

prettier-plugin-brighterscript-formatter

A Prettier plugin that formats BrightScript and BrighterScript files using the brighterscript-formatter package.

Installation

npm i -D prettier prettier-plugin-brighterscript-formatter

Options

In this plugin, options for the BrighterScript formatter are prefixed with bsfmt, followed by the relevant option name in camel case.

For example, if you have the following settings in your bsfmt.json:

{
  "keywordCase": "lower",
  "indentSpaceCount": 2
}

You would instead add this to your .prettierrc.js:

{
  "bsfmtKeywordCase": "lower",
  "bsfmtIndentSpaceCount": 2
}

Refer to the bsfmt.json spec for the full list of options.