Skip to content

style: fix all JSDoc lint warnings and enforce zero-warning policy#317

Merged
takaokouji merged 1 commit intodevelopfrom
style/fix-lint-warnings
Mar 16, 2026
Merged

style: fix all JSDoc lint warnings and enforce zero-warning policy#317
takaokouji merged 1 commit intodevelopfrom
style/fix-lint-warnings

Conversation

@takaokouji
Copy link

Summary

  • Fix all 23 JSDoc lint warnings across 11 files in scratch-gui
  • Enforce --max-warnings 0 in scratch-gui's lint script so warnings are treated as errors
  • Update CLAUDE.md and .claude/rules/code-style.md to document the zero-warning lint policy

Changes Made

JSDoc fixes (11 source files)

  • Add missing @param and @returns declarations
  • Remove @param that doesn't match function signature (ruby-downloader.jsx)
  • Escape inline JSDoc tags (@ruby`@ruby`, @a`@a`)
  • Fix type casing (Objectobject)
  • Add missing JSDoc comments for exported functions (face_sensing.js)
  • Remove extra blank line after block description (module-sync.js)

Lint enforcement

  • packages/scratch-gui/package.json: "lint": "eslint""lint": "eslint --max-warnings 0"

Documentation

  • CLAUDE.md: Add note about zero-warning policy
  • .claude/rules/code-style.md: Document that warnings (including JSDoc) must be fixed before committing

Implementation Steps

  • Fix all JSDoc lint warnings in scratch-gui source files
  • Enforce --max-warnings 0 in scratch-gui lint script
  • Update CLAUDE.md and code-style.md documentation

Definition of Done

  • lint passes with zero warnings
  • CI green

Closes #316

Fix 23 JSDoc warnings across 11 files in scratch-gui:
- Add missing @param and @returns declarations
- Remove @param that doesn't match function signature
- Escape inline JSDoc tags (@ruby → `@ruby`, @A → `@a`)
- Fix type casing (Object → object)
- Add missing JSDoc comments for exported functions
- Remove extra blank line after block description

Enforce --max-warnings 0 in scratch-gui's lint script so warnings
are treated as errors in both local development and CI.

Update CLAUDE.md and .claude/rules/code-style.md to document the
zero-warning lint policy.

Closes #316

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link

@takaokouji takaokouji merged commit 0a91fc8 into develop Mar 16, 2026
9 checks passed
@takaokouji takaokouji deleted the style/fix-lint-warnings branch March 16, 2026 00:18
github-actions bot pushed a commit that referenced this pull request Mar 16, 2026
…t-warnings

style: fix all JSDoc lint warnings and enforce zero-warning policy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

style: fix all JSDoc lint warnings in scratch-gui

1 participant