saadq/lynt

Improve LyntResult example

Open

#7 aperta il 17 mag 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (6 fork)github user discovery
docsgood first issue

Metriche repository

Star
 (383 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor