-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: lat config fix #8
Conversation
WalkthroughThe pull request modifies the configuration structure of the ESLint plugin for RxJS. The primary change involves simplifying the Changes
Possibly related PRs
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
packages/eslint-plugin-rxjs/src/index.ts(node:53323) ESLintIgnoreWarning: The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files Oops! Something went wrong! :( ESLint: 9.14.0 ESLint couldn't find an eslint.config.(js|mjs|cjs) file. From ESLint v9.0.0, the default configuration file is now eslint.config.js. https://eslint.org/docs/latest/use/configure/migration-guide If you still have problems after following the migration guide, please stop by Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 21188d5. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (1)
packages/eslint-plugin-rxjs/src/index.ts (1)
107-109
: Consider adding migration documentation.Since this changes how the plugin is configured, it would be helpful to add documentation explaining:
- The new configuration structure
- Migration steps for users upgrading from the previous version
- Example configurations for both flat config and traditional ESLint configurations
Would you like me to help create a migration guide or update the documentation?
plugins: { | ||
'@smarttools/rxjs': plugin, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Update needed: Documentation and recommended config still use legacy array-based plugin format
The changes in src/index.ts
correctly implement the flat config format, but there are inconsistencies in other files:
packages/eslint-plugin-rxjs/src/lib/configs/recommended.ts
: Uses array formatplugins: ['@smarttools/rxjs']
README.md
and plugin's README: Contains examples using both formats, which may confuse users
These files should be updated to consistently use the new object-based format for flat config compatibility.
🔗 Analysis chain
LGTM! Configuration structure aligns with ESLint flat config requirements.
The change correctly adapts the plugin configuration to ESLint's flat config system by using the object-based plugin declaration instead of an array-based approach.
Let's verify the flat config compatibility:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify the flat config usage pattern in the codebase and documentation
# Check for any remaining array-based plugin configurations
rg -l "plugins:\s*\["
# Check for documentation or example usage
fd -e md -e js -e ts "eslint" --exec rg -l "plugins.*@smarttools/rxjs"
Length of output: 201
Script:
#!/bin/bash
# Let's check the content of these files to understand the plugin configuration patterns
# Check README content
echo "=== Main README.md ==="
cat README.md | grep -A 5 "plugins:"
echo -e "\n=== Plugin README.md ==="
cat packages/eslint-plugin-rxjs/README.md | grep -A 5 "plugins:"
echo -e "\n=== Recommended Config ==="
cat packages/eslint-plugin-rxjs/src/lib/configs/recommended.ts | grep -A 5 "plugins:"
Length of output: 1180
Issue Number: #6
Body
fixes flat config configuration issue
Summary by CodeRabbit
recommended
configuration.