tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
181 stars 13 forks source link

Make global declarations compatible with JSLint and JSHint #68

Closed ozanmakes closed 11 years ago

ozanmakes commented 11 years ago

Some JavaScript linters don't expect whitespace before the global directive.

http://www.jslint.com/lint.html http://www.jshint.com/docs/

tamzinblake commented 11 years ago

Wow, that's ugly. Fine.

Do you use a keybinding for that command? I've been meaning to add one.

ozanmakes commented 11 years ago

Do C-c C-d as a mnemonic for declare global variable and maybe C-c C-g as an easy way to append to js3-additional-externs sound good to you?

tamzinblake commented 11 years ago

Sounds fine to me.