Last active
November 11, 2018 18:10
-
-
Save cladley/b13c82649c781dbe421a5441cfb74374 to your computer and use it in GitHub Desktop.
eslint example
This file contains 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
to install eslint run | |
npm install eslint | |
create eslint.rc file with contents | |
{ | |
"parserOptions": { | |
"ecmaVersion": "2018" | |
}, | |
"extends": ["eslint:recommended"], | |
"rules": { | |
"valid-typeof": "error", // can be warn, error or off | |
"no-console": "off" | |
}, | |
"env": { | |
"browser": true | |
} | |
} | |
run command eslint to show errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment