Skip to content

Instantly share code, notes, and snippets.

@chonlatee
Last active October 5, 2018 04:49
Show Gist options
  • Save chonlatee/9b6c5e7422270a9b8702dbd5f19c4fd4 to your computer and use it in GitHub Desktop.
Save chonlatee/9b6c5e7422270a9b8702dbd5f19c4fd4 to your computer and use it in GitHub Desktop.
simple setup .eslintrc.js for node
{
"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"]
}
}
{
"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