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
parent 9eb67ba8ed
commit c124014115
No known key found for this signature in database
GPG key ID: FD821B732837125F
5 changed files with 11 additions and 13 deletions

View file

@ -55,13 +55,12 @@ export function initRepoSettingSearchTeamBox() {
headers: {'X-Csrf-Token': csrfToken},
onResponse(response) {
const items = [];
$.each(response.data, (_i, item) => {
for (const item of response.data) {
items.push({
title: item.name,
description: `${item.permission} access`, // TODO: translate this string
});
});
}
return {results: items};
},
},