Tern Lint Demo /** * @returns {Boolean} */ function test(state) { if (state) { return 'true' //Raise warning } else { return 'false' //Raise warning } return true; // OK } /** * @param {String} x * @param {Number} y * @returns {String} **/ function foo(x, y) { return x.length * y; } foo('Hello', 42); Demonstrates integration of Tern and CodeMirror. The following keys are bound: Ctrl-SpaceAutocomplete Ctrl-IFind type at cursor Alt-.Jump to definition (Alt-, to jump back) Ctrl-QRename variable Documentation is sparse for now. See the top of the script for a rough API overview.