React
22 rules eslint-plugin-react@7.37.5
Complete effective rule inventory.
Rules
No enabled React rules match this search.
-
react/button-has-typeDisallow usage of
buttonelements without an explicittypeattribute -
react/jsx-boolean-valueEnforce boolean attributes notation in JSX
-
react/jsx-curly-brace-presenceDisallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
-
react/jsx-fragmentsEnforce shorthand or standard form for React fragments
-
react/jsx-keyDisallow missing
keyprops in iterators/collection literals -
react/jsx-no-comment-textnodesDisallow comments from being inserted as text nodes
-
react/jsx-no-duplicate-propsDisallow duplicate properties in JSX
-
react/jsx-no-leaked-renderDisallow problematic leaked values from being rendered
-
react/jsx-no-script-urlDisallow usage of
javascript:URLs -
react/jsx-no-target-blankDisallow
target="_blank"attribute withoutrel="noreferrer" -
react/jsx-no-undefDisallow undeclared variables in JSX
-
react/jsx-no-useless-fragmentDisallow unnecessary fragments
-
react/jsx-pascal-caseEnforce PascalCase for user-defined JSX components
-
react/no-children-propDisallow passing of children as props
-
react/no-dangerDisallow usage of dangerous JSX properties
-
react/no-invalid-html-attributeDisallow usage of invalid attributes
-
react/no-object-type-as-default-propDisallow usage of referential-type variables as default param in functional component
-
react/no-this-in-sfcDisallow
thisfrom being used in stateless functional components -
react/no-unknown-propertyDisallow usage of unknown DOM property
-
react/self-closing-compDisallow extra closing tags for components without children
-
react/style-prop-objectEnforce style prop value is an object
-
react/void-dom-elements-no-childrenDisallow void DOM elements (e.g.
<img />,<br />) from receiving children