Skip to content

Commit

Permalink
Add eslint for linting javascript files
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesso committed Nov 21, 2018
1 parent 6a4752e commit 91e7808
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"root": true,
"extends": "airbnb-base",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"one-var": 0,
"one-var-declaration-per-line": 0,
"new-cap": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"import/no-unresolved": 0,
"comma-dangle": 0,
"curly": ["error", "multi-line"],
"no-shadow": ["error", { "allow": ["req", "done", "res", "err"] }],
"valid-jsdoc": [1, {
"requireReturn": false,
"requireReturnType": false,
"requireParamDescription": false,
"requireReturnDescription": false
}],
"require-jsdoc": [1, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}]
}
}

0 comments on commit 91e7808

Please sign in to comment.