Skip to content

Instantly share code, notes, and snippets.

@PierBover
Created February 8, 2017 19:46
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 PierBover/992647a6fe163dfadf1cea3243c96c68 to your computer and use it in GitHub Desktop.
Save PierBover/992647a6fe163dfadf1cea3243c96c68 to your computer and use it in GitHub Desktop.
ESLint rules
"rules": {
"semi": 2,
"no-extra-semi": 2,
"quotes": ["error", "single"],
"indent": ["error", "tab", {"SwitchCase": 1}],
"keyword-spacing": ["error", { "after": true }],
"space-before-blocks": "error",
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"space-in-parens": ["error", "never"],
"space-before-function-paren": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "never"],
"semi-spacing": ["error", {"before": false, "after": true}],
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"space-infix-ops": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"arrow-parens": ["error", "always"],
"no-dupe-args": "error",
"yoda": "error"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment