Rules
jsx-uses-react
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Presets
core
recommended
Description
Marks React variables as used when JSX is used in the file.
If you are using the @jsx
pragma this rule will mark the designated variable and not the React one.
This rule does nothing when using the New JSX Transform or if the no-unused-vars
rule is not enabled.