Tern Lint Demo /** * @param {Boolean|Number} state * @param {String} [text] */ function test(state, text) { } test() //warning test('hello') //warning test(true, 'hello') //This one is ok test(10, 'hello') //This one is ok test(true, 5) //warning test(5, 5) //warning test(true, 'hello', 5) //warning 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.