Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Orion/ESLint

< Orion
Revision as of 11:41, 15 November 2013 by Mamacdon.gmail.com (Talk | contribs) (Rules)

Orion 5.0 will replace our current JSLint validator with ESLint. This page captures ongoing issues.

Rules

Here's a table showing the equivalent validation rules in JSLint and ESLint.

ESLint rule JSLint option JSLint message Details
eqeqeq eqeqeq (or eqeq in older versions, with inverse on/off state) Expected '===' and saw '=='.
Expected '!==' and saw '!='.
detail
no-undef node', browser, require
semi - Missing semicolon.
wrap-iife - Wrap the entire immediate function invocation in parens.
Do not wrap function literals in parens unless they are to be immediately invoked.
Move the invocation into the parens that contain the function.

Rule priority

Here are the rules we want, in order of priority:

  1. no-undef

Back to the top