yahoo/mojito — pull request #796 by jlecomte (2012-11-27 21:31:48+00:00)
Title: Added support for comments in JSON files and improved the JSLint situati...

JSON does not allow for comments... Maintaining our configuration files, which are starting to get gigantic, is therefore quickly becoming a nightmare! This PR allows for comments in JSON files in Mojito by stripping those files from JavaScript-style comments before passing them to JSON.parse. Also, this PR improves a bit the situation with JSLint, although I noticed JSLint does not like the intentional fallthrough in the switch statement... I like it, personally.