A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
chore: More oxlint changes
Mohamed Bassemf7b319381592
diff --git a/apps/browser-extension/.oxlintrc.json b/apps/browser-extension/.oxlintrc.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.tsxindex 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.tsxindex 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 tagsbookmark.tags.length > 0? updateTags({diff --git a/apps/workers/.oxlintrc.json b/apps/workers/.oxlintrc.jsonindex 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.tsindex 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.tsindex 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(", ")}]`;diff --git a/docs/.oxlintrc.json b/docs/.oxlintrc.jsonindex f78448c4..2cd470ce 100644--- a/docs/.oxlintrc.json+++ b/docs/.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/packages/api/.oxlintrc.json b/packages/api/.oxlintrc.jsonindex 44a3dcef..79ba0255 100644--- a/packages/api/.oxlintrc.json+++ b/packages/api/.oxlintrc.json@@ -3,10 +3,7 @@"extends": ["../../tooling/oxlint/oxlint-base.json"],- "categories": {- "correctness": "warn"- },- "env": {+ "env": {"builtin": true,"commonjs": true},diff --git a/packages/db/.oxlintrc.json b/packages/db/.oxlintrc.jsonindex 44a3dcef..79ba0255 100644--- a/packages/db/.oxlintrc.json+++ b/packages/db/.oxlintrc.json@@ -3,10 +3,7 @@"extends": ["../../tooling/oxlint/oxlint-base.json"],- "categories": {- "correctness": "warn"- },- "env": {+ "env": {"builtin": true,"commonjs": true},diff --git a/packages/e2e_tests/.oxlintrc.json b/packages/e2e_tests/.oxlintrc.jsonindex 44a3dcef..79ba0255 100644--- a/packages/e2e_tests/.oxlintrc.json+++ b/packages/e2e_tests/.oxlintrc.json@@ -3,10 +3,7 @@"extends": ["../../tooling/oxlint/oxlint-base.json"],- "categories": {- "correctness": "warn"- },- "env": {+ "env": {"builtin": true,"commonjs": true},diff --git a/packages/open-api/.oxlintrc.json b/packages/open-api/.oxlintrc.jsonindex 44a3dcef..79ba0255 100644--- a/packages/open-api/.oxlintrc.json+++ b/packages/open-api/.oxlintrc.json@@ -3,10 +3,7 @@"extends": ["../../tooling/oxlint/oxlint-base.json"],- "categories": {- "correctness": "warn"- },- "env": {+ "env": {"builtin": true,"commonjs": true},diff --git a/packages/sdk/.oxlintrc.json b/packages/sdk/.oxlintrc.jsonindex 8d9e82f8..f435ac0f 100644--- a/packages/sdk/.oxlintrc.json+++ b/packages/sdk/.oxlintrc.json@@ -3,10 +3,7 @@"extends": ["../../tooling/oxlint/oxlint-base.json"],- "categories": {- "correctness": "warn"- },- "env": {+ "env": {"builtin": true,"commonjs": true},diff --git a/packages/shared-react/.oxlintrc.json b/packages/shared-react/.oxlintrc.jsonindex 91dc201f..3c21fbb0 100644--- a/packages/shared-react/.oxlintrc.json+++ b/packages/shared-react/.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/packages/shared-react/utils/bookmarkUtils.ts b/packages/shared-react/utils/bookmarkUtils.tsdeleted file mode 100644index e69de29b..00000000diff --git a/packages/shared/.oxlintrc.json b/packages/shared/.oxlintrc.jsonindex 44a3dcef..79ba0255 100644--- a/packages/shared/.oxlintrc.json+++ b/packages/shared/.oxlintrc.json@@ -3,10 +3,7 @@"extends": ["../../tooling/oxlint/oxlint-base.json"],- "categories": {- "correctness": "warn"- },- "env": {+ "env": {"builtin": true,"commonjs": true},diff --git a/packages/trpc/.oxlintrc.json b/packages/trpc/.oxlintrc.jsonindex 44a3dcef..79ba0255 100644--- a/packages/trpc/.oxlintrc.json+++ b/packages/trpc/.oxlintrc.json@@ -3,10 +3,7 @@"extends": ["../../tooling/oxlint/oxlint-base.json"],- "categories": {- "correctness": "warn"- },- "env": {+ "env": {"builtin": true,"commonjs": true},diff --git a/tooling/oxlint/oxlint-base.json b/tooling/oxlint/oxlint-base.jsonindex 557afe00..83ae8634 100644--- a/tooling/oxlint/oxlint-base.json+++ b/tooling/oxlint/oxlint-base.json@@ -2,7 +2,9 @@"$schema": "../../node_modules/oxlint/configuration_schema.json","plugins": ["typescript",- "import"+ "import",+ "unicorn",+ "oxc"],"rules": {"for-direction": "error",@@ -108,20 +110,7 @@{"files": ["**/*"],"rules": {- "no-class-assign": "off",- "no-const-assign": "off",- "no-dupe-class-members": "off",- "no-dupe-keys": "off",- "no-func-assign": "off",- "no-import-assign": "off",- "no-new-native-nonconstructor": "off",- "no-obj-calls": "off",- "no-redeclare": "off",- "no-setter-return": "off",- "no-this-before-super": "off",- "no-unsafe-negation": "off","no-var": "error",- "no-with": "off","prefer-rest-params": "error","prefer-spread": "error"}diff --git a/tooling/oxlint/oxlint-react.json b/tooling/oxlint/oxlint-react.jsonindex dd5c4c01..a2dede89 100644--- a/tooling/oxlint/oxlint-react.json+++ b/tooling/oxlint/oxlint-react.json@@ -5,7 +5,6 @@"jsx-a11y"],"rules": {- "react/prop-types": "off","react/jsx-key": "warn","react/jsx-no-comment-textnodes": "warn","react/jsx-no-duplicate-props": "warn",@@ -20,7 +19,6 @@"react/no-string-refs": "warn","react/no-unescaped-entities": "warn","react/no-unknown-property": "warn",- "react/react-in-jsx-scope": "off","react-hooks/rules-of-hooks": "error","react-hooks/exhaustive-deps": "off","jsx-a11y/alt-text": "error",@@ -54,7 +52,7 @@}],"jsx-a11y/no-redundant-roles": "error",- "jsx-a11y/role-has-required-aria-props": "warn",+ "jsx-a11y/role-has-required-aria-props": "off","jsx-a11y/role-supports-aria-props": "error","jsx-a11y/scope": "error","jsx-a11y/tabindex-no-positive": "error"