Skip to content

Commit 72b9ee7

Browse files
authored
chore: update eslint config (#65)
1 parent 1e01590 commit 72b9ee7

File tree

12 files changed

+18
-9
lines changed

12 files changed

+18
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@rollup/plugin-json": "^6.1.0",
2222
"@rollup/plugin-node-resolve": "^15.2.3",
2323
"@svelte-cli/create": "workspace:*",
24-
"@sveltejs/eslint-config": "^8.0.1",
24+
"@sveltejs/eslint-config": "^8.1.0",
2525
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
2626
"@types/node": "^22.3.0",
2727
"@vitest/ui": "^2.0.5",

packages/clack-core/src/prompts/prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import readline, { type Key, type ReadLine } from 'node:readline';
2-
import { stdin, stdout } from 'node:process';
2+
import process, { stdin, stdout } from 'node:process';
33
import { WriteStream } from 'node:tty';
44
import type { Readable, Writable } from 'node:stream';
55
import { cursor, erase } from 'sisteransi';

packages/clack-core/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { Key } from 'node:readline';
22

3-
import { stdin, stdout } from 'node:process';
3+
import process, { stdin, stdout } from 'node:process';
44
import * as readline from 'node:readline';
55
import { cursor } from 'sisteransi';
66

7-
const isWindows = globalThis.process.platform.startsWith('win');
7+
const isWindows = process.platform.startsWith('win');
88

99
export type BlockOptions = {
1010
input?: NodeJS.ReadStream | undefined;

packages/clack-prompts/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process';
12
import {
23
block,
34
ConfirmPrompt,

packages/cli/commands/add.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
3+
import process from 'node:process';
34
import * as v from 'valibot';
45
import { exec } from 'tinyexec';
56
import { Command, Option } from 'commander';

packages/cli/commands/check.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { execSync } from 'node:child_process';
2+
import process from 'node:process';
23
import pc from 'picocolors';
34
import * as resolve from 'empathic/resolve';
45
import { Command } from 'commander';

packages/cli/commands/create.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
3+
import process from 'node:process';
34
import * as v from 'valibot';
45
import { Command, Option } from 'commander';
56
import * as p from '@svelte-cli/clack-prompts';

packages/cli/commands/migrate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { execSync } from 'node:child_process';
2+
import process from 'node:process';
23
import { Command } from 'commander';
34
import { resolveCommand } from 'package-manager-detector';
45
import { getUserAgent } from '../common.ts';

packages/cli/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process';
12
import pc from 'picocolors';
23
import pkg from './package.json';
34
import { exec } from 'tinyexec';

packages/core/env.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
import process from 'node:process';
2+
13
export const TESTING: boolean = process.env.CI?.toLowerCase() === 'true';

0 commit comments

Comments
 (0)