Commits
Click on a commit to change the comparison rangefeat(linter): implement react/display-name rule
Implements the React display-name rule to enforce displayName property
on React components for better debugging and error messages.
Features:
- Detects class components (ES5 createReactClass and ES6 classes)
- Detects function components (regular functions, arrow functions)
- Handles Higher-Order Components (HOCs) like memo, forwardRef
- Supports custom component wrapper functions via settings
- Handles nested HOC patterns
- Proper JSX detection in all contexts
Technical improvements:
- Uses semantic analysis for efficient component detection
- Consolidates utility functions from hoc.rs and jsx.rs into react.rs
- Adds comprehensive test coverage
- Re-exports typescript utils for shared type definitions
Fixes applied after rebase:
- Re-export typescript::* utilities for type definitions
- Fix oxfmt::cli::format_command import path
- Update snapshots to match current main branch
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com> change rule reporting level from style to pedantic [autofix.ci] apply automated fixes15 hours ago
by autofix-ci[bot]