Skip to content

Commit

Permalink
Merge pull request #1 from Mcdavid95/ch-setup-eslint
Browse files Browse the repository at this point in the history
#167023848 Setup ESlint
  • Loading branch information
Mcdavid95 authored Jul 1, 2019
2 parents 6d712bb + 215568b commit 7117966
Show file tree
Hide file tree
Showing 3 changed files with 1,546 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"root": true,
"extends": "airbnb-base",
"env": {
"node": true,
"es6": true,
"mocha": true,
"jasmine": true
},
"globals": {
"Materialize": true,
"localStorage": true,
"document": true,
"$": true,
"jest": true,
"configureStore": true,
"window": true
},
"rules": {
"no-unused-expressions": 0,
"one-var": 0,
"func-names": 0,
"one-var-declaration-per-line": 1,
"new-cap": 0,
"consistent-return": 0,
"no-param-reassign": 0,
"import/no-unresolved": 0,
"no-underscore-dangle": 0,
"comma-dangle": 0,
"import/no-named-as-default": 0,
"curly": ["error", "multi-line"],
"no-shadow": ["error", { "allow": ["req", "done", "res", "err"] }],
"valid-jsdoc": ["error", {
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": true
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}]
}
}
Loading

0 comments on commit 7117966

Please sign in to comment.