bundles/org.eclipse.orion.client.javascript/web/eslint/lib/config/config-ops.js
function(ruleConfig) {
			var severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;

			if (typeof severity === "string") {
				severity = severity.toLowerCase();
			}
			return VALID_SEVERITIES.indexOf(severity) !== -1;
		}
function(ruleConfig) {
			var severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;

			if (typeof severity === "string") {
				severity = severity.toLowerCase();
			}
			return VALID_SEVERITIES.indexOf(severity) !== -1;
		}
function ( ruleConfig ) { var severity = Array . isArray ( ruleConfig ) ? ruleConfig [ 0 ] : ruleConfig ; if ( typeof severity === "string" ) { severity = severity . toLowerCase ( ) ; } return VALID_SEVERITIES . indexOf ( severity ) !== - 1 ; }
Checks whether a given config has valid severity or not.
@param {number|string|Array} ruleConfig - The configuration for an individual rule.
@returns {boolean} `true` if the configuration has valid severity.
Checks whether a given config has valid severity or not .