We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tools/new-rule.ts
1 parent fb1001d commit d0e76a3Copy full SHA for d0e76a3
packages/eslint-plugin-svelte/tools/new-rule.ts
@@ -1,7 +1,12 @@
1
-import path from 'path';
2
-import fs from 'fs';
3
-import cp from 'child_process';
+import path from 'node:path';
+import fs from 'node:fs';
+import cp from 'node:child_process';
4
+import url from 'node:url';
5
import { writeAndFormat } from './lib/write.js';
6
+
7
+const __filename = url.fileURLToPath(import.meta.url);
8
+const __dirname = path.dirname(__filename);
9
10
const logger = console;
11
12
// main
0 commit comments