How 52-entertainment/vite-plugin-oxlint works
Main Components
a) Core Components:
• Vite Build Process
• Oxlint Linter Integration
• Plugin Configuration Handler
• File System Interface
b) External Dependencies:
• Oxlint
• Vite
• Optional ESLint Integration
┌─────────────────────────────────────────────────────┐
• Vite Build Process │
• ┬─────────────────────────────────┘
┌───────────────────▼─────────────────────────────────┐
• vite-plugin-oxlint (Plugin) │
• ┤
• ┌─────────────────┐ ┌──────────────────────────┐ │
• Configuration │ │ Plugin Pipeline │ │
• Handler │──▶│ - Init │ │
• ┘ │ - Transform │ │
• Build │ │
• ┬───────────┘ │
• ┌─────────────────┐ ┌─────────────▼───────────┐ │
• File System │◀─▶│ Oxlint Engine │ │
• Interface │ │ │ │
• ┘ └─────────────────────────┘ │
• ┘
Important Elements to Highlight
a) Configuration Options (from README):
• Config File Handler
• Working Directory Manager
• Ignore Patterns Processor
• Rules Manager (Allow/Deny/Warn)
• Additional Parameters Handler
b) Integration Points:
• Vite Plugin Hook System
• ESLint Integration (optional)
• File System Interface
Implementation Details
• Relationship between src/index.ts and src/types.ts
• Compilation output (dist folder)
• Configuration file handling (.oxlintrc.json)
Data Flow Indicators
Following flows: