Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

chore: use .gitignore as source of truth for oxfmt and oxlint (#2740)

Evan Simkowitz6b99eab9ae8e
diff --git a/.oxfmtrc.json b/.oxfmtrc.json
index 34db147d..834cb164 100644
--- a/.oxfmtrc.json
+++ b/.oxfmtrc.json
@@ -31,24 +31,11 @@
"printWidth": 80,
"sortPackageJson": false,
"ignorePatterns": [
- ".next",
- "build",
- "coverage",
- ".vscode*",
- "node_modules",
- "dist",
"*.md",
"*.json",
- ".env",
- ".env.*",
"**/migrations/**",
"packages/open-api/karakeep-openapi-spec.json",
- "apps/web/public/workbox-*.js",
- "pnpm-lock.yaml",
"package-lock.json",
- "yarn.lock",
- "**/.expo/**",
- "apps/mobile/android",
- "apps/mobile/ios"
+ "yarn.lock"
]
}
diff --git a/.oxlintrc.json b/.oxlintrc.json
index b13a4c50..abe72741 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -3,10 +3,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/apps/browser-extension/.oxlintrc.json b/apps/browser-extension/.oxlintrc.json
index 3c34ad83..1afa3a39 100644
--- a/apps/browser-extension/.oxlintrc.json
+++ b/apps/browser-extension/.oxlintrc.json
@@ -23,9 +23,16 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- ".next",
"dist",
- "build",
- "pnpm-lock.yaml"
+ "dist-ssr",
+ "*.local",
+ "logs",
+ "*.log",
+ ".vscode/*",
+ "*.suo",
+ "*.ntvs*",
+ "*.njsproj",
+ "*.sln",
+ "*.sw?"
]
}
diff --git a/apps/browser-extension/package.json b/apps/browser-extension/package.json
index 5dfa8829..7c6c1952 100644
--- a/apps/browser-extension/package.json
+++ b/apps/browser-extension/package.json
@@ -6,10 +6,10 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"preview": "vite preview",
"typecheck": "tsc --noEmit"
},
diff --git a/apps/cli/.oxlintrc.json b/apps/cli/.oxlintrc.json
index 79ba0255..6bdda48b 100644
--- a/apps/cli/.oxlintrc.json
+++ b/apps/cli/.oxlintrc.json
@@ -11,9 +11,6 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "dist"
]
}
diff --git a/apps/cli/package.json b/apps/cli/package.json
index f90264ac..e73ab9ca 100644
--- a/apps/cli/package.json
+++ b/apps/cli/package.json
@@ -33,10 +33,10 @@
"scripts": {
"build": "vite build && chmod +x dist/index.mjs",
"run": "tsx src/index.ts",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore .",
"typecheck": "tsc --noEmit"
},
"repository": {
diff --git a/apps/landing/.oxlintrc.json b/apps/landing/.oxlintrc.json
index 46d96462..fc912f48 100644
--- a/apps/landing/.oxlintrc.json
+++ b/apps/landing/.oxlintrc.json
@@ -23,10 +23,6 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- ".next",
- ".astro",
- "dist",
- "build",
- "pnpm-lock.yaml"
+ "dist"
]
}
diff --git a/apps/landing/package.json b/apps/landing/package.json
index a2677881..2105609d 100644
--- a/apps/landing/package.json
+++ b/apps/landing/package.json
@@ -9,10 +9,10 @@
"dev:portless": "portless run --name karakeep-landing --lan astro dev",
"build": "astro build",
"preview": "astro preview",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
"typecheck": "astro check && tsc --noEmit"
},
"dependencies": {
diff --git a/apps/mcp/.oxlintrc.json b/apps/mcp/.oxlintrc.json
index 79ba0255..6bdda48b 100644
--- a/apps/mcp/.oxlintrc.json
+++ b/apps/mcp/.oxlintrc.json
@@ -11,9 +11,6 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "dist"
]
}
diff --git a/apps/mcp/package.json b/apps/mcp/package.json
index 1fcad86a..4883843b 100644
--- a/apps/mcp/package.json
+++ b/apps/mcp/package.json
@@ -25,10 +25,10 @@
"scripts": {
"build": "vite build && shx chmod +x dist/index.js",
"run": "tsx src/index.ts",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore .",
"typecheck": "tsc --noEmit"
},
"repository": {
diff --git a/apps/mobile/.oxlintrc.json b/apps/mobile/.oxlintrc.json
index 75bcf00e..fe44bbfe 100644
--- a/apps/mobile/.oxlintrc.json
+++ b/apps/mobile/.oxlintrc.json
@@ -24,10 +24,6 @@
"**/*.config.cjs",
"**/.eslintrc.cjs",
"tailwind.config.ts",
- ".next",
- "dist",
- "build",
- "pnpm-lock.yaml",
"expo-plugins/**",
"ios/**",
"android/**",
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 6233b9c4..02b440bf 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -14,10 +14,10 @@
"ios:preview": "SENTRY_DISABLE_AUTO_UPLOAD=true APP_VARIANT=development pnpm run ios --configuration Release",
"ios:release": "SENTRY_DISABLE_AUTO_UPLOAD=true pnpm run ios --configuration Release",
"web": "expo start --web",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {
diff --git a/apps/web/.oxlintrc.json b/apps/web/.oxlintrc.json
index 651952c2..34e9b1c8 100644
--- a/apps/web/.oxlintrc.json
+++ b/apps/web/.oxlintrc.json
@@ -23,12 +23,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- ".next",
- "dist",
- "build",
- "public/sw.js",
- "public/workbox-*.js",
- "pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/apps/web/package.json b/apps/web/package.json
index 0afe031e..706660f2 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -10,12 +10,12 @@
"clean": "git clean -xdf .next .turbo node_modules",
"build": "next build --experimental-build-mode compile",
"start": "next start",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"test": "vitest",
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt ."
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore ."
},
"dependencies": {
"@auth/drizzle-adapter": "~1.5.0",
diff --git a/apps/workers/.oxlintrc.json b/apps/workers/.oxlintrc.json
index 79ba0255..6bdda48b 100644
--- a/apps/workers/.oxlintrc.json
+++ b/apps/workers/.oxlintrc.json
@@ -11,9 +11,6 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "dist"
]
}
diff --git a/apps/workers/package.json b/apps/workers/package.json
index a9f250eb..f7037fe8 100644
--- a/apps/workers/package.json
+++ b/apps/workers/package.json
@@ -71,10 +71,10 @@
"start:prod": "tsx index.ts",
"build": "tsdown",
"build:watch": "tsdown --watch",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit"
diff --git a/docs/.oxlintrc.json b/docs/.oxlintrc.json
index 6dd0be34..f99e1d63 100644
--- a/docs/.oxlintrc.json
+++ b/docs/.oxlintrc.json
@@ -23,10 +23,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- ".next",
- "dist",
- "build",
- "pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/packages/api/.oxlintrc.json b/packages/api/.oxlintrc.json
index 79ba0255..62acf9b2 100644
--- a/packages/api/.oxlintrc.json
+++ b/packages/api/.oxlintrc.json
@@ -10,10 +10,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/packages/api/package.json b/packages/api/package.json
index fcd2f3cc..c5c0a2fa 100644
--- a/packages/api/package.json
+++ b/packages/api/package.json
@@ -6,10 +6,10 @@
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"test": "vitest"
},
"dependencies": {
diff --git a/packages/benchmarks/package.json b/packages/benchmarks/package.json
index dd0aa77e..fe843d5d 100644
--- a/packages/benchmarks/package.json
+++ b/packages/benchmarks/package.json
@@ -6,10 +6,10 @@
"type": "module",
"scripts": {
"bench": "tsx src/index.ts",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
+ "lint": "oxlint --ignore-path=../../.gitignore --ignore-pattern='setup/docker-logs/**' .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore --ignore-pattern='setup/docker-logs/**' . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
diff --git a/packages/db/.oxlintrc.json b/packages/db/.oxlintrc.json
index 79ba0255..d9d9fa3a 100644
--- a/packages/db/.oxlintrc.json
+++ b/packages/db/.oxlintrc.json
@@ -11,9 +11,7 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "dist",
+ "build"
]
}
diff --git a/packages/db/package.json b/packages/db/package.json
index ec8e3afb..30757adb 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -10,10 +10,10 @@
"migrate": "tsx migrate.ts",
"generate": "drizzle-kit generate",
"studio": "drizzle-kit studio",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix"
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix"
},
"dependencies": {
"@auth/core": "^0.27.0",
diff --git a/packages/e2e_tests/.oxlintrc.json b/packages/e2e_tests/.oxlintrc.json
index 79ba0255..62acf9b2 100644
--- a/packages/e2e_tests/.oxlintrc.json
+++ b/packages/e2e_tests/.oxlintrc.json
@@ -10,10 +10,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/packages/e2e_tests/package.json b/packages/e2e_tests/package.json
index 707e5924..3e14203f 100644
--- a/packages/e2e_tests/package.json
+++ b/packages/e2e_tests/package.json
@@ -6,10 +6,10 @@
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore --ignore-pattern='setup/docker-logs/**' .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore --ignore-pattern='setup/docker-logs/**' . --fix",
"test": "vitest run",
"test:watch": "vitest",
"test:no-build": "E2E_TEST_NO_BUILD=1 vitest run"
diff --git a/packages/open-api/.oxlintrc.json b/packages/open-api/.oxlintrc.json
index 79ba0255..62acf9b2 100644
--- a/packages/open-api/.oxlintrc.json
+++ b/packages/open-api/.oxlintrc.json
@@ -10,10 +10,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/packages/open-api/package.json b/packages/open-api/package.json
index 70b3c7d3..c7cae7e5 100644
--- a/packages/open-api/package.json
+++ b/packages/open-api/package.json
@@ -17,10 +17,10 @@
"typecheck": "tsc --noEmit",
"check": "tsx index.ts check",
"generate": "tsx index.ts",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix"
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix"
},
"main": "index.ts"
}
diff --git a/packages/plugins/.oxlintrc.json b/packages/plugins/.oxlintrc.json
index 79ba0255..62acf9b2 100644
--- a/packages/plugins/.oxlintrc.json
+++ b/packages/plugins/.oxlintrc.json
@@ -10,10 +10,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/packages/plugins/package.json b/packages/plugins/package.json
index f7c90c40..dbd42b3a 100644
--- a/packages/plugins/package.json
+++ b/packages/plugins/package.json
@@ -13,10 +13,10 @@
},
"scripts": {
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"test": "vitest"
},
"dependencies": {
diff --git a/packages/sdk/.oxlintrc.json b/packages/sdk/.oxlintrc.json
index f435ac0f..92cc35a5 100644
--- a/packages/sdk/.oxlintrc.json
+++ b/packages/sdk/.oxlintrc.json
@@ -11,10 +11,7 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml",
+ "dist",
"src/karakeep-api.d.ts"
]
}
diff --git a/packages/sdk/package.json b/packages/sdk/package.json
index 5c62313e..55ed9e1d 100644
--- a/packages/sdk/package.json
+++ b/packages/sdk/package.json
@@ -28,10 +28,10 @@
"scripts": {
"build": "vite build",
"run": "tsx src/index.ts",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore --ignore-path=./.gitignore .",
"typecheck": "tsc --noEmit"
},
"repository": {
diff --git a/packages/shared-react/.oxlintrc.json b/packages/shared-react/.oxlintrc.json
index 3c34ad83..2a22182f 100644
--- a/packages/shared-react/.oxlintrc.json
+++ b/packages/shared-react/.oxlintrc.json
@@ -22,10 +22,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- ".next",
- "dist",
- "build",
- "pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/packages/shared-react/package.json b/packages/shared-react/package.json
index 5921d8f7..660bf591 100644
--- a/packages/shared-react/package.json
+++ b/packages/shared-react/package.json
@@ -36,9 +36,9 @@
},
"scripts": {
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix"
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix"
}
}
diff --git a/packages/shared-server/.oxlintrc.json b/packages/shared-server/.oxlintrc.json
index 79ba0255..62acf9b2 100644
--- a/packages/shared-server/.oxlintrc.json
+++ b/packages/shared-server/.oxlintrc.json
@@ -10,10 +10,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/packages/shared-server/package.json b/packages/shared-server/package.json
index 04f8c02d..176b2e6d 100644
--- a/packages/shared-server/package.json
+++ b/packages/shared-server/package.json
@@ -28,10 +28,10 @@
},
"scripts": {
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"test": "vitest"
},
"main": "index.ts",
diff --git a/packages/shared/.oxlintrc.json b/packages/shared/.oxlintrc.json
index 79ba0255..6bdda48b 100644
--- a/packages/shared/.oxlintrc.json
+++ b/packages/shared/.oxlintrc.json
@@ -11,9 +11,6 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "dist"
]
}
diff --git a/packages/shared/package.json b/packages/shared/package.json
index 2bcef649..ab8e6685 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -26,10 +26,10 @@
},
"scripts": {
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"test": "vitest"
},
"main": "index.ts"
diff --git a/packages/trpc/.oxlintrc.json b/packages/trpc/.oxlintrc.json
index 79ba0255..6bdda48b 100644
--- a/packages/trpc/.oxlintrc.json
+++ b/packages/trpc/.oxlintrc.json
@@ -11,9 +11,6 @@
"**/*.config.js",
"**/*.config.cjs",
"**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "dist"
]
}
diff --git a/packages/trpc/package.json b/packages/trpc/package.json
index 964b6509..e1b7db5e 100644
--- a/packages/trpc/package.json
+++ b/packages/trpc/package.json
@@ -6,10 +6,10 @@
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"test": "vitest"
},
"dependencies": {
diff --git a/tooling/prettier/package.json b/tooling/prettier/package.json
index eddbdf98..d9b5e00a 100644
--- a/tooling/prettier/package.json
+++ b/tooling/prettier/package.json
@@ -8,8 +8,8 @@
},
"scripts": {
"clean": "rm -rf .turbo node_modules",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
diff --git a/tooling/tailwind/.oxlintrc.json b/tooling/tailwind/.oxlintrc.json
index 7177788c..830182b1 100644
--- a/tooling/tailwind/.oxlintrc.json
+++ b/tooling/tailwind/.oxlintrc.json
@@ -11,10 +11,6 @@
"ignorePatterns": [
"**/*.config.js",
"**/*.config.cjs",
- "**/.eslintrc.cjs",
- "**/.next",
- "**/dist",
- "**/build",
- "**/pnpm-lock.yaml"
+ "**/.eslintrc.cjs"
]
}
diff --git a/tooling/tailwind/package.json b/tooling/tailwind/package.json
index 37a6e9bf..6e456655 100644
--- a/tooling/tailwind/package.json
+++ b/tooling/tailwind/package.json
@@ -11,10 +11,10 @@
"license": "MIT",
"scripts": {
"clean": "rm -rf .turbo node_modules",
- "format": "oxfmt --check .",
- "format:fix": "oxfmt .",
- "lint": "oxlint .",
- "lint:fix": "oxlint . --fix",
+ "format": "oxfmt --ignore-path=../../.gitignore --check .",
+ "format:fix": "oxfmt --ignore-path=../../.gitignore .",
+ "lint": "oxlint --ignore-path=../../.gitignore .",
+ "lint:fix": "oxlint --ignore-path=../../.gitignore . --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {