.eslintrc
{
"root": true,
"extends": ["airbnb-base", "react"],
"env": {
"node": true,
"es6": true,
"mocha": true
},
"globals": {
"document": true,
"localStorage": true,
"toastr": true,
"$": true,
"window": true
},
"settings":{
"import/resolver":{
"node":{
"extensions":[".js",".jsx"]
}
}
},
"rules": {
"indent": ["error", 2],
"one-var": 0,
"one-var-declaration-per-line": 0,
"new-cap": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"comma-dangle": 0,
"curly": ["error", "multi-line"],
"import/no-unresolved": [2, { "commonjs": true }],
"no-shadow": ["error", { "allow": ["req", "res", "err"] }],
"valid-jsdoc": ["error", {
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": true
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}]
}
}