Skip to content

Commit d0e76a3

Browse files
authored
chore: fix tools/new-rule.ts (#988)
1 parent fb1001d commit d0e76a3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/eslint-plugin-svelte/tools/new-rule.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
import path from 'path';
2-
import fs from 'fs';
3-
import cp from 'child_process';
1+
import path from 'node:path';
2+
import fs from 'node:fs';
3+
import cp from 'node:child_process';
4+
import url from 'node:url';
45
import { writeAndFormat } from './lib/write.js';
6+
7+
const __filename = url.fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
510
const logger = console;
611

712
// main

0 commit comments

Comments
 (0)