|
Class |
Description |
|---|---|
|
A wrapper around the underlying WebAssembly module that contains Harper's core code. Used to construct a | |
|
An error found in provided text. May include zero or more suggestions that may fix the problematic text. | |
|
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. | |
|
A struct that represents two character indices in a string: a start and an end. | |
|
A suggestion to fix a Lint. | |
|
A Linter that spins up a dedicated web worker to do processing on a separate thread. Main benefit: this Linter will not block the event loop for large documents. NOTE: This class will not work properly in Node. In that case, just use |
|
Enumeration |
Description |
|---|---|
|
Specifies an English Dialect, often used for linting. | |
|
Tags the variant of suggestion. |
|
Interface |
Description |
|---|---|
|
An interface for an object that can perform linting actions. | |
|
The properties and information needed to construct a Linter. | |
|
Options available to configure Harper's parser for an individual linting operation. | |
|
Represents the summary of linting results and history. Useful to show linting statistics or insights to the user. |
|
Variable |
Description |
|---|---|
|
A version of the Harper WebAssembly binary stored inline as a data URL. Can be tree-shaken if unused. | |
|
A version of the Harper WebAssembly binary stored inline as a data URL. Can be tree-shaken if unused. |
|
Type Alias |
Description |
|---|---|
|
A linting rule configuration dependent on upstream Harper's available rules. This is a record, since you shouldn't hard-code the existence of any particular rules and should generalize based on this struct. |