Skip to content

docs: add documentation for no-typos ESLint rule#89436

Closed
zent7x wants to merge 1 commit intovercel:canaryfrom
zent7x:docs/add-no-typos-eslint-docs
Closed

docs: add documentation for no-typos ESLint rule#89436
zent7x wants to merge 1 commit intovercel:canaryfrom
zent7x:docs/add-no-typos-eslint-docs

Conversation

@zent7x
Copy link
Copy Markdown

@zent7x zent7x commented Feb 3, 2026

Summary

Added missing documentation for the @next/next/no-typos ESLint rule.

Problem

The no-typos rule exists in @next/eslint-plugin-next but has no documentation page in the errors directory, causing broken links when users click on the rule in ESLint config inspectors.

Solution

Created errors/no-typos.mdx documenting:

  • What the rule does (detects typos in data fetching functions)
  • Which functions it checks (getStaticProps, getStaticPaths, getServerSideProps)
  • Common typo examples
  • Links to relevant documentation

Fixes #67342

Add missing documentation page for the @next/eslint-plugin-next
no-typos rule that detects common typos in Next.js data fetching
functions (getStaticProps, getStaticPaths, getServerSideProps).

Fixes #67342
@nextjs-bot nextjs-bot added the Documentation Related to Next.js' official documentation. label Feb 3, 2026
@nextjs-bot
Copy link
Copy Markdown
Contributor

Allow CI Workflow Run

  • approve CI run for commit: 8cf0d59

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@nextjs-bot
Copy link
Copy Markdown
Contributor

Allow CI Workflow Run

  • approve CI run for commit: 8cf0d59

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Comment thread errors/no-typos.mdx
- `getStaticProp` → `getStaticProps`
- `getStaticPath` → `getStaticPaths`
- `getServerSideProp` → `getServerSideProps`
- `getServerSideProps` with incorrect casing
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this suppose to be getserversideprops (there is no casing error)

Comment thread errors/no-typos.mdx
@@ -0,0 +1,54 @@
---
title: No typos in Next.js data fetching functions
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets align the title with the rule and just call it No Typos like the other lint documents

@zent7x zent7x closed this Mar 17, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Documentation Related to Next.js' official documentation. locked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs(@next/eslint-plugin-next): not existing .md file for rule no-typos

3 participants