• newIdentity
        link
        fedilink
        6
        edit-2
        1 year ago

        That’s why I said ESLint

        It’s a Linter for JavaScript. Some people might not know what ESLint is that’s why I put it in brackets

    • @noli
      link
      61 year ago

      Depends on your eslint config, but yeah that’s an option.

      • newIdentity
        link
        fedilink
        6
        edit-2
        1 year ago

        Are you sure?

        (this is my work pc so wayyy to much work to make a screenshot and upload it)

            • Exusgu
              link
              fedilink
              81 year ago

              ESLint won’t prevent you from running your code, which is what the OP is on about. Hence the confusion in this thread.

              • newIdentity
                link
                fedilink
                2
                edit-2
                1 year ago

                Oh it will. At least in combination with Vue. At least that’s the default. Of cause you can disable it.

                • @[email protected]
                  link
                  fedilink
                  41 year ago

                  You’re describing many things that are not JavaScript the language. If you create and use tools that will stop you then yes they will stop you.

                  • newIdentity
                    link
                    fedilink
                    -1
                    edit-2
                    1 year ago

                    I said ESLint. Not Javascript. ESLint is a linter for JavaScript. That’s why I put JavaScript in brackets. Some people don’t know what ESLint is. I’m talking about ESLint the whole time. Its not JavaScript specific but it’s mostly used for JavaScript

                    You yourself are talking about ESLint. You said that ESLint won’t prevent me from creating unused variables and functions when it clearly does. It won’t even run and throw an error

                    Edit: ohh it’s a Lemmy bug. The comment didn’t update yet. Originally I said “ES6” then I changed it to “JavaScript” and then I changed it to “ESLint (JavaScript)”