0

prettier do this auto newline

<TextField
  name="message"
  variant="outlined"
  label="Message"
  fullWidth
  value={postData.message}
  onChange={(e) => setPostData({ ...postData, message: e.target.value })}
/>

what, i want like this can prettier do this?

<TextField
  name="message" variant="outlined" label="Message" fullWidth value={postData.message}
  onChange={(e) => setPostData({ ...postData, message: e.target.value })}
/>
starball
  • 20,030
  • 7
  • 43
  • 238
  • 1
    Probably not. The point of prettier is that it's not got that many options to configure, to just end those endless debates. Besides, your second code block is not very readable. – Cerbrus Aug 28 '23 at 14:44

1 Answers1

0

The closest you can get is

That way everything will be placed in one line. Anything that exceeds these requirements is not configurable with Prettier alone.

Behemoth
  • 5,389
  • 4
  • 16
  • 40