Prettier Typescript + TSX #6520
mauscoelho
started this conversation in
Show and tell
Replies: 3 comments 10 replies
-
I added this as is but it didn't seem to work for me |
Beta Was this translation helpful? Give feedback.
2 replies
-
Does this pick up and use the |
Beta Was this translation helpful? Give feedback.
4 replies
-
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.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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