diff options
author | silverwind <me@silverwind.io> | 2019-07-16 03:51:46 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-16 09:51:46 +0800 |
commit | f34726a4b9d76c9a49ce2d28ddde48af5d4745c4 (patch) | |
tree | 6c584c7c93e66a201779191b732c38f2e16792c7 /.eslintrc | |
parent | d2958d9f4633ddbde2202952d665b3d562eb0415 (diff) | |
download | gitea-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-- | .eslintrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -23,3 +23,5 @@ globals: rules: no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}] + prefer-const: [2, {destructuring: all}] + no-var: [2] |