summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2017-12-13 14:44:57 +0100
committerAndrej Mihajlov <and@mullvad.net>2017-12-18 18:23:22 +0100
commitd2a472b0aee0822277c1b9ae3b6bba18beb51697 (patch)
tree4e1f1c3e0b6421d36d2c6ab159f9adc1b4e33d5d
parent98aee2588a0324b64a0f666056b2255d783169f9 (diff)
downloadmullvadvpn-d2a472b0aee0822277c1b9ae3b6bba18beb51697.tar.xz
mullvadvpn-d2a472b0aee0822277c1b9ae3b6bba18beb51697.zip
Disable unused-vars warning for underscored variables
-rw-r--r--.eslintrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.eslintrc b/.eslintrc
index 35c8fb9bbb..0349c65939 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -25,7 +25,11 @@
"comma-dangle": "off",
"comma-spacing": "warn",
"no-unused-expressions" : "off", // until fixed https://github.com/babel/babel-eslint/issues/158
- "no-unused-vars": ["error", {"args": "all", "argsIgnorePattern": "_.*"}],
+ "no-unused-vars": ["error", {
+ "args": "all",
+ "argsIgnorePattern": "_.*",
+ "varsIgnorePattern": "_.*"
+ }],
"block-scoped-var": "off", // until fixed https://github.com/eslint/eslint/issues/2253
"react/prop-types": "off",
"flowtype/define-flow-type": "warn",