function createDisableDirectives(
	{ type, value, justification, node },
	ruleMapper,
	language,
	sourceCode,
) {
	const ruleIds = Object.keys(commentParser.parseListConfig(value));
	const directiveRules = ruleIds.length ? ruleIds : [null];
	const result = {
		directives: [], // valid disable directives
		directiveProblems: [], // problems in directives
	};
	const parentDirective = { node, value, ruleIds };

	for (const ruleId of directiveRules) {
		const loc = sourceCode.getLoc(node);

		// push to directives, if the rule is defined(including null, e.g. /*eslint enable*/)
		if (ruleId === null || !!ruleMapper(ruleId)) {
			if (type === "disable-next-line") {
				const { line, column } = updateLocationInformation(
					loc.end,
					language,
				);

				result.directives.push({
					parentDirective,
					type,
					line,
					column,
					ruleId,
					justification,
				});
			} else {
				const { line, column } = updateLocationInformation(
					loc.start,
					language,
				);

				result.directives.push({
					parentDirective,
					type,
					line,
					column,
					ruleId,
					justification,
				});
			}
		} else {
			result.directiveProblems.push(
				createLintingProblem({ ruleId, loc, language }),
			);
		}
	}
	return result;
}
Creates a collection of disable directives from a comment
@param {Object} options to create disable directives
@param {("disable"|"enable"|"disable-line"|"disable-next-line")} options.type The type of directive comment
@param {string} options.value The value after the directive in the comment
comment specified no specific rules, so it applies to all rules (e.g. `eslint-disable`)
@param {string} options.justification The justification of the directive
@param {ASTNode|token} options.node The Comment node/token.
@param {function(string): {create: Function}} ruleMapper A map from rule IDs to defined rules
@param {Language} language The language to use to adjust the location information.
@param {SourceCode} sourceCode The SourceCode object to get comments from.
@returns {Object} Directives and problems from the comment