lib/linter.js
function createRuleListeners(rule, ruleContext) {
    try {
        return rule.create(ruleContext);
    } catch (ex) {
        ex.message = `Error while loading rule '${ruleContext.id}': ${ex.message}`;
        throw ex;
    }
}
function createRuleListeners(rule, ruleContext) {
    try {
        return rule.create(ruleContext);
    } catch (ex) {
        ex.message = `Error while loading rule '${ruleContext.id}': ${ex.message}`;
        throw ex;
    }
}
function createRuleListeners ( rule , ruleContext ) { try { return rule . create ( ruleContext ) ; } catch ( ex ) { ex . message = ` ${ ruleContext . id } ${ ex . message } ` ; throw ex ; } }
Runs a rule, and gets its listeners
@param {Rule} rule A normalized rule with a `create` method
@param {Context} ruleContext The context that should be passed to the rule
@returns {Object} A map of selector listeners provided by the rule
Runs a rule and gets its listeners