lib/linter.js
function createDisableDirectives(type, loc, value) {
    const ruleIds = Object.keys(commentParser.parseListConfig(value));
    const directiveRules = ruleIds.length ? ruleIds : [null];

    return directiveRules.map(ruleId => ({ type, line: loc.line, column: loc.column + 1, ruleId }));
}
function createDisableDirectives(type, loc, value) {
    const ruleIds = Object.keys(commentParser.parseListConfig(value));
    const directiveRules = ruleIds.length ? ruleIds : [null];

    return directiveRules.map(ruleId => ({ type, line: loc.line, column: loc.column + 1, ruleId }));
}
function createDisableDirectives ( type , loc , value ) { const ruleIds = Object . keys ( commentParser . parseListConfig ( value ) ) ; const directiveRules = ruleIds . length ? ruleIds : [ null ] ; return directiveRules . map ( ruleId => ( { type , line : loc . line , column : loc . column + 1 , ruleId } ) ) ; }
Creates a collection of disable directives from a comment
@param {("disable"|"enable"|"disable-line"|"disable-next-line")} type The type of directive comment
@param {{line: number, column: number}} loc The 0-based location of the comment token
@param {string} value The value after the directive in the comment
comment specified no specific rules, so it applies to all rules (e.g. `eslint-disable`)
@returns {DisableDirective[]} Directives from the comment
Creates a collection of disable directives from a comment