summaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-04 13:13:21 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-04 13:13:21 +0100
commita7a504b018f90cb9b23a406d310183547d0f5c95 (patch)
tree564ceb346cf3a234937f131576ac8ca840f86a00 /.eslintrc
parentd0bb0d6e47ea2e9ef664af5efbad66e9ec204669 (diff)
downloadgitlab-ce-a7a504b018f90cb9b23a406d310183547d0f5c95.tar.gz
Allow __ function for no-underscore-dangle eslint rule
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.eslintrc b/.eslintrc
index c72a5e0335b..0d5ffbe418d 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -30,6 +30,7 @@
"filenames/match-regex": [2, "^[a-z0-9_]+$"],
"import/no-commonjs": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
- "promise/catch-or-return": "error"
+ "promise/catch-or-return": "error",
+ "no-underscore-dangle": ["error", { "allow": ["__"]}],
}
}