{"id":597,"hash":"4bc6debda7e7234ec1fd3a913f0f39cdc8202a1124f4af8826769c20a75a643f","pattern":"ESLint: &quot;error Parsing error: The keyword &#39;const&#39; is reserved&quot;","full_message":"I am getting this error from ESLint:\n\nerror  Parsing error: The keyword 'const' is reserved\n\nfrom this code:\n\nconst express = require('express');\nconst app = express();\nconst _ = require('underscore');\n\nI've tried removing node_modules and reinstalling all npm packages (as suggested here), but to no avail.","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"ESLint defaults to ES5 syntax-checking. You'll want to override to the latest well-supported version of JavaScript.\n\nTry adding a .eslintrc.json file to your project.  Inside it:\n\n{\n    \"env\": {\n        \"es6\": true\n    }\n}\n\nSee also this example .eslintrc.json which might help.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/42706584/eslint-error-parsing-error-the-keyword-const-is-reserved","votes":372,"created_at":"2026-04-19T04:51:24.110032+00:00","updated_at":"2026-04-19T04:51:24.110032+00:00"}