eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

[New] forbid-dom-props: Add `disallowedValues` option for forbidden props

Open makxca opened this issue 10 months ago • 3 comments

Add disallowedValues for disallowing only certain values for certain props

Discussion: https://github.com/jsx-eslint/eslint-plugin-react/issues/3876

makxca avatar Jan 11 '25 21:01 makxca

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.66%. Comparing base (efc021f) to head (a2e9dac).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3877      +/-   ##
==========================================
+ Coverage   97.64%   97.66%   +0.02%     
==========================================
  Files         133      136       +3     
  Lines        9966     9986      +20     
  Branches     3703     3706       +3     
==========================================
+ Hits         9731     9753      +22     
+ Misses        235      233       -2     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 11 '25 21:01 codecov[bot]

I changed valueRegex to disallowedValues and fixed the comma in the docs

makxca avatar Jan 13 '25 19:01 makxca

@ljharb, hello!

Opensource is practically new to me. Could you please guide me on this PR's flow? When can it be merged?

makxca avatar Mar 27 '25 06:03 makxca