From a05f68d8d60fe35c23d39fb852801c1a4a724861 Mon Sep 17 00:00:00 2001 From: "gorbenko.pavel" Date: Tue, 18 Aug 2026 13:43:54 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=20=D0=B1?= =?UTF-8?q?=D0=BE=D1=80=D1=8C=D0=B1=D1=8B=20=D1=81=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B1=D0=BB=D0=B5=D0=BC=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 7 +++++++ .../requestPortal/shared/approval/approvalList.service.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index a790d60..cb42e16 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -295,6 +295,13 @@ module.exports = { '@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 // defaults specified in the extended configurations, as well as above. diff --git a/src/webparts/requestPortal/shared/approval/approvalList.service.ts b/src/webparts/requestPortal/shared/approval/approvalList.service.ts index 4c115f0..6f038b8 100644 --- a/src/webparts/requestPortal/shared/approval/approvalList.service.ts +++ b/src/webparts/requestPortal/shared/approval/approvalList.service.ts @@ -129,6 +129,7 @@ export class ApprovalListService { toWrite.forEach(({ a, order }, i) => { // void: промис от add() на batched-инстансе нарочно не ждём поштучно — // он разрешится вместе со всеми остальными после execute() ниже. + // eslint-disable-next-line no-void -- без void это «висячий» промис, а no-floating-promises здесь уровня error void batchedList.items.add({ Title: a.position || a.email, [`${FIELDS.approver}Id`]: approverIds[i],