Last active
August 29, 2015 14:22
-
-
Save danro/b460a2c24131255911fa to your computer and use it in GitHub Desktop.
No const warning 😢
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./node_modules/.bin/babel test.js # SyntaxError: test.js: Line 2: "FOO" is read-only | |
./node_modules/.bin/eslint test.js # Nothing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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