0

I am getting this error in VSCode ReactJS Typescript Prettier:

Prettier is suggesting increases readability when dealing with complex or long generic types by placing the generic type on a new line, indented to align with the start of the generic type declaration.

const [productData, setProductData] = useState<
  ProductDataList[]
>();

However, my Prettier in VSCode does not AutoSave in this format. I have Prettier and VSCode installed.

How can I change AutoSave in VSCode to conduct this? enter image description here

2
  • do you want to format on autosave in vscode Commented Jun 18 at 0:38
  • hi @DileepaMabulage yes, that would be preferable, otherwise we have to remove formatautosave, make the changes as request, and reapply autosave
    – mattsmith5
    Commented Jun 18 at 20:31

0