aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/browser-extension/.oxlintrc.json3
-rw-r--r--apps/cli/.oxlintrc.json5
-rw-r--r--apps/landing/.oxlintrc.json3
-rw-r--r--apps/mcp/.oxlintrc.json5
-rw-r--r--apps/mobile/.oxlintrc.json3
-rw-r--r--apps/web/.oxlintrc.json3
-rw-r--r--apps/web/components/dashboard/tags/MergeTagModal.tsx2
-rw-r--r--apps/web/components/settings/ImportExport.tsx14
-rw-r--r--apps/workers/.oxlintrc.json5
-rw-r--r--apps/workers/workers/crawlerWorker.ts2
-rw-r--r--apps/workers/workers/inference/tagging.ts4
11 files changed, 13 insertions, 36 deletions
diff --git a/apps/browser-extension/.oxlintrc.json b/apps/browser-extension/.oxlintrc.json
index 91dc201f..3c21fbb0 100644
--- a/apps/browser-extension/.oxlintrc.json
+++ b/apps/browser-extension/.oxlintrc.json
@@ -4,9 +4,6 @@
"../../tooling/oxlint/oxlint-base.json",
"../../tooling/oxlint/oxlint-react.json"
],
- "categories": {
- "correctness": "warn"
- },
"env": {
"builtin": true,
"commonjs": true,
diff --git a/apps/cli/.oxlintrc.json b/apps/cli/.oxlintrc.json
index 44a3dcef..79ba0255 100644
--- a/apps/cli/.oxlintrc.json
+++ b/apps/cli/.oxlintrc.json
@@ -3,10 +3,7 @@
"extends": [
"../../tooling/oxlint/oxlint-base.json"
],
- "categories": {
- "correctness": "warn"
- },
- "env": {
+ "env": {
"builtin": true,
"commonjs": true
},
diff --git a/apps/landing/.oxlintrc.json b/apps/landing/.oxlintrc.json
index 91dc201f..3c21fbb0 100644
--- a/apps/landing/.oxlintrc.json
+++ b/apps/landing/.oxlintrc.json
@@ -4,9 +4,6 @@
"../../tooling/oxlint/oxlint-base.json",
"../../tooling/oxlint/oxlint-react.json"
],
- "categories": {
- "correctness": "warn"
- },
"env": {
"builtin": true,
"commonjs": true,
diff --git a/apps/mcp/.oxlintrc.json b/apps/mcp/.oxlintrc.json
index 44a3dcef..79ba0255 100644
--- a/apps/mcp/.oxlintrc.json
+++ b/apps/mcp/.oxlintrc.json
@@ -3,10 +3,7 @@
"extends": [
"../../tooling/oxlint/oxlint-base.json"
],
- "categories": {
- "correctness": "warn"
- },
- "env": {
+ "env": {
"builtin": true,
"commonjs": true
},
diff --git a/apps/mobile/.oxlintrc.json b/apps/mobile/.oxlintrc.json
index dc4ad1e1..fa024bec 100644
--- a/apps/mobile/.oxlintrc.json
+++ b/apps/mobile/.oxlintrc.json
@@ -4,9 +4,6 @@
"../../tooling/oxlint/oxlint-base.json",
"../../tooling/oxlint/oxlint-react.json"
],
- "categories": {
- "correctness": "warn"
- },
"env": {
"builtin": true,
"commonjs": true,
diff --git a/apps/web/.oxlintrc.json b/apps/web/.oxlintrc.json
index 3a2cb742..d0a51846 100644
--- a/apps/web/.oxlintrc.json
+++ b/apps/web/.oxlintrc.json
@@ -5,9 +5,6 @@
"../../tooling/oxlint/oxlint-nextjs.json",
"../../tooling/oxlint/oxlint-react.json"
],
- "categories": {
- "correctness": "warn"
- },
"env": {
"builtin": true,
"commonjs": true,
diff --git a/apps/web/components/dashboard/tags/MergeTagModal.tsx b/apps/web/components/dashboard/tags/MergeTagModal.tsx
index b38c5713..c3ae1e57 100644
--- a/apps/web/components/dashboard/tags/MergeTagModal.tsx
+++ b/apps/web/components/dashboard/tags/MergeTagModal.tsx
@@ -50,7 +50,7 @@ export function MergeTagModal({
},
});
- const { mutate: mergeTag, isPending: isPending } = useMergeTag({
+ const { mutate: mergeTag, isPending } = useMergeTag({
onSuccess: (resp) => {
toast({
description: "Tag has been updated!",
diff --git a/apps/web/components/settings/ImportExport.tsx b/apps/web/components/settings/ImportExport.tsx
index 3dde577b..712c9c3e 100644
--- a/apps/web/components/settings/ImportExport.tsx
+++ b/apps/web/components/settings/ImportExport.tsx
@@ -150,14 +150,12 @@ export function ImportExportRow() {
await Promise.all([
// Add to import list
- ...[
- toImport.listIds.map((listId) =>
- addToList({
- bookmarkId: created.id,
- listId,
- }),
- ),
- ],
+ ...toImport.listIds.map((listId) =>
+ addToList({
+ bookmarkId: created.id,
+ listId,
+ }),
+ ),
// Update tags
bookmark.tags.length > 0
? updateTags({
diff --git a/apps/workers/.oxlintrc.json b/apps/workers/.oxlintrc.json
index 44a3dcef..79ba0255 100644
--- a/apps/workers/.oxlintrc.json
+++ b/apps/workers/.oxlintrc.json
@@ -3,10 +3,7 @@
"extends": [
"../../tooling/oxlint/oxlint-base.json"
],
- "categories": {
- "correctness": "warn"
- },
- "env": {
+ "env": {
"builtin": true,
"commonjs": true
},
diff --git a/apps/workers/workers/crawlerWorker.ts b/apps/workers/workers/crawlerWorker.ts
index d92da208..f0e831c2 100644
--- a/apps/workers/workers/crawlerWorker.ts
+++ b/apps/workers/workers/crawlerWorker.ts
@@ -105,7 +105,7 @@ async function startBrowserInstance() {
);
const webUrl = new URL(serverConfig.crawler.browserWebUrl);
// We need to resolve the ip address as a workaround for https://github.com/puppeteer/puppeteer/issues/2242
- const { address: address } = await dns.promises.lookup(webUrl.hostname);
+ const { address } = await dns.promises.lookup(webUrl.hostname);
webUrl.hostname = address;
logger.info(
`[Crawler] Successfully resolved IP address, new address: ${webUrl.toString()}`,
diff --git a/apps/workers/workers/inference/tagging.ts b/apps/workers/workers/inference/tagging.ts
index 35c366c7..5a01e2df 100644
--- a/apps/workers/workers/inference/tagging.ts
+++ b/apps/workers/workers/inference/tagging.ts
@@ -130,11 +130,11 @@ async function replaceTagsPlaceholders(
const tags = (await api.tags.list()).tags;
const tagsString = `[${tags.map((tag) => tag.name).join(", ")}]`;
const aiTagsString = `[${tags
- .filter((tag) => tag.numBookmarksByAttachedType.human ?? 0 == 0)
+ .filter((tag) => tag.numBookmarksByAttachedType.human ?? true)
.map((tag) => tag.name)
.join(", ")}]`;
const userTagsString = `[${tags
- .filter((tag) => tag.numBookmarksByAttachedType.human ?? 0 > 0)
+ .filter((tag) => tag.numBookmarksByAttachedType.human ?? false)
.map((tag) => tag.name)
.join(", ")}]`;