function createLanguageOptions({
	globals: configuredGlobals,
	parser,
	parserOptions,
}) {
	const { ecmaVersion, sourceType } = parserOptions;

	return {
		globals: configuredGlobals,
		ecmaVersion: normalizeEcmaVersionForLanguageOptions(ecmaVersion),
		sourceType,
		parser,
		parserOptions,
	};
}
Converts parserOptions to languageOptions for backwards compatibility with eslintrc.
@param {ConfigData} config Config object.
@param {Object} config.globals Global variable definitions.
@param {Parser} config.parser The parser to use.
@param {ParserOptions} config.parserOptions The parserOptions to use.
@returns {JSLanguageOptions} The languageOptions equivalent.