Change8

v9.31.0

📦 eslint
5 features🐛 2 fixes🔧 6 symbols

Summary

This release introduces support for explicit resource management across several core rules and improves RuleTester output. It also includes a fix for EMFILE errors during autofixing and updates internal dependencies like Mocha and @eslint/js.

✨ New Features

  • Rule tester now outputs the full actual location if it differs from the expected location.
  • Added support for explicit resource management (using/await using) in the 'no-loop-func' rule.
  • Added support for explicit resource management in the 'no-undef-init' rule.
  • Added support for explicit resource management in the 'init-declarations' rule.
  • Added support for explicit resource management in the 'no-const-assign' rule.

🐛 Bug Fixes

  • Implemented retry logic on EMFILE errors when writing autofix results to disk.
  • Removed incorrect types from RuleContext.

🔧 Affected Symbols

RuleTesterno-loop-funcno-undef-initinit-declarationsno-const-assignRuleContext