-
Notifications
You must be signed in to change notification settings - Fork 1
wikiparse.Linter (EN)
This is a global constructor added by the browser extension, which can be used to report potential grammar errors and for online editors such as CodeMirror and Monaco (demo).
type: boolean
Whether to be transcluded, default to false
.
param: string
Wikitext to be analyzed
returns: Promise<LintError[]>
Report potential grammar errors. The default language is English. To use other preset languages (Simplified Chinese or Traditional Chinese), please refer to wikiparse.setI18N
method.
param: string
Wikitext to be analyzed
returns: Promise<Diagnostic[]>
Similar to queue method, but the result has been converted to the format required by CodeMirror.
version added: 1.7.1
param: string
Wikitext to be analyzed
returns: Promise<editor.IMarkerData[]>
Similar to queue method, but the result has been converted to the format required by Monaco.
对维基文本批量执行语法检查的命令行工具
用于维基文本的 ESLint 插件
A command-line tool that performs linting on Wikitext in bulk
ESLint plugin for Wikitext