about summary refs log tree commit diff
path: root/.eslintrc.yml
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-23 23:05:04 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-23 16:05:04 +0200
commiteff94164696ecb126ab47b85ee842e65692b649a (patch)
tree7cfb397d8d62e5d4ae96479505a74d1e15e41e00 /.eslintrc.yml
parent6fbb3841a6dd4ec3d84b098437e35f41d41e8407 (diff)
Remove unused variables (#3906)
Diffstat (limited to '.eslintrc.yml')
-rw-r--r--.eslintrc.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 2fb54ae66..a816bffef 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -1,7 +1,9 @@
 ---
+root: true
+
 env:
   browser: true
-  node: false
+  node: true
   es6: true
 
 parser: babel-eslint
@@ -52,8 +54,14 @@ rules:
   no-mixed-spaces-and-tabs: warn
   no-nested-ternary: warn
   no-trailing-spaces: warn
+  no-undef: error
   no-unreachable: error
   no-unused-expressions: error
+  no-unused-vars:
+  - error
+  - vars: all
+    args: after-used
+    ignoreRestSiblings: true
   object-curly-spacing:
   - error
   - always
@@ -81,7 +89,10 @@ rules:
   - 2
   react/jsx-no-bind: error
   react/jsx-no-duplicate-props: error
+  react/jsx-no-undef: error
   react/jsx-tag-spacing: error
+  react/jsx-uses-react: error
+  react/jsx-uses-vars: error
   react/jsx-wrap-multilines: error
   react/no-multi-comp: off
   react/no-string-refs: error