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
10 changes: 5 additions & 5 deletions .claude/agents/lint-fixer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ You are an expert code quality engineer specializing in JavaScript/TypeScript li
## Your Core Workflow

1. **Initial Analysis**
- First, run `npm run lint` to identify all current linting issues (includes Biome style/format checks, TypeScript type checking, and secret detection)
- First, run `npm run lint` to identify all current linting issues (includes Biome style/format checks, oxlint JavaScript/TypeScript linting, TypeScript type checking, and secret detection)
- Capture and analyze the complete output, noting error types, locations, and severity
- Group related issues to understand patterns of problems

2. **Context Gathering**
- Before making fixes, examine the affected files using `git diff` to understand recent changes
- Review surrounding code to understand the implementation context
- Check for similar patterns in the codebase using `rg` to ensure consistency
- Look for any project-specific linting rules in `biome.json` or similar configuration files
- Look for any project-specific linting rules in `biome.json`, `.oxlintrc.json`, or similar configuration files

3. **Strategic Fixing**
- Prioritize fixes based on:
Expand All @@ -33,11 +33,11 @@ You are an expert code quality engineer specializing in JavaScript/TypeScript li
- Apply fixes incrementally, testing after each significant change
- Preserve the original intent and logic of the code
- Maintain or improve code readability
- Follow the project's coding style as defined in `biome.json`
- Follow the project's coding style as defined in `biome.json` and linting rules in `.oxlintrc.json`
- Ensure all comments remain in English

5. **Verification**
- After fixing, run `npm run lint` again to confirm all issues are resolved (style, TypeScript, and security checks)
- After fixing, run `npm run lint` again to confirm all issues are resolved (Biome style checks, oxlint JavaScript/TypeScript checks, TypeScript compilation, and security checks)
- Run `npm run test` to ensure no functionality was broken
- Review your changes with `git diff` to ensure they're appropriate
- Document any non-obvious fixes with clear comments
Expand All @@ -47,7 +47,7 @@ You are an expert code quality engineer specializing in JavaScript/TypeScript li
- **Never make blind fixes**: Always understand why a linting error occurs before fixing it
- **Preserve functionality**: Linting fixes should never change the behavior of the code
- **Maintain consistency**: Look for similar patterns in the codebase and apply consistent fixes
- **Handle auto-fixable vs manual fixes**: Use `npm run lint` which includes auto-fixes via biome, but always review the changes it makes
- **Handle auto-fixable vs manual fixes**: Use `npm run lint` which includes auto-fixes via biome and oxlint, but always review the changes they make
- **Edge cases**: Be careful with fixes that might affect:
- Type definitions and interfaces
- Async/await patterns
Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/code/lint-fix.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Run `npm run lint` and fix any errors that occur.
Use the lint-fixer agent to run `npm run lint` and fix any errors that occur.

12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
- run: npm ci
- run: npm run lint-biome && git diff --exit-code

lint-oxlint:
name: Lint oxlint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # ratchet:actions/checkout@v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4
with:
node-version-file: .tool-versions
cache: npm
- run: npm ci
- run: npm run lint-oxlint && git diff --exit-code
lint-ts:
name: Lint TypeScript
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"ignorePatterns": [
"tests/integration-tests/**/*"
]
}
2 changes: 1 addition & 1 deletion benchmarks/memory/src/simple-memory-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getMemoryMB(): Pick<MemoryUsage, 'heapUsed' | 'rss'> {
async function cleanup(): Promise<void> {
try {
await fs.unlink(path.join(__dirname, '../memory-test-output.txt'));
} catch (error) {
} catch {
// Ignore if file doesn't exist
}
}
Expand Down
5 changes: 0 additions & 5 deletions browser/scripts/generate-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import fs from 'node:fs';
import path from 'node:path';
import sharp from 'sharp';

interface IconSize {
width: number;
height: number;
}

const ICON_SIZES: readonly number[] = [16, 19, 32, 38, 48, 64, 128] as const;
const INPUT_SVG_PATH = path.join(__dirname, '../app/images/icon.svg');
const OUTPUT_DIR = path.join(__dirname, '../app/images');
Expand Down
244 changes: 244 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
"scripts": {
"build": "rimraf lib && tsc -p tsconfig.build.json --sourceMap --declaration",
"build-bun": "bun run build",
"lint": "node --run lint-biome && node --run lint-ts && node --run lint-secretlint",
"lint": "node --run lint-biome && node --run lint-oxlint && node --run lint-ts && node --run lint-secretlint",
"lint-biome": "biome check --write",
"lint-oxlint": "oxlint --fix",
"lint-ts": "tsgo --noEmit",
"lint-secretlint": "secretlint \"**/*\" --secretlintignore .gitignore",
"test": "vitest",
Expand Down Expand Up @@ -108,6 +109,7 @@
"@typescript/native-preview": "^7.0.0-dev.20250708.1",
"@vitest/coverage-v8": "^3.1.1",
"git-up": "^8.1.1",
"oxlint": "^1.12.0",
"rimraf": "^6.0.1",
"secretlint": "^9.3.1",
"tsx": "^4.19.4",
Expand Down
1 change: 0 additions & 1 deletion src/cli/actions/initAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
defaultFilePathMap,
} from '../../config/configSchema.js';
import { getGlobalDirectory } from '../../config/globalDirectory.js';
import { getVersion } from '../../core/file/packageJsonParse.js';
import { logger } from '../../shared/logger.js';

const onCancelOperation = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cliRun.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import process from 'node:process';
import { Command, Option, program } from 'commander';
import { Option, program } from 'commander';
import pc from 'picocolors';
import { getVersion } from '../core/file/packageJsonParse.js';
import { RepomixError, handleError } from '../shared/errorHandle.js';
Expand Down
Loading
Loading