function assertConfigurationExists(configFilePath, loaderOptions) {
	const { configFile: useConfigFile } = loaderOptions;

	if (!configFilePath && useConfigFile !== false) {
		const error = new Error("Could not find config file.");

		error.messageTemplate = "config-file-missing";
		throw error;
	}
}
Asserts that a configuration exists. A configuration exists if any
of the following are true:
- `configFilePath` is defined.
- `useConfigFile` is `false`.
@param {string|undefined} configFilePath The path to the config file.
@param {ConfigLoaderOptions} loaderOptions The options to use when loading configuration files.
@returns {void}
@throws {Error} If no configuration exists.