microsoft / microsoft/TypeScript
Add JSON schema to the `typescript` package for `tsconfig.json` and `jsconfig.json`
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.4k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
Suggestion
🔍 Search Terms
- JSON schema
- SchemaStore
tsconfig.jsonjsconfig.json
✅ Viability Checklist
N/A
📃 Why
I noticed that Rome doesn't use a traditional hosted JSON schema and instead they publish their JSON schema in their package so that it can then be referenced with a local path:
{
"$schema": "./node_modules/rome/configuration_schema.json",
}
I see three advantages to this approach...
- The JSON schema will match the installed version of the package.
- The JSON schema will work without internet access, provided that node_modules has been installed.
- Any changes to the JSON schema in the development can be used straight away in examples, etc.
⭐ Suggestion
Maintain the JSON schema in this repository, instead of the the SchemaStore repository. It will be kept in sync with new TypeScript releases. Finally, publish the JSON schemas in the typescript package.
You can still leave the hosted JSON schema as an option, which will always resolve to the JSON schemas for the latest version of TypeScript. This will still be needed for editor autocomplete, whereby the schema is not specified in the JSON, but detected from the name of the file.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando come viene assemblato e pubblicato il pacchetto TypeScript, quindi individua dove vengono mantenute le definizioni di configurazione di tsconfig.json e jsconfig.json. Confronta gli schemi desiderati specifici del pacchetto con l’approccio SchemaStore esistente e verifica che gli schemi rimangano sincronizzati con le release e siano inclusi nel pacchetto pubblicato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- json, typescript
- Ambito
- developer-experience, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100