Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/inspection/eslint"

Index

Type aliases

EslintResults

EslintResults: EslintResult[]

Variables

Const esLintReviewCategory

esLintReviewCategory: "eslint" = "eslint"

Functions

Const RunEslintOnProject

  • RunEslintOnProject(p: Project): Promise<ProjectReview>

eslintReviewComment

  • eslintReviewComment(detail: string, rule: string, severity?: Severity, sourceLocation?: SourceLocation): ReviewComment
  • Parameters

    • detail: string
    • rule: string
    • Default value severity: Severity = "info"
    • Optional sourceLocation: SourceLocation

    Returns ReviewComment

mapEslintResultsToReviewComments

  • mapEslintResultsToReviewComments(tslintOutput: string, dir: string): ReviewComment[]

Object literals

Const EslintInspection

EslintInspection: object

Provide a code inspection that runs eslint and returns a ProjectReview.

description

description: string = "Run eslint on project"

inspection

inspection: function = RunEslintOnProject

Type declaration

    • (p: Project, papi: PushAwareParametersInvocation<P>): Promise<R>
    • Parameters

      • p: Project
      • papi: PushAwareParametersInvocation<P>

      Returns Promise<R>

intent

intent: string = "eslint"

name

name: string = "EslintInspection"

Generated using TypeDoc