You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if I could name the skylight.yml to be skylight.yml.erb. I currently get yaml parse errors when committing my version of that file, as it contains multiline ERB, which Ruby parses fine, but Prettier baulks at. Being able to append the erb extension would fix this.
This may already be the case, in which case please feel free to close this (although it might be worth making it clearer in the docs as I missed it, or equally feel free to tell me I'm just not looking hard enough!)
Thanks 🙂
The text was updated successfully, but these errors were encountered:
Hi @iHiD! I just tried out Prettier on a skylight.yml.erb file, and it seems not to correctly infer a parser for .erb files (it tried using the Ruby parser). Is there a particular plugin you are using for ERB support? If so, you can add an override to your .prettierrc.json file:
I don't actually particularly mind about it prettifying the ERB, the real issue was that it totally exploded trying to parse the YAML file when it contained multiline erb. So by naming it to yml.erb it won't try and prettify it as yaml and break.
It would be nice if I could name the
skylight.yml
to beskylight.yml.erb
. I currently get yaml parse errors when committing my version of that file, as it contains multiline ERB, which Ruby parses fine, but Prettier baulks at. Being able to append theerb
extension would fix this.This may already be the case, in which case please feel free to close this (although it might be worth making it clearer in the docs as I missed it, or equally feel free to tell me I'm just not looking hard enough!)
Thanks 🙂
The text was updated successfully, but these errors were encountered: