-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use this plugin with prettier in Visual Studio Code (vscode) #12
Comments
I just installed this via
It end with error ofcourse:
:) you see, I do not know how to do it right. Thank you for your help. |
Hello, This is coming quite late, but I hope it still helps: The name of the parser appears to be "nunjucks": prettier-plugin-nunjucks/src/index.js Line 24 in fda95b1
Prettier's documentation also mentions that you should {
"overrides": [
{
"files": "*.njk",
"options": {
"parser": "nunjucks"
}
}
]
} You don't have to specify the plugin in the config file, Prettier will try to find it automatically. But if you have to specify, you can do: {
"overrides": [
{
"files": "*.njk",
"options": {
"parser": "nunjucks",
"plugins": ["./node_modules/prettier-plugin-nunjucks"]
}
}
]
} You can read more in the Plugins documentation. |
Running
Any alternative that works with latest prettier version? |
Hi,
thank you very much in advance for any tips how to use this plugin with prettier in Visual Studio Code (vscode).
The text was updated successfully, but these errors were encountered: