require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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', () => ({
|
||||
|
||||
Reference in New Issue
Block a user