Skip to content

Instantly share code, notes, and snippets.

@mattbrannon
Created June 2, 2020 17:43
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 mattbrannon/6fa93f668fec7cea91af8dc21bb60906 to your computer and use it in GitHub Desktop.
Save mattbrannon/6fa93f668fec7cea91af8dc21bb60906 to your computer and use it in GitHub Desktop.
eslint config
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"standard"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 11
},
"rules": {
"array-bracket-spacing":["error", "always"],
"semi":["error", "always"],
"brace-style": ["error", "stroustrup"],
"indent": ["error", 2, {
"SwitchCase": 1,
"flatTernaryExpressions": true
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment