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(lint): remove unused ESLint plugins (#43761)
Stephen Zhou1a817b99720b
diff --git a/eslint.config.mjs b/eslint.config.mjsindex 001db22be9a..dc37477345f 100644--- a/eslint.config.mjs+++ b/eslint.config.mjs@@ -7,7 +7,6 @@ import md from 'eslint-markdown'import jsonc from 'eslint-plugin-jsonc'import markdownPreferences from 'eslint-plugin-markdown-preferences'import pnpm from 'eslint-plugin-pnpm'-import toml from 'eslint-plugin-toml'import yml from 'eslint-plugin-yml'import { defineConfig, globalIgnores } from 'eslint/config'import dify from './web/plugins/eslint/index.js'@@ -381,23 +380,6 @@ export default defineConfig([],},},- {- files: ['**/*.toml'],- language: 'toml/toml',- plugins: {- toml,- },- rules: {- 'no-irregular-whitespace': 'off',- 'spaced-comment': 'off',- 'toml/keys-order': 'error',- 'toml/no-unreadable-number-separator': 'error',- 'toml/precision-of-fractional-seconds': 'error',- 'toml/precision-of-integer': 'error',- 'toml/tables-order': 'error',- 'toml/vue-custom-block/no-parsing-error': 'error',- },- },{files: ['**/*.md'],language: 'markdown/gfm',diff --git a/lint.config.ts b/lint.config.tsindex a15f16bfb3c..08075af3891 100644--- a/lint.config.ts+++ b/lint.config.ts@@ -205,15 +205,10 @@ export const lintConfig = {'@tanstack/eslint-plugin-query','eslint-plugin-antfu',...(enableTailwindCanonicalClasses ? ['eslint-plugin-better-tailwindcss'] : []),- 'eslint-plugin-command',{name: 'dify',specifier: './web/plugins/eslint/index.js',},- {- name: 'eslint-comments',- specifier: '@eslint-community/eslint-plugin-eslint-comments',- },{name: 'eslint-react',specifier: '@eslint-react/eslint-plugin',@@ -491,11 +486,6 @@ export const lintConfig = {'dify/require-disable-directive-description': 'error','dify/require-i18n-namespace': 'error','dify/require-t-function-namespace': 'error',- 'eslint-comments/no-aggregating-enable': 'error',- 'eslint-comments/no-duplicate-disable': 'error',- 'eslint-comments/no-unlimited-disable': 'error',- 'eslint-comments/no-unused-enable': 'error',- 'command/command': 'error','perfectionist/sort-exports': ['error',{@@ -782,7 +772,6 @@ export const lintConfig = {{files: ['**/*.d.{ts,cts,mts}'],rules: {- 'eslint-comments/no-unlimited-disable': 'off','no-unused-vars': 'off',},},@@ -1384,11 +1373,6 @@ export const lintConfig = {'valid-typeof': 'error','vars-on-top': 'off',yoda: 'off',- 'eslint-comments/no-aggregating-enable': 'off',- 'eslint-comments/no-duplicate-disable': 'off',- 'eslint-comments/no-unlimited-disable': 'off',- 'eslint-comments/no-unused-enable': 'off',- 'command/command': 'off','perfectionist/sort-exports': 'off','perfectionist/sort-named-exports': 'off','perfectionist/sort-named-imports': 'off',diff --git a/package.json b/package.jsonindex af9dc80fd5e..821cd6c983d 100644--- a/package.json+++ b/package.json@@ -20,7 +20,6 @@"lint:eslint:quiet": "eslint --quiet --concurrency=auto"},"devDependencies": {- "@eslint-community/eslint-plugin-eslint-comments": "catalog:","@eslint-react/eslint-plugin": "catalog:","@eslint/markdown": "catalog:","@iconify-json/heroicons": "catalog:",@@ -36,7 +35,6 @@"eslint-markdown": "catalog:","eslint-plugin-antfu": "catalog:","eslint-plugin-better-tailwindcss": "catalog:",- "eslint-plugin-command": "catalog:","eslint-plugin-jsdoc": "catalog:","eslint-plugin-jsonc": "catalog:","eslint-plugin-markdown-preferences": "catalog:",@@ -46,8 +44,6 @@"eslint-plugin-pnpm": "catalog:","eslint-plugin-regexp": "catalog:","eslint-plugin-storybook": "catalog:",- "eslint-plugin-toml": "catalog:",- "eslint-plugin-unicorn": "catalog:","eslint-plugin-yml": "catalog:","knip": "catalog:","typescript": "catalog:",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex bd8cf072e40..9504d456a48 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -194,9 +194,6 @@ catalogs:'@egoist/tailwindcss-icons':specifier: 1.9.2version: 1.9.2- '@eslint-community/eslint-plugin-eslint-comments':- specifier: 4.8.1- version: 4.8.1'@eslint-react/eslint-plugin':specifier: 5.24.10version: 5.24.10@@ -497,9 +494,6 @@ catalogs:eslint-plugin-better-tailwindcss:specifier: 4.9.0version: 4.9.0- eslint-plugin-command:- specifier: 4.0.0- version: 4.0.0eslint-plugin-jsdoc:specifier: 65.2.1version: 65.2.1@@ -527,12 +521,6 @@ catalogs:eslint-plugin-storybook:specifier: 10.6.1version: 10.6.1- eslint-plugin-toml:- specifier: 1.5.0- version: 1.5.0- eslint-plugin-unicorn:- specifier: 77.0.0- version: 77.0.0eslint-plugin-yml:specifier: 3.9.0version: 3.9.0@@ -814,9 +802,6 @@ importers:.:devDependencies:- '@eslint-community/eslint-plugin-eslint-comments':- specifier: 'catalog:''@eslint-react/eslint-plugin':specifier: 'catalog:'version: 5.24.10(@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected])@@ -862,9 +847,6 @@ importers:eslint-plugin-better-tailwindcss:specifier: 'catalog:'version: 4.9.0(@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])(@vitest/[email protected])(@volar/[email protected](@typescript/[email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected])- eslint-plugin-command:- specifier: 'catalog:'- version: 4.0.0(@typescript-eslint/[email protected](@typescript/[email protected])([email protected]))(@typescript-eslint/[email protected](@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected])([email protected]))eslint-plugin-jsdoc:specifier: 'catalog:'version: 65.2.1(@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected])@@ -892,12 +874,6 @@ importers:eslint-plugin-storybook:specifier: 'catalog:'version: 10.6.1(@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected])- eslint-plugin-toml:- specifier: 'catalog:'- eslint-plugin-unicorn:- specifier: 'catalog:'eslint-plugin-yml:specifier: 'catalog:'@@ -2220,10 +2196,6 @@ packages:'@emnapi/[email protected]':resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==}- '@es-joy/[email protected]':- resolution: {integrity: sha512-WivZqV5jPTYDQJgIMp0hTsyQESKYNY6yCJr4b0l84tYtQntkAMkc6zARh2vlRQyeg4aYHPUkCUDpvr2IWAiGpQ==}- engines: {node: ^22.22.2 || >=24.15.0}-'@es-joy/[email protected]':resolution: {integrity: sha512-QS+b7I2aaSM+gZfDz1b9E4B367JJ2qTjFXRKF289iKkh9sYdZ21Q5MiF/Duzouy3J0C4VhM3I/8f2F4+zT8gYQ==}engines: {node: ^22.22.2 || >=24.15.0}@@ -2388,12 +2360,6 @@ packages:cpu: [x64]os: [win32]- '@eslint-community/[email protected]':- resolution: {integrity: sha512-vafrdi15JHBFh1qWOAucyJwlEEuhdoMof28jOdKdgnwZ7bXwd6v4wzHYSmAVLwnx0yc7bqAtfJ0EZQV1WAzV/Q==}- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}- peerDependencies:- eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0-'@eslint-community/[email protected]':resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}@@ -5804,10 +5770,6 @@ packages:resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}- resolution: {integrity: sha512-hMQUl2bUFG339QygPM97E+mc8OY1IAchORZxm4a/frcYwKzozMzRVDBwHW0NjOqGElLm2O37AVQE8ikxlZHrMQ==}- engines: {node: '>=18.20'}-resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}engines: {node: '>=18'}@@ -5877,9 +5839,6 @@ packages:resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}- resolution: {integrity: sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==}-resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}@@ -5930,10 +5889,6 @@ packages:'@chromatic-com/vitest':optional: true- resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==}- engines: {node: '>=8'}-resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}@@ -6001,10 +5956,6 @@ packages:resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}engines: {node: '>= 12'}- resolution: {integrity: sha512-0h+uSNtQGW3D98eQt3jJ8L06Fves8hncB4V/PKdw/Qb8Hnk19VaKuTr55UNRYiSoVa7WwrFls+rh3ux9agmkeQ==}- engines: {node: '>= 12.0.0'}-resolution: {integrity: sha512-+2AvZKjJaNq9GQljm3tr0utwrig5BL+jgJGvz5rDpGKNIp+ojcRXWUwBbh/sGIi1QCprR6PsKFakub+w1v+4hQ==}engines: {node: '>= 12.0.0'}@@ -6036,10 +5987,6 @@ packages:resolution: {integrity: sha512-gklSft7IuhriZKHKpuoA1fpJSLPNgvUMWMo5BlnzAJm0zNKnznoSv23IjtNqclx8eKi6ZcdvFFzYEER/+U1LoQ==}- resolution: {integrity: sha512-XGpFGbMLHwSt74YLTKho7Ib242qi6O8MSX+sRokV4oz7iKXvQWGYZthjIhjRGMxjzVkAubBO512dKGYcefmX3Q==}- engines: {node: '>=6.4.0'}-resolution: {integrity: sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==}@@ -6351,10 +6298,6 @@ packages:resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==}- resolution: {integrity: sha512-y+8xyqdGLL+6sh0tVeHcfP/QDd8gUgbasolJJpY7NgeQGSZ739bDtSiaiDgtoicy+mtYB81dKLxO9xRhCyIB3A==}- engines: {node: '>=12.20'}-resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}engines: {node: '>=8'}@@ -6587,14 +6530,6 @@ packages:oxlint:optional: true- resolution: {integrity: sha512-mM1UdKu39YF5nUBVbA+PaVvpB3R3Niwjes8CQ8rJTTbgIThgrfQILgDqmtpAAQL1xGaolCoES1SfiwzwPVGkXQ==}- engines: {node: ^22.22.2 || >=24.15.0}- peerDependencies:- '@typescript-eslint/typescript-estree': '*'- '@typescript-eslint/utils': '*'- eslint: '*'-resolution: {integrity: sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==}engines: {node: ^14.18.0 || >=16.0.0}@@ -6731,18 +6666,6 @@ packages:peerDependencies:eslint: '>=8'- resolution: {integrity: sha512-qBjRywEkKxO2uYOjus//6GVF1r+Hg5QDkRO8RTY6XcaXgWfBU0DhwpFmJa2Ljf0Sz49r7DdZlpKwwHmJ4nmH1Q==}- engines: {node: ^20.19.0 || ^22.13.0 || >=24}- peerDependencies:- eslint: '>=9.38.0'-- resolution: {integrity: sha512-aayznMCKTXlPAsoyUjRok862sz3BJAfxpQX/t79AT/uVQTmWsCx3FXfXo+9hfhL8aR2mMZQYyXoDZo3/ly6lJw==}- engines: {node: '>=22'}- peerDependencies:- eslint: '>=10.4'-resolution: {integrity: sha512-o4ByMVFd/mGc0Q/vJmbG9pz7Kyg/BiKAGnWCzvMLqzpa2KMdpUrLgF5a6yYeL2mf1Br/9dckd0ADl3vw7uF+jA==}engines: {node: ^20.19.0 || ^22.13.0 || >=24.0.0}@@ -6994,10 +6917,6 @@ packages:resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==}engines: {node: '>=18'}- resolution: {integrity: sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg==}- engines: {node: '>=18'}-resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}@@ -7143,10 +7062,6 @@ packages:resolution: {integrity: sha512-l//qvlAKGmQO31Qn7xdzagVPPaHTxXx199MhrAFuVBTPqydcPYBWjkrbv4Y0ktB+GmWOiwHl237UUOrLmQxLvw==}- resolution: {integrity: sha512-SLX4H/vtcYlYnL7XqnuJKHU7Z8517TgsW9nmQiGOgMCjQ8V/deLYu6bEmbGoXe7WMMhc9+EUGyFFneHja8KabA==}- engines: {node: '>=18'}-resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}@@ -7154,10 +7069,6 @@ packages:resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}engines: {node: '>= 4'}- resolution: {integrity: sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==}- engines: {node: '>= 4'}-resolution: {integrity: sha512-bZSadeCPGdaY5/qRLgr6mDSH1ra21rD3rqpiWk7+QTr4ayYPTE9qZYdLh/NdPhMe0wSrTvHD/Lk8q5EwhUs0aw==}@@ -7210,10 +7121,6 @@ packages:resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==}- resolution: {integrity: sha512-f4RqJKBUe5rQkJ2eJEJBXSticB3hGbN9j0yxxMQFqIW89Jp9WYFtzfTcRlstDKVUTRzSOTLKRfO9vIztenwtxA==}- engines: {node: '>=18.20'}-resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==}@@ -7325,10 +7232,6 @@ packages:resolution: {integrity: sha512-yzzNtgczwgoVHNigCyKTXcQJU4Y8t/ikU4UxXW0BvrLfHTGWZhsNcOT2s/a7vn81/4KqVnNmHjaUEPlvWnNwVw==}hasBin: true- resolution: {integrity: sha512-1LJ/negRKJxH0+ulOsJYEpUgzIs1DAOz9QctuS4In2LW/Ro3l8C4ej5al+5FU2hBGEOAY3R3SCnP6x8226JMIw==}- engines: {node: ^22.22.2 || >=24.15.0}-resolution: {integrity: sha512-eFY7Rlscvv/BpY6UsVsjKwMhu1tJO/F4U/vC9g3yeRy/JqszuO1UP6Vdq+85G+3FP6fEw/sWR8a5ftPFY86csw==}engines: {node: ^22.22.2 || >=24.15.0}@@ -8340,10 +8243,6 @@ packages:engines: {node: '>=20'}hasBin: true- resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==}- engines: {node: '>=4'}-resolution: {integrity: sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==}engines: {node: '>=14.19.0'}@@ -8432,10 +8331,6 @@ packages:resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}- resolution: {integrity: sha512-Y3NoRtprEEZQD8RfxMCfS0ZTqc4e+i18OrXEXAvpM6TfC/3y+0L5rNbZiSnbBBEkDfFzbpd8o+cE8q3/anjMGA==}- engines: {node: '>=22'}-resolution: {integrity: sha512-h36JMxKRqrAxVD8201FrCpyeNuUY9Y5zZwujr20fFO77tpUtGa6EZzfKw/3WaiBX95fq7+MpsuMLNdSnORAwSA==}engines: {node: '>=14.18.0'}@@ -8610,10 +8505,6 @@ packages:resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==}hasBin: true- resolution: {integrity: sha512-EWV80YgFaVgFrjGCAsV7oybp4GOxbls5RzBg8OB0nKEVXsBJR1JlV8Di1JhCROg3MzTfe1RI8yitIm1eOs68iA==}- hasBin: true-resolution: {integrity: sha512-Qn7vR1xrf6fZCrkm9TDWi/AB4ylrHy+jqsNm1EHOAmbARYA6gsnVJBq/sdBh6kmT4NEZxH5vgIjrscefJAOXcw==}@@ -9073,10 +8964,6 @@ packages:resolution: {integrity: sha512-41wJyvKep3yT2tyPqX/4blcfybknGB4D+oETKLs7Q76UiPqRpUJK3hr1nxelyYO0PHKVzJwlu0aCeEAsGI6rpw==}engines: {node: '>=20'}- resolution: {integrity: sha512-A5F0cM6+mDleacLIEUkmfpkBbnHJFV1d2rprHU2MXNk7mlxHq2zGojA+SRvQD1RoMo9gqjZPWEaKG4v1BQ48lw==}- engines: {node: ^20.19.0 || ^22.13.0 || >=24}-resolution: {integrity: sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==}@@ -10180,14 +10067,6 @@ snapshots:tslib: 2.8.1optional: true- '@es-joy/[email protected]':- dependencies:- '@types/estree': 1.0.9- '@typescript-eslint/types': 8.71.1- comment-parser: 1.4.7- esquery: 1.7.0- jsdoc-type-pratt-parser: 9.0.1-'@es-joy/[email protected]':dependencies:'@types/estree': 1.0.9@@ -10276,12 +10155,6 @@ snapshots:'@esbuild/[email protected]':optional: true- dependencies:- escape-string-regexp: 4.0.0- eslint: 10.12.0([email protected])([email protected])- ignore: 7.0.8-dependencies:eslint: 10.12.0([email protected])([email protected])@@ -13234,8 +13107,6 @@ snapshots:ieee754: 1.2.1optional: true- [email protected]: {}-dependencies:run-applescript: 7.1.0@@ -13315,8 +13186,6 @@ snapshots:- [email protected]: {}-@@ -13363,8 +13232,6 @@ snapshots:dependencies:semver: 7.8.5- [email protected]: {}-dependencies:clsx: 2.1.1@@ -13423,8 +13290,6 @@ snapshots:- [email protected]: {}-@@ -13450,10 +13315,6 @@ snapshots:- dependencies:- browserslist: 4.29.3-dependencies:layout-base: 1.0.2@@ -13778,8 +13639,6 @@ snapshots:- [email protected]: {}-@@ -14018,13 +13877,6 @@ snapshots:- '@eslint/css'- typescript- [email protected](@typescript-eslint/[email protected](@typescript/[email protected])([email protected]))(@typescript-eslint/[email protected](@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected])([email protected])):- dependencies:- '@es-joy/jsdoccomment': 0.92.0- '@typescript-eslint/typescript-estree': 8.71.1(@typescript/[email protected])([email protected])- '@typescript-eslint/utils': 8.71.1(@typescript/[email protected])([email protected]([email protected])([email protected]))([email protected])- eslint: 10.12.0([email protected])([email protected])-dependencies:@@ -14263,41 +14115,6 @@ snapshots:- supports-color- typescript- dependencies:- '@eslint/core': 1.2.1- '@eslint/plugin-kit': 0.7.3- '@ota-meshi/ast-token-store': 0.3.0- debug: 4.4.3([email protected])- eslint: 10.12.0([email protected])([email protected])- toml-eslint-parser: 1.0.3- transitivePeerDependencies:- - supports-color-- dependencies:- '@eslint/css-tree': 4.1.1- browserslist: 4.29.3- change-case: 5.4.4- ci-info: 4.4.0- core-js-compat: 3.50.0- detect-indent: 7.0.2- entities: 8.1.0- eslint: 10.12.0([email protected])([email protected])- find-up-simple: 1.0.1- globals: 17.13.0- identifier-regex: 1.1.0- indent-string: 5.0.0- is-builtin-module: 5.0.0- pluralize: 8.0.0- quote-js-string: 0.1.0- regjsparser: 0.13.4- reserved-identifiers: 1.2.0- semver: 7.8.5- strip-indent: 4.1.1- yaml: 2.9.1-dependencies:'@eslint/core': 1.2.1@@ -14553,8 +14370,6 @@ snapshots:- [email protected]: {}-@@ -14783,17 +14598,11 @@ snapshots:- dependencies:- reserved-identifiers: 1.2.0-optional: true- [email protected]: {}-@@ -14829,10 +14638,6 @@ snapshots:is-alphabetical: 2.0.1is-decimal: 2.0.1- dependencies:- builtin-modules: 5.3.0-@@ -14906,10 +14711,6 @@ snapshots:dependencies:argparse: 2.0.1- dependencies:- '@types/estree': 1.0.9-dependencies:'@types/estree': 1.0.9@@ -16175,8 +15976,6 @@ snapshots:dependencies:playwright-core: 1.64.0- [email protected]: {}-@@ -16281,8 +16080,6 @@ snapshots:- [email protected]: {}-@@ -16489,10 +16286,6 @@ snapshots:- dependencies:- jsesc: 3.1.0-dependencies:unist-util-visit: 5.1.0@@ -17028,10 +16821,6 @@ snapshots:'@sindresorhus/base62': 1.0.0reserved-identifiers: 1.2.0- dependencies:- eslint-visitor-keys: 5.0.1-@@ -17727,7 +17516,6 @@ time:'@date-fns/[email protected]': '2026-05-21T10:39:51.805Z''@daypicker/[email protected]': '2026-09-30T09:03:39.069Z''@egoist/[email protected]': '2026-01-31T10:48:44.594Z'- '@eslint-community/[email protected]': '2026-09-12T22:48:47.148Z''@eslint-react/[email protected]': '2026-10-09T02:26:47.794Z''@eslint/[email protected]': '2026-07-01T13:28:44.339Z''@floating-ui/[email protected]': '2026-07-11T08:41:33.223Z'@@ -17828,7 +17616,6 @@ time:[email protected]: '2026-09-27T08:52:54.851Z'[email protected]: '2026-05-11T02:24:38.348Z'[email protected]: '2026-10-05T21:13:08.995Z'- [email protected]: '2026-07-31T04:38:09.766Z'[email protected]: '2026-10-08T19:24:59.177Z'[email protected]: '2026-08-22T12:13:35.450Z'[email protected]: '2026-07-14T00:58:47.572Z'@@ -17838,8 +17625,6 @@ time:[email protected]: '2026-09-02T01:31:47.410Z'[email protected]: '2026-09-20T04:28:02.918Z'[email protected]: '2026-09-29T17:17:22.200Z'- [email protected]: '2026-07-25T01:46:13.957Z'- [email protected]: '2026-10-03T10:47:25.784Z'[email protected]: '2026-10-09T01:27:04.784Z'[email protected]: '2026-10-02T20:08:19.213Z'[email protected]: '2026-09-15T18:30:29.195Z'diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 76713520d30..47c27118062 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -76,7 +76,6 @@ catalog:'@date-fns/tz': 1.5.0'@daypicker/react': 10.0.2'@egoist/tailwindcss-icons': 1.9.2- '@eslint-community/eslint-plugin-eslint-comments': 4.8.1'@eslint-react/eslint-plugin': 5.24.10'@eslint/markdown': 8.0.3'@floating-ui/react': 0.27.20@@ -178,7 +177,6 @@ catalog:eslint-markdown: 0.18.1eslint-plugin-antfu: 3.2.3eslint-plugin-better-tailwindcss: 4.9.0- eslint-plugin-command: 4.0.0eslint-plugin-jsdoc: 65.2.1eslint-plugin-jsonc: 3.4.2eslint-plugin-markdown-preferences: 0.42.0@@ -188,8 +186,6 @@ catalog:eslint-plugin-pnpm: 1.9.1eslint-plugin-regexp: 3.3.1eslint-plugin-storybook: 10.6.1- eslint-plugin-toml: 1.5.0- eslint-plugin-unicorn: 77.0.0eslint-plugin-yml: 3.9.0eventsource-parser: 4.1.1fast-deep-equal: 3.1.3diff --git a/vite.config.ts b/vite.config.tsindex 805411f57e9..82343d3205b 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -2,7 +2,7 @@ import { defineConfig } from 'vite-plus'import { lintConfig } from './lint.config'const lintFiles = '*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}'-const eslintFiles = '*.{json,jsonc,json5,md,yml,yaml,toml}'+const eslintFiles = '*.{json,jsonc,json5,md,yml,yaml}'const formatOnlyFiles = '*.{mdx,css,scss,less,html,vue,svelte,gql,graphql,hbs,handlebars}'const checkFix = 'vp check --fix --no-error-on-unmatched-pattern'const formatFix = 'vp fmt --no-error-on-unmatched-pattern'diff --git a/web/docs/lint.md b/web/docs/lint.mdindex 2a2621db69f..143019f7556 100644--- a/web/docs/lint.md+++ b/web/docs/lint.md@@ -55,7 +55,7 @@ vp run dify-web#lint:a11y --deps 'app/(commonLayout)/app/(appDetailLayout)/layouThis is a local page-scoped diagnostic. The repository-wide accessibility rule baseline remainsowned by `lint.config.ts` and is also enforced by the normal `vp check` path.-Run the ESLint fallback separately when targeting JSON, JSONC, JSON5, YAML, TOML, or Markdown:+Run the ESLint fallback separately when targeting JSON, JSONC, JSON5, YAML, or Markdown:```shvp run -w lint:eslint package.json pnpm-workspace.yaml web/docs@@ -68,7 +68,7 @@ The primary rule baseline lives in `lint.config.ts` and is connected through theTailwind canonical class cleanup is optional because loading the JavaScript plugin adds noticeable lint startup time. The default `vp run -w check` command does not load it. Run `vp run -w lint:tailwind` to inspect `web/` and `packages/dify-ui/`, or `vp run -w lint:tailwind:fix` to apply safe replacements. Both commands run the complete lint configuration with the additional `better-tailwindcss/enforce-canonical-classes` rule, using `web/app/styles/globals.css` and a 16px root font size.-The non-code baseline and its repository-wide file scope live in `eslint.config.mjs`. ESLint checks JSON, JSONC, JSON5, YAML, TOML, and Markdown only. The configuration globally ignores JavaScript, JSX, TypeScript, TSX, and declaration files; a comment-only inventory records the removed code checks as a migration tradeoff. It does not import or depend on the Antfu ESLint config.+The non-code baseline and its repository-wide file scope live in `eslint.config.mjs`. ESLint checks JSON, JSONC, JSON5, YAML, and Markdown only. The configuration globally ignores JavaScript, JSX, TypeScript, TSX, and declaration files; a comment-only inventory records the removed code checks as a migration tradeoff. It does not import or depend on the Antfu ESLint config.### Type-aware Linting@@ -107,7 +107,7 @@ ESLint is intentionally limited to non-code files. The remaining limitations and| Code-only fallback rules | ESLint globally ignores all code files. Six core fallback rules, JS `dot-notation`, and other code-only ESLint checks are listed only in comments rather than executable configuration. || Declaration files | Oxlint excludes declaration files and ESLint no longer processes code. The former 223-rule declaration snapshot and CLI declaration import restriction are not enforced. || Generated contracts | Both linters and Vite+ type checking ignore `packages/contracts/**`; Oxfmt remains the only staged quality step for the contracts package. |-| Non-JavaScript formats | Oxlint plugins cannot provide custom parsers or file languages. ESLint covers JSON, JSONC, YAML, TOML, and Markdown semantic rules, while Oxfmt remains responsible for their formatting. |+| Non-JavaScript formats | Oxlint plugins cannot provide custom parsers or file languages. ESLint covers JSON, JSONC, YAML, and Markdown semantic rules, while Oxfmt remains responsible for their formatting. || Markdown code blocks | ESLint validates the Markdown document, but fenced JavaScript and TypeScript blocks are not passed through the former overlapping preset. This remains deferred rather than duplicating the Oxlint rule set. || Override-scoped settings | The three Dify UI Tailwind rules are disabled with the rest of ESLint's code path. Oxlint still applies the web `react-x.additionalStateHooks` setting globally because it cannot scope settings to an override. |