aboutsummaryrefslogtreecommitdiff
path: root/eslintrc.json
diff options
context:
space:
mode:
authorCody Hiar <cody.hiar@investopedia.com>2016-07-28 10:19:35 -0600
committerCody Hiar <cody.hiar@investopedia.com>2016-07-28 10:19:35 -0600
commitcd3c06cdc7f62cd5017311eea3277bec9dd02542 (patch)
tree4f99f3f5f9e45788b2f9323487ec829f9b7dbcea /eslintrc.json
parentb52711cabe53ed466fce24fcf9d4377ba3c5292b (diff)
Adding a eslintrc.json file for custom rules
Diffstat (limited to 'eslintrc.json')
-rw-r--r--eslintrc.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/eslintrc.json b/eslintrc.json
new file mode 100644
index 0000000..289e875
--- /dev/null
+++ b/eslintrc.json
@@ -0,0 +1,19 @@
+{
+ "extends": "airbnb",
+ "rules": {
+ "no-undef": 0,
+ "prefer-arrow-callback": 0,
+ "no-console": 0,
+ "require-jsdoc": ["error", {
+ "require": {
+ "FunctionDeclaration": true,
+ "MethodDefinition": false,
+ "ClassDeclaration": false
+ }
+ }],
+ "valid-jsdoc": ["error", {
+ "requireParamDescription": true,
+ "requireReturn": false
+ }]
+ }
+}