You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Fix ESLint configuration and pre-commit hook for Pro package
This fix addresses two issues:
1. **ESLint configuration**: The `packages/react-on-rails-pro/**/*` files
were being linted with strict TypeScript rules that don't work for Pro
package code because it uses internal React on Rails APIs with complex
types that can't be resolved in the monorepo setup. Added ESLint config
overrides to disable problematic rules for Pro package files.
2. **Pre-commit hook**: The `bin/lefthook/eslint-lint` script was looking
for Pro files at `react_on_rails_pro/` (the old Pro gem directory) but
not at `packages/react-on-rails-pro/` (the new monorepo Pro package).
Updated the script to properly handle both directories since they use
different ESLint configurations.
Changes:
- Updated eslint.config.ts to disable import resolution and unsafe type
rules for packages/react-on-rails-pro files (placed after TypeScript
config to ensure rules are properly applied)
- Updated bin/lefthook/eslint-lint to lint packages/react-on-rails-pro
files with the root ESLint config
- Removed now-unnecessary eslint-disable comments from Pro package files
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments