Skip to content

[Fix] no-unknown-property : add missing CSS transition event handlers#4001

Open
baevm wants to merge 1 commit into
jsx-eslint:masterfrom
baevm:no-unknown-property/add-css-transitions
Open

[Fix] no-unknown-property : add missing CSS transition event handlers#4001
baevm wants to merge 1 commit into
jsx-eslint:masterfrom
baevm:no-unknown-property/add-css-transitions

Conversation

@baevm

@baevm baevm commented Apr 27, 2026

Copy link
Copy Markdown

this PR adds support for onTransitionCancel, onTransitionCancelCapture, onTransitionRun, onTransitionRunCapture, onTransitionStart, onTransitionStartCapture events in no-unknown-property rule. Fixes #3993

Copilot AI review requested due to automatic review settings April 27, 2026 16:59
@baevm baevm force-pushed the no-unknown-property/add-css-transitions branch from f47b696 to 9d6ff73 Compare April 27, 2026 17:04
@baevm baevm changed the title [Fix] no-unknown-property : allow CSS transition event handlers [Fix] no-unknown-property : add missing CSS transition event handlers Apr 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds support in no-unknown-property for additional CSS transition event handler props so they’re not incorrectly flagged as unknown, and documents the change in the changelog.

Changes:

  • Add onTransitionCancel, onTransitionRun, and onTransitionStart (and Capture variants) to the allowed DOM property list in no-unknown-property.
  • Update CHANGELOG.md to record the fix and add the PR reference link.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lib/rules/no-unknown-property.js Extends the allowlist to include missing transition event handler props (including Capture variants).
CHANGELOG.md Documents the rule update and adds the PR link reference.
Comments suppressed due to low confidence (1)

CHANGELOG.md:1

  • There are two consecutive blank lines inserted after the new entry, which adds unnecessary whitespace and can make the changelog harder to scan. Consider removing the extra blank line(s) to keep formatting consistent (typically a single blank line between sections).
# Change Log

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

@baevm baevm force-pushed the no-unknown-property/add-css-transitions branch from 9d6ff73 to eda9644 Compare April 27, 2026 17:08
@codecov

codecov Bot commented Apr 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.91%. Comparing base (012ec39) to head (eda9644).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4001      +/-   ##
==========================================
- Coverage   97.58%   95.91%   -1.67%     
==========================================
  Files         137      137              
  Lines       10182    10182              
  Branches     3795     3795              
==========================================
- Hits         9936     9766     -170     
- Misses        246      416     +170     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ljharb ljharb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These will need tests

@ljharb ljharb marked this pull request as draft April 29, 2026 06:27
@baevm baevm force-pushed the no-unknown-property/add-css-transitions branch from eda9644 to 8f6fa9e Compare April 29, 2026 15:06
@baevm baevm marked this pull request as ready for review April 29, 2026 15:48
@baevm

baevm commented Apr 29, 2026

Copy link
Copy Markdown
Author

These will need tests

I added tests, but some CI checks are failing with cryptic errors, and im not sure why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: react/no-unknown-property reports valid CSS Transition event handlers as unknown

4 participants