-
Notifications
You must be signed in to change notification settings - Fork 51
Tern & ECMAScript support
angelozerr edited this page Jan 24, 2015
·
12 revisions
tern supports :
- ECMAScript 5 with ecma5.json.
- ECMAScript 6 with ecma6.json.
After installing and converting your project as Tern Project (see Tern-Eclipse-IDE), open Project Properties, click on Tern / Modules item and select the ECMAScript tern module and the version :

ECMAScript 5 gives the capability to provide completion for Array :

In this sample, arr is an Array of number, the completion for elt item provides Number methods :

ECMAScript 6 provides Promise object. If you select ECMAScript 6 module, Tern provides completion for this object :

Tern is able to discover the type of the Promise value :

- Tern IDE
- Tern Toolings
-
Tern Modules
- AngularJS
- AlloyUI
- Browser
- Bootstrap
- CKEditor
- CordovaJS
- Dojo Toolkit
- ECMAScript
- ExtJS
- Game
- jQuery
- JSDoc Support
- Liferay
- Meteor
- Node.js
- Qooxdoo
- snabbt.js
- RequireJS
- Tabris.js
- three.js
- Titanium
- YUI Library
- Completion
- Linter (Validator)
- Tests
- JavaScript Build
- New and Noteworthy