diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2017-04-20 11:11:51 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-04-20 11:11:51 +0000 |
commit | d586b6cced34d663f018203e99aecbb9c6ac3158 (patch) | |
tree | dd01b08da4233d1b27762021fa9919a2708d12f9 /.eslintrc | |
parent | f96e1bf12432b0f4eff4a900caa46a0c4790123f (diff) | |
download | gitlab-ce-d586b6cced34d663f018203e99aecbb9c6ac3158.tar.gz |
Add ES lint support to identify poorly written Promises
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.eslintrc b/.eslintrc index 57a08a06527..aba8112c5a9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,7 +14,8 @@ "plugins": [ "filenames", "import", - "html" + "html", + "promise" ], "settings": { "html/html-extensions": [".html", ".html.raw", ".vue"], @@ -26,6 +27,7 @@ }, "rules": { "filenames/match-regex": [2, "^[a-z0-9_]+$"], - "no-multiple-empty-lines": ["error", { "max": 1 }] + "no-multiple-empty-lines": ["error", { "max": 1 }], + "promise/catch-or-return": "error" } } |