ESLint v2.11.0 released

by Nicholas C. Zakas - 27 May 2016

We just pushed ESLint v2.11.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.

Highlights

This is a summary of the major changes you need to know about for this version of ESLint.

JSCS Compatibility

We've started our JSCS compatibility work by continuing to add new rules and rule options to fill in the gaps between what ESLint can do and what JSCS can do. This release includes the new no-useless-rename rule, which corresponds to the JSCS disallowIdenticalDestructuringNames.

You can follow our progress on JSCS compatibility by looking at the milestone.

New Rules

The new rules included in this release are:

Features

  • fea8fe6 New: no-useless-rename (fixes #6058) (#6249) (Kai Cataldo)
  • 088bda9 New: unicode-bom rule to allow or disallow BOM (fixes #5502) (#6230) (Andrew Johnston)
  • 04bd586 New: Disallow use of Object.prototype methods on objects (fixes #2693) (#6107) (Andrew Levine)

Enhancements

  • 74c458d Update: key-spacing rule whitespace fixer (fixes #6167) (#6169) (Ruurd Moelker)
  • 53754ec Update: max in max-statements-per-line should be >=0 (fixes #6171) (#6172) (alberto)
  • 54d1201 Update: Add treatUndefinedAsUnspecified option (fixes #6026) (#6194) (Kenneth Williams)
  • 18152dd Update: Add checkLoops option to no-constant-condition (fixes #5477) (#6202) (Kai Cataldo)

Bug Fixes

  • 77dd2b4 Fix: On --init, print message when package.json is invalid (fixes #6257) (#6261) (Kai Cataldo)
  • 7f60186 Fix: --ignore-pattern can't uningnore files (fixes #6127) (#6253) (alberto)
  • b4cff9d Fix: Incorrect object-property-newline behavior (fixes #6207) (#6213) (Rafał Ruciński)
  • ee0cd58 Fix: newline-before-return shouldn't disallow newlines (fixes #6176) (#6217) (alberto)
  • d4f5526 Fix: vars-on-top crashs at export declarations (fixes #6210) (#6220) (Toru Nagashima)
  • 14bfc03 Fix: comma-dangle wrong autofix (fixes #6233) (#6235) (Toru Nagashima)
  • c10c07f Fix: lost code in autofixing (refs #6233) (#6234) (Toru Nagashima)
  • 7644908 Fix: no-multiple-empty-lines BOF and EOF defaults (fixes #6179) (#6180) (Ruurd Moelker)
  • 72335eb Fix: max-statements-per-line false positive (fixes #6173, fixes #6153) (#6192) (Toru Nagashima)
  • 9fce04e Fix: generator-star-spacing false positive (fixes #6135) (#6168) (Toru Nagashima)

Documentation

  • 35b4656 Docs: Edit arrow-parens.md to show correct output value (#6245) (Adam Terlson)
  • cdd65d7 Docs: added examples for arrow-body-style (refs #5498) (#6242) (Tieme van Veen)
  • e6d5b1f Docs: Add rule deprecation section to user guide (fixes #5845) (#6201) (Kai Cataldo)

Dependency Upgrades