saadq/lynt

Improve LyntResult example

Open

#7 geöffnet am 17. Mai 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (6 Forks)github user discovery
docsgood first issue

Repository-Metriken

Stars
 (383 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

The "LyntResult example" in the API docs currently just shows this:

{
  filePath: string
  errors: Array<{
    ruleName: string
    message: string
    line: number
    column: number
    endLine?: number
    endColumn?: number
  }>
  errorCount: number
  fixCount: number
}

Instead of just having the type, it would be nice to show an actual example of what a LyntResult object might look like.

Contributor Guide