Ende.lint.RuleContext

interface · experimental

interface Ende.lint.RuleContext

Properties

id

id: string

The running rule id: <plugin-name>/<rule-name>

filename

filename: string

Name of the file that's currently being linted.

sourceCode

sourceCode: SourceCode

Helper methods for working with the raw source code.

Methods

report

report(data: ReportData): void

Report a lint error.

getFilename

getFilename(): string

Deprecated.

Use ctx.filename instead.

getSourceCode

getSourceCode(): SourceCode

Deprecated.

Use ctx.sourceCode instead.