Skip to content

Instantly share code, notes, and snippets.

@tomanistor
Created March 1, 2019 19:28
Show Gist options
  • Save tomanistor/47db6a3c82b4598caff1edc511e568d2 to your computer and use it in GitHub Desktop.
Save tomanistor/47db6a3c82b4598caff1edc511e568d2 to your computer and use it in GitHub Desktop.
ESLint Config
{
"extends": "standard",
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"indent": ["error", 2, {
"ArrayExpression": 1,
"ObjectExpression": 1,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 }
}],
"key-spacing": ["error", { "align": "value" }],
"no-multi-spaces": ["error", { "exceptions": { "ImportDeclaration": true, "VariableDeclarator": true } }],
"one-var": ["error", "consecutive"],
"space-before-function-paren": ["error", "never"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment