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: init tsslint (#31209)
Stephen Zhou45b8d033be5a
diff --git a/.github/workflows/style.yml b/.github/workflows/style.ymlindex debf4ba648f..5551030f1e2 100644--- a/.github/workflows/style.yml+++ b/.github/workflows/style.yml@@ -117,6 +117,11 @@ jobs:# eslint-report: web/eslint_report.json# github-token: ${{ secrets.GITHUB_TOKEN }}+ - name: Web tsslint+ if: steps.changed-files.outputs.any_changed == 'true'+ working-directory: ./web+ run: pnpm run lint:tss+- name: Web type checkif: steps.changed-files.outputs.any_changed == 'true'working-directory: ./webdiff --git a/web/.vscode/extensions.json b/web/.vscode/extensions.jsonindex 68f5c7bf0e3..01235650ab0 100644--- a/web/.vscode/extensions.json+++ b/web/.vscode/extensions.json@@ -1,6 +1,8 @@{"recommendations": ["bradlc.vscode-tailwindcss",- "kisstkondoros.vscode-codemetrics"+ "kisstkondoros.vscode-codemetrics",+ "johnsoncodehk.vscode-tsslint",+ "dbaeumer.vscode-eslint"]}diff --git a/web/package.json b/web/package.jsonindex 5dfacece73f..12e7ac3b17a 100644--- a/web/package.json+++ b/web/package.json@@ -33,6 +33,7 @@"lint:quiet": "pnpm lint --quiet","lint:complexity": "pnpm lint --rule 'complexity: [error, {max: 15}]' --quiet","lint:report": "pnpm lint --output-file eslint_report.json --format json",+ "lint:tss": "tsslint --project tsconfig.json","type-check": "tsc --noEmit","type-check:tsgo": "tsgo --noEmit","prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky ./web/.husky",@@ -178,6 +179,9 @@"@testing-library/jest-dom": "^6.9.1","@testing-library/react": "^16.3.0","@testing-library/user-event": "^14.6.1",+ "@tsslint/cli": "^3.0.1",+ "@tsslint/compat-eslint": "^3.0.1",+ "@tsslint/config": "^3.0.1","@types/js-cookie": "^3.0.6","@types/js-yaml": "^4.0.9","@types/negotiator": "^0.6.4",diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yamlindex a6c31f2f625..0a549f8a619 100644--- a/web/pnpm-lock.yaml+++ b/web/pnpm-lock.yaml@@ -430,6 +430,15 @@ importers:'@testing-library/user-event':specifier: ^14.6.1version: 14.6.1(@testing-library/[email protected])+ '@tsslint/cli':+ specifier: ^3.0.1+ version: 3.0.1(@tsslint/[email protected]([email protected])([email protected]))([email protected])+ '@tsslint/compat-eslint':+ specifier: ^3.0.1+ version: 3.0.1([email protected])([email protected])+ '@tsslint/config':+ specifier: ^3.0.1+ version: 3.0.1(@tsslint/[email protected]([email protected])([email protected]))([email protected])'@types/js-cookie':specifier: ^3.0.6version: 3.0.6@@ -1644,14 +1653,30 @@ packages:eslint:optional: true+ '@eslint/[email protected]':+ resolution: {integrity: sha512-OL0RJzC/CBzli0DrrR31qzj6d6i6Mm3HByuhflhl4LOBiWxN+3i6/t/ZQQNii4tjksXi8r2CRW1wMpWA2ULUEw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+'@eslint/[email protected]':resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ '@eslint/[email protected]':+ resolution: {integrity: sha512-u180qk2Um1le4yf0ruXH3PYFeEZeYC3p/4wCTKrr2U1CmGdzGi3KtY0nuPDH48UJxlKCC5RDzbcbh4X0XlqgHg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+'@eslint/[email protected]':resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ '@eslint/[email protected]':+ resolution: {integrity: sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+'@eslint/[email protected]':resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -1664,6 +1689,10 @@ packages:resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ '@eslint/[email protected]':+ resolution: {integrity: sha512-G5JD9Tu5HJEu4z2Uo4aHY2sLV64B7CDMXxFzqzjl3NKd6RVzSXNoE80jk7Y0lJkTTkjiIhBAqmlYwjuBY3tvpA==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+'@eslint/[email protected]':resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -1676,6 +1705,10 @@ packages:resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ '@eslint/[email protected]':+ resolution: {integrity: sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+'@eslint/[email protected]':resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -1990,6 +2023,14 @@ packages:cpu: [x64]os: [win32]+ '@isaacs/[email protected]':+ resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==}+ engines: {node: 20 || >=22}++ '@isaacs/[email protected]':+ resolution: {integrity: sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==}+ engines: {node: 20 || >=22}+'@isaacs/[email protected]':resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}engines: {node: '>=12'}@@ -3462,6 +3503,36 @@ packages:peerDependencies:'@testing-library/dom': '>=7.21.4'+ '@tsslint/[email protected]':+ resolution: {integrity: sha512-y5yzMFl6sKQNsomuGInmFzMiKW37xxDcJauHnPqYoCWL8LldNLnaUOBqx0illfNZ0FDAiSuV/oshC/NG8/F2Tw==}+ engines: {node: '>=22.6.0'}+ hasBin: true+ peerDependencies:+ typescript: '*'++ '@tsslint/[email protected]':+ resolution: {integrity: sha512-cojBaB1C9RxWjDfCvLBhbffshyizb+Cf1Os9NXHuzyQOPvU1IwYPW5Sxo1RU19pCOE9/TvQcuxgnGfwbkk/Dig==}++ '@tsslint/[email protected]':+ resolution: {integrity: sha512-1S8YYLrZE22xfH3GtDXRO7YzkeQj9+FjoxaWhYQsjWDU82HHeSRWq5d2UzPSN/ac6WFmFq8yApXIGylfvrG6MA==}+ engines: {node: '>=22.6.0'}+ hasBin: true+ peerDependencies:+ '@tsslint/compat-eslint': 3.0.0-alpha.0+ tsl: ^1.0.28+ peerDependenciesMeta:+ '@tsslint/compat-eslint':+ optional: true+ tsl:+ optional: true++ '@tsslint/[email protected]':+ resolution: {integrity: sha512-8FEczJ20hdpmEH5vm272hS3QAycsk5574yZT6VMS8TUK8kNY4qoRKY/gdOY0nYNYWZrRPs+6dr1TmEVPBZjlvw==}+ engines: {node: '>=22.6.0'}++ '@tsslint/[email protected]':+ resolution: {integrity: sha512-JPK/+tSJ2hPTwgN173fkenPEnAI2CD0r0FDJ23PfftTc0NM449ZiAFHvs1KuPUOjAvBFIo5BsLr7Kxc1Ekdgtw==}+'@tybys/[email protected]':resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}@@ -3881,6 +3952,18 @@ packages:'@vitest/[email protected]':resolution: {integrity: sha512-RG6iy+IzQpa9SB8HAFHJ9Y+pTzI+h8553MrciN9eC6TFBErqrQaTas4vG+MVj8S4uKk8uTT2p0vgZPnTdxd96w==}+ '@volar/[email protected]':+ resolution: {integrity: sha512-DjmjBWZ4tJKxfNC1F6HyYERNHPYS7L7OPFyCrestykNdUZMFYzI9WTyvwPcaNaHlrEUwESHYsfEw3isInncZxQ==}++ '@volar/[email protected]':+ resolution: {integrity: sha512-2eOUnlMKTyjtlXIVd+6pfAtcuVugxCOgpNgcLWmlPuncQTG5C1E5mTDL/PUMw7aEnLySUOtMTIp8lT3vk/7w6Q==}++ '@volar/[email protected]':+ resolution: {integrity: sha512-ynlcBReMgOZj2i6po+qVswtDUeeBRCTgDurjMGShbm8WYZgJ0PA4RmtebBJ0BCYol1qPv3GQF6jK7C9qoVc7lg==}++ '@volar/[email protected]':+ resolution: {integrity: sha512-eWaYCcl/uAPInSK2Lze6IqVWaBu/itVqR5InXcHXFyles4zO++Mglt3oxdgj75BDcv1Knr9Y93nowS8U3wqhxg==}+'@vue/[email protected]':resolution: {integrity: sha512-vay5/oQJdsNHmliWoZfHPoVZZRmnSWhug0BYT34njkYTPqClh3DNWLkZNJBVSjsNMrg0CCrBfoKkjZQPM/QVUw==}@@ -5227,6 +5310,16 @@ packages:resolution: {integrity: sha512-A0XeIi7CXU7nPlfHS9loMYEKxUaONu/hTEzHTGba9Huu94Cq1hPivf+DE5erJozZOky0LfvXAyrV/tcswpLI0Q==}engines: {node: ^20.19.0 || ^22.13.0 || >=24}+ resolution: {integrity: sha512-ixRawFQuMB9DZ7fjU3iGGganFDp3+45bPOdaRurcFHSXO1e/sYwUX/FtQZpLZJR6SjMoJH8hR2pPEAfDyCoU2Q==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ hasBin: true+ peerDependencies:+ jiti: '*'+ peerDependenciesMeta:+ jiti:+ optional: true+resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -6459,6 +6552,10 @@ packages:resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==}+ resolution: {integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==}+ engines: {node: 20 || >=22}+resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}@@ -9760,6 +9857,11 @@ snapshots:eslint: 9.39.2([email protected])ignore: 7.0.5+ dependencies:+ eslint: 9.27.0([email protected])+ eslint-visitor-keys: 3.4.3+dependencies:eslint: 9.39.2([email protected])@@ -9848,6 +9950,14 @@ snapshots:optionalDependencies:eslint: 9.39.2([email protected])+ '@eslint/[email protected]':+ dependencies:+ '@eslint/object-schema': 2.1.7+ debug: 4.4.3+ minimatch: 3.1.2+ transitivePeerDependencies:+ - supports-color+'@eslint/[email protected]':dependencies:'@eslint/object-schema': 2.1.7@@ -9856,10 +9966,20 @@ snapshots:transitivePeerDependencies:- supports-color+ '@eslint/[email protected]': {}+'@eslint/[email protected]':dependencies:'@eslint/core': 0.17.0+ '@eslint/[email protected]':+ dependencies:+ '@types/json-schema': 7.0.15++ '@eslint/[email protected]':+ dependencies:+ '@types/json-schema': 7.0.15+'@eslint/[email protected]':dependencies:'@types/json-schema': 7.0.15@@ -9882,6 +10002,8 @@ snapshots:transitivePeerDependencies:- supports-color+ '@eslint/[email protected]': {}+'@eslint/[email protected]': {}'@eslint/[email protected]':@@ -9900,6 +10022,11 @@ snapshots:'@eslint/[email protected]': {}+ '@eslint/[email protected]':+ dependencies:+ '@eslint/core': 0.15.2+ levn: 0.4.1+'@eslint/[email protected]':dependencies:'@eslint/core': 0.17.0@@ -10151,6 +10278,12 @@ snapshots:'@img/[email protected]':optional: true+ '@isaacs/[email protected]': {}++ '@isaacs/[email protected]':+ dependencies:+ '@isaacs/balanced-match': 4.0.1+'@isaacs/[email protected]':dependencies:string-width: 4.2.3@@ -11757,6 +11890,47 @@ snapshots:dependencies:'@testing-library/dom': 10.4.1+ '@tsslint/[email protected](@tsslint/[email protected]([email protected])([email protected]))([email protected])':+ dependencies:+ '@clack/prompts': 0.8.2+ '@tsslint/config': 3.0.1(@tsslint/[email protected]([email protected])([email protected]))([email protected])+ '@tsslint/core': 3.0.1+ '@volar/language-core': 2.4.27+ '@volar/language-hub': 0.0.1+ '@volar/typescript': 2.4.27+ minimatch: 10.1.1+ typescript: 5.9.3+ transitivePeerDependencies:+ - '@tsslint/compat-eslint'+ - tsl++ dependencies:+ '@tsslint/types': 3.0.1+ eslint: 9.27.0([email protected])+ transitivePeerDependencies:+ - jiti+ - supports-color+ - typescript++ '@tsslint/[email protected](@tsslint/[email protected]([email protected])([email protected]))([email protected])':+ dependencies:+ '@tsslint/types': 3.0.1+ minimatch: 10.1.1+ ts-api-utils: 2.4.0([email protected])+ optionalDependencies:+ '@tsslint/compat-eslint': 3.0.1([email protected])([email protected])+ transitivePeerDependencies:+ - typescript++ '@tsslint/[email protected]':+ dependencies:+ '@tsslint/types': 3.0.1+ minimatch: 10.1.1++ '@tsslint/[email protected]': {}+'@tybys/[email protected]':dependencies:tslib: 2.8.1@@ -12036,6 +12210,18 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ '@typescript-eslint/scope-manager': 8.53.0+ '@typescript-eslint/types': 8.53.0+ '@typescript-eslint/typescript-estree': 8.53.0([email protected])+ '@typescript-eslint/visitor-keys': 8.53.0+ debug: 4.4.3+ eslint: 9.27.0([email protected])+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color+dependencies:'@typescript-eslint/scope-manager': 8.53.0@@ -12250,6 +12436,20 @@ snapshots:'@vitest/pretty-format': 4.0.17tinyrainbow: 3.0.3+ '@volar/[email protected]':+ dependencies:+ '@volar/source-map': 2.4.27++ '@volar/[email protected]': {}++ '@volar/[email protected]': {}++ '@volar/[email protected]':+ dependencies:+ '@volar/language-core': 2.4.27+ path-browserify: 1.0.1+ vscode-uri: 3.0.8+'@vue/[email protected]':dependencies:'@babel/parser': 7.28.5@@ -13823,6 +14023,48 @@ snapshots:+ dependencies:+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))+ '@eslint-community/regexpp': 4.12.2+ '@eslint/config-array': 0.20.1+ '@eslint/config-helpers': 0.2.3+ '@eslint/core': 0.14.0+ '@eslint/eslintrc': 3.3.3+ '@eslint/js': 9.27.0+ '@eslint/plugin-kit': 0.3.5+ '@humanfs/node': 0.16.7+ '@humanwhocodes/module-importer': 1.0.1+ '@humanwhocodes/retry': 0.4.3+ '@types/estree': 1.0.8+ '@types/json-schema': 7.0.15+ ajv: 6.12.6+ chalk: 4.1.2+ cross-spawn: 7.0.6+ debug: 4.4.3+ escape-string-regexp: 4.0.0+ eslint-scope: 8.4.0+ eslint-visitor-keys: 4.2.1+ espree: 10.4.0+ esquery: 1.7.0+ esutils: 2.0.3+ fast-deep-equal: 3.1.3+ file-entry-cache: 8.0.0+ find-up: 5.0.0+ glob-parent: 6.0.2+ ignore: 5.3.2+ imurmurhash: 0.1.4+ is-glob: 4.0.3+ json-stable-stringify-without-jsonify: 1.0.1+ lodash.merge: 4.6.2+ minimatch: 3.1.2+ natural-compare: 1.4.0+ optionator: 0.9.4+ optionalDependencies:+ jiti: 1.21.7+ transitivePeerDependencies:+ - supports-color+dependencies:'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))@@ -15454,6 +15696,10 @@ snapshots:+ dependencies:+ '@isaacs/brace-expansion': 5.0.0+dependencies:brace-expansion: 2.0.2diff --git a/web/tsslint.config.ts b/web/tsslint.config.tsnew file mode 100644index 00000000000..10c427638bd--- /dev/null+++ b/web/tsslint.config.ts@@ -0,0 +1,11 @@+import { defineConfig, importESLintRules } from '@tsslint/config'++// Run `npx tsslint-docgen` to generate documentation for the configured rules.++export default defineConfig({+ rules: {+ ...await importESLintRules({+ 'react-x/no-leaked-conditional-rendering': 'warn',+ }),+ },+})