Change8

v10.9.0

📦 eslintView on GitHub →
2 features🐛 3 fixes🔧 4 symbols

Summary

This release introduces new features for the `no-loss-of-precision` and `no-unmodified-loop-condition` rules, alongside several bug fixes for autofixing in `no-var` and `prefer-template` rules. Documentation has also been updated.

Migration Steps

  1. Update shareable configs to use ESLint peer dependency version `^10.0.0`.

✨ New Features

  • Handle underflow in no-loss-of-precision rule.
  • Add `checkConditionalExpressions` option to `no-unmodified-loop-condition` rule.

🐛 Bug Fixes

  • Prevent unsafe `no-var` autofix with hoisted functions.
  • Prevent `no-var` autofix when var is shadowed by a catch parameter.
  • Fix `prefer-template` autofix that incorrectly creates a tagged template call.

Affected Symbols