microsoft / microsoft/TypeScript
Feature request: allow user to merge extended arrays in tsconfig files
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
Scenario: As a user, I would like to optionally merge extended arrays in tsconfig files. To do so, I would add a nested dot array ["..."] reminding spread operator to the property I want to merge. Here is an example:
tsconfig-base.json
{
"exclude": ["**/__specs__/*"]
}
tsconfig-custom.json
{
"extends": "./tsconfig-base.json",
"exclude": [["...tsconfig-base"], "lib"] // resolved to ["**/__specs__/*"; "lib"]
}
Alternative: using a config {} object
tsconfig-custom.json
{
"extends": "./tsconfig-base.json",
"exclude": [{ "extends": "tsconfig-base" }, "lib"] // resolved to ["**/__specs__/*"; "lib"]
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the tsconfig-base.json and tsconfig-custom.json examples, then trace how TypeScript handles the extends property and array-valued configuration fields. Done means choosing and documenting an accepted syntax for selectively merging inherited arrays, with coverage for the exclude examples and their resolved values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100