Skip to content

Instantly share code, notes, and snippets.

@brean
Created February 20, 2019 09:19
Show Gist options
  • Save brean/f5e7f5c7cc3ad1364daa865756c33b5b to your computer and use it in GitHub Desktop.
Save brean/f5e7f5c7cc3ad1364daa865756c33b5b to your computer and use it in GitHub Desktop.
eslint example file
module.exports = {
"env": {
"browser": true,
"es6": true,
"amd": true,
"mocha": true,
"jquery": true,
"browser": true,
"commonjs": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1,
"VariableDeclarator": 2,
"MemberExpression": 1,
"FunctionDeclaration": {
"parameters": "first"
}
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{ "allowTemplateLiterals": true }
],
"semi": [
"error",
"always"
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment