Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

prettier not working with tsx

Add this to your "settings.json" file:

"[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
},
 
PREVIOUS NEXT
Tagged: #prettier #working #tsx
ADD COMMENT
Topic
Name
5+2 =