summaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorwinniehell <git@winniehell.de>2016-11-02 11:36:44 +0100
committerwinniehell <git@winniehell.de>2016-11-02 11:47:38 +0100
commit1ad62d9684ce5e04d96caf5094610a7fc2436f60 (patch)
tree0124a4549a27d07220404d04be40615386af7870 /.eslintrc
parentd733a966e472a2a0377c5758657bba6228a57080 (diff)
downloadgitlab-ce-1ad62d9684ce5e04d96caf5094610a7fc2436f60.tar.gz
Check that JavaScript file names match convention (!7238)
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index 16eb18ecba2..b58007d90a9 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,5 +1,11 @@
{
"extends": "airbnb",
+ "plugins": [
+ "filenames"
+ ],
+ "rules": {
+ "filenames/match-regex": [2, "^[a-z_]+$"]
+ },
"globals": {
"$": false,
"_": false,