Commit f34726a4 authored by silverwind's avatar silverwind Committed by Lunny Xiao
Browse files

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.
Showing with 274 additions and 273 deletions
+274 -273
......@@ -23,3 +23,5 @@ globals:
rules:
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
prefer-const: [2, {destructuring: all}]
no-var: [2]
/* globals gitGraph */
$(document).ready(function () {
var graphList = [];
const graphList = [];
if (!document.getElementById('graph-canvas')) {
return;
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment