0

StandardJS (based on eslint) uses special comments like

function ClassName () { // eslint-disable-line no-unused-vars

That can not be broken down to the next line - even with long ClassNames. How can I prevent prettier from breaking the comment to the next line?

Hoffmann
  • 1,050
  • 9
  • 26

1 Answers1

1

Based on this discussion It's in the core formatting functionality and is not going to be changed without a big rewrite.

So for now your best bet is:

// eslint-disable-next-line no-unused-vars
function ClassName () { 
Karen Grigoryan
  • 5,234
  • 2
  • 21
  • 35