rokucommunity / brighterscript

A superset of Roku's BrightScript language
MIT License
152 stars 47 forks source link

Entertained the idea of integrating eslint for roku projects? #38

Open jfrux opened 4 years ago

jfrux commented 4 years ago

Been toying around with eslint-plugin-roku project.

image

Is there something similar to this but uses your warnings / error parser and suggests issues in line in vscode?

TwitchBronBron commented 4 years ago

No, there's nothing like this yet. It's on the roadmap, but I just can't justify spending time on a linter first before we have fully functional parsing. :D

The AST we generate in BrighterScript is pretty non-standard, but there might be a way to translate it into an eslint-compatible format.

i've also been toying with just building the linter into the parser itself, as warnings. That would improve performance and centralize the tools into a single executable.

Not sure how I feel about that yet, but I'm open to discussion.