Change8

v10.0.0-alpha.1

Breaking Changes
📦 eslintView on GitHub →
4 breaking2 features🐛 2 fixes🔧 5 symbols

Summary

This release introduces breaking changes including the removal of deprecated SourceCode methods, stricter RuleTester assertions, and a major update to the minimatch dependency, alongside improved error locations for specific rules.

⚠️ Breaking Changes

  • Added 'name' property to configuration objects; ensure custom configs are updated if they conflict with this new property.
  • Removed deprecated SourceCode methods; replace usage with current SourceCode API equivalents.
  • Updated minimatch dependency to v10, which may include breaking changes in glob matching behavior.
  • Implemented stricter RuleTester assertions for valid test cases; existing tests that were technically invalid but previously passed may now fail.

Migration Steps

  1. Update code to remove calls to deprecated SourceCode methods.
  2. Review and update RuleTester suites to comply with stricter validation for valid test cases.
  3. Verify glob patterns in configuration due to the minimatch v10 upgrade.
  4. Optionally add 'name' properties to flat configuration objects for better identification.

✨ New Features

  • Added 'name' to configuration objects.
  • Updated error location reporting for 'require-yield' and 'no-useless-constructor' rules.

🐛 Bug Fixes

  • Removed deprecated SourceCode methods.
  • Enforced stricter assertions in RuleTester for valid test cases.

🔧 Affected Symbols

SourceCodeRuleTesterrequire-yieldno-useless-constructorminimatch