начало борьбы с проблемами

This commit is contained in:
gorbenko.pavel
2026-08-18 13:43:54 +05:00
parent d4736ac096
commit a05f68d8d6
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -295,6 +295,13 @@ module.exports = {
'@microsoft/spfx/no-require-ensure': 2, '@microsoft/spfx/no-require-ensure': 2,
} }
}, },
{
// Файлы локализации SPFx (loc/*.js) — это AMD-модули: их подключает
// загрузчик страницы через define(), а не бандлер. Без объявления среды
// no-undef считает define необъявленной переменной.
files: ['**/loc/*.js'],
env: { amd: true }
},
{ {
// For unit tests, we can be a little bit less strict. The settings below revise the // For unit tests, we can be a little bit less strict. The settings below revise the
// defaults specified in the extended configurations, as well as above. // defaults specified in the extended configurations, as well as above.
@@ -129,6 +129,7 @@ export class ApprovalListService {
toWrite.forEach(({ a, order }, i) => { toWrite.forEach(({ a, order }, i) => {
// void: промис от add() на batched-инстансе нарочно не ждём поштучно — // void: промис от add() на batched-инстансе нарочно не ждём поштучно —
// он разрешится вместе со всеми остальными после execute() ниже. // он разрешится вместе со всеми остальными после execute() ниже.
// eslint-disable-next-line no-void -- без void это «висячий» промис, а no-floating-promises здесь уровня error
void batchedList.items.add({ void batchedList.items.add({
Title: a.position || a.email, Title: a.position || a.email,
[`${FIELDS.approver}Id`]: approverIds[i], [`${FIELDS.approver}Id`]: approverIds[i],