Created
December 12, 2016 02:31
-
-
Save samueljseay/51c4c1627497928671fe894e7a3f7cb2 to your computer and use it in GitHub Desktop.
lint console logs with eslint before committing code
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
# put paths to files you don't want to lint here | |
path/to/files/to/ignore |
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
Show hidden characters
{ | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true, | |
"experimentalObjectRestSpread": true | |
} | |
}, | |
"rules": { | |
"no-console": "error" | |
} | |
} |
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
# make sure you have eslint installed via npm install -g eslint | |
eslint path/to/javascripts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment