chore: enable no-jquery/no-each-util

- No longer allow `$.each`. This can easily be done with vanilla javascript.
This commit is contained in:
Gusted 2025-04-01 03:59:12 +02:00 committed by David Rotermund
parent 006ccbc1cf
commit b668a7bbc8
5 changed files with 11 additions and 13 deletions

View file

@ -32,12 +32,12 @@ export function initRepoTemplateSearch() {
value: '',
});
// Parse the response from the api to work with our dropdown
$.each(response.data, (_r, repo) => {
for (const repo of response.data) {
filteredResponse.results.push({
name: htmlEscape(repo.repository.full_name),
value: repo.repository.id,
});
});
}
return filteredResponse;
},
cache: false,