function getLanguageOptions(source) {
	const match = languageOptionsPattern.exec(source);

	if (match) {
		return JSON.parse(match[1]);
	}

	return {};
}
Extracts the content of a `/*languageOptions` comment from a given source code
and parses it as JSON.
@param {string} source A source code text.
@returns {Object} languageOptions configuration for linting the source code text.