async function runCheckRuleExamples(...filenames) {
	return await promisify(execFile)(
		process.execPath,
		["--no-deprecation", "tools/check-rule-examples.js", ...filenames],
		{ env: { FORCE_COLOR: "3" } }, // 24-bit color mode
	);
}
Runs check-rule-examples on the specified files.
@param {...string} filenames Files to be passed to check-rule-examples.
@returns {Promise<ChildProcess>} An object with properties `stdout` and `stderr` on success.
@throws An object with properties `code`, `stdout` and `stderr` on success.