Skip to main content
Jump to: navigation, search

Difference between revisions of "Orion/ESLint"

(adding rule parity table)
(Rules)
Line 4: Line 4:
 
Here's a table showing the equivalent validation rules in JSLint and ESLint.
 
Here's a table showing the equivalent validation rules in JSLint and ESLint.
  
{| class="wikitable" border="1" style="width: 85%;"
+
{| class="wikitable" border="1" style="width: 100%;"
 
! ESLint rule
 
! ESLint rule
 
! JSLint option
 
! JSLint option

Revision as of 10:41, 15 November 2013

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