-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(textchecker-element): implement LintEngine API
- Loading branch information
Showing
13 changed files
with
345 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { TextlintFixResult, TextlintMessage, TextlintResult } from "@textlint/types"; | ||
|
||
/** | ||
* textlint Server API | ||
*/ | ||
export type API = { | ||
lint({ text, ext }: { text: string; ext: string }): TextlintResult[]; | ||
// fix all text with all rule | ||
fixAll({ text, ext }: { text: string; ext: string }): TextlintFixResult; | ||
// fix all with with a rule | ||
fixRule({ text, ext, message }: { text: string; ext: string; message: TextlintMessage }): TextlintFixResult; | ||
// fix the text | ||
fixText({ text, ext, message }: { text: string; ext: string; message: TextlintMessage }): { output: string }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Install Dialog</title> | ||
</head> | ||
<body> | ||
<h1>Install Page</h1> | ||
<div> | ||
<button id="js-install-button">Install</button> | ||
</div> | ||
<script src="../scripts/install-dialog.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.