Skip to content

armgit / dify

Public Imported from GitHub
0

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.

chore(lint): respect gitignore in ESLint flat config (#42065)

Stephen Zhou8e8a3c54145f
diff --git a/eslint.config.mjs b/eslint.config.mjs
index f069b6910bc..9b72b129bd9 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -1,6 +1,8 @@
// @ts-check
+/// <reference types="node" />
import markdown from '@eslint/markdown'
+import gitignore from 'eslint-config-flat-gitignore'
import md from 'eslint-markdown'
import jsonc from 'eslint-plugin-jsonc'
import markdownPreferences from 'eslint-plugin-markdown-preferences'
@@ -213,6 +215,11 @@ export default defineConfig([
],
'Project lint scope',
),
+ gitignore({
+ cwd: import.meta.dirname,
+ root: true,
+ recursive: { skipDirs: ['.venv', 'volumes'] },
+ }),
globalIgnores([codeFiles], 'Migration tradeoff: code files are handled by Oxlint only'),
globalIgnores(
[
diff --git a/package.json b/package.json
index f396fceefe2..d1d4762c2fe 100644
--- a/package.json
+++ b/package.json
@@ -31,6 +31,7 @@
"@typescript/native": "catalog:",
"concurrently": "catalog:",
"eslint": "catalog:",
+ "eslint-config-flat-gitignore": "catalog:",
"eslint-markdown": "catalog:",
"eslint-plugin-antfu": "catalog:",
"eslint-plugin-better-tailwindcss": "catalog:",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c9cdb62e766..b2452f6e462 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -413,6 +413,9 @@ catalogs:
eslint:
specifier: 10.9.1
version: 10.9.1
+ eslint-config-flat-gitignore:
+ specifier: 2.4.0
+ version: 2.4.0
eslint-markdown:
specifier: 0.12.1
version: 0.12.1
@@ -771,6 +774,9 @@ importers:
eslint:
specifier: 'catalog:'
+ eslint-config-flat-gitignore:
+ specifier: 'catalog:'
eslint-markdown:
specifier: 'catalog:'
@@ -2287,6 +2293,15 @@ packages:
eslint: '*'
typescript: '*'
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-rMcy8GSrwNzcISX/BlTDY/GLB4eCopEuy9woIls3To+15OLxykZrxxq+WUcylCPCQ6F4MujjBM1DX5V1aqI3Vw==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}
+ peerDependencies:
+ eslint: ^8.40 || 9 || 10
+ peerDependenciesMeta:
+ eslint:
+ optional: true
+
'@eslint/[email protected]':
resolution: {integrity: sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
@@ -6196,6 +6211,11 @@ packages:
peerDependencies:
eslint: '>=6.0.0'
+ resolution: {integrity: sha512-JhYC+V7qEDiCDsbJcVP8fxNc62fk4+i91YLP/YvmVHlkaQ8Xo99olYN8MO5COdxl7onGlsrfZVONe5NYsZP1UA==}
+ peerDependencies:
+ eslint: ^9.5.0 || ^10.0.0
+
resolution: {integrity: sha512-RbBmDFyu7FqnjE8F0ZxPNzx5UaptdeS9Uu50r7A+D7s/+FCX+ybiyViYEgFUaFIFqSWJgZRTpL5d8Kanxxl2lQ==}
engines: {node: '>=12'}
@@ -10066,6 +10086,12 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ '@eslint/core': 1.2.1
+ optionalDependencies:
+
dependencies:
'@eslint/object-schema': 3.0.5
@@ -13565,6 +13591,11 @@ snapshots:
semver: 7.8.5
+ dependencies:
+
dependencies:
@@ -17433,6 +17464,7 @@ time:
[email protected]: '2025-04-04T17:37:53.976Z'
[email protected]: '2024-04-25T14:22:21.440Z'
[email protected]: '2026-08-28T07:22:17.687Z'
+ [email protected]: '2026-08-27T07:24:43.063Z'
[email protected]: '2026-07-10T23:35:26.055Z'
[email protected]: '2026-05-11T02:24:38.348Z'
[email protected]: '2026-07-19T13:26:01.366Z'
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 9964cb41475..02e54426222 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -153,6 +153,7 @@ catalog:
emoji-mart: 5.6.0
es-toolkit: 1.52.0
eslint: 10.9.1
+ eslint-config-flat-gitignore: 2.4.0
eslint-markdown: 0.12.1
eslint-plugin-antfu: 3.2.3
eslint-plugin-better-tailwindcss: 4.7.0