File tree Expand file tree Collapse file tree 8 files changed +25
-17
lines changed
Expand file tree Collapse file tree 8 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 253253 "forceSingleLine" : true
254254 }
255255 ],
256+ "import/enforce-node-protocol-usage" : [
257+ " error" ,
258+ " always"
259+ ],
256260
257261 "unused-imports/no-unused-imports" : " error" ,
258262 "lodash/import-scope" : [
Original file line number Diff line number Diff line change 1- const fs = require ( 'fs' ) ;
1+ const fs = require ( 'node: fs' ) ;
22
33// These two global variables are used to store information about the REST API used
44// by these e2e tests. They are filled out prior to running any tests in the before()
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import {
1212 readFileSync ,
1313 rmSync ,
1414 writeFileSync ,
15- } from 'fs' ;
16- import { join } from 'path' ;
15+ } from 'node: fs' ;
16+ import { join } from 'node: path' ;
1717
1818import { default as htmlPlugin } from './src/rules/html' ;
1919import { default as tsPlugin } from './src/rules/ts' ;
Original file line number Diff line number Diff line change 66 * http://www.dspace.org/license/
77 */
88
9+ import { readFileSync } from 'node:fs' ;
10+ import { basename } from 'node:path' ;
11+
912import { TSESTree } from '@typescript-eslint/utils' ;
1013import { RuleContext } from '@typescript-eslint/utils/ts-eslint' ;
11- import { readFileSync } from 'fs' ;
12- import { basename } from 'path' ;
1314import ts , { Identifier } from 'typescript' ;
1415
1516import {
Original file line number Diff line number Diff line change 66 * http://www.dspace.org/license/
77 */
88
9- import { XhrFactory } from '@angular/common' ;
10- import { Injectable } from '@angular/core' ;
119import {
1210 Agent as HttpAgent ,
1311 AgentOptions as HttpAgentOptions ,
14- } from 'http' ;
15- import { Agent as HttpsAgent } from 'https' ;
12+ } from 'node:http' ;
13+ import { Agent as HttpsAgent } from 'node:https' ;
14+
15+ import { XhrFactory } from '@angular/common' ;
16+ import { Injectable } from '@angular/core' ;
1617import {
1718 prototype ,
1819 XMLHttpRequest ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import ITEMS from './data/items.json';
88import { fakeDataBase } from './db' ;
99
1010const { Router } = require ( 'express' ) ;
11- const util = require ( 'util' ) ;
11+ const util = require ( 'node: util' ) ;
1212
1313// you would use cookies/token etc
1414const USER_ID = 'f9d98cf1-1b96-464e-8755-bcc2a5c09077' ; // hardcoded as an example
Original file line number Diff line number Diff line change 1+ import {
2+ existsSync ,
3+ readFileSync ,
4+ writeFileSync ,
5+ } from 'node:fs' ;
6+ import { join } from 'node:path' ;
7+
18import {
29 blue ,
310 bold ,
411 green ,
512 red ,
613} from 'colors' ;
7- import {
8- existsSync ,
9- readFileSync ,
10- writeFileSync ,
11- } from 'fs' ;
1214import { load } from 'js-yaml' ;
13- import { join } from 'path' ;
1415
1516import { isNotEmpty } from '../app/shared/empty.util' ;
1617import { AppConfig } from './app-config.interface' ;
Original file line number Diff line number Diff line change 1+ import { readFileSync } from 'node:fs' ;
2+
13import { TransferState } from '@angular/core' ;
24import { TranslateLoader } from '@ngx-translate/core' ;
3- import { readFileSync } from 'fs' ;
45import {
56 Observable ,
67 of ,
You can’t perform that action at this time.
0 commit comments