Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 45 additions & 44 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": { "ignoreUnknown": false, "ignore": ["**/dist/**"] },
"formatter": {
"enabled": true,
"useEditorconfig": true,
"formatWithErrors": false,
"indentStyle": "tab",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto",
"bracketSpacing": true,
"ignore": [
".github/workflows/**/*.yml",
".changeset/**/*.md",
"**/pnpm-lock.yaml",
"**/package.json"
]
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": { "recommended": true, "suspicious": { "noExplicitAny": "off" } }
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto",
"bracketSpacing": true
}
},
"overrides": [
{
"include": ["*.json", "*.toml", "*.yml"],
"formatter": { "indentStyle": "space" }
}
]
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": { "ignoreUnknown": false, "includes": ["**", "!**/dist/**"] },
"formatter": {
"enabled": true,
"useEditorconfig": true,
"formatWithErrors": false,
"indentStyle": "tab",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto",
"bracketSpacing": true,
"includes": [
"**",
"!**/.github/workflows/**/*.yml",
"!**/.changeset/**/*.md",
"!**/pnpm-lock.yaml",
"!**/package.json"
]
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": { "recommended": true, "suspicious": { "noExplicitAny": "off" } }
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto",
"bracketSpacing": true
}
},
"overrides": [
{
"includes": ["**/*.json", "**/*.toml", "**/*.yml"],
"formatter": { "indentStyle": "space" }
}
]
}
2 changes: 1 addition & 1 deletion examples/basic/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as p from '@clack/prompts';
async function demo() {
p.intro('path start...');

const path = await p.path({
const _path = await p.path({
message: 'Read file',
});

Expand Down
2 changes: 1 addition & 1 deletion examples/basic/progress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ProgressResult } from '@clack/prompts';

async function fakeProgress(progressbar: ProgressResult): Promise<void> {
await setTimeout(1000);
for (const i in Array(10).fill(1)) {
for (const _i in Array(10).fill(1)) {
progressbar.advance();
await setTimeout(100 + Math.random() * 500);
}
Expand Down
2 changes: 1 addition & 1 deletion examples/changesets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function main() {

p.intro(`${color.bgCyan(color.black(' changesets '))}`);

const changeset = await p.group(
const _changeset = await p.group(
{
packages: () =>
p.groupMultiselect({
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"pretest": "pnpm run build"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@changesets/cli": "^2.26.2",
"@types/node": "^18.16.0",
"knip": "^5.50.4",
"@biomejs/biome": "^2.1.2",
"@changesets/cli": "^2.29.5",
"@types/node": "^24.1.0",
"jsr": "^0.13.4",
"knip": "^5.62.0",
"typescript": "^5.8.3",
"unbuild": "^2.0.0",
"jsr": "^0.13.4"
"unbuild": "^3.6.0"
},
"packageManager": "[email protected]",
"volta": {
Expand Down
7 changes: 5 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"url": "https://github.com/bombshell-dev/clack/issues"
},
"homepage": "https://github.com/bombshell-dev/clack/tree/main/packages/core#readme",
"files": ["dist", "CHANGELOG.md"],
"files": [
"dist",
"CHANGELOG.md"
],
"keywords": [
"ask",
"clack",
Expand Down Expand Up @@ -54,7 +57,7 @@
"sisteransi": "^1.0.5"
},
"devDependencies": {
"vitest": "^3.1.1",
"vitest": "^3.2.4",
"wrap-ansi": "^8.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/core/test/mock-writable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class MockWritable extends Writable {

_write(
chunk: any,
encoding: BufferEncoding,
_encoding: BufferEncoding,
callback: (error?: Error | null | undefined) => void
): void {
this.buffer.push(chunk.toString());
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/prompts/confirm.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import color from 'picocolors';

import { cursor } from 'sisteransi';
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { default as ConfirmPrompt } from '../../src/prompts/confirm.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/prompts/select.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import color from 'picocolors';

import { cursor } from 'sisteransi';
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { default as SelectPrompt } from '../../src/prompts/select.js';
Expand Down
9 changes: 6 additions & 3 deletions packages/prompts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"url": "https://github.com/bombshell-dev/clack/issues"
},
"homepage": "https://github.com/bombshell-dev/clack/tree/main/packages/prompts#readme",
"files": ["dist", "CHANGELOG.md"],
"files": [
"dist",
"CHANGELOG.md"
],
"author": {
"name": "Nate Moore",
"email": "[email protected]",
Expand Down Expand Up @@ -56,8 +59,8 @@
},
"devDependencies": {
"is-unicode-supported": "^1.3.0",
"memfs": "^4.17.1",
"vitest": "^3.1.1",
"memfs": "^4.17.2",
"vitest": "^3.2.4",
"vitest-ansi-serializer": "^0.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/prompts/src/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const path = (opts: PathOptions) => {
return items.map((item) => ({
value: item.path,
}));
} catch (e) {
} catch (_e) {
return [];
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/prompts/src/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const spinner = ({
let isSpinnerActive = false;
let isCancelled = false;
let _message = '';
let _prevMessage: string | undefined = undefined;
let _prevMessage: string | undefined ;
let _origin: number = performance.now();

const handleExit = (code: number) => {
Expand Down
Loading