Last active
June 21, 2018 23:53
-
-
Save andela-kakpobome/f221106ac20bf455100601b825982609 to your computer and use it in GitHub Desktop.
Minimum config for .eslint and airbnb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"root": true, | |
"extends": "airbnb", | |
"env": { | |
"node": true, | |
"es6": true, | |
"mocha": true | |
}, | |
"rules": { | |
"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"], | |
"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 | |
} | |
}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment