Skip to content

New and Noteworthy 1.2.0

Angelo edited this page Jul 2, 2016 · 8 revisions

Here's a list of the most noteworthy things in the tern.java 1.2.0 release which is available for download at 16/06/2016. You can see issues for 1.2.0

ES modules

ES modules support was improved.

ES Modules validation

If you activate Lint linter, you can validate ES modules from, specifiers.

  • from validation

ES Modules from validation

  • specifier validation

ES Modules specifier validation

Modules outline

Tern Outline is able to display ES modules:

ES Modules outline

Linter improvement

JSHint

JSHint support was improved.

Update .jshintrc on the fly

You can update .jshintrc config and if you change the content of JavaScript editor, the new config is used (TODO: refresh editor when .jshintrc is changed and saved).

Error/Warning

Error/Warning are improved.

ESLint

ESLint support was improved.

Update eslint.json on the fly

You can update eslint.json config and if you change the content of JavaScript editor, the new config is used (TODO: refresh editor when eslint.json is changed and saved).

Highlight improvement

ESLint doesn't support range location, so you can just highlight error just with one character, but tern-eslint hacks it to support range:

ESLint syntax error

You can update eslint.json config and if you change the content of JavaSCript editor, the new config is used (TODO: refresh editor when eslint.json is changed and saved).

Quick Fix

ESLint provides rules that support fixes. tern.java can use those fixes for Quick Fix:

ESLint Quick Fix

Clone this wiki locally