Files
Boshen c108d5c45e fix(linter): improve React Compiler diagnostics (#25742)
Improve React Compiler diagnostics with actionable help and cause-oriented labels. Preserve-memoization and recursive-initialization diagnostics previously spanned entire callbacks; they now keep codeframes compact while refs and `try`/`finally` show related locations.

Validated with React Compiler and React linter suites, Clippy, `just ready`, and the 24-rule VS Code ecosystem audit.

AI-assisted: Codex was used to implement and validate this change. I reviewed and take responsibility for the result.
2026-08-16 14:08:22 +00:00
..
…

Oxc Linter

High-performance ESLint-compatible linter for JavaScript and TypeScript.

Overview

This crate provides a fast, ESLint-compatible linting engine with comprehensive rule support. It leverages oxc's high-performance AST and semantic analysis to deliver significantly faster linting than traditional tools.

Key Features

  • ESLint compatibility: Drop-in replacement for most ESLint workflows
  • High performance: 50-100x faster than ESLint on large codebases
  • Comprehensive rules: Supports most popular ESLint rules and plugins
  • TypeScript support: Full TypeScript linting with type-aware rules
  • Plugin system: Extensible architecture for custom rules

Architecture

Rule System

  • Rule categories: Correctness, Suspicious, Pedantic, Style, etc.
  • Configurable severity: Error, Warning, or Off for each rule
  • Auto-fixing: Many rules can automatically fix issues
  • Plugin support: Load external rule collections

Performance Design

  • Single AST pass: Most rules run in a single traversal
  • Efficient analysis: Leverages oxc's semantic analysis
  • Parallel execution: Process multiple files concurrently
  • Memory efficiency: Uses arena allocation for optimal performance

ESLint Compatibility

  • Configuration format: Supports ESLint config files
  • Rule parity: Implements behavior-compatible versions of popular rules
  • Plugin ecosystem: Compatible with many ESLint plugins
  • Migration path: Easy transition from ESLint to oxlint

The linter is designed to be both a standalone tool and a library component for integration into other development tools.