React
43 rules oxlint@1.91.0
Complete effective rule inventory.
Rules
No enabled React rules match this search.
-
react/button-has-typeDisallow usage of
buttonelements without an explicittypeattribute -
react/capitalized-callsValidates against calling capitalized functions/methods instead of using JSX
-
react/error-boundariesValidates usage of error boundaries instead of try/catch for errors in child components
-
react/exhaustive-depsverifies the list of dependencies for Hooks like useEffect and similar
-
react/globalsValidates against assignment/mutation of globals during render, part of ensuring that side effects must render outside of render
-
react/hooksValidates the rules of hooks
-
react/iframe-missing-sandboxEnforce sandbox attribute on iframe elements
-
react/immutabilityValidates against mutating props, state, and other values that are immutable
-
react/incompatible-libraryValidates against usage of libraries which are incompatible with memoization (manual or automatic)
-
react/invariantInternal invariants
-
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-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/memo-dependenciesValidates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values. See
useMemo()docs for more information. -
react/no-array-index-keyDisallow usage of Array index in keys
-
react/no-children-propDisallow passing of children as props
-
react/no-dangerDisallow usage of dangerous JSX properties
-
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/preserve-manual-memoizationValidates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference matches or exceeds the existing manual memoization
-
react/purityValidates that components/hooks are pure by checking that they do not call known-impure functions
-
react/refsValidates correct usage of refs, not reading/writing during render. See the "pitfalls" section in
useRef()usage -
react/rule-suppressionValidates against suppression of other rules