---
layout: post
title: ESLint v5.1.0 released
teaser: "We just pushed ESLint v5.1.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release."
image: release-notes.png
tags:
  - release
  - minor
authors:
  - not-an-aardvark
categories:
  - Release Notes
---

## Highlights

* The [`no-catch-shadow`](/docs/rules/no-catch-shadow) rule has been deprecated in favor of [`no-shadow`](/docs/rules/no-shadow).





## Enhancements


* [143890a46](https://github.com/eslint/eslint/commit/143890a46) Update: Adjust grammar of error/warnings fixable ([#10546](https://github.com/eslint/eslint/issues/10546)) (Matt Mischuk)
* [b7addf6fe](https://github.com/eslint/eslint/commit/b7addf6fe) Update: deprecate [no-catch-shadow](/docs/rules/no-catch-shadow) (fixes [#10466](https://github.com/eslint/eslint/issues/10466)) ([#10526](https://github.com/eslint/eslint/issues/10526)) (Toru Nagashima)




## Bug Fixes


* [b2df73876](https://github.com/eslint/eslint/commit/b2df73876) Fix: [prefer-object-spread](/docs/rules/prefer-object-spread) duplicated comma (fixes [#10512](https://github.com/eslint/eslint/issues/10512), fixes [#10532](https://github.com/eslint/eslint/issues/10532)) ([#10524](https://github.com/eslint/eslint/issues/10524)) (Toru Nagashima)
* [d8c3a25f5](https://github.com/eslint/eslint/commit/d8c3a25f5) Fix: [wrap-regex](/docs/rules/wrap-regex) doesn't work in some expression(fixes [#10573](https://github.com/eslint/eslint/issues/10573)) ([#10576](https://github.com/eslint/eslint/issues/10576)) (薛定谔的猫)
* [63f36f783](https://github.com/eslint/eslint/commit/63f36f783) Fix: [sort-keys](/docs/rules/sort-keys) in an object that contains spread (fixes [#10261](https://github.com/eslint/eslint/issues/10261)) ([#10495](https://github.com/eslint/eslint/issues/10495)) (katerberg)
* [601a5c4ae](https://github.com/eslint/eslint/commit/601a5c4ae) Fix: Prefer-const rule crashing on array destructuring (fixes [#10520](https://github.com/eslint/eslint/issues/10520)) ([#10527](https://github.com/eslint/eslint/issues/10527)) (Michael Mason)
* [02efeac65](https://github.com/eslint/eslint/commit/02efeac65) Fix: do not fail on nested unknown operators ([#10561](https://github.com/eslint/eslint/issues/10561)) (Rubén Norte)
* [e862dc3a8](https://github.com/eslint/eslint/commit/e862dc3a8) Fix: Remove autofixer for [no-debugger](/docs/rules/no-debugger) (fixes [#10242](https://github.com/eslint/eslint/issues/10242)) ([#10509](https://github.com/eslint/eslint/issues/10509)) (Teddy Katz)




## Documentation


* [114f42ee5](https://github.com/eslint/eslint/commit/114f42ee5) Docs: Clarify option defaults in [max-lines-per-function](/docs/rules/max-lines-per-function) docs ([#10569](https://github.com/eslint/eslint/issues/10569)) (Chris Harwood)
* [100f1beb2](https://github.com/eslint/eslint/commit/100f1beb2) Docs: add note about release issues to readme ([#10572](https://github.com/eslint/eslint/issues/10572)) (Teddy Katz)
* [076a6b6db](https://github.com/eslint/eslint/commit/076a6b6db) Docs: add actionable fix to [no-irregular-whitespace](/docs/rules/no-irregular-whitespace) ([#10558](https://github.com/eslint/eslint/issues/10558)) (Matteo Collina)
* [de663ec14](https://github.com/eslint/eslint/commit/de663ec14) Docs: Only successfully linted files are cached (fixes [#9802](https://github.com/eslint/eslint/issues/9802)) ([#10557](https://github.com/eslint/eslint/issues/10557)) (Kevin Partington)
* [8a2ff2c2e](https://github.com/eslint/eslint/commit/8a2ff2c2e) Docs:  adding a section about disable rules for some files ([#10536](https://github.com/eslint/eslint/issues/10536)) (Wellington Soares)
* [f22a3f80a](https://github.com/eslint/eslint/commit/f22a3f80a) Docs: fix a word in [no-implied-eval](/docs/rules/no-implied-eval) ([#10539](https://github.com/eslint/eslint/issues/10539)) (Dan Homola)
* [20d8bbd49](https://github.com/eslint/eslint/commit/20d8bbd49) Docs: add missing paragraph about "custom parsers" ([#10547](https://github.com/eslint/eslint/issues/10547)) (Pig Fang)




## Dependency Upgrades


* [f0e22fc05](https://github.com/eslint/eslint/commit/f0e22fc05) Upgrade: globals@11.7.0 ([#10497](https://github.com/eslint/eslint/issues/10497)) (薛定谔的猫)




## Build Related


* [7328f9918](https://github.com/eslint/eslint/commit/7328f9918) Build: package.json update for eslint-config-eslint release (ESLint Jenkins)
* [b161f6b62](https://github.com/eslint/eslint/commit/b161f6b62) Build: Include prerelease install info in release blog post ([#10463](https://github.com/eslint/eslint/issues/10463)) (Kevin Partington)




## Chores


* [8ee39c5f2](https://github.com/eslint/eslint/commit/8ee39c5f2) Chore: small refactor config-validator ([#10565](https://github.com/eslint/eslint/issues/10565)) (薛定谔的猫)
* [92b19ca61](https://github.com/eslint/eslint/commit/92b19ca61) Chore: use eslintrc overrides(dogfooding) ([#10566](https://github.com/eslint/eslint/issues/10566)) (薛定谔的猫)
