ESLint v2.11.0 released

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

Dependency Upgrades

The latest ESLint news, case studies, tutorials, and resources.

ESLint v8.30.0 released
1 min read

ESLint v8.30.0 released

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

ESLint v8.29.0 released
1 min read

ESLint v8.29.0 released

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

ESLint v8.28.0 released
1 min read

ESLint v8.28.0 released

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