one line of eslint-disable

[MAILPOET-3920]
This commit is contained in:
Nadir Seghir
2021-11-05 13:36:44 +01:00
committed by Veljko V
parent 4b20130d68
commit 25c96f8080

View File

@@ -418,11 +418,8 @@ function requestToExternal(request) {
// DependencyExtractionWebpackPlugin has native handling for @wordpress/* // DependencyExtractionWebpackPlugin has native handling for @wordpress/*
// packages, for that handling to kick in, we must not return anything from // packages, for that handling to kick in, we must not return anything from
// function. // function.
/* eslint-disable consistent-return */ /* eslint-disable-next-line consistent-return, no-useless-return */
/* eslint-disable no-useless-return */
return; return;
/* eslint-enable consistent-return */
/* eslint-enable no-useless-return */
} }
function requestToHandle(request) { function requestToHandle(request) {
@@ -436,11 +433,8 @@ function requestToHandle(request) {
// DependencyExtractionWebpackPlugin has native handling for @wordpress/* // DependencyExtractionWebpackPlugin has native handling for @wordpress/*
// packages, for that handling to kick in, we must not return anything from // packages, for that handling to kick in, we must not return anything from
// function. // function.
/* eslint-disable consistent-return */ /* eslint-disable-next-line consistent-return, no-useless-return */
/* eslint-disable no-useless-return */
return; return;
/* eslint-enable consistent-return */
/* eslint-enable no-useless-return */
} }
const marketingOptinBlock = Object.assign({}, wpScriptConfig, { const marketingOptinBlock = Object.assign({}, wpScriptConfig, {