Change8

v10.5.0

📦 eslintView on GitHub →
7 features🔧 5 symbols

Summary

This release focuses on improving the accuracy of error reporting locations for several core rules, including max-nested-callbacks, max-lines-per-function, and max-statements. It also includes dependency updates and documentation clarifications regarding Node.js requirements.

Migration Steps

  1. If you rely on the exact location of errors reported by max-statements, note that the location is now the function header instead of potentially deeper within the function body.

✨ New Features

  • Corrected stack tracking in max-nested-callbacks rule.
  • The no-with rule now reports violations at the 'with' keyword.
  • max-lines-per-function violations are now reported at the function head.
  • max-nested-callbacks violations are now reported at the function head.
  • max-depth violations are now reported on keywords.
  • Corrected max-depth handling for else-if chains.
  • Updated error location in max-statements to report at the function header.

Affected Symbols