Change8

v10.0.0-beta.0

Breaking Changes
📦 eslintView on GitHub →
2 breaking1 features🐛 4 fixes🔧 6 symbols

Summary

This release introduces breaking changes to terminal styling and JSX reference tracking, alongside several TypeScript typing fixes and a new error assertion feature.

⚠️ Breaking Changes

  • Replaced 'chalk' with 'styleText' for terminal styling and added 'color' property to 'ResultsMeta'.
  • Enabled JSX reference tracking by default, which may change how unused variables or references are detected in JSX code.

Migration Steps

  1. Update any custom formatters or integrations relying on 'chalk' to use the new 'styleText' or 'ResultsMeta.color' property.
  2. Review JSX code for changes in linting results due to the new JSX reference tracking.

✨ New Features

  • Add error assertion options to enhance testing capabilities.

🐛 Bug Fixes

  • Corrected TypeScript typings for loadESLint() and shouldUseFlatConfig().
  • Corrected RuleTester TypeScript typings.
  • Implemented a strict check for removed formatters.
  • Corrected error messages for the no-restricted-import rule.

🔧 Affected Symbols

loadESLintshouldUseFlatConfigRuleTesterResultsMetano-restricted-importno-unused-vars