ESLint tells me that I do not need "use strict"
at the top of my index.js file (it's a simple server like the 6-line one on https://nodejs.org/en/about/). Apparently all node modules are already in strict mode. Makes sense.
However, running node index.js
gets me a "SyntaxError: [let] not supported outside strict mode." does run with the "redundant" "use strict"
pragma.
Why the inconsistency? Shouldn't node know that this node module is indeed strict by default? Could this be due to some simple misconfiguration of node, ESLint, or my IDE?