Update RuleWatchNode.php
Merge pull request #3196 from thaiphan/master

Update RuleWatchNode.php
Fixed the registration of commands with invalid JSON file

When the JSON file in the current folder is invalid, the registration of custom commands should be ignored rather than breaking the usage of Composer entirely.
Closes #3165
Merge pull request #3238 from stof/patch-6

Fixed the registration of commands with invalid JSON file
Fix unset order to avoid a warning
Update jsonlint dep, fixes #3151
Disallow overriding commands with scripts