microsoft / microsoft/TypeScript
Suggestion: tsc should display a one line summary
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
Suggestion:
tsc currently list the errors. Sometimes you want to see if the number of errors increases or decreases.
Proposition:
$ tsc
FooBar.tsx(66,59): error TS2339: Property 'query' does not exist on type 'Location'.
Hello.tsx(42,60): error TS2339: Property 'query' does not exist on type 'Location'.
dispatcher.ts(1,13): error TS6133: '_' is declared but never used.
World.test.ts(3,35): error TS7006: Parameter 'reason' implicitly has an 'any' type.
World.test.ts(3,43): error TS7006: Parameter 'promise' implicitly has an 'any' type.
World.test.ts(18,13): error TS6133: 'hello' is declared but never used.
mock.ts(194,23): error TS6133: 'ruleId' is declared but never used.
mock.ts(221,8): error TS2339: Property 'fetch' does not exist on type 'Window'.
Compilation done in 2.6s - 8 errors
$ tsc
[...]
Compilation aborted [...]
Could be the opportunity to display other informations (compilation time for example) given that it fits in a single line (72 columns).
(I'm not talking about --diagnostics)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Einstiegspunkte für tsc-Diagnosen und die Befehlszeilenausgabe zu finden, und vergleiche dann ihr Verhalten mit der bestehenden Option --diagnostics. Die Arbeit ist abgeschlossen, wenn die Kompilierungsausgabe eine knappe einzeilige Zusammenfassung mit der Fehleranzahl sowie, sofern verfügbar, dem Kompilierungsstatus und der Zeitmessung enthält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- cli, compilers
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100