Permalink
25e1c0f Dec 4, 2016
47 lines (46 sloc) 1.42 KB
{
"ecmaVersion": 6,
"env": {
"es6": true,
"node": true
},
"ecmaFeatures": {
"modules": true
},
"rules": {
"no-console": 0,
"no-control-regex": 0,
"no-alert": 1,
"no-else-return": 1,
"no-redeclare": 2,
"no-useless-escape": 1,
"no-inner-declarations": 0,
"array-bracket-spacing": ["warn", "never"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"no-trailing-spaces": 1,
"space-before-function-paren": ["warn", "never"],
"arrow-spacing": 1,
"comma-spacing": ["warn", { "before": false, "after": true }],
"indent": ["error", "tab", { "SwitchCase": 1 }],
"require-jsdoc": ["warn", { "require": { "MethodDefinition": true, "ClassDeclaration": true } }],
"valid-jsdoc": ["warn", {
"prefer": {
"arg": "param",
"argument": "param",
"constructor": "class",
"return": "returns",
"virtual": "abstract"
},
"preferType": {
"boolean": "Boolean",
"number": "Number",
"object": "Object",
"string": "String"
},
"requireReturn": false,
"requireParamDescription": true,
"requireReturnDescription": true
}]
},
extends: "eslint:recommended"
}