ESLint v3.18.0 released

We just pushed ESLint v3.18.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 release adds support for AST selectors. AST selectors can describe syntax patterns very precisely, using a similar syntax to CSS selectors. Selectors can be used to:

For example, suppose you want to disallow calls to Mocha’s xdescribe function in your codebase. Previously, it was not possible to do this without writing a custom rule. However, now you can configure the no-restricted-syntax rule with a selector:

{
  "rules": {
    "no-restricted-syntax": [
      "error",
      "CallExpression[callee.name='xdescribe']"
    ]
  }
}

Selectors can give you a lot of control over specific patterns in your code, without needing to write a custom rule for each pattern.

For more details, see the selector documentation.

Features

Enhancements

Bug Fixes

Documentation

Dependency Upgrades

Chores