Prettier Typescript + TSX #6520
Replies: 6 comments 12 replies
-
I added this as is but it didn't seem to work for me |
Beta Was this translation helpful? Give feedback.
-
Does this pick up and use the |
Beta Was this translation helpful? Give feedback.
-
Use the local prettier installation by pointing the {
"language_overrides": {
"TypeScript": {
"format_on_save": {
"external": {
"command": "node_modules/.bin/prettier",
"arguments": [
"--stdin-filepath",
"{buffer_path}"
]
}
}
},
"TSX": {
"format_on_save": {
"external": {
"command": "node_modules/.bin/prettier",
"arguments": [
"--stdin-filepath",
"{buffer_path}"
]
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
-
thanks bro |
Beta Was this translation helpful? Give feedback.
-
On a note: This is now in the official documentation. |
Beta Was this translation helpful? Give feedback.
-
FWIW TS/TSX/Prettier/ESLint worked for me out of the box in the most recent version of Zed. |
Beta Was this translation helpful? Give feedback.
-
Just a tip for people that are trying to use zed for a web project with Typescript and TSX. The docs show how to use it only with Javascript but you can easily add support for TS and TSX with these example:
Beta Was this translation helpful? Give feedback.
All reactions