Skip to content

Commit

Permalink
Use node: import prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed May 2, 2023
1 parent 192812c commit cbf9d2f
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions tests/common.ts
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import type { Options } from 'prettier';
import { format } from 'prettier';
import type { AttributeToken } from 'pug-lexer';
Expand Down
4 changes: 2 additions & 2 deletions tests/interpolations/interpolations.test.ts
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { format } from 'prettier';
import { plugin } from 'src/index';
import { compareFiles } from 'tests/common';
Expand Down
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { format } from 'prettier';
import { plugin } from 'src/index';
import { describe, expect, it } from 'vitest';
Expand Down
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { format } from 'prettier';
import { plugin } from 'src/index';
import { describe, expect, it } from 'vitest';
Expand Down
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { format } from 'prettier';
import { plugin } from 'src/index';
import { describe, expect, it } from 'vitest';
Expand Down
4 changes: 2 additions & 2 deletions tests/options/pugExplicitDiv/pug-explicit-div.test.ts
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import type { Options } from 'prettier';
import { format } from 'prettier';
import { plugin } from 'src/index';
Expand Down
4 changes: 2 additions & 2 deletions tests/pragma/detect-pragma/detect-pragma.test.ts
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import type { Parser } from 'prettier';
import { parsers } from 'src/index';
import { describe, expect, it } from 'vitest';
Expand Down
4 changes: 2 additions & 2 deletions tests/pug-tests/pug.test.ts
@@ -1,5 +1,5 @@
import { readdirSync, readFileSync } from 'fs';
import { resolve } from 'path';
import { readdirSync, readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { format } from 'prettier';
import { plugin } from 'src/index';
import { describe, expect, it } from 'vitest';
Expand Down
4 changes: 2 additions & 2 deletions tests/syntax-errors/syntax-errors.test.ts
@@ -1,5 +1,5 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { format } from 'prettier';
import { plugin } from 'src/index';
import { describe, expect, it } from 'vitest';
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
@@ -1,5 +1,5 @@
/// <reference types="vitest" />
import { resolve } from 'path';
import { resolve } from 'node:path';
import { defineConfig } from 'vite';

export default defineConfig({
Expand Down

0 comments on commit cbf9d2f

Please sign in to comment.