-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
[Question] Is there any plan to Linter integration for Editor/IDE? #13
Comments
Thanks, I haven't used Sublime uses temp files so there was no need for stdin, but its something to consider. What editor would you use it in? |
Thanks reply. I'm using Vim. If stdin is not supported, you can of course create a tempfile and use that. Is it possible that djlint is more of a formatter tool than a pure linter? If stdin is supported by linter, it is possible to run lint in some real time without saving the file. For example, a tool similar to djlint is curlylint. If you want to support stdin in linter, the implementation of curlylint may be helpful. |
Thanks, I'll check it out! Feel free to pr if you have free time :) djlint does both linting and formatting, but the codebases are completely separate. The linter is more to check for potential html problems, not formatting problems. |
This is an aside. I'm working on a Vim/Neovim (use
In the case of django html, the formatter uses It would be nice if djlint's linter feature could also be easier to integrate. 🙇 |
I'll create a new release on pypi shortly with this feature. echo "<div></div>" | djlint - Thanks for the idea! |
Does this not require the none:
add --check:
|
Both are correct.
for your check <div></div> will be reformatted to <div></div> note, no leading space. |
I'd recommend using no args for an IDE, and make a keyboard shortcut to run the |
I'm sorry to bring up a different topic in this issue, but is it possible to output the row numbers and columns with errors? This is an example of
|
np, check out this regex for parsing: https://github.com/christopherpickering/Sublimelinter-contrib-djlint/blob/master/linter.py |
I'll try a regex. Thank you so much!!! |
Wow. Thank you very much for considering responding. 🙇 Perhaps now the various editors/IDEs will be able to work with djLint smoothly! |
@christopherpickering I supported DEMOcoc-htmldjango-djlint-integration.mp4 |
Pretty nice, thanks for sharing! I wonder if we should add an "integrations" section to the docs... Is there a link to instructions on how to use this that I can add? |
In the integrations section, my plugin (extension) is not a djLint-specific plugin, so it is not necessary. 🙇 |
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Thanks for this tool. Do you have any plans for djlint as a linter to run from the Editor or IDE?
Also, in that case, it might be good to have stdin support as well.
Example:
The text was updated successfully, but these errors were encountered: