Skip to content

Instantly share code, notes, and snippets.

@cheeplusplus
Created July 2, 2017 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheeplusplus/9f0d1bcdd9ab284849d8dc4cb8887abd to your computer and use it in GitHub Desktop.
Save cheeplusplus/9f0d1bcdd9ab284849d8dc4cb8887abd to your computer and use it in GitHub Desktop.
My standard ESLint config
{
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "google"],
"rules": {
"indent": ["error", 4],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"linebreak-style": "off", // git handles this
"eqeqeq": "error",
"comma-dangle": "off",
"one-var": ["error", {"initialized": "never", "uninitialized": "always"}],
"max-len": "off",
"require-await": "error",
"no-console": "off",
"new-cap": ["error", {"capIsNewExceptionPattern": "express\\.Router"}] // express
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment