mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Add eslint-plugin-github and fix issues (#29201)
				
					
				
			This plugin has a few useful rules. The only thing I dislike about it is that it pulls in a rather big number of dependencies for react-related rules we don't use, but it can't really be avoided. Rule docs: https://github.com/github/eslint-plugin-github?tab=readme-ov-file#rules
This commit is contained in:
		| @@ -205,12 +205,15 @@ export function initRepoCommentForm() { | ||||
|     $listMenu.find('.no-select.item').on('click', function (e) { | ||||
|       e.preventDefault(); | ||||
|       if (hasUpdateAction) { | ||||
|         updateIssuesMeta( | ||||
|           $listMenu.data('update-url'), | ||||
|           'clear', | ||||
|           $listMenu.data('issue-id'), | ||||
|           '', | ||||
|         ).then(reloadConfirmDraftComment); | ||||
|         (async () => { | ||||
|           await updateIssuesMeta( | ||||
|             $listMenu.data('update-url'), | ||||
|             'clear', | ||||
|             $listMenu.data('issue-id'), | ||||
|             '', | ||||
|           ); | ||||
|           reloadConfirmDraftComment(); | ||||
|         })(); | ||||
|       } | ||||
|  | ||||
|       $(this).parent().find('.item').each(function () { | ||||
| @@ -248,12 +251,15 @@ export function initRepoCommentForm() { | ||||
|  | ||||
|       $(this).addClass('selected active'); | ||||
|       if (hasUpdateAction) { | ||||
|         updateIssuesMeta( | ||||
|           $menu.data('update-url'), | ||||
|           '', | ||||
|           $menu.data('issue-id'), | ||||
|           $(this).data('id'), | ||||
|         ).then(reloadConfirmDraftComment); | ||||
|         (async () => { | ||||
|           await updateIssuesMeta( | ||||
|             $menu.data('update-url'), | ||||
|             '', | ||||
|             $menu.data('issue-id'), | ||||
|             $(this).data('id'), | ||||
|           ); | ||||
|           reloadConfirmDraftComment(); | ||||
|         })(); | ||||
|       } | ||||
|  | ||||
|       let icon = ''; | ||||
| @@ -281,12 +287,15 @@ export function initRepoCommentForm() { | ||||
|       }); | ||||
|  | ||||
|       if (hasUpdateAction) { | ||||
|         updateIssuesMeta( | ||||
|           $menu.data('update-url'), | ||||
|           '', | ||||
|           $menu.data('issue-id'), | ||||
|           $(this).data('id'), | ||||
|         ).then(reloadConfirmDraftComment); | ||||
|         (async () => { | ||||
|           await updateIssuesMeta( | ||||
|             $menu.data('update-url'), | ||||
|             '', | ||||
|             $menu.data('issue-id'), | ||||
|             $(this).data('id'), | ||||
|           ); | ||||
|           reloadConfirmDraftComment(); | ||||
|         })(); | ||||
|       } | ||||
|  | ||||
|       $list.find('.selected').html(''); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user