What does ESLint JavaScript
do?
I searched both forum and documentation for “ESLint” without success.
What does ESLint JavaScript
do?
I searched both forum and documentation for “ESLint” without success.
ESLint is a static code analysis tool that checks your JavaScript code for common problems, such as syntax errors, formatting issues, code style violations, and potential bugs . In this article, we will explore some of the benefits of using ESLint for code quality and consistency.
from my friend “google”
Thanks for telling me how to google “what ESLint is”.
Can you try with what I actually asked: what does ESLint JavaScript do in Anvil, which is a Python IDE? Is it there just because JavaScript developers like to have it around even when they work with Anvil? Or does it actually do something useful?
Sorry , i was being unhelpful …
i stuck this in ‘native libraries’:
<script>
var* = "blahblah";
</script>
and. it gave me an eslint based error message stating ‘eslint’ at the bottom
Native libraries… I forgot about that… I haven’t used them in ages.
Still… why would they allow me to disable it?
They don’t ask whether I want to disable syntax checking in Python, why would I want to disable it in JavaScript?
Perhaps because ESLint doesn’t know that most of that JavaScript will be used by Python, so it will flood the editor with warnings?
Yes exactly, you might get warnings because ESLint doesn’t like your perfectly valid javascript.
So you can turn it off.
You’ll also see ESLint doing its thing inside html
or js
files when opening your theme assets.
Well , i believe there are 2 flavors of modern javascript , ESM and CjS so by disabling possibly signaling the use of the common cjs variant ? But i suck at javascript so i’m just guessing … i imagine eslint is for ESM