Skip to content

docs: correct JSDoc and README examples - #13

Merged
KyleJune merged 1 commit into
mainfrom
docs/jsdoc-cleanup
Sep 23, 2026
Merged

KyleJune merged 1 commit into
mainfrom
docs/jsdoc-cleanup

Conversation

@KyleJune

Copy link
Copy Markdown
Member

Summary

Corrects JSDoc that contradicted the code and README examples that did not
compile. Comments and docs only.

Changes

  • LocalsConventionFunction returns the exported key, not the scoped name.
  • getJSON documented as a callback; the plugin writes <file>.json beside
    the source unless one is supplied.
  • generateScopedName, plugins with modules: false, and the
    PostCSSModuleLoader stub now describe what the code does.
  • README: define configPath in the Deno loader example, fix the
    postcss.config.ts import path, and use the default export of
    @tailwindcss/postcss.
  • deno doc --lint: 7 → 0 findings.
  • examples/tailwindcss4/out/main.css gains .absolute: Tailwind scans the
    plugin source, and the new JSDoc uses the word "absolute".

Testing

deno task check and deno task test pass (7 passed) from a standalone copy
of this tree.

Closes

Nothing.

🤖 Generated with Claude Code

Fix JSDoc that contradicted the code (LocalsConventionFunction return,
getJSON's side effect, generateScopedName, modules: false,
PostCSSModuleLoader) and README examples that did not compile. The
tailwindcss4 example output gains `.absolute` because Tailwind scans the
plugin source and the new JSDoc uses the word.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KyleJune
KyleJune merged commit 88ad9b8 into main Sep 23, 2026
8 checks passed
@KyleJune
KyleJune deleted the docs/jsdoc-cleanup branch September 23, 2026 03:28
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.

1 participant