Re: JavaScript variables don't work for me. The keyword 'const' /'let are reserved. Solution
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
}
}
It worked for me.
regards.
