Skip to content

Instantly share code, notes, and snippets.

@DylanTackoor
Created June 28, 2018 15:33
Show Gist options
  • Save DylanTackoor/587a93e630e7206b4267fe37b72146df to your computer and use it in GitHub Desktop.
Save DylanTackoor/587a93e630e7206b4267fe37b72146df to your computer and use it in GitHub Desktop.
.eslintrc
{
"env": {
"es6": true,
"node": true,
"browser": true,
"jquery": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-var":"error",
"curly": "error",
"no-console": 1,
"keyword-spacing": "error",
"space-before-blocks": "error",
"no-multiple-empty-lines": 1,
"space-before-function-paren": ["error", "never"],
"indent": ["error", 2 ],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-trailing-spaces": 2,
"no-extra-parens": 2,
"valid-jsdoc": 1,
"no-eval": 2,
"no-self-compare": 2,
"yoda": 2,
"arrow-body-style": 1,
"arrow-spacing": 2,
"arrow-parens": 2,
"eol-last": 2,
"brace-style": ["error", "1tbs", { "allowSingleLine": false }]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment