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 = RULE_SEVERITY[severity.toLowerCase()] || 0;
			}

			return typeof severity === "number" && severity === 2;
		}
function(ruleConfig) {

			var severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;

			if (typeof severity === "string") {
				severity = RULE_SEVERITY[severity.toLowerCase()] || 0;
			}

			return typeof severity === "number" && severity === 2;
		}
function ( ruleConfig ) { var severity = Array . isArray ( ruleConfig ) ? ruleConfig [ 0 ] : ruleConfig ; if ( typeof severity === "string" ) { severity = RULE_SEVERITY [ severity . toLowerCase ( ) ] || 0 ; } return typeof severity === "number" && severity === 2 ; }
Determines if the severity for the given rule configuration represents an error.
@param {int|string|Array} ruleConfig The configuration for an individual rule.
@returns {boolean} True if the rule represents an error, false if not.
Determines if the severity for the given rule configuration represents an error .