mirror of
				https://gitcode.com/gitea/gitea.git
				synced 2025-10-25 12:26:40 +08: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:
		| @ -23,3 +23,5 @@ globals: | ||||
|  | ||||
| rules: | ||||
|   no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}] | ||||
|   prefer-const: [2, {destructuring: all}] | ||||
|   no-var: [2] | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| /* globals gitGraph */ | ||||
|  | ||||
| $(document).ready(function () { | ||||
| 	var graphList = []; | ||||
| 	const graphList = []; | ||||
|  | ||||
| 	if (!document.getElementById('graph-canvas')) { | ||||
| 		return; | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user
	 silverwind
					silverwind