eslint-plugin-prettier.js
function reportDelete(context, offset, text) {
  const start = context.getSourceCode().getLocFromIndex(offset);
  const end = context.getSourceCode().getLocFromIndex(offset + text.length);
  const range = [offset, offset + text.length];
  context.report({
    message: 'Delete `{{ code }}`',
    data: { code: showInvisibles(text) },
    loc: { start, end },
    fix(fixer) {
      return fixer.removeRange(range);
    }
  });
}
function reportDelete(context, offset, text) {
  const start = context.getSourceCode().getLocFromIndex(offset);
  const end = context.getSourceCode().getLocFromIndex(offset + text.length);
  const range = [offset, offset + text.length];
  context.report({
    message: 'Delete `{{ code }}`',
    data: { code: showInvisibles(text) },
    loc: { start, end },
    fix(fixer) {
      return fixer.removeRange(range);
    }
  });
}
function reportDelete ( context , offset , text ) { const start = context . getSourceCode ( ) . getLocFromIndex ( offset ) ; const end = context . getSourceCode ( ) . getLocFromIndex ( offset + text . length ) ; const range = [ offset , offset + text . length ] ; context . report ( { message : 'Delete `{{ code }}`' , data : { code : showInvisibles ( text ) } , loc : { start , end } , fix ( fixer ) { return fixer . removeRange ( range ) ; } } ) ; }
Reports a "Delete ..." issue where text must be deleted.
@param {RuleContext} context - The ESLint rule context.
@param {number} offset - The source offset where to delete text.
@param {string} text - The text to be deleted.
@returns {void}
Reports a Delete ... issue where text must be deleted .