Skip to content
Open
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
35 changes: 0 additions & 35 deletions .eslintrc

This file was deleted.

9 changes: 6 additions & 3 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ export default [
},
rules: {
// Basic rules
"no-console": "warn",
"no-console": "off",
"no-debugger": "warn",
"no-unused-vars": "warn",
"no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"prefer-const": "error",
"no-useless-constructor": "error",

Expand Down Expand Up @@ -107,7 +110,7 @@ export default [
"vue/no-v-html": "off",

// Basic rules
"no-console": "warn",
"no-console": "off",
"no-debugger": "warn",
"prefer-const": "error",

Expand Down
2 changes: 0 additions & 2 deletions packages/app/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ describe.sequential.each([
shell: true,
},
);
// eslint-disable-next-line no-console
console.log(process.stdout);
} catch (error) {
// eslint-disable-next-line no-console
console.log(error);
}
}, 10_000);
Expand Down
4 changes: 1 addition & 3 deletions packages/app/server/api/repo/index.get.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { H3Event } from "h3";
import { z } from "zod";
import { getRepoReleaseCount } from "../../utils/bucket";

const querySchema = z.object({
owner: z.string(),
Expand Down Expand Up @@ -41,8 +40,7 @@ const getRepoInfo = defineCachedFunction(
}
},
{
getKey: (owner: string, repo: string, _event?: H3Event) =>
`${owner}/${repo}`,
getKey: (owner: string, repo: string) => `${owner}/${repo}`,
maxAge: 60 * 30, // 30 minutes
swr: true,
},
Expand Down
8 changes: 4 additions & 4 deletions packages/app/server/api/repo/search.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export default defineEventHandler(async (event) => {
const startTime = Date.now();
let processedRepositories = 0;
let status: SearchDebugInfo["status"] = "completed";
let skippedRepositories = 0;
let suspendedErrors = 0;
let _skippedRepositories = 0;
let _suspendedErrors = 0;

addFlowStage(
"repository_iteration_start",
Expand All @@ -108,7 +108,7 @@ export default defineEventHandler(async (event) => {
}

if (repository.private) {
skippedRepositories++;
_skippedRepositories++;
return;
}

Expand Down Expand Up @@ -166,7 +166,7 @@ export default defineEventHandler(async (event) => {
err.message?.includes("suspended") ||
err.message?.includes("Installation")
) {
suspendedErrors++;
_suspendedErrors++;
addFlowError(
"repository_suspended",
err.message,
Expand Down
1 change: 0 additions & 1 deletion packages/app/server/plugins/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default defineNitroPlugin((nitro) => {
try {
// Pre-load the configuration to ensure it's initialized
const config = useRuntimeConfig(event);
// eslint-disable-next-line no-console
console.log(
"Runtime config initialized successfully:",
Object.keys(config),
Expand Down
1 change: 0 additions & 1 deletion packages/app/server/routes/badge/[owner]/[repo].get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
setHeader,
getRouterParams,
createError,
getQuery,
} from "h3";
import { getRepoReleaseCount } from "../../../utils/bucket";
import { LOGO_BASE64 } from "../../../../shared/constants";
Expand Down
1 change: 0 additions & 1 deletion packages/app/server/utils/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { createStorage, joinKeys, prefixStorage } from "unstorage";
import cloudflareR2BindingDriver from "unstorage/drivers/cloudflare-r2-binding";
import { getR2Binding } from "unstorage/drivers/utils/cloudflare";

type Binary = Parameters<R2Bucket["put"]>[1];
interface Event {
context: { cloudflare: H3EventContext["cloudflare"] };
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ const main = defineCommand({
}

const formDataPackagesSize = [...formData.entries()].reduce(
(prev, [_, entry]) => prev + getFormEntrySize(entry),
(prev, [, entry]) => prev + getFormEntrySize(entry),
0,
);

Expand Down
Loading