blob: a559e83bb92f9efe02127e36498f25de752e10b6 [file] [log] [blame] [raw]
// Server code linter config
{
"root": true,
"extends": "eslint:recommended",
"env": {
"mocha": true,
"node": true,
"es6": true
},
"rules": {
// The idea is to implement this first 2 warnings slowly into the code, and to eventually enforce them
"eqeqeq": ["error", "smart"],
"max-statements": ["warn", 50],
"max-len": ["warn", 120, { "ignoreRegExpLiterals": true }],
"eol-last": ["error", "always"],
"semi": ["error", "always"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-control-regex": 0,
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}]
},
"parserOptions": {
"ecmaVersion": 6
}
}