For tools/scripts to ensure they have resolved all of the lint errors, we need some kind of API to be able to check wikitext before it is saved instead of saving the page and then waiting for the list of lint errors to get updated.
I propose that parsoid adds an API endpoint that accepts wikitext in the POST body and returns with a JSON list of errors (e.g. in a format similar to https://www.mediawiki.org/w/api.php?action=query&list=linterrors).
MediaWiki would then have an API module that proxies requests to parsoid, handling rate limiting and sanity checking.