# no-typos

Rule `nextjs/no-typos`. Prevent common typos in Next.js data fetching functions.

- Source: nextjs
- Technologies: Next.js, React
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 99.7M weekly downloads of presets that enable it
- Trend: +49.8% last quarter
- Rank: #171 by reach, #838 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `@next/next/no-typos` | yes | no | package `@next/eslint-plugin-next` | [docs](https://nextjs.org/docs/app/api-reference/config/eslint) |
| Oxlint | `nextjs/no-typos` | no | safe | plugin `nextjs`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/nextjs/no-typos.html) |

## Code examples

### Incorrect: the rule reports this

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

### Correct: the rule accepts this

```js
export default function Page() {
  return <div></div>;
}
export async function getServerSideProps(){};
```

Examples from the Oxlint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import next from "@next/eslint-plugin-next";

export default [
  {
    plugins: { "@next/next": next },
    rules: {
      "@next/next/no-typos": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "nextjs"
  ],
  "rules": {
    "nextjs/no-typos": "error"
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Next.js recommended](https://lintradar.dev/presets/next-recommended.md) | ESLint | `@next/eslint-plugin-next` | 22 | 52.9M | +50.7% |
| [Next.js Core Web Vitals](https://lintradar.dev/presets/next-core-web-vitals.md) | ESLint | `eslint-config-next` | 62 | 46.8M | +48.8% |

## Related rules

- [react/no-typos](https://lintradar.dev/rules/react/no-typos.md): Disallow common typos
- [nextjs/no-title-in-document-head](https://lintradar.dev/rules/nextjs/no-title-in-document-head.md): Prevent usage of `<title>` with `Head` component from `next/document`.
- [nextjs/no-location-assign-relative-destination](https://lintradar.dev/rules/nextjs/no-location-assign-relative-destination.md): Prevent usage of `location.assign` or `location.href` assignment to navigate to internal Next.js pages.
- [nextjs/no-styled-jsx-in-document](https://lintradar.dev/rules/nextjs/no-styled-jsx-in-document.md): Prevent usage of `styled-jsx` in `pages/_document.js`.
- [nextjs/no-script-component-in-head](https://lintradar.dev/rules/nextjs/no-script-component-in-head.md): Prevent usage of `next/script` in `next/head` component.
- [nextjs/no-page-custom-font](https://lintradar.dev/rules/nextjs/no-page-custom-font.md): Prevent page-only custom fonts.

---

Web page: https://lintradar.dev/rules/nextjs/no-typos. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
