getRules() {
		assertEslintrcConfig(this);
		const { lastConfigArray, ruleMap } = internalSlotsMap.get(this);

		return new Map(
			(function* () {
				yield* ruleMap;

				if (lastConfigArray) {
					yield* lastConfigArray.pluginRules;
				}
			})(),
		);
	}
Gets an object with all loaded rules.
@returns {Map<string, Rule>} All loaded rules