Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 841 Bytes

pr-6993.md

File metadata and controls

10 lines (9 loc) · 841 Bytes

[BREAKING] Remove deprecated API and change util signatures (#6993 by @fisker)

  • Parser typescript-eslint is removed. Use the typescript parser instead.
  • prettier.util.mapDoc is removed. Use prettier.doc.utils.mapDoc instead.
  • prettier.util.isNextLineEmpty is updated.
    Use isNextLineEmpty(text, node, locEnd) instead of isNextLineEmpty(text, node, options).
  • prettier.util.isPreviousLineEmpty is updated.
    Use isPreviousLineEmpty(text, node, locStart) instead of isPreviousLineEmpty(text, node, options).
  • prettier.util.getNextNonSpaceNonCommentCharacterIndex is updated.
    Use getNextNonSpaceNonCommentCharacterIndex(text, node, locEnd) instead of getNextNonSpaceNonCommentCharacterIndex(text, node, options).