Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: improve static check performance (#38866)
Stephen Zhou61d2ad572a77
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.ymlindex e1f6fbe7c46..d05ebed87d5 100644--- a/.github/workflows/autofix.yml+++ b/.github/workflows/autofix.yml@@ -13,7 +13,7 @@ permissions:jobs:autofix:if: github.repository == 'langgenius/dify'- runs-on: depot-ubuntu-24.04+ runs-on: depot-ubuntu-24.04-4steps:- name: Complete merge group checkif: github.event_name == 'merge_group'diff --git a/lint.config.ts b/lint.config.tsindex bd70c6f5156..25eac7767de 100644--- a/lint.config.ts+++ b/lint.config.ts@@ -2,8 +2,6 @@ import type { OxlintConfig } from 'vite-plus/lint'import path from 'node:path'const rootDir = import.meta.dirname-const webDir = path.resolve(rootDir, 'web')-const webTailwindEntry = path.resolve(webDir, 'app/styles/globals.css')const difyUiPackageJson = path.resolve(rootDir, 'packages/dify-ui/package.json')/**@@ -81,10 +79,6 @@ export const lintConfig = {'eslint-plugin-no-barrel-files','@tanstack/eslint-plugin-query','eslint-plugin-storybook',- {- name: 'tailwindcss',- specifier: 'eslint-plugin-better-tailwindcss',- },'eslint-plugin-hyoban',],options: {@@ -94,10 +88,6 @@ export const lintConfig = {typeCheck: true,},settings: {- 'better-tailwindcss': {- cwd: webDir,- entryPoint: webTailwindEntry,- },'react-x': {additionalStateHooks: '/^use\\w*State(?:s)?|useAtom$/u',},@@ -830,14 +820,6 @@ export const lintConfig = {'storybook/no-uninstalled-addons': 'error',},},- {- files: ['web/**/*.{ts,cts,mts}', 'web/**/*.tsx'],- rules: {- 'tailwindcss/no-duplicate-classes': 'error',- 'tailwindcss/no-unknown-classes': 'warn',- },- excludeFiles: ['web/**/__tests__/**', 'web/**/*.spec.{ts,tsx}', 'web/**/*.test.{ts,tsx}'],- },{files: ['web/**/*.tsx'],rules: {diff --git a/package.json b/package.jsonindex f3a537aaaef..68ae579a854 100644--- a/package.json+++ b/package.json@@ -27,7 +27,6 @@"eslint": "catalog:","eslint-markdown": "catalog:","eslint-plugin-antfu": "catalog:",- "eslint-plugin-better-tailwindcss": "catalog:","eslint-plugin-command": "catalog:","eslint-plugin-erasable-syntax-only": "catalog:","eslint-plugin-hyoban": "catalog:",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 09a23c60978..eac4458965b 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -336,9 +336,6 @@ catalogs:eslint-plugin-antfu:specifier: 3.2.3version: 3.2.3- eslint-plugin-better-tailwindcss:- specifier: 4.6.1- version: 4.6.1eslint-plugin-command:specifier: 3.5.2version: 3.5.2@@ -707,9 +704,6 @@ importers:eslint-plugin-antfu:specifier: 'catalog:'- eslint-plugin-better-tailwindcss:- specifier: 'catalog:'- version: 4.6.1(@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected](@types/[email protected])(@typescript/[email protected])(@vitest/[email protected])(@vitest/[email protected])(@voidzero-dev/[email protected](@types/[email protected])(@typescript/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected])eslint-plugin-command:specifier: 'catalog:'version: 3.5.2(@typescript-eslint/[email protected](@typescript/[email protected]))(@typescript-eslint/[email protected](@typescript/[email protected])([email protected]([email protected])([email protected])))([email protected]([email protected])([email protected]))@@ -6374,19 +6368,6 @@ packages:peerDependencies:eslint: '*'- resolution: {integrity: sha512-Lr8mPyuaZ+dS6ATuJaPwcOFOpOUsRBs5TXyOPqiTzLy0SvK4+0G6usbklCuQn4QabwFtNKdSXwl2WxOIPvu0lQ==}- engines: {node: ^20.19.0 || ^22.12.0 || >=23.0.0}- peerDependencies:- eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0- oxlint: ^1.35.0- tailwindcss: ^3.3.0 || ^4.1.17- peerDependenciesMeta:- eslint:- optional: true- oxlint:- optional: true-resolution: {integrity: sha512-PA59QAkQDwvcCMEt5lYLJLI3zDGVKJeC4id/pcRY2XdRYhSGW7iyYT1VC1N3bmpuvu6Qb/9QptiS3GJMjeGTJg==}peerDependencies:@@ -14628,24 +14609,6 @@ snapshots:dependencies:eslint: 10.6.0([email protected])([email protected])- [email protected](@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected](@types/[email protected])(@typescript/[email protected])(@vitest/[email protected])(@vitest/[email protected])(@voidzero-dev/[email protected](@types/[email protected])(@typescript/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected]):- dependencies:- '@eslint/css-tree': 4.0.4- '@valibot/to-json-schema': 1.7.1([email protected](@typescript/[email protected]))- enhanced-resolve: 5.24.1- jiti: 2.7.0- synckit: 0.11.13- tailwind-csstree: 0.3.3- tailwindcss: 4.3.2- tsconfig-paths-webpack-plugin: 4.2.0- valibot: 1.4.2(@typescript/[email protected])- optionalDependencies:- eslint: 10.6.0([email protected])([email protected])- oxlint: 1.72.0([email protected])([email protected](@types/[email protected])(@typescript/[email protected])(@vitest/[email protected])(@vitest/[email protected])(@voidzero-dev/[email protected](@types/[email protected])(@typescript/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected]))- transitivePeerDependencies:- - '@eslint/css'- - typescript-[email protected](@typescript-eslint/[email protected](@typescript/[email protected]))(@typescript-eslint/[email protected](@typescript/[email protected])([email protected]([email protected])([email protected])))([email protected]([email protected])([email protected])):dependencies:'@es-joy/jsdoccomment': 0.84.0@@ -19339,7 +19302,6 @@ time:[email protected]: '2026-06-26T00:26:01.050Z'[email protected]: '2026-07-10T23:35:26.055Z'[email protected]: '2026-05-11T02:24:38.348Z'- [email protected]: '2026-07-03T15:13:24.013Z'[email protected]: '2026-02-25T04:29:02.155Z'[email protected]: '2026-06-18T00:56:01.038Z'[email protected]: '2026-03-08T02:51:00.805Z'diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex f7fac5c2b70..7ff647bd079 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -161,7 +161,6 @@ catalog:eslint: 10.6.0eslint-markdown: 0.12.1eslint-plugin-antfu: 3.2.3- eslint-plugin-better-tailwindcss: 4.6.1eslint-plugin-command: 3.5.2eslint-plugin-erasable-syntax-only: 0.4.2eslint-plugin-hyoban: 0.14.1diff --git a/vite.config.ts b/vite.config.tsindex 6baf45aa69e..5165e58bafe 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -71,7 +71,7 @@ export default defineConfig({sortPackageJson: true,sortTailwindcss: {functions: ['cn', 'clsx', 'cva', 'tw', 'twMerge'],- preserveDuplicates: true,+ preserveDuplicates: false,stylesheet: 'web/app/styles/globals.css',},},diff --git a/web/app/components/plugins/card/index.tsx b/web/app/components/plugins/card/index.tsxindex e8354d4055f..21f9f6485b3 100644--- a/web/app/components/plugins/card/index.tsx+++ b/web/app/components/plugins/card/index.tsx@@ -77,7 +77,6 @@ const Card = ({const cornerMarkText = categoriesMap[type === 'bundle' ? type : category]?.label ?? ''const wrapClassName = cn(- // oxlint-disable-next-line tailwindcss/no-unknown-classes -- Used by page feedback tooling to identify plugin cards.'hover-bg-components-panel-on-panel-item-bg relative overflow-hidden rounded-xl border-[0.5px] border-components-panel-border bg-components-panel-on-panel-item-bg shadow-xs',isMarketplaceVariant &&'h-[148px] transition-all group-hover:bg-components-panel-on-panel-item-bg-hover group-hover:shadow-md',diff --git a/web/app/components/workflow/block-selector/tabs.tsx b/web/app/components/workflow/block-selector/tabs.tsxindex 28af9064063..d2b70361b85 100644--- a/web/app/components/workflow/block-selector/tabs.tsx+++ b/web/app/components/workflow/block-selector/tabs.tsx@@ -123,8 +123,7 @@ const TabHeaderItem = ({tab.disabled? 'cursor-not-allowed text-text-disabled opacity-60': activeTab === tab.key- ? // oxlint-disable-next-line tailwindcss/no-unknown-classes- 'sm-no-bottom cursor-default bg-components-panel-bg text-text-accent'+ ? 'sm-no-bottom cursor-default bg-components-panel-bg text-text-accent': 'cursor-pointer text-text-tertiary',)