Home > harper.js > Lint

Lint class

An error found in provided text.

May include zero or more suggestions that may fix the problematic text.

Signature:

export declare class Lint 

Methods

Method

Modifiers

Description

free()

from_json(json)

static

get_problem_text()

Get the content of the source material pointed to by [Self::span]

lint_kind_pretty()

Get a string representing the general category of the lint.

lint_kind()

Get a string representing the general category of the lint.

message_html()

Get a description of the error as HTML.

message()

Get a description of the error.

span()

Get the location of the problematic text.

suggestion_count()

Equivalent to calling .length on the result of suggestions().

suggestions()

Get an array of any suggestions that may resolve the issue.

to_json()