Permalink
Browse files

update lint rules

  • Loading branch information...
1 parent cc57fd2 commit a35961d7f93ac38bea1f7dce5ad964d3e5c84a98 @leebyron leebyron committed Nov 11, 2016
Showing with 9 additions and 8 deletions.
  1. +9 −7 .eslintrc
  2. +0 −1 src/components/GraphiQL.js
View
@@ -1,13 +1,14 @@
{
"parser": "babel-eslint",
+
"plugins": [
"babel",
"react"
],
"settings": {
"react": {
- "version": "0.14.0"
+ "version": "0.15.0"
}
},
@@ -45,11 +46,7 @@
},
"rules": {
- "babel/arrow-parens": [2, "as-needed"],
- "babel/array-bracket-spacing": [2, "always"],
- "babel/generator-star-spacing": [2, {"before": true, "after": false}],
- "array-bracket-spacing": 0,
- "generator-star-spacing": 0,
+ "babel/no-await-in-loop": 2,
"react/no-deprecated": 2,
"react/no-did-mount-set-state": 2,
@@ -84,6 +81,8 @@
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
+ "array-bracket-spacing": [2, "always"],
+ "arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"block-scoped-var": 0,
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
@@ -104,6 +103,7 @@
"eqeqeq": 2,
"func-names": 0,
"func-style": 0,
+ "generator-star-spacing": [2, {"before": true, "after": false}],
"guard-for-in": 2,
"handle-callback-err": [2, "error"],
"id-length": 0,
@@ -216,6 +216,8 @@
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-use-before-define": 0,
"no-useless-call": 2,
+ "no-useless-escape": 2,
+ "no-useless-return": 2,
"no-var": 2,
"no-void": 2,
"no-warning-comments": 0,
@@ -229,7 +231,7 @@
"prefer-const": 2,
"prefer-reflect": 0,
"prefer-spread": 0,
- "quote-props": [2, "as-needed"],
+ "quote-props": [2, "as-needed", {"numbers": true}],
"quotes": [2, "single"],
"radix": 2,
"require-yield": 2,
@@ -599,7 +599,6 @@ export class GraphiQL extends React.Component {
if (subscription) {
subscription.unsubscribe();
}
- return;
}
_runQueryAtCursor() {

0 comments on commit a35961d

Please sign in to comment.