Where is Prettier's default map from filename to parser? #17766
Replies: 2 comments
-
|
There is no docs, here is the code. prettier/src/utils/infer-parser.js Line 120 in b10011d |
Beta Was this translation helpful? Give feedback.
-
|
@fisker Thanks – that was some of what I was looking for. For posterity: The languages are |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm fixing integration with pre-commit and struggling to figure something out. Where does Prettier decide, based on filename, what language, parser, etc. to use?
It's not in the docs, so I scanned through source files I thought would be relevant but didn't see anything. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions