Hi all,
I've been looking for a tool for checking JavaScript style acording to the defined guidelines, but unfortunately, I've not found nothing defined.
After trying some tools (PHP CodeSniffer, ESLint) that resulted to be quite hard/labourious, I've found an easy configurable tool that allows to define the rules defined by Moodle, in an easy way. That tools is JSCS (JavaScript Code Style).
I've defined some rules (not all, but the most significant ones), which are available in this GitHub repository: https://github.com/julenpardo/moodle-javascript_style_checker.
I hope it can be useful for those developing JavaScript plugins for Moodle.
Best regards,
Julen