fix: Remove tsconfig.oxlint.json AGAIN.

This commit is contained in:
cpojer
2026-02-03 21:44:54 +09:00
parent a8893094ea
commit 425003417d
10 changed files with 12 additions and 29 deletions

View File

@@ -16,7 +16,6 @@
"oxc/no-map-spread": "off",
"typescript/no-explicit-any": "error",
"typescript/no-extraneous-class": "off",
"typescript/no-redundant-type-constituents": "off",
"typescript/no-unsafe-type-assertion": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/require-post-message-target-origin": "off"

View File

@@ -77,7 +77,6 @@
"exports": {
".": "./dist/index.js",
"./plugin-sdk": "./dist/plugin-sdk/index.js",
"./plugin-sdk/*": "./dist/plugin-sdk/*",
"./cli-entry": "./openclaw.mjs"
},
"scripts": {
@@ -105,9 +104,9 @@
"ios:gen": "cd apps/ios && xcodegen generate",
"ios:open": "cd apps/ios && xcodegen generate && open OpenClaw.xcodeproj",
"ios:run": "bash -lc 'cd apps/ios && xcodegen generate && xcodebuild -project OpenClaw.xcodeproj -scheme OpenClaw -destination \"${IOS_DEST:-platform=iOS Simulator,name=iPhone 17}\" -configuration Debug build && xcrun simctl boot \"${IOS_SIM:-iPhone 17}\" || true && xcrun simctl launch booted ai.openclaw.ios'",
"lint": "oxlint --type-aware --tsconfig tsconfig.oxlint.json",
"lint": "oxlint --type-aware",
"lint:all": "pnpm lint && pnpm lint:swift",
"lint:fix": "oxlint --type-aware --tsconfig tsconfig.oxlint.json --fix && pnpm format:fix",
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
"mac:open": "open dist/OpenClaw.app",
"mac:package": "bash scripts/package-mac-app.sh",

View File

@@ -5,8 +5,8 @@ import { transcribeDeepgramAudio } from "./audio.js";
const resolvePinnedHostname = ssrf.resolvePinnedHostname;
const resolvePinnedHostnameWithPolicy = ssrf.resolvePinnedHostnameWithPolicy;
const lookupMock = vi.fn();
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> | null = null;
let resolvePinnedHostnameWithPolicySpy: ReturnType<typeof vi.spyOn> | null = null;
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> = null;
let resolvePinnedHostnameWithPolicySpy: ReturnType<typeof vi.spyOn> = null;
const resolveRequestUrl = (input: RequestInfo | URL) => {
if (typeof input === "string") {

View File

@@ -15,7 +15,7 @@ const resolveRequestUrl = (input: RequestInfo | URL) => {
};
describe("describeGeminiVideo", () => {
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> | undefined;
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn>;
beforeEach(() => {
resolvePinnedHostnameSpy = vi

View File

@@ -5,8 +5,8 @@ import { transcribeOpenAiCompatibleAudio } from "./audio.js";
const resolvePinnedHostname = ssrf.resolvePinnedHostname;
const resolvePinnedHostnameWithPolicy = ssrf.resolvePinnedHostnameWithPolicy;
const lookupMock = vi.fn();
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> | null = null;
let resolvePinnedHostnameWithPolicySpy: ReturnType<typeof vi.spyOn> | null = null;
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> = null;
let resolvePinnedHostnameWithPolicySpy: ReturnType<typeof vi.spyOn> = null;
const resolveRequestUrl = (input: RequestInfo | URL) => {
if (typeof input === "string") {

View File

@@ -13,7 +13,7 @@ const getCachedStickerSpy = vi.fn();
const describeStickerImageSpy = vi.fn();
const resolvePinnedHostname = ssrf.resolvePinnedHostname;
const lookupMock = vi.fn();
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> | null = null;
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> = null;
type ApiStub = {
config: { use: (arg: unknown) => void };

View File

@@ -98,7 +98,7 @@ const _makeSessionStore = async (
};
describe("web auto-reply", () => {
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> | undefined;
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn>;
beforeEach(() => {
vi.clearAllMocks();

View File

@@ -97,7 +97,7 @@ const _makeSessionStore = async (
};
describe("web auto-reply", () => {
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn> | undefined;
let resolvePinnedHostnameSpy: ReturnType<typeof vi.spyOn>;
beforeEach(() => {
vi.clearAllMocks();

View File

@@ -1,17 +0,0 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["DOM", "DOM.Iterable", "ES2023", "ScriptHost"],
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "es2023"
},
"include": ["src/**/*.ts", "extensions/**/*.ts"],
"exclude": ["node_modules", "dist"]
}

View File

@@ -18,7 +18,9 @@ export default defineConfig([
platform: "node",
},
{
dts: true,
entry: "src/plugin-sdk/index.ts",
outDir: "dist/plugin-sdk",
env,
fixedExtension: false,
platform: "node",