Skip to content

Releases: hulu/eslint-brightscript

eslint-brightscript v0.2.0

17 Jun 23:56
Compare
Choose a tag to compare

Features

  • Adds new recommended rule @hulu/brightscript/comment-style, which enforces that comments start with one of ( ' | rem | Rem | REM) (#11)

eslint-brightscript v0.1.1

24 May 18:59
Compare
Choose a tag to compare

Functionally the same as v0.1.1, but includes automatic-publishing fixes.

eslint-brightscript v0.1.1

24 May 18:50
Compare
Choose a tag to compare

Initial release of @hulu/eslint-brightscript-plugin and @hulu/eslint-brightscript-parser! Includes five rules, but please note that their names and configuration are likely to change in the future (this is pre-1.0 after all):

  • @hulu/brightscript/no-is-valid: Disallows calls to commonly-implemented global function isValid(x as dynamic) as boolean
  • @hulu/brightscript/no-set-focus-false: Disallows calls to someNode.setFocus(false), which is warned against in Roku's documentation
  • @hulu/brightscript/no-typed-func-params: Disallows function signatures with strict type declarations, which cause a channel to crash when types don't match
  • @hulu/brightscript/no-unsafe-conditions: Disallows conditional expressions without an explicit comparison, which can cause a channel to crash if the expression evaluates to a non-boolean
  • @hulu/brightscript/onkeyevent-boolean-return: Requires as boolean return type for onKeyEvent function signatures, the lack of which can allow return {} and expected behavior