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

Lines changed: 8 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy