0 comments (0 comments)0 reactions (0 reactions)0 assignees (0 assignees)JavaScript468 forks (468 forks)user submission
enhancementhelp wanted
Repository metrics
- Stars
- 5,022 stars (5,022 stars)
- PR merge metrics
- Avg merge 1d 16h (Avg merge 1d 16h)399 merged PRs in 30d (399 merged PRs in 30d)
Description
The PR (v55) silenced type issues when importing the plugin, but it does not actually enforce a valid configuration nor helps auto-completion in the IDE.
I think ESLint itself will validate the config on run, but IDE users are still left out.
Contributor guide
- Research direction
- Review the referenced PR #2382 and issue #2324 to understand the previous type workaround. Examine the current main entry point (likely 'index.js' or 'index.ts') to see how the plugin exports its rules and config. Then, create a new type declaration file (e.g., 'index.d.ts') that exports the exact TypeScript types for the plugin's configuration schema. Ensure the 'types' field in package.json points to this file. Look at other ESLint plugins that provide typed configs for reference.
- Tech stack
- javascripttypescript
- Domain
- toolingdeveloper experience
- Issue type
- Feature
- Prerequisites
- TypeScript basicsESLint plugin architectureHow to export types from a package