mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
d5d575c1de
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rust](https://rust-lang.org/) ([source](https://redirect.github.com/rust-lang/rust), [changelog](https://redirect.github.com/rust-lang/rust/blob/main/RELEASES.md)) | toolchain | minor | `1.97.1` → `1.98.0` | --- ### Configuration 📅 **Schedule**: (in timezone Asia/Shanghai) - Branch creation - "before 10am on monday" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/oxc-project/oxc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zNS40IiwidXBkYXRlZEluVmVyIjoiNDQuMzUuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Cameron <cameron.clark@hey.com>
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.