This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
How do I hint a filetype to rome? #4420
Unanswered
UtkarshVerma
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Not at the moment, but you can work around it: cat .prettierrc | rome format --stdin-file-path=file.json > .prettierrc |
Beta Was this translation helpful? Give feedback.
0 replies
-
@UtkarshVerma Maybe the question is aimed at a somewhat general case, but in the case of Prettier (or Eslint) you can also give the file the appropriate file extension: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working with files without a specific extension, e.g.
.prettierrc
.rome
does not format it because it's an unknown extension. Is there any way I can forcerome
to format the passed file as a specific filetype, like JSON?Beta Was this translation helpful? Give feedback.
All reactions