Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Sep 2, 2025

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

@Rel1cx Rel1cx requested a review from Copilot September 2, 2025 20:17
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 updates ESLint configuration examples across documentation to use the new defineConfig function from eslint/config instead of the deprecated tseslint.config approach. The change standardizes the configuration format to align with modern ESLint practices.

Key changes:

  • Replace tseslint.config() with defineConfig([]) for ESLint configurations
  • Add imports for defineConfig from eslint/config
  • Update configuration structure to use array format instead of object format

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/plugins/eslint-plugin/README.md Updates main plugin documentation example to use defineConfig
packages/plugins/eslint-plugin-react-x/README.md Updates react-x plugin documentation example
packages/plugins/eslint-plugin-react-web-api/README.md Updates react-web-api plugin documentation example
packages/plugins/eslint-plugin-react-naming-convention/README.md Updates naming convention plugin documentation example
packages/plugins/eslint-plugin-react-hooks-extra/README.md Updates hooks-extra plugin documentation example
packages/plugins/eslint-plugin-react-dom/README.md Updates react-dom plugin documentation example
packages/plugins/eslint-plugin-react-debug/README.md Updates react-debug plugin documentation example
eslint.config.ts Updates actual configuration file to use defineConfig
apps/website/eslint.config.ts Updates website ESLint configuration
apps/website/content/docs/getting-started/typescript.mdx Updates documentation guide
README.md Updates main README example
.pkgs/configs/eslint.ts Adds deprecation warning comment
.pkgs/configs/eslint.js Adds deprecation warning comment

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Rel1cx Rel1cx merged commit 8a541e0 into 2.0.0 Sep 2, 2025
9 of 10 checks passed
@vercel
Copy link

vercel bot commented Sep 2, 2025

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

Project Deployment Preview Comments Updated (UTC)
eslint-react Building Building Preview Comment Sep 2, 2025 8:20pm

@Rel1cx Rel1cx deleted the docs/replace-tseslint-config-with-define-config branch September 2, 2025 22:55
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.

2 participants