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: revert type only lint

YuTengjing5acd5c0a2f80
diff --git a/.eslintrc.js b/.eslintrc.js
index 9ba0e1550f9..556809bf810 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -22,14 +22,6 @@ config.rules['unicorn/prefer-query-selector'] = 0;
config.rules['unicorn/no-array-callback-reference'] = 0;
// FIXME: Linting error in src/app/[variants]/(main)/chat/features/Migration/DBReader.ts, the fundamental solution should be upgrading typescript-eslint
config.rules['@typescript-eslint/no-useless-constructor'] = 0;
-config.rules['@typescript-eslint/consistent-type-imports'] = [
- 'error',
- {
- disallowTypeAnnotations: false,
- fixStyle: 'inline-type-imports',
- prefer: 'type-imports',
- },
-];
config.overrides = [
{
@@ -46,26 +38,6 @@ config.overrides = [
},
},
- // Desktop app enables `emitDecoratorMetadata`, so some "type-only" references may be required at runtime
- // for metadata reflection. Avoid auto-converting imports to `import type` in this scope.
- {
- files: ['apps/desktop/**/*.{ts,tsx,cts,mts}'],
- parserOptions: {
- project: ['./apps/desktop/tsconfig.json'],
- tsconfigRootDir: __dirname,
- },
- rules: {
- '@typescript-eslint/consistent-type-imports': [
- 'error',
- {
- disallowTypeAnnotations: false,
- fixStyle: 'inline-type-imports',
- prefer: 'no-type-imports',
- },
- ],
- },
- },
-
{
files: ['src/store/image/**/*', 'src/types/generation/**/*'],
rules: {