jsx-eslint / eslint-plugin-react

React-specific linting rules for ESLint
MIT License
8.86k stars 2.76k forks source link

[Fix] `boolean-prop-naming`: literalType error fix #3704

Closed developer-bandi closed 3 months ago

developer-bandi commented 3 months ago

related #3285 As mentioned in #3701, the rule is modified to apply even when the type of props is directly specified.

const Hello = (props: {enabled:boolean}) => <div />;
codecov[bot] commented 3 months ago

Codecov Report

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

Project coverage is 97.75%. Comparing base (901c794) to head (0abebc6).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3704 +/- ## ======================================= Coverage 97.75% 97.75% ======================================= Files 133 133 Lines 9464 9464 Branches 3466 3466 ======================================= Hits 9252 9252 Misses 212 212 ```

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