Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates 14 core Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This is an impressive pull request that ports 14 eslint-plugin-react rules to Go. The implementations are well-structured, with each rule in its own package, complete with both Go unit tests and TypeScript-based integration tests. The code quality is high, and the rules appear to correctly implement the logic of their ESLint counterparts, including handling various configuration options. The no-op rules are also correctly identified and justified. I have one minor suggestion to improve code maintainability by reducing some duplication.
9cc733b to
42a15b1
Compare
Port the following rules from eslint-plugin-react to Go: - react/jsx-boolean-value - react/jsx-closing-tag-location - react/jsx-equals-spacing - react/jsx-filename-extension - react/jsx-first-prop-new-line - react/jsx-max-props-per-line - react/jsx-props-no-multi-spaces - react/jsx-uses-react - react/jsx-uses-vars - react/jsx-wrap-multilines - react/react-in-jsx-scope - react/self-closing-comp - react/style-prop-object - react/void-dom-elements-no-children
42a15b1 to
1004840
Compare
Summary
Port 14 eslint-plugin-react rules to rslint.
Rules ported
react/self-closing-compreact/void-dom-elements-no-childrenreact/style-prop-objectreact/jsx-boolean-valuereact/jsx-equals-spacing=in JSX attributesreact/jsx-filename-extensionreact/jsx-first-prop-new-linereact/jsx-max-props-per-linereact/jsx-props-no-multi-spacesreact/jsx-closing-tag-locationreact/jsx-wrap-multilinesreact/jsx-uses-reactreact/jsx-uses-varsreact/react-in-jsx-scopeRelated Links
Checklist