Last active
October 5, 2018 04:49
-
-
Save chonlatee/9b6c5e7422270a9b8702dbd5f19c4fd4 to your computer and use it in GitHub Desktop.
simple setup .eslintrc.js for node
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
{ | |
"extends": "google", | |
"parser": "babel-eslint", | |
"env": { | |
"es6": true, | |
"node": true | |
}, | |
"rules": { | |
"semi":["error", "never"], | |
"quotes": ["error", "double"], | |
"object-curly-spacing": ["error", "always"], | |
"new-cap": ["warn"] | |
} | |
} | |
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
{ | |
"name": "foo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
}, | |
"devDependencies": { | |
"babel-eslint": "^9.0.0", | |
"eslint": "^5.5.0", | |
"eslint-config-google": "^0.10.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment