Skip to content

[Enhance] forbid-component-props accepts allowedForRegex and disallowedForRegex#3687

Closed
bschlenk wants to merge 5 commits into
jsx-eslint:masterfrom
bschlenk:master
Closed

[Enhance] forbid-component-props accepts allowedForRegex and disallowedForRegex#3687
bschlenk wants to merge 5 commits into
jsx-eslint:masterfrom
bschlenk:master

Conversation

@bschlenk

@bschlenk bschlenk commented Feb 8, 2024

Copy link
Copy Markdown

Fixes #3686

@codecov

codecov Bot commented Feb 8, 2024

Copy link
Copy Markdown

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (9f4b2b9) 97.74% compared to head (7723121) 97.73%.

Files Patch % Lines
lib/rules/forbid-component-props.js 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3687      +/-   ##
==========================================
- Coverage   97.74%   97.73%   -0.01%     
==========================================
  Files         132      132              
  Lines        9409     9420      +11     
  Branches     3449     3454       +5     
==========================================
+ Hits         9197     9207      +10     
- Misses        212      213       +1     

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

@ljharb

ljharb commented Feb 8, 2024

Copy link
Copy Markdown
Member

PR was a bit premature; regexes in eslint configs are hugely insecure and a CVE farm, and should never exist.

@ljharb ljharb marked this pull request as draft February 18, 2024 22:14
@ljharb ljharb force-pushed the master branch 2 times, most recently from 380e32c to 51d342b Compare July 4, 2024 15:25
@akulsr0

akulsr0 commented Jul 18, 2024

Copy link
Copy Markdown
Contributor

This is solved in #3774, can be closed.

@ljharb ljharb closed this Jul 18, 2024
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.

Rule enhancement: allow regex in forbid-component-props allowedFor / disallowedFor

3 participants