https://github.com/elliot-nelson/prettier-plugin-brighterscript-formatter
Prettier plugin for formatting BrightScript and BrighterScript files.
https://github.com/elliot-nelson/prettier-plugin-brighterscript-formatter
brighterscript brightscript prettier-plugin
Last synced: 11 months ago
JSON representation
Prettier plugin for formatting BrightScript and BrighterScript files.
- Host: GitHub
- URL: https://github.com/elliot-nelson/prettier-plugin-brighterscript-formatter
- Owner: elliot-nelson
- License: mit
- Created: 2022-10-21T14:03:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T18:08:33.000Z (about 2 years ago)
- Last Synced: 2025-04-02T06:11:44.366Z (11 months ago)
- Topics: brighterscript, brightscript, prettier-plugin
- Language: JavaScript
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prettier-plugin-brighterscript-formatter
A [Prettier] plugin that formats BrightScript and BrighterScript files using the [brighterscript-formatter] package.
[prettier]: https://github.com/prettier/prettier
[brighterscript-formatter]: https://github.com/rokucommunity/brighterscript-formatter
## Installation
```console
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`:
```json
{
"keywordCase": "lower",
"indentSpaceCount": 2
}
```
You would instead add this to your `.prettierrc.js`:
```json
{
"bsfmtKeywordCase": "lower",
"bsfmtIndentSpaceCount": 2
}
```
Refer to the [bsfmt.json spec](https://github.com/rokucommunity/brighterscript-formatter#bsfmtjson-options) for the full list of options.