function normalizeConfigGlobal(configuredValue) {
	switch (configuredValue) {
		case "off":
			return "off";

		case true:
		case "true":
		case "writeable":
		case "writable":
			return "writable";

		case null:
		case false:
		case "false":
		case "readable":
		case "readonly":
			return "readonly";

		default:
			throw new Error(
				`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`,
			);
	}
}
Normalizes a value for a global in a config
@param {(boolean|string|null)} configuredValue The value given for a global in configuration or in
a global directive comment
@returns {("readonly"|"writable"|"off")} The value normalized as a string
@throws {Error} if global value is invalid