Skip to content

🦅 ContentHawk - Content Audit: Expand comments guidance for modern JavaScript practices #12569

@github-actions

Description

@github-actions

File

public/uploads/rules/do-you-comment-your-javascript-code/rule.mdx

Finding

The rule (lastUpdated 2015) gives general advice about comments but doesn't mention modern tooling, TypeScript types, JSDoc, or when to prefer self-documenting code and automated API documentation.

Suggestions

  • Update to recommend using JSDoc/TypeScript for public APIs and prefer self-documenting code combined with concise comments.
  • Recommend linters and documentation generation tools (ESLint rules, TypeDoc) and avoid examples like document.write.
  • Add examples of good comment practices for modern JS/TS projects.

contenthawk-run-id: 24868294451

Generated by Content Judge (Agent 2a) ·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions