Skip to content

Instantly share code, notes, and snippets.

@linuxgemini
Last active February 11, 2018 12:01
Show Gist options
  • Select an option

  • Save linuxgemini/73820160aa16bb937934dfd80228e003 to your computer and use it in GitHub Desktop.

Select an option

Save linuxgemini/73820160aa16bb937934dfd80228e003 to your computer and use it in GitHub Desktop.
Example eslint config
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"impliedStrict": true,
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
"no-console": 0,
"no-unused-vars": "warn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment