function createLintingProblem(options) {
	const {
		ruleId = null,
		loc = DEFAULT_ERROR_LOC,
		message = createMissingRuleMessage(options.ruleId),
		severity = 2,

		// fallback for eslintrc mode
		language = {
			columnStart: 0,
			lineStart: 1,
		},
	} = options;

	return {
		ruleId,
		message,
		...updateLocationInformation(
			{
				line: loc.start.line,
				column: loc.start.column,
				endLine: loc.end.line,
				endColumn: loc.end.column,
			},
			language,
		),
		severity,
		nodeType: null,
	};
}
creates a linting problem
@param {Object} options to create linting error
@param {string} [options.ruleId] the ruleId to report
@param {Object} [options.loc] the loc to report
@param {string} [options.message] the error message to report
@param {RuleSeverity} [options.severity] the error message to report
@param {Language} [options.language] the language to use to adjust the location information
@returns {LintMessage} created problem, returns a missing-rule problem if only provided ruleId.
@private