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

				results.sort(compareResultsByFilePath);

				return formatter(results, {
					...resultsMeta,
					get cwd() {
						return options.cwd;
					},
					get rulesMeta() {
						if (!rulesMeta) {
							rulesMeta = createRulesMeta(cliEngine.getRules());
						}

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