djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
686 stars 84 forks source link

Docs Examples of How to Turn Off / On Rules! And Globally #736

Open ZackPlauche opened 1 year ago

ZackPlauche commented 1 year ago

Feature Request

So I didn't know about djlint until recently. Before I just used the normal setup with the Django Extension.

Now, however, in all my HTML files I notice these "errors" that I can't seem to figure out how to turn off. Things like:

It seems so unnecessary, and they're not really errors.

How can I turn them off globally?

Some examples would be appreciated! Couldn't find anything online with basic Google Searching 🤷‍♂️ SPECIFICALLY for how to do so in VSCode, and I don't want djlint in my packages virtual environment. Just global settings only please.

welcome[bot] commented 1 year ago

Thanks for opening your first issue here!

christopherpickering commented 1 year ago

Hey, check the command line arg for configuration. https://djlint.com/docs/getting-started/

There is a separate project for the vscode extension with instructions on how to set parameters.

I'm curious what sort of html is giving you those errors/warnings, would you mind to post some?