Skip to content

Commit

Permalink
update .eslincrc ruls for new version of eslint.
Browse files Browse the repository at this point in the history
also add warning for `max-statements`
  • Loading branch information
tmcgee committed Apr 5, 2016
1 parent c6acc17 commit 4ab37f7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"dot-notation": 2,
"eqeqeq": 2,
"guard-for-in": 2,
"max-statements": [1, 30, {"ignoreTopLevelFunctions": true}],
"no-alert": 2,
"no-caller": 2,
"no-div-regex": 2,
"no-empty-label": 2,
"no-empty-pattern": 2,
"no-eq-null": 2,
"no-eval": 2,
Expand Down Expand Up @@ -158,6 +158,7 @@
"afterColon": true,
"mode": "strict"
}],
"keyword-spacing": [2, {"before": true, "after": true, "overrides": {}}],
"max-nested-callbacks": [2, 4],
"new-cap": 2,
"new-parens": 2,
Expand All @@ -175,13 +176,10 @@
"after": true
}],
"semi": [2, "always"],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "always"],
"space-before-keywords": [2, "always"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-return-throw-case": 2,
"wrap-regex": 2,

// ignored stylistic rules
Expand Down Expand Up @@ -240,8 +238,8 @@
"browser": true
},
"globals": {
"define": false,
"require": false
"define": true,
"require": true
},
"parser": "babel-eslint",
"extends": "eslint:recommended"
Expand Down

0 comments on commit 4ab37f7

Please sign in to comment.