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

Viewed 331

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 > '';

0 Answers
Related