aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--docs/.oxlintrc.json3
-rw-r--r--packages/api/.oxlintrc.json5
-rw-r--r--packages/db/.oxlintrc.json5
-rw-r--r--packages/e2e_tests/.oxlintrc.json5
-rw-r--r--packages/open-api/.oxlintrc.json5
-rw-r--r--packages/sdk/.oxlintrc.json5
-rw-r--r--packages/shared-react/.oxlintrc.json3
-rw-r--r--packages/shared-react/utils/bookmarkUtils.ts0
-rw-r--r--packages/shared/.oxlintrc.json5
-rw-r--r--packages/trpc/.oxlintrc.json5
-rw-r--r--tooling/oxlint/oxlint-base.json17
-rw-r--r--tooling/oxlint/oxlint-react.json4
23 files changed, 24 insertions, 87 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(", ")}]`;
diff --git a/docs/.oxlintrc.json b/docs/.oxlintrc.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.ts
deleted file mode 100644
index e69de29b..00000000
--- a/packages/shared-react/utils/bookmarkUtils.ts
+++ /dev/null
diff --git a/packages/shared/.oxlintrc.json b/packages/shared/.oxlintrc.json
index 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.json
index 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.json
index 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.json
index 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"