Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 946 Bytes

File metadata and controls

36 lines (25 loc) · 946 Bytes

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.