mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 08:59:31 -05:00
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.
This commit is contained in:
parent
d2958d9f46
commit
f34726a4b9
3 changed files with 275 additions and 274 deletions
|
@ -23,3 +23,5 @@ globals:
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
|
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
|
||||||
|
prefer-const: [2, {destructuring: all}]
|
||||||
|
no-var: [2]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* globals gitGraph */
|
/* globals gitGraph */
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
var graphList = [];
|
const graphList = [];
|
||||||
|
|
||||||
if (!document.getElementById('graph-canvas')) {
|
if (!document.getElementById('graph-canvas')) {
|
||||||
return;
|
return;
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue