react

react/boolean-prop-naming docs

Enforces consistent naming for boolean props

Not configured in any preset

react/button-has-type docs

Disallow usage of button elements without an explicit type attribute

Configured in

react/default-props-match-prop-types docs

Enforce all defaultProps have a corresponding non-required PropType

Not configured in any preset

react/destructuring-assignment docs

Enforce consistent usage of destructuring assignment of props, state, and context

Not configured in any preset

react/display-name docs

Disallow missing displayName in a React component definition

Configured in

react/forbid-component-props docs

Disallow certain props on components

Not configured in any preset

react/forbid-dom-props docs

Disallow certain props on DOM Nodes

Not configured in any preset

react/forbid-elements docs

Disallow certain elements

Not configured in any preset

react/forbid-foreign-prop-types docs

Disallow using another component's propTypes

Not configured in any preset

react/forbid-prop-types docs

Disallow certain propTypes

Not configured in any preset

react/function-component-definition docs

Enforce a specific function type for function components

Not configured in any preset

react/hook-use-state docs

Ensure destructuring and symmetric naming of useState hook value and setter variables

Configured in

react/iframe-missing-sandbox docs

Enforce sandbox attribute on iframe elements

Not configured in any preset

react/jsx-boolean-value docs

Enforce boolean attributes notation in JSX

Not configured in any preset

react/jsx-child-element-spacing docs

Enforce or disallow spaces inside of curly braces in JSX attributes and expressions

Configured in

react/jsx-closing-bracket-location docs

Enforce closing bracket location in JSX

Configured in

react/jsx-closing-tag-location docs

Enforce closing tag location for multiline JSX

Configured in

react/jsx-curly-spacing docs

Enforce or disallow spaces inside of curly braces in JSX attributes and expressions

Configured in

react/jsx-curly-newline docs

Enforce consistent linebreaks in curly braces in JSX attributes and expressions

Configured in

react/jsx-equals-spacing docs

Enforce or disallow spaces around equal signs in JSX attributes

Configured in

react/jsx-filename-extension docs

Disallow file extensions that may contain JSX

Not configured in any preset

react/jsx-first-prop-new-line docs

Enforce proper position of the first property in JSX

Configured in

react/jsx-handler-names docs

Enforce event handler naming conventions in JSX

Not configured in any preset

react/jsx-indent docs

Enforce JSX indentation

Configured in

react/jsx-indent-props docs

Enforce props indentation in JSX

Configured in

react/jsx-key docs

Disallow missing key props in iterators/collection literals

Configured in

react/jsx-max-depth docs

Enforce JSX maximum depth

Not configured in any preset

react/jsx-max-props-per-line docs

Enforce maximum of props on a single line in JSX

Configured in

react/jsx-newline docs

Require or prevent a new line after jsx elements and expressions.

Configured in

react/jsx-no-bind docs

Disallow .bind() or arrow functions in JSX props

Not configured in any preset

react/jsx-no-comment-textnodes docs

Disallow comments from being inserted as text nodes

Configured in

react/jsx-no-constructed-context-values docs

Disallows JSX context provider values from taking values that will cause needless rerenders

Not configured in any preset

react/jsx-no-duplicate-props docs

Disallow duplicate properties in JSX

Configured in

react/jsx-no-leaked-render docs

Disallow problematic leaked values from being rendered

Not configured in any preset

react/jsx-no-literals docs

Disallow usage of string literals in JSX

Not configured in any preset

react/jsx-no-script-url docs

Disallow usage of javascript: URLs

Not configured in any preset

react/jsx-no-target-blank docs

Disallow target="_blank" attribute without rel="noreferrer"

Configured in

react/jsx-no-useless-fragment docs

Disallow unnecessary fragments

Not configured in any preset

react/jsx-one-expression-per-line docs

Require one JSX element per line

Configured in

react/jsx-no-undef docs

Disallow undeclared variables in JSX

Configured in

react/jsx-curly-brace-presence docs

Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes

Configured in

react/jsx-pascal-case docs

Enforce PascalCase for user-defined JSX components

Not configured in any preset

react/jsx-fragments docs

Enforce shorthand or standard form for React fragments

Not configured in any preset

react/jsx-props-no-multi-spaces docs

Disallow multiple spaces between inline JSX props

Configured in

react/jsx-props-no-spreading docs

Disallow JSX prop spreading

Not configured in any preset

react/jsx-sort-default-props docs

Enforce defaultProps declarations alphabetical sorting

Not configured in any preset

react/jsx-sort-props docs

Enforce props alphabetical sorting

Not configured in any preset

react/jsx-space-before-closing docs

Enforce spacing before closing bracket in JSX

Configured in

react/jsx-tag-spacing docs

Enforce whitespace in and around the JSX opening and closing brackets

Configured in

react/jsx-uses-react docs

Disallow React to be incorrectly marked as unused

Not configured in any preset

react/jsx-uses-vars docs

Disallow variables used in JSX to be incorrectly marked as unused

Configured in

react/jsx-wrap-multilines docs

Disallow missing parentheses around multiline JSX

Configured in

react/no-invalid-html-attribute docs

Disallow usage of invalid attributes

Not configured in any preset

react/no-access-state-in-setstate docs

Disallow when this.state is accessed within setState

Not configured in any preset

react/no-adjacent-inline-elements docs

Disallow adjacent inline elements not separated by whitespace.

Not configured in any preset

react/no-array-index-key docs

Disallow usage of Array index in keys

Not configured in any preset

react/no-arrow-function-lifecycle docs

Lifecycle methods should be methods on the prototype, not class fields

Not configured in any preset

react/no-children-prop docs

Disallow passing of children as props

Configured in

react/no-danger docs

Disallow usage of dangerous JSX properties

Not configured in any preset

react/no-danger-with-children docs

Disallow when a DOM element is using both children and dangerouslySetInnerHTML

Configured in

react/no-deprecated docs

Disallow usage of deprecated methods

Configured in

react/no-did-mount-set-state docs

Disallow usage of setState in componentDidMount

Not configured in any preset

react/no-did-update-set-state docs

Disallow usage of setState in componentDidUpdate

Not configured in any preset

react/no-direct-mutation-state docs

Disallow direct mutation of this.state

Configured in

react/no-find-dom-node docs

Disallow usage of findDOMNode

Configured in

react/no-is-mounted docs

Disallow usage of isMounted

Configured in

react/no-multi-comp docs

Disallow multiple component definition per file

Not configured in any preset

react/no-namespace docs

Enforce that namespaces are not used in React elements

Not configured in any preset

react/no-set-state docs

Disallow usage of setState

Not configured in any preset

react/no-string-refs docs

Disallow using string references

Configured in

react/no-redundant-should-component-update docs

Disallow usage of shouldComponentUpdate when extending React.PureComponent

Not configured in any preset

react/no-render-return-value docs

Disallow usage of the return value of ReactDOM.render

Configured in

react/no-this-in-sfc docs

Disallow this from being used in stateless functional components

Configured in

react/no-typos docs

Disallow common typos

Not configured in any preset

react/no-unescaped-entities docs

Disallow unescaped HTML entities from appearing in markup

Not configured in any preset

react/no-unknown-property docs

Disallow usage of unknown DOM property

Configured in

react/no-unsafe docs

Disallow usage of unsafe lifecycle methods

Configured in

react/no-unstable-nested-components docs

Disallow creating unstable components inside components

Configured in

react/no-unused-class-component-methods docs

Disallow declaring unused methods of component class

Not configured in any preset

react/no-unused-prop-types docs

Disallow definitions of unused propTypes

Not configured in any preset

react/no-unused-state docs

Disallow definitions of unused state

Not configured in any preset

react/no-object-type-as-default-prop docs

Disallow usage of referential-type variables as default param in functional component

Not configured in any preset

react/no-will-update-set-state docs

Disallow usage of setState in componentWillUpdate

Not configured in any preset

react/prefer-es6-class docs

Enforce ES5 or ES6 class for React Components

Not configured in any preset

react/prefer-exact-props docs

Prefer exact proptype definitions

Not configured in any preset

react/prefer-read-only-props docs

Enforce that props are read-only

Not configured in any preset

react/prefer-stateless-function docs

Enforce stateless components to be written as a pure function

Not configured in any preset

react/prop-types docs

Disallow missing props validation in a React component definition

Configured in

react/react-in-jsx-scope docs

Disallow missing React when using JSX

Not configured in any preset

react/require-default-props docs

Enforce a defaultProps definition for every prop that is not a required prop

Not configured in any preset

react/require-optimization docs

Enforce React components to have a shouldComponentUpdate method

Not configured in any preset

react/require-render-return docs

Enforce ES5 or ES6 class for returning value in render function

Configured in

react/self-closing-comp docs

Disallow extra closing tags for components without children

Not configured in any preset

react/sort-comp docs

Enforce component methods order

Not configured in any preset

react/sort-default-props docs

Enforce defaultProps declarations alphabetical sorting

Not configured in any preset

react/sort-prop-types docs

Enforce propTypes declarations alphabetical sorting

Not configured in any preset

react/state-in-constructor docs

Enforce class component state initialization style

Not configured in any preset

react/static-property-placement docs

Enforces where React component static properties should be positioned.

Not configured in any preset

react/style-prop-object docs

Enforce style prop value is an object

Not configured in any preset

react/void-dom-elements-no-children docs

Disallow void DOM elements (e.g. <img />, <br />) from receiving children

Configured in