mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-48934 Eslint v9 migration (#12110)
* update * update * update * working * cr * cr * update * use nx boundaries * fixes * fixes * fixes * cr * cr * update * update * update * cr * fix null * cr * cr * cr * cr * cr * update * update * update * update * update * remove some duplications * fix units
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* eslint-disable jsdoc/require-jsdoc, no-underscore-dangle */
|
||||
/* eslint-disable no-underscore-dangle */
|
||||
import assert from 'assert';
|
||||
import { describe, it, beforeEach, afterEach } from 'node:test';
|
||||
import * as sinon from 'sinon';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires, jsdoc/require-jsdoc */
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
import { TextEncoder, TextDecoder } from 'util';
|
||||
|
||||
const { TestEnvironment } = require('jest-environment-jsdom');
|
||||
|
||||
@@ -21,7 +21,6 @@ const originalFetch = globalThis.fetch;
|
||||
|
||||
export function initGlobalMockAgent(): any {
|
||||
if (!(global as any).__mockAgent__) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const { MockAgent, fetch: undiciFetch } = require('undici');
|
||||
const agent = new MockAgent();
|
||||
agent.disableNetConnect();
|
||||
|
||||
Reference in New Issue
Block a user