Skip to content

Instantly share code, notes, and snippets.

@andela-kakpobome
Last active June 21, 2018 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andela-kakpobome/f221106ac20bf455100601b825982609 to your computer and use it in GitHub Desktop.
Save andela-kakpobome/f221106ac20bf455100601b825982609 to your computer and use it in GitHub Desktop.
Minimum config for .eslint and airbnb
{
"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