format(results, resultsMeta) {
				let rulesMeta = null;

				results.sort(compareResultsByFilePath);

				return formatter(results, {
					...resultsMeta,
					cwd,
					get rulesMeta() {
						if (!rulesMeta) {
							rulesMeta = eslint.getRulesMetaForResults(results);
						}

						return rulesMeta;
					},
				});
			}
The main formatter method.
@param {LintResult[]} results The lint results to format.
@param {ResultsMeta} resultsMeta Warning count and max threshold.
@returns {string} The formatted lint results.