made-in-common

eslint-typegen

Generate types from ESLint rule schemas, with auto-completion and type-checking for rule options.

by made-in-common

TypeScript

TypeScript98.3%
JavaScript1.7%

Commit activity

Last 12 weeks · 2 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
62
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · 1 in progress · Last activity 18h ago
See all on GitHub →
abarani

Describe the bug When the option is set the generated code contains the following declaration: In ESLint 9.38.0 is now a type in place of an interface and thus can no longer be extended: https://github.com/eslint/eslint/blob/8fe511b4c0fb74df3290271b29c672c3fbf3be1f/lib/types/index.d.ts#L1328 If I'm getting it correctly the new proposed way to extend config type going forward is: As a side note has been changed too in ESLint 9.39.0. Although it still work as the type is essentially the same, it may be worth importing directly from the @eslint/core module. Reproduction Generate any .d.ts file with set System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

abarani · 4mo ago
benedictleejh

Describe the bug are currently generated as typed keys, and this can cause conflicts with other properties if they have different value types. For example, Vitest's has the following type generated for it's options: This type is problematic, and gives the following errors in Typescript: This is similar to the issue faced in json-schema-to-typescript#671. This can be seen by running the typegen on 's rules. The invalid type is also present in the distributed version of @antfu/eslint-config, in lines 15419-15426 of Reproduction https://www.npmjs.com/package/@antfu/eslint-config?activeTab=code System Info Used Package Manager n/a Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [ ] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

benedictleejh · 11mo ago
sardor01

Describe the bug When generating types for the rule, emits the same interface twice: TypeScript merges interfaces with the same name, but duplicate index signatures collide: The rule's JSON schema references a shape from two distinct subschemas ( and the inner replacements map). The emitter derives the same generated name () for both and writes a full declaration per occurrence instead of deduping by name. Interfaces with only non-index members would merge cleanly, but identical index signatures cannot. Reproduction System Info 2.3.1 64.0.0 TypeScript with Used Package Manager pnpm

sardor01 · 3w ago
ShayanTheNerd

Clear and concise description of the problem After dependency installation, I get this peer dependency mismatch warning: WARN Issues with peer dependencies found However, the types are correctly generated. Suggested solution _package.json_ I'm not sure if this is all that should be changed. (ESLint v10 migration) Alternative _No response_ Additional context _No response_ Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

ShayanTheNerd · 9mo ago
Copilot

ESLint v10 users get an unmet peer dependency warning since only specified . Widen peer dep range to 💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot · 9mo ago
Structured data for AI agents

Repository: made-in-common/eslint-typegen. Description: Generate types from ESLint rule schemas, with auto-completion and type-checking for rule options. Stars: 282, Forks: 12. Primary language: TypeScript. Languages: TypeScript (98.3%), JavaScript (1.7%). License: MIT. Topics: eslint, eslint-flat-config. Latest release: v2.3.2 (3w ago). Open PRs: 1, open issues: 3. Last activity: 18h ago. Community health: 62%. Top contributors: antfu, hugop95, andreww2012, Copilot, sxzzbot, LIUeng, Lpmvb, luxass, hyoban.