Answer the question
In order to leave comments, you need to log in
How to run nunjucks file through prettier?
There is an index.njk file which is essentially the same html only with a different file extension. How can I format the code with prettier in such files?
Tried:
overrides:
- files: "*.njk"
options:
parser: "html"
Answer the question
In order to leave comments, you need to log in
Oh .. actually
overrides:
- files: "*.njk"
options:
parser: "html"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question