summaryrefslogtreecommitdiffstats
path: root/.eslintrc
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-07-16 03:51:46 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-07-16 09:51:46 +0800
commitf34726a4b9d76c9a49ce2d28ddde48af5d4745c4 (patch)
tree6c584c7c93e66a201779191b732c38f2e16792c7 /.eslintrc
parentd2958d9f4633ddbde2202952d665b3d562eb0415 (diff)
downloadgitea-f34726a4b9d76c9a49ce2d28ddde48af5d4745c4.tar.gz
gitea-f34726a4b9d76c9a49ce2d28ddde48af5d4745c4.zip
convert all js var to let/const (#7464)
Most of the work was done by `eslint --fix`, I fixed around 10 cases where it could not auto-convert.
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index 41cad889b1..c7013f2785 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -23,3 +23,5 @@ globals:
rules:
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
+ prefer-const: [2, {destructuring: all}]
+ no-var: [2]