Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔧 chore: remove unused ESLint suppression for anonymous default export in global styles (#12252)

Innei7d19102d6b23
diff --git a/eslint-suppressions.json b/eslint-suppressions.json
index 4fdd23a4d0a..27ea9663556 100644
--- a/eslint-suppressions.json
+++ b/eslint-suppressions.json
@@ -766,11 +766,6 @@
"count": 1
}
},
- "src/styles/global.ts": {
- "unicorn/no-anonymous-default-export": {
- "count": 1
- }
- },
"src/utils/server/parseModels.ts": {
"prefer-const": {
"count": 1
@@ -784,4 +779,4 @@
"count": 1
}
}
-}
\ No newline at end of file
+}
diff --git a/package.json b/package.json
index 38db966a493..a81c418f089 100644
--- a/package.json
+++ b/package.json
@@ -81,7 +81,7 @@
"lint:md": "remark . --silent --output",
"lint:mdx": "npm run workflow:mdx && remark \"docs/**/*.mdx\" -r ./.remarkrc.mdx.mjs --silent --output && eslint \"docs/**/*.mdx\" --quiet --fix",
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
- "lint:ts": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix --concurrency=auto",
+ "lint:ts": "bash scripts/lint-ts.sh",
"lint:ts:prune": "eslint \"{src,tests,packages}/**/*.{js,jsx,ts,tsx}\" --prune-suppressions --concurrency=auto",
"lint:ts:suppress": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --suppress-all --fix --concurrency=auto",
"lint:unused": "knip --include files,exports,types,enumMembers,duplicates",
@@ -376,6 +376,7 @@
"@commitlint/cli": "^19.8.1",
"@edge-runtime/vm": "^5.0.0",
"@huggingface/tasks": "^0.19.80",
+ "@inquirer/prompts": "^8.2.0",
"@lobechat/types": "workspace:*",
"@lobehub/i18n-cli": "^1.26.0",
"@lobehub/lint": "2.0.2",
@@ -386,7 +387,6 @@
"@playwright/test": "^1.58.0",
"@prettier/sync": "^0.6.1",
"@semantic-release/exec": "^6.0.3",
- "@inquirer/prompts": "^8.2.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
@@ -474,4 +474,4 @@
"drizzle-orm": "0.44.7"
}
}
-}
\ No newline at end of file
+}
diff --git a/scripts/lint-ts.sh b/scripts/lint-ts.sh
new file mode 100755
index 00000000000..fe29d613986
--- /dev/null
+++ b/scripts/lint-ts.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -o pipefail
+
+eslint "{src,tests}/**/*.{js,jsx,ts,tsx}" --fix --concurrency=auto --prune-suppressions
+eslint "{src,tests}/**/*.{js,jsx,ts,tsx}" --concurrency=auto
\ No newline at end of file