Skip to main content
Known Participant
September 17, 2023
Question

Re: JavaScript variables don't work for me. The keyword 'const' /'let are reserved. Solution

  • September 17, 2023
  • 1 reply
  • 923 views

For some reason the thread with the above problem of, "how to resolve  js linting issues, concerning errors appearing as errors, when they are not actually errors" was closed - so much for open discussion.

I'm not wanting to reignite the topic of Dreamweaver's dated failings, I just want to offer a solution to the original problem, which resolved it for me.

After exhaustive research - I can't stand to see red on my javaScript document, so ignoring the bug was not a solution - I found a solution on Stackoverflow which says insert, to the top of Dreamweaver's linting document,

{

    "parserOptions": {

        "ecmaVersion": "latest",

    },

 

    "env": {

        "es6": true

    }

}

https://stackoverflow.com/questions/42706584/eslint-error-parsing-error-the-keyword-const-is-reserved?rq=3

 

It worked for me.

regards.

    This topic has been closed for replies.

    1 reply

    Jon Fritz
    Community Expert
    Community Expert
    September 18, 2023

    I've unlocked the other thread and added your solution.

    Hopefully it will help out other users who are struggling with DW's default Linting limitations.