From eefb67e74a00337aa9db9f3ee324147ce67954be Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 9 Feb 2026 15:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20update=20ESLint=20confi?= =?UTF-8?q?guration=20and=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/package.json | 4 ++-- eslint-suppressions.json | 2 +- eslint.config.mjs | 16 ---------------- package.json | 3 +-- 4 files changed, 4 insertions(+), 21 deletions(-) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index ddc0eca3fe..81198696c3 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -77,7 +77,7 @@ "electron-store": "^8.2.0", "electron-vite": "^4.0.1", "es-toolkit": "^1.43.0", - "eslint": "^8.57.1", + "eslint": "^9.18.0", "execa": "^9.6.1", "fast-glob": "^3.3.3", "fix-path": "^5.0.0", @@ -111,4 +111,4 @@ "node-mac-permissions" ] } -} +} \ No newline at end of file diff --git a/eslint-suppressions.json b/eslint-suppressions.json index 3233e3b78b..ad1c7d4fd8 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -1321,4 +1321,4 @@ "count": 1 } } -} +} \ No newline at end of file diff --git a/eslint.config.mjs b/eslint.config.mjs index 5ce8444ec2..42732f474b 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -48,22 +48,6 @@ export default eslint( '@typescript-eslint/no-useless-constructor': 0, 'no-extra-boolean-cast': 0, 'react/no-unknown-property': 0, - 'unicorn/catch-error-name': 0, - 'unicorn/explicit-length-check': 0, - 'unicorn/no-array-callback-reference': 0, - 'unicorn/require-module-specifiers': 0, - 'unicorn/no-array-for-each': 0, - 'unicorn/no-negated-condition': 0, - 'unicorn/no-null': 0, - 'unicorn/no-typeof-undefined': 0, - 'unicorn/no-useless-undefined': 0, - 'unicorn/prefer-code-point': 0, - 'unicorn/prefer-logical-operator-over-ternary': 0, - 'unicorn/prefer-number-properties': 0, - 'unicorn/prefer-query-selector': 0, - 'unicorn/prefer-spread': 0, - 'unicorn/prefer-ternary': 0, - 'unicorn/prefer-type-error': 0, }, }, // MDX files diff --git a/package.json b/package.json index 000f5e6794..052a9f8937 100644 --- a/package.json +++ b/package.json @@ -378,11 +378,10 @@ "@huggingface/tasks": "^0.19.80", "@lobechat/types": "workspace:*", "@lobehub/i18n-cli": "^1.26.0", - "@lobehub/lint": "2.0.0-beta.8", + "@lobehub/lint": "2.0.2", "@lobehub/market-types": "^1.12.3", "@lobehub/seo-cli": "^1.7.0", "@next/bundle-analyzer": "^16.1.5", - "@next/eslint-plugin-next": "^16.1.5", "@peculiar/webcrypto": "^1.5.0", "@playwright/test": "^1.58.0", "@prettier/sync": "^0.6.1",