Skip to content

nextjs/no-typos Correctness

This rule is turned on by default.
🚧 An auto-fix is still under development.

What it does

Prevent common typos in Next.js's data fetching functions

Why is this bad?

Example

javascript
export default function Page() {
  return <div></div>;
}
export async function getServurSideProps() {}

How to use

To enable this rule in the CLI or using the config file, you can use:

bash
oxlint --deny nextjs/no-typos --nextjs-plugin
json
{
  "plugins": ["nextjs"],
  "rules": {
    "nextjs/no-typos": "error"
  }
}

References

Released under the MIT License.