ESLint 0.9.0 released

We just pushed ESLint 0.9.0, which is a minor release upgrade. This release includes new features, bug fixes, and performance improvements.

Highlights

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

Plugins

Plugins can now be shipped with a default configuration specified. For more information, see the plugins documentation.

Comma Spacing

There’s a new comma-spacing rule, so we removed comma spacing checks from space-infix-ops to consolidate that functionality.

CLIEngine updated

The CLIEngine object has been updated with more functionality for tools developers. You can now use it to lint plain text via a executeOnText() method and a getConfigForFile() method that returns the calculated configuration information for a given file. You can read more about this in the Node.js API documentation.

Governance Model

With this release, we’re introducing the ESLint Governance Model to help more people become involved with the project. The governance model establishes the rules by which contributors can increase their involvement with the project and influence its direction.

Breaking Changes

  • Breaking: Removed comma spacing check from space-infix-ops (fixes #1361) (vegetableman)

Features

  • New: add --quiet option (fixes #905) (Mathias Schreck)
  • New: Add key-spacing rule (fixes #1280) (Brandon Mills)
  • New: add rule for multiple empty lines (fixes #1254) (Greg Cochard)
  • New: add rule for padded blocks (fixes #1278) (Mathias Schreck)
  • New: add space-before-blocks rule (fixes #1277) (Mathias Schreck)
  • New: add spaced-line-comment rule (fixes #1345) (Greg Cochard)
  • New: Added comma-spacing rule (Fixes #628, Fixes #1319) (vegetableman)
  • New: Added comma-style rule (fixes #1282) (vegetableman)
  • New: added no-multi-spaces rule (fixes #630) (vegetableman)
  • New: Added no-process-env rule (fixes #657) (vegetableman)
  • New: Adding in rule for irregular whitespace checking. (fixes #1024) (Jonathan Kingston)
  • New: Allow reading from STDIN (fixes #368) (Nicholas C. Zakas)

Bug Fixes

  • Fix: add rule ensuring #1258 is fixed by recent rewrite (fixes #1258) (Michael Ficarra)
  • Fix: addressed linting errors (Nicholas C. Zakas)
  • Fix: allow comma-last with object properties having line breaks (fixes #1314) (vegetableman)
  • Fix: Ensure messages are sorted by line (fixes #1343) (Nicholas C. Zakas)
  • Fix: Make sure shebang comment node is removed (fixes #1352) (Nicholas C. Zakas)
  • Fix: no-comma-dangle violation in unit test and Makefile.js/lint not checking return codes (fixes #1306) (David Anson)
  • Fix: no-fallthrough incorrectly flagged falls through annotations (fixes #1353) (Mathias Schreck)
  • Fix: no-shadow rule should consider function expressions (fixes #1322) (Mathias Schreck)
  • Fix: resolve linting issue in (fixes #1339) (Nicholas C. Zakas)
  • Fix: space-in-parens should not throw for multiline statements (fixes #1351) (Jary)

Enhancements

  • Update: add “as-needed” option to quote-props rule (fixes #1279) (Michael Ficarra)
  • Update: Add CLIEngine#getConfigForFile (fixes #1309) (Nicholas C. Zakas)
  • Update: Add missing environments and fix sorting/grouping of rules (fixes #1307, fixes #1308) (David Anson)
  • Update: add space after function keyword check (fixes #1276) (Mathias Schreck)
  • Update: Add support for plugin default configuration (fixes #1358) (Ilya Volodin)
  • Update: Added arraysInObjects and objectsInObjects options to space-in-brackets rule (fixes #1265, fixes #1302) (vegetableman)
  • Update: remove globals present only in Jasmine plugins (fixes #1326) (Michał Gołębiowski)
  • Update: split propertyName from singleValue in space-in-brackets (fixes #1253) (Michael Ficarra)
  • Update: turn on comma-style for project (fixes #1316) (Nicholas C. Zakas)

Documentation

  • Docs: Add BountySource badge to README (Nicholas C. Zakas)
  • Docs: Add Contributor Model (fixes #1341) (Nicholas C. Zakas)
  • Docs: Add docs on Node.js API (fixes #1247) (Nicholas C. Zakas)
  • Docs: Add recommended keywords for plugins (fixes #1248) (Nicholas C. Zakas)
  • Docs: Add reference to CLA (Nicholas C. Zakas)
  • Docs: Added “the native web” to the list of companies that use ESLint. (Golo Roden)
  • Docs: added more Related Rules sections (fixes #1347) (Delapouite)
  • Docs: Correct a few misspelled words (David Anson)
  • Docs: Explain global vs. local plugins (fixes #1238) (Nicholas C. Zakas)
  • Docs: fix eqeqeq isNullCheck comment (Denis Sokolov)
  • Docs: Fix sorting of rules within each section (David Anson)
  • Docs: fixed broken link and changed warning level to error level (vegetableman)
  • Docs: Remove moot integration plugins (Sindre Sorhus)
  • Docs: Update multiple pages to fix rendering of fenced code blocks (David Anson)
  • Build: add version numbers to docs (fixes #1170) (Mathias Schreck)
  • Build: separate site publishing form generation (fixes #1356) (Mathias Schreck)

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

ESLint v9.17.0 released
2 min read

ESLint v9.17.0 released

We just pushed ESLint v9.17.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 v9.16.0 released
2 min read

ESLint v9.16.0 released

We just pushed ESLint v9.16.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 v9.15.0 released
2 min read

ESLint v9.15.0 released

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