saadq/lynt

Improve LyntResult example

Open

#7 aberto em 17 de mai. de 2018

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (6 forks)github user discovery
docsgood first issue

Métricas do repositório

Stars
 (383 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador