require the use of node prefix on native imports

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-01-25 13:47:32 +01:00
parent 4ad63b8d9f
commit 7455dae884
444 changed files with 749 additions and 634 deletions
@@ -15,7 +15,7 @@
*/
import { RuleTester } from 'eslint';
import path from 'path';
import path from 'node:path';
import rule from '../rules/no-forbidden-package-imports';
const RULE = 'no-forbidden-package-imports';
@@ -15,7 +15,7 @@
*/
import { RuleTester } from 'eslint';
import path from 'path';
import path from 'node:path';
import rule from '../rules/no-mixed-plugin-imports';
const RULE = 'no-mixed-plugin-imports';
@@ -15,7 +15,7 @@
*/
import { RuleTester } from 'eslint';
import path from 'path';
import path from 'node:path';
import rule from '../rules/no-relative-monorepo-imports';
const RULE = 'no-relative-monorepo-imports';
@@ -15,7 +15,7 @@
*/
import { RuleTester } from 'eslint';
import path from 'path';
import path from 'node:path';
import rule from '../rules/no-ui-css-imports-in-non-frontend';
const RULE = 'no-ui-css-imports-in-non-frontend';
@@ -15,7 +15,7 @@
*/
import { RuleTester } from 'eslint';
import { join as joinPath } from 'path';
import { join as joinPath } from 'node:path';
import rule from '../rules/no-undeclared-imports';
jest.mock('child_process', () => ({