async loadConfigArrayForFile(filePath) {
		assertValidFilePath(filePath);

		debug(`Calculating config for file ${filePath}`);

		const configFilePath = await this.findConfigFileForPath(filePath);

		assertConfigurationExists(configFilePath, this.#options);

		return this.loadConfigArrayForDirectory(filePath);
	}
Returns a configuration object for the given file based on the CLI options.
This is the same logic used by the ESLint CLI executable to determine
configuration for each file it processes.
@param {string} filePath The path of the file or directory to retrieve config for.
@returns {Promise<FlatConfigArray>} A configuration object for the file.
@throws {Error} If no configuration for `filePath` exists.