Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document #3008 adds a test to no-unused-prop-types #3023

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thinklikeadesigner
Copy link

#3008 request to add a test for maintainers

  • figure out why there's a false positive
  • adds an easy way to keep investigating the issue
  • No side effects

@DianaSuvorova

-  to figure out why there's a false positive
- adds easy way to keep  investivating issue
- No side effects
@DianaSuvorova
Copy link
Contributor

Nice, Great job!

Would you please check if this is a case of SFC

The example in the doc is using flow but the same should apply to TS. Ie if you try to use this prop not within a function would there still be an error?

@ljharb
Copy link
Member

ljharb commented Jul 23, 2021

This is an SFC, but the place being warned on is a render prop - which isn't a component.

@codecov
Copy link

codecov bot commented Nov 27, 2022

Codecov Report

Merging #3023 (f5baf33) into master (01ab399) will decrease coverage by 3.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3023      +/-   ##
==========================================
- Coverage   97.58%   94.52%   -3.06%     
==========================================
  Files         130      130              
  Lines        9218     9218              
  Branches     3341     3341              
==========================================
- Hits         8995     8713     -282     
- Misses        223      505     +282     
Impacted Files Coverage Δ
lib/util/propTypes.js 68.21% <0.00%> (-29.22%) ⬇️
lib/util/ast.js 73.19% <0.00%> (-23.20%) ⬇️
lib/rules/hook-use-state.js 88.88% <0.00%> (-11.12%) ⬇️
lib/rules/boolean-prop-naming.js 91.56% <0.00%> (-7.84%) ⬇️
lib/rules/no-unused-state.js 93.12% <0.00%> (-6.11%) ⬇️
lib/rules/jsx-props-no-multi-spaces.js 94.11% <0.00%> (-5.89%) ⬇️
lib/rules/no-unused-prop-types.js 91.83% <0.00%> (-4.09%) ⬇️
lib/rules/no-invalid-html-attribute.js 94.07% <0.00%> (-2.64%) ⬇️
lib/rules/jsx-no-constructed-context-values.js 91.34% <0.00%> (-1.93%) ⬇️
lib/rules/require-default-props.js 98.38% <0.00%> (-1.62%) ⬇️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Successfully merging this pull request may close these issues.

3 participants