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
Nunjucks .njk files aren't being recognised by the formatter/linter. When running djlint . --profile=nunjucks via the command line I get "No files to check! 😢".
If I change one of the files to a .html file then run the same command it will then format/lint the file I have changed. I have tried using djlint . --extension=html.njk --check but this has the same result. I have also tried setting the profile, extension and files params in a .djlintrc file which also doesn't solve the issue.
The only way I have managed to get a .njk file formatted/linted is to specify the exact file and path I want to format/lint like running djlint path/nunjucksFile.njk --profile=nunjucks
How To Reproduce
Install djlint using npm
Run djlint . --profile=nunjucks in a folder structure that contains nunjucks files with the extension .njk
This should result in "No files to check! 😢" being returned
The text was updated successfully, but these errors were encountered:
System Info
Issue
Nunjucks .njk files aren't being recognised by the formatter/linter. When running
djlint . --profile=nunjucks
via the command line I get "No files to check! 😢".If I change one of the files to a
.html
file then run the same command it will then format/lint the file I have changed. I have tried usingdjlint . --extension=html.njk --check
but this has the same result. I have also tried setting theprofile
,extension
andfiles
params in a.djlintrc
file which also doesn't solve the issue.The only way I have managed to get a .njk file formatted/linted is to specify the exact file and path I want to format/lint like running
djlint path/nunjucksFile.njk --profile=nunjucks
How To Reproduce
djlint . --profile=nunjucks
in a folder structure that contains nunjucks files with the extension .njkThe text was updated successfully, but these errors were encountered: