Brslint is a parsing and linting tool for Roku's BrightScript language. The current stable version is 0.2.3, released as a maintenance update with support for try/throw/catch syntax from OS 9.4. It provides static analysis for BrightScript files, including validation of component XML files, customizable rules via brslint.config, and over 30 built-in rules. Unlike generic linters, it is purpose-built for BrightScript and integrates with Roku development workflows. Release cadence is irregular, with updates approximately every 2-6 months. Key differentiators: native support for BrightScript syntax, configurable rule sets, and XML component validation.
npm install brslintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a Linter instance, configure it with custom rules, and lint individual files or directories.
Migrate to brslint.config format as described in the README.
Replace 'no_tab' with 'indentation' in your rules configuration.
Ensure your BrightScript files have the .brs extension.
Use paths relative to the config file directory.
Install nearley: npm install nearley
Update brslint to a version that supports the syntax, or avoid using unsupported features.
Use dynamic import: import('brslint').then(m => { const linter = new m.Linter(); })