Jump to: navigation, search

Orion/JavaScript

Orion JavaScript
Website
Download
Community
Mailing ListForumsIRCmattermost
Bugzilla
OpenHelp WantedBug Day
Contribute
Browse Source

Orion JavaScript Tools

The Orion JavaScript tools are a suite of tools to help JavaScript developers write better code. Faster.

Present state

Right now, the JavaScript tools have just begun our 12.0, and will include some cool features, like, consumable API and cross-file linting. For more information, have a look at the project plan page, or the plan wiki

Work is also ongoing on our prototype experimental API. Just don't forget to build it first!

Features

Content Assist

Need some help while coding? Activate content assist for code completions, keywords and templates.

Content assist can be easily extended to understand 3rd party libraries and comes preconfigured for Browser, Node.js, MongoDB, Redis, MySQL and more!

To activate the libraries in your source simply add an eslint-env directive at the top of your source indicating which library to use.

For example to use Node.js we would add the following:

/* eslint-env node */

Customizable Linting

Backed by the power and speed of ESLint, the linting rules in Orion can be configured on a per-rule basis.

Don't like being nagged about unused parameters? Simply turn it off on the easy to use preference page or add a directive for the rule you want disabled. /* eslint no-unused-params:0 */ or /* eslint-disable no-unused-params */ will disable flagging unused parameters in functions.

Mark Occurrences

Turn this editor option on to find all relevant occurrences of the selected identifier, function declarations and correctly-scoped this usage.

Source Outline

Using the super convenient Ctrl+O keybinding (or the View menu) you can view an outline of your source. Clicking outline elements takes you to the relevant position in the source.

Hovers

There are hovers for just about everything. From content assist, to function doc / signatures to linting errors and quick fixes. You can also use hovers to navigate from importScript, define and require statements to the files they reference.

Navigation

Backed by the power of Tern, we have support for jumping to declarations and implementations.

References and Refactoring

We can find all of the type-checked references to a given identifier, and then allow you to seamlessly refactor those references as needed. We also have support for simple in-line identifier renames.

Libraries Used in Orion

We use a lot of other great third-party libraries.

The complete list is:

  1. Acorn
  2. Doctrine
  3. ESLint
  4. Esprima
  5. ESRecurse
  6. ESUtils
  7. EScope
  8. ESTraverse
  9. Tern

Contributing

Contributing code to the JavaScript project follows the general rules for Orion, which can be found on the [Orion contributing code](https://wiki.eclipse.org/Orion/Contributing_Code) wiki.

License

The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 ("EPL"), and the Eclipse Distribution License Version 1.0 ("EDL"). For purposes of the EPL and EDL, "Program" will mean the Content.

If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party ("Redistributor") and different terms and conditions may apply to your use of any object code in the Content. Check the Redistributor's license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise indicated below, the terms and conditions of the EPL still apply to any source code in the Content and such source code may be obtained at [1].