aboutsummaryrefslogtreecommitdiffstats
path: root/tooling/tailwind
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 /tooling/tailwind
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 'tooling/tailwind')
-rw-r--r--tooling/tailwind/.oxlintrc.json20
-rw-r--r--tooling/tailwind/package.json14
2 files changed, 24 insertions, 10 deletions
diff --git a/tooling/tailwind/.oxlintrc.json b/tooling/tailwind/.oxlintrc.json
new file mode 100644
index 00000000..7177788c
--- /dev/null
+++ b/tooling/tailwind/.oxlintrc.json
@@ -0,0 +1,20 @@
+{
+ "$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/tooling/tailwind/package.json b/tooling/tailwind/package.json
index 4e9e0643..39087b0c 100644
--- a/tooling/tailwind/package.json
+++ b/tooling/tailwind/package.json
@@ -11,8 +11,10 @@
"license": "MIT",
"scripts": {
"clean": "rm -rf .turbo node_modules",
- "format": "prettier --check . --ignore-path ../../.gitignore",
- "lint": "eslint .",
+ "format": "prettier .",
+ "format:fix": "prettier . --write",
+ "lint": "oxlint .",
+ "lint:fix": "oxlint . --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {
@@ -23,18 +25,10 @@
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
- "@karakeep/eslint-config": "workspace:^0.2.0",
"@karakeep/prettier-config": "workspace:^0.1.0",
"@karakeep/tsconfig": "workspace:^0.1.0",
- "eslint": "^8.57.0",
"prettier": "^3.4.2",
"typescript": "^5.7.3"
},
- "eslintConfig": {
- "root": true,
- "extends": [
- "@karakeep/eslint-config/base"
- ]
- },
"prettier": "@karakeep/prettier-config"
}