Releases: hulu/eslint-brightscript
Releases · hulu/eslint-brightscript
eslint-brightscript v0.2.0
eslint-brightscript v0.1.1
Functionally the same as v0.1.1, but includes automatic-publishing fixes.
eslint-brightscript v0.1.1
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 globalfunction isValid(x as dynamic) as boolean
@hulu/brightscript/no-set-focus-false
: Disallows calls tosomeNode.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
: Requiresas boolean
return type foronKeyEvent
function signatures, the lack of which can allowreturn {}
and expected behavior