mizdra / mizdra/css-modules-kit

ts-plugin does not report config diagnostics to the editor

Open
#433 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Feature
Dominant language
TypeScript
Stars
197
Forks
15
Avg merge
1h 33m
Merged PRs (30d)
9

Description

Diagnostics produced while reading tsconfig.json (e.g. "dtsOutDir must be a string", and the deprecation warning for cmkOptions.keyframes introduced in #430) are reported by codegen, but not by ts-plugin. Editor users never see them unless they run codegen.

packages/ts-plugin/src/index.cts has a // TODO: Report diagnostics comment where this should happen.

It would be nice if ts-plugin reported these diagnostics in the editor, e.g. on the corresponding property in tsconfig.json.

🤖 Generated with Claude Code

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/ts-plugin/src/index.cts at the // TODO: Report diagnostics comment, then compare how codegen reports diagnostics produced while reading tsconfig.json. Done means the ts-plugin exposes those diagnostics in the editor, ideally on the corresponding tsconfig.json property, including the dtsOutDir type error and the cmkOptions.keyframes deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.