Skip to content

Conversation

@mrsmiitth
Copy link

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • Test
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

@vercel
Copy link

vercel bot commented Jan 8, 2026

@mrsmiitth is attempting to deploy a commit to the Rel1cx's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
eslint-react Ready Ready Preview, Comment Jan 8, 2026 4:29pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to update the ESLint configuration example in the README for the eslint-plugin-react-x package to use a newer flat config format with array syntax. However, the update introduces several critical issues that prevent the example from being valid or functional.

Key issues:

  • The example mixes old and new code, leaving obsolete imports and duplicating comments
  • The configuration uses an invalid "extends" field for the flat config format
  • Missing imports for functions like globalIgnores
  • Missing closing code fence for the code block

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 31 to 37
extends: [
js.configs.recommended,
tseslint.configs.recommended,
react.configs.recommended,
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "extends" field should be removed from the configuration object. In the flat config format used here (with array syntax), configuration sharing is done by spreading objects in the array, not using an "extends" field. The correct approach is to spread the config objects directly in the array at the top level.

Copilot uses AI. Check for mistakes.
react.configs.recommended,
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quote style is inconsistent. This should use double quotes to match the established pattern in other plugin READMEs in this repository.

Copilot uses AI. Check for mistakes.
parser: tseslint.parser,
parserOptions: {
projectService: true,
project: ['./tsconfig.node.json', './tsconfig.app.json'],
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quote style is inconsistent. These strings should use double quotes to match the established pattern in other plugin READMEs in this repository.

Copilot uses AI. Check for mistakes.
import tseslint from "typescript-eslint";

export default defineConfig(
// eslint.config.js
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment "// eslint.config.js" is duplicated. It already appears on line 15 at the beginning of this code block and should not be repeated here.

Suggested change
// eslint.config.js

Copilot uses AI. Check for mistakes.
Comment on lines +24 to +25
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quote style is inconsistent with the rest of the codebase. All other plugin READMEs in this repository use double quotes for strings. These imports should use double quotes instead of single quotes to maintain consistency.

Suggested change
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
import reactX from "eslint-plugin-react-x"
import reactDom from "eslint-plugin-react-dom"

Copilot uses AI. Check for mistakes.
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
globalIgnores(['dist']),
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The globalIgnores function is called without being imported. The example code needs to either import this function or show where it comes from for the documentation to be accurate.

Copilot uses AI. Check for mistakes.
globalIgnores(['dist']),
{
files: ["**/*.ts", "**/*.tsx"],
files: ['**/*.{ts,tsx}'],
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quote style is inconsistent. This should use double quotes to match the established pattern in other plugin READMEs in this repository.

Copilot uses AI. Check for mistakes.
},
);
```
])
Copy link

Copilot AI Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code block is missing a closing code fence. A line with ``` should be added after this line to properly close the JavaScript code block that starts on line 14.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant