Home > harper.js > LocalLinter

LocalLinter class

A Linter that runs in the current JavaScript context (meaning it is allowed to block the event loop). See the interface definition for more details.

Signature:

export declare class LocalLinter implements Linter 

Implements: Linter

Constructors

Constructor

Modifiers

Description

(constructor)(init)

Constructs a new instance of the LocalLinter class

Properties

Property

Modifiers

Type

Description

binary

SuperBinaryModule

Methods

Method

Modifiers

Description

applySuggestion(text, lint, suggestion)

clearIgnoredLints()

clearWords()

contextHash(source, lint)

exportIgnoredLints()

exportWords()

generateStatsFile()

getDefaultLintConfig()

getDefaultLintConfigAsJSON()

getDialect()

getLintConfig()

getLintConfigAsJSON()

getLintDescriptions()

getLintDescriptionsAsJSON()

getLintDescriptionsHTML()

getLintDescriptionsHTMLAsJSON()

ignoreLint(source, lint)

ignoreLintHash(hash)

importIgnoredLints(json)

importStatsFile(statsFile)

importWords(words)

isLikelyEnglish(text)

isolateEnglish(text)

lint(text, options)

organizedLints(text, options)

setDialect(dialect)

setLintConfig(config)

setLintConfigWithJSON(config)

setup()

summarizeStats(start, end)

toTitleCase(text)