Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Sep 11, 2025

This change adds JSX configuration functionality to the core package and reorganizes/cleans up several utilities. Key changes:

  1. Adds JSX config handling: - New JsxConfig interface and related functions - Support for JSX pragma annotations and compiler options - Move from kit to core package

  2. Improves kit utilities organization: - Split RegExp into smaller modules - Move selectors to dedicated file - Streamline reporting utilities - Add clearer naming convention for constants

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

This change adds JSX configuration functionality to the core package and
reorganizes/cleans up several utilities. Key changes:

1. Adds JSX config handling: - New `JsxConfig` interface and related
functions - Support for JSX pragma annotations and compiler options -
Move from kit to core package

2. Improves kit utilities organization: - Split RegExp into smaller
modules - Move selectors to dedicated file - Streamline reporting
utilities - Add clearer naming convention for constants

The commit message succinctly captures these changes:

``` Add JSX config and cleanup utilities ```

I kept the message focused on the core change while omitting the
implementation details since they are evident in the diff. The changes
encompass multiple files but have a singular purpose of adding JSX
config functionality while cleaning up the utilities organization.
@Rel1cx Rel1cx requested a review from Copilot September 11, 2025 15:44
@vercel
Copy link

vercel bot commented Sep 11, 2025

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

Project Deployment Preview Comments Updated (UTC)
eslint-react Ready Ready Preview Comment Sep 11, 2025 3:49pm

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 adds JSX configuration functionality to the core package and reorganizes utilities to improve code structure and maintainability.

  • Moves JSX config functionality from kit package to core package with improved documentation
  • Reorganizes RegExp and selector constants with clearer naming convention (prefixed with RE_ and SEL_)
  • Streamlines utility organization by removing namespace-based imports in favor of direct function imports

Reviewed Changes

Copilot reviewed 41 out of 42 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/utilities/kit/src/utils/reporting.ts New report utility function for simplified context reporting
packages/utilities/kit/src/utils/regexp.ts Extracted RegExp utilities to dedicated module
packages/utilities/kit/src/constants.ts Consolidated constants with RE_ prefix naming convention
packages/utilities/kit/src/ast/selectors.ts Updated selector constants with SEL_ prefix
packages/core/src/jsx/jsx-config.ts Moved and enhanced JSX config functionality with better documentation
Various plugin rule files Updated imports to use new constant and function names

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: REL1CX <rel1cx@proton.me>
@Rel1cx Rel1cx marked this pull request as ready for review September 11, 2025 15:45
@Rel1cx Rel1cx merged commit af83bb1 into 2.0.0 Sep 11, 2025
8 of 9 checks passed
@Rel1cx Rel1cx deleted the cleanup-utilities branch September 11, 2025 15:45
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