pebble / cloudpebble

CloudPebble source. Here be dragons.
https://cloudpebble.net/
MIT License
211 stars 83 forks source link

pebble.js - code highliter - "'module' is not defined" when using module.export #155

Open MaxWinterstein opened 9 years ago

MaxWinterstein commented 9 years ago

I outsourced some stuff into seperate .js files. To get access from the main app.js i need to use module.export (node.js style).

It is working fine, but the syntax checker marks it as error:

image

unwiredben commented 9 years ago

If you add the line

/* global module */

to the top of the file, if should clean up that error message.

MaxWinterstein commented 9 years ago

If you add the line

/* global module */ to the top of the file, if should clean up that error message.

awesome! Thanks! :) Where am i supposed to find something like that?

unwiredben commented 9 years ago

Cloudpebble uses jshint as a linter, so see its documentation at http://jshint.com/docs/

MaxWinterstein commented 9 years ago

good to know, now my code has no more warnings. but woudn't it be nice to implement that for everybody?