Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • Linter

Index

Constructors

constructor

  • new Linter(code: string, schemaResolver?: T | SchemaResolver<T>, strictOverride?: undefined | false | true): Linter
  • Parameters

    • code: string
    • Optional schemaResolver: T | SchemaResolver<T>
    • Optional strictOverride: undefined | false | true

    Returns Linter

Properties

builder

builder: Builder<T>

Private Optional strictOverride

strictOverride: undefined | false | true

Accessors

strict

  • get strict(): boolean

Methods

build

  • build(): Promise<Block[]>

Private createLintResult

  • createLintResult(res: { block: Block; expression: string; message: string; offsetBegin: number; offsetEnd: number; severity: LintSeverity }): Lint
  • Parameters

    • res: { block: Block; expression: string; message: string; offsetBegin: number; offsetEnd: number; severity: LintSeverity }
      • block: Block
      • expression: string
      • message: string
      • offsetBegin: number
      • offsetEnd: number
      • severity: LintSeverity

    Returns Lint

Protected getBlockPrefix

  • getBlockPrefix(blockType: BlockType): string

Private getParamsMergedForBlock

  • getParamsMergedForBlock(block: Block, params: any, childParams?: any): any
  • Parameters

    • block: Block
    • params: any
    • Optional childParams: any

    Returns any

lint

Private resolveLineAndColumn

Private scanBlocks

  • scanBlocks(blocks: Block[], schema: any, params: any, results: Lint[]): void

Private scanLiteralBlock

Legend

  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Function
  • Type alias
  • Type alias with type parameter
  • Private property
  • Private method
  • Interface
  • Protected method

Generated using TypeDoc