Skip to content

Instantly share code, notes, and snippets.

@danro
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danro/b460a2c24131255911fa to your computer and use it in GitHub Desktop.
Save danro/b460a2c24131255911fa to your computer and use it in GitHub Desktop.
No const warning 😢
./node_modules/.bin/babel test.js # SyntaxError: test.js: Line 2: "FOO" is read-only
./node_modules/.bin/eslint test.js # Nothing
{
"dependencies": {
"babel": "^5.4.7",
"babel-eslint": "^3.1.9",
"eslint": "^0.21.2"
},
"eslintConfig": {
"parser": "babel-eslint",
"rules": {
"strict": 0
},
"env": {
"es6": true,
"node": true
}
}
}
const FOO = 1;
FOO = 2;
console.log(FOO);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment