This task is about the wikitext portion of T394965: Provide API-powered linting of supported languages in CodeMirror. See parent task for details applicable to all modes/languages we plan to support.
The /transform/wikitext/to/lint REST API endpoint will allow us to provide real-time linting from Parsoid (i.e. the same results as MediaWiki-extensions-Linter). This can be ran in parallel with the existing JS worker.
Perhaps we could also provide initial linting results from our PHP, so that they are shown immediately once CodeMirror initializes. The /transform/wikitext/to/lint/{title}/{revision} endpoint could be used for that (since the user is not necessarily editing the latest revision).