Skip to content

Instantly share code, notes, and snippets.

@MathieuLoutre
Created August 15, 2018 11:31
Show Gist options
  • Save MathieuLoutre/70f67985012ba9ecdc3457c597be8d94 to your computer and use it in GitHub Desktop.
Save MathieuLoutre/70f67985012ba9ecdc3457c597be8d94 to your computer and use it in GitHub Desktop.
ESLint Boilerplate
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"document": true,
"window": true,
"process": true,
"fetch": false,
"YT": true,
"SC": true,
"gtag": true
},
"extends": [
"standard",
"plugin:import/warnings"
],
"rules": {
"indent": ["error", 4],
"require-await": 2,
"brace-style": ["error", "stroustrup"],
"arrow-parens": ["error", "always"],
"no-control-regex": 0,
"no-useless-escape": 0,
"array-bracket-spacing": ["error", "never"],
"object-curly-spacing": ["error", "always"],
"lines-between-class-members": ["error", "always"],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "multiline-block-like" },
{ "blankLine": "always", "prev": "multiline-block-like", "next": "*" }
],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment