Skip to content

Instantly share code, notes, and snippets.

@Pinjasaur
Created May 17, 2017 18:34
Show Gist options
  • Select an option

  • Save Pinjasaur/e2008631fd83dca13d2456975c04b0ac to your computer and use it in GitHub Desktop.

Select an option

Save Pinjasaur/e2008631fd83dca13d2456975c04b0ac to your computer and use it in GitHub Desktop.
ESLint config (used with Prettier)
{
"rules": {
"one-var-declaration-per-line": ["error", "always"],
"indent": ["error", 2, {
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
}
}],
"no-trailing-spaces": "error",
"spaced-comment": ["error", "always"],
"lines-around-directive": ["error", "always"],
"padded-blocks": ["error", "always"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment