PrismJS / PrismJS/prism

[v2] type checking and intellisense support

Open
#3,702 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

(not for code in Prism inside a web app, but for people consuming the Prism library, in their IDE)

Currently the v2 build provides no types for consumers. We should output declaration files that work well with vanilla ES Module usage (ensuring it works with vanilla ES Modules ensures the most compatibility: if it works with vanilla, it will work with everything else because it will be in the most standard way that tools are aligning with).

Contributor guide

No contributing guide indexed for this repository

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

No files or tests are named. Start by examining the v2 build and its vanilla ES Module output, then identify how declaration files would be emitted for library consumers. Done means the published v2 build provides usable types and IDE intellisense for standard vanilla ES Module usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.