Thanks, that narrowed it down. I ran the JSHint CLI and got no warning there either.
So apparently there is something wrong with the sublime plugin I’m using.
Hahaha, not a real life example man. I’m not actually building a cake baking addon
Edit: I think the developer of the plugin has abandoned the project and has the plugin running on an older version of JSHint. Shame. I’m talking about the “JSHint Gutter” plugin btw.
Edit 2: SublimeLinter-jshint seems to be a great alternative.