diff options
Diffstat (limited to 'apps/cli')
| -rw-r--r-- | apps/cli/.oxlintrc.json | 22 | ||||
| -rw-r--r-- | apps/cli/package.json | 11 | ||||
| -rw-r--r-- | apps/cli/src/commands/bookmarks.ts | 2 |
3 files changed, 25 insertions, 10 deletions
diff --git a/apps/cli/.oxlintrc.json b/apps/cli/.oxlintrc.json new file mode 100644 index 00000000..44a3dcef --- /dev/null +++ b/apps/cli/.oxlintrc.json @@ -0,0 +1,22 @@ +{ + "$schema": "../../node_modules/oxlint/configuration_schema.json", + "extends": [ + "../../tooling/oxlint/oxlint-base.json" + ], + "categories": { + "correctness": "warn" + }, + "env": { + "builtin": true, + "commonjs": true + }, + "ignorePatterns": [ + "**/*.config.js", + "**/*.config.cjs", + "**/.eslintrc.cjs", + "**/.next", + "**/dist", + "**/build", + "**/pnpm-lock.yaml" + ] +} diff --git a/apps/cli/package.json b/apps/cli/package.json index b0454b2e..0aa8230e 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -15,7 +15,6 @@ }, "devDependencies": { "@commander-js/extra-typings": "^12.0.1", - "@karakeep/eslint-config": "workspace:^0.2.0", "@karakeep/prettier-config": "workspace:^0.1.0", "@karakeep/shared": "workspace:^0.1.0", "@karakeep/trpc": "workspace:^0.1.0", @@ -33,8 +32,8 @@ "scripts": { "build": "vite build", "run": "tsx src/index.ts", - "lint": "eslint .", - "lint:fix": "eslint . --fix", + "lint": "oxlint .", + "lint:fix": "oxlint . --fix", "format": "prettier . --ignore-path ../../.prettierignore", "format:fix": "prettier . --write --ignore-path ../../.prettierignore", "typecheck": "tsc --noEmit" @@ -44,11 +43,5 @@ "url": "git+https://github.com/karakeep-app/karakeep.git", "directory": "apps/cli" }, - "eslintConfig": { - "root": true, - "extends": [ - "@karakeep/eslint-config/base" - ] - }, "prettier": "@karakeep/prettier-config" } diff --git a/apps/cli/src/commands/bookmarks.ts b/apps/cli/src/commands/bookmarks.ts index 130ad376..308b57b0 100644 --- a/apps/cli/src/commands/bookmarks.ts +++ b/apps/cli/src/commands/bookmarks.ts @@ -261,7 +261,7 @@ bookmarkCmd results = [...results, ...resp.bookmarks]; } printObject(results.map(normalizeBookmark), { maxArrayLength: null }); - } catch (e) { + } catch { printStatusMessage(false, "Failed to query bookmarks"); } }); |
