Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

Typescript eslint-prettier puts space before and after in angled brackets and removes the braces of useState

const [userId, setUserId] = useState<string>('');

So I type this, and when I save the file it turns into that for some weird reason because I almost tried every single prettier option, disabled bracketSpacing etc. no chance. Anyone knows why is this happening?

const [userId, setUserId] = useState < string > '';

question from:https://stackoverflow.com/questions/65623462/typescript-eslint-prettier-puts-space-before-and-after-in-angled-brackets-and-re

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...