---
title: "react-hooks/config"
description: "Report an invalid configuration of the React Compiler"
# Generated by src/codegen/lint-rule-docs.ts. Do not edit below this line.
plugin: "react"
aliases: ["react_hooks/config","react/config"]
kind: "problem"
category: null
default: "off"
fixable: "no"
typeAware: false
deprecated: false
---

You can tell the React Compiler what a module's exports are, for example which ones are hooks. It reports here when that description contradicts itself, such as a hook with a name that doesn't start with `use`.

`bun lint` runs the compiler's checks with a fixed, valid configuration, so this rule has nothing to report. It exists because the `recommended` config in `eslint-plugin-react-hooks` turns it on, and an ESLint config that does that needs to keep working.

{/* never reports */}

## Examples

Not reported:

{/* good */}
```jsx
import { useForm } from "react-hook-form";

function SignUp() {
  const { register } = useForm();
  return <input {...register("email")} />;
}
```
