chore(frontend): ESLint 9 + TS strict quality gates with frozen legac…#2213
Closed
dolphin0618 wants to merge 1 commit into
Closed
chore(frontend): ESLint 9 + TS strict quality gates with frozen legac…#2213dolphin0618 wants to merge 1 commit into
dolphin0618 wants to merge 1 commit into
Conversation
…y violations Dify-style "freeze legacy, block new" quality gates for both frontend apps: - ESLint 9 flat configs for platform, client and @bisheng/ui (shared toolchain installed at workspace root). House rules: no-explicit-any, no raw axios imports (C7), no-console (warn/error allowed), react-hooks rules as errors, ts-expect-error with description only. - Legacy violations frozen per app in eslint-suppressions.json (may only shrink; run lint:prune after cleaning a file). - TS strict via typescript-strict-plugin: legacy failing files annotated with @ts-strict-ignore (platform 388, client 163); all other and all new files fully strict-checked; tsc-strict wired as typecheck script. - platform tsconfig target es5 -> ES2020. - New CI workflow frontend-quality.yml: PR-triggered, path-filtered, lint + typecheck for both apps. - Gate policy documented in root AGENTS.md; @bisheng/ui starts at zero suppressions (fixed 1 dead var, removed 6 stale disable directives).
Collaborator
Author
|
checks have failed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…y violations
Dify-style "freeze legacy, block new" quality gates for both frontend apps:
What
简要描述做了什么改动。
Why
为什么需要这个改动?
How
实现方式、设计决策(如有)。
Test
Related