diff options
| author | xuatz <xzlow10@gmail.com> | 2025-06-22 20:29:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-22 12:29:30 +0100 |
| commit | d5e2973dce617f451e4eb07491b3a6874ea6ca47 (patch) | |
| tree | 9e134ac8c0b263cec755068082ca61c9646efd21 /apps/landing | |
| parent | 91a9d3c1aee04d77b2a2d022821f4a7a38e315f3 (diff) | |
| download | karakeep-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 'apps/landing')
| -rw-r--r-- | apps/landing/.oxlintrc.json | 34 | ||||
| -rw-r--r-- | apps/landing/package.json | 12 |
2 files changed, 36 insertions, 10 deletions
diff --git a/apps/landing/.oxlintrc.json b/apps/landing/.oxlintrc.json new file mode 100644 index 00000000..91dc201f --- /dev/null +++ b/apps/landing/.oxlintrc.json @@ -0,0 +1,34 @@ +{ + "$schema": "../../node_modules/oxlint/configuration_schema.json", + "extends": [ + "../../tooling/oxlint/oxlint-base.json", + "../../tooling/oxlint/oxlint-react.json" + ], + "categories": { + "correctness": "warn" + }, + "env": { + "builtin": true, + "commonjs": true, + "browser": true, + "es2022": true, + "node": true + }, + "globals": { + "React": "writeable" + }, + "settings": { + "react": { + "version": "detect" + } + }, + "ignorePatterns": [ + "**/*.config.js", + "**/*.config.cjs", + "**/.eslintrc.cjs", + ".next", + "dist", + "build", + "pnpm-lock.yaml" + ] +} diff --git a/apps/landing/package.json b/apps/landing/package.json index d35ef885..ed396b85 100644 --- a/apps/landing/package.json +++ b/apps/landing/package.json @@ -8,8 +8,8 @@ "dev": "vite", "build": "tsc -b && vite build", "preview": "vite preview", - "lint": "eslint .", - "lint:fix": "eslint . --fix", + "lint": "oxlint .", + "lint:fix": "oxlint . --fix", "format": "prettier . --ignore-path ../../.prettierignore", "format:fix": "prettier . --ignore-path ../../.prettierignore --write", "typecheck": "tsc --noEmit" @@ -28,7 +28,6 @@ "tailwindcss-animate": "^1.0.7" }, "devDependencies": { - "@karakeep/eslint-config": "workspace:^0.2.0", "@karakeep/prettier-config": "workspace:^0.1.0", "@karakeep/tailwind-config": "workspace:^0.1.0", "@karakeep/tsconfig": "workspace:^0.1.0", @@ -42,12 +41,5 @@ "vite": "^5.1.0", "vite-plugin-svgr": "^4.3.0" }, - "eslintConfig": { - "root": true, - "extends": [ - "@karakeep/eslint-config/base", - "@karakeep/eslint-config/react" - ] - }, "prettier": "@karakeep/prettier-config" } |
