blob: 4f345682a1c8256de5e9d0b7973458af3e9c47d8 [file] [log] [blame] [raw]
// Client code linter config
{
"root": true,
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"es6": false
},
"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 }],
"strict": ["error", "safe"],
"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": 5
},
"globals": {
"define": false,
"monaco": true,
"__webpack_public_path__": true
}
}