Back to all reviewers

Use JSDoc deprecation standards

vercel/turborepo
Based on 2 comments
TypeScript

When marking code as deprecated, use JSDoc standards to provide clear guidance for developers. Always use the `@deprecated` tag followed by when it was deprecated and what should be used instead. Additionally, use the `{@link}` tag to create clickable references to replacement functionality.

Documentation TypeScript

Reviewer Prompt

When marking code as deprecated, use JSDoc standards to provide clear guidance for developers. Always use the @deprecated tag followed by when it was deprecated and what should be used instead. Additionally, use the {@link} tag to create clickable references to replacement functionality.

Example:

/**
 * @deprecated as of Turborepo 2.0.0. Consider using {@link RootSchema.globalDependencies} instead.
 */
export interface SomeDeprecatedInterface {
  // ...
}

This approach creates clickable references in many IDEs and documentation tools, allowing developers to quickly navigate to the recommended alternatives. Proper deprecation documentation helps with code maintenance and reduces confusion during migration to newer APIs.

2
Comments Analyzed
TypeScript
Primary Language
Documentation
Category

Source Discussions