aboutsummaryrefslogtreecommitdiffstats
path: root/packages/api
diff options
context:
space:
mode:
authorxuatz <xzlow10@gmail.com>2025-06-22 20:29:30 +0900
committerGitHub <noreply@github.com>2025-06-22 12:29:30 +0100
commitd5e2973dce617f451e4eb07491b3a6874ea6ca47 (patch)
tree9e134ac8c0b263cec755068082ca61c9646efd21 /packages/api
parent91a9d3c1aee04d77b2a2d022821f4a7a38e315f3 (diff)
downloadkarakeep-d5e2973dce617f451e4eb07491b3a6874ea6ca47.tar.zst
chore: migrate away from eslint to oxlint (#1642)
* chore: migrate away from eslint to oxlint * revert turbo task name lint * it seems like we can remove the seemingly default globals
Diffstat (limited to 'packages/api')
-rw-r--r--packages/api/.oxlintrc.json22
-rw-r--r--packages/api/package.json11
2 files changed, 24 insertions, 9 deletions
diff --git a/packages/api/.oxlintrc.json b/packages/api/.oxlintrc.json
new file mode 100644
index 00000000..44a3dcef
--- /dev/null
+++ b/packages/api/.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/packages/api/package.json b/packages/api/package.json
index 82b2b9d0..d51b108b 100644
--- a/packages/api/package.json
+++ b/packages/api/package.json
@@ -8,8 +8,8 @@
"typecheck": "tsc --noEmit",
"format": "prettier . --ignore-path ../../.prettierignore",
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
- "lint": "eslint .",
- "lint:fix": "eslint . --fix",
+ "lint": "oxlint .",
+ "lint:fix": "oxlint . --fix",
"test": "vitest"
},
"dependencies": {
@@ -22,7 +22,6 @@
"zod": "^3.24.2"
},
"devDependencies": {
- "@karakeep/eslint-config": "workspace:^0.2.0",
"@karakeep/prettier-config": "workspace:^0.1.0",
"@karakeep/tsconfig": "workspace:^0.1.0",
"@types/bcryptjs": "^2.4.6",
@@ -31,11 +30,5 @@
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.6.1"
},
- "eslintConfig": {
- "root": true,
- "extends": [
- "@karakeep/eslint-config/base"
- ]
- },
"prettier": "@karakeep/prettier-config"
}