An open API service indexing awesome lists of open source software.

https://github.com/hulu/eslint-brightscript

Lint your Brightscript code with brs and eslint
https://github.com/hulu/eslint-brightscript

brightscript eslint-plugin linter

Last synced: 9 months ago
JSON representation

Lint your Brightscript code with brs and eslint

Awesome Lists containing this project

README

          

# ESLint Plugin BrightScript
---

### Getting Started

### Installation
Install eslint if you haven't already:
```
$ yarn add -D eslint
$ npm i --save-dev eslint
```

Then install the parser and plugin:

```
$ yarn add -D @hulu/eslint-parser-brightscript @hulu/eslint-plugin-brightscript
$ npm i --save-dev @hulu/eslint-parser-brightscript @hulu/eslint-plugin-brightscript
```

### Usage
Add the following to your .eslintrc to use the recommended rules.

```json
{
"plugins": ["@hulu/eslint-plugin-brightscript"],
"extends": ["plugin:@hulu/eslint-plugin-brightscript/recommended"]
}
```

You can also ignore the recommended config by including the `@hulu/eslint-parser-brightscript` parser and
`@hulu/eslint-plugin-brightscript` plugin and adding specific rules manually:

```json
{
"parser": "@hulu/eslint-parser-brightscript",
"plugins": ["@hulu/eslint-plugin-brightscript"],
"rules": {
"@hulu/brightscript/rule-name": "error"
}
}
```