Repository navigation
拆分超长前端样式并增加 500 行门禁 - #167
Merged
Merged
Conversation
added 2 commits
August 23, 2026 20:55
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.
变更
App.css按原始级联顺序拆成 8 个文件,最大 495 物理行App.css只保留有序@import,后写覆盖顺序不变web/src/**/*.css,501 行即失败pnpm run lint和现有 CI等价性证据
App.css完全一致index-Pn-Zo3qW.css验证
pnpm test:26 个文件、282 项通过pnpm run test:coverage:Statements 88.03%、Branches 81.86%、Functions 86.11%、Lines 91.66%pnpm run lint:0 error,23 个既存 warningpnpm run build:通过git diff --check:通过范围说明
本 PR 只解决用户指出的超长 CSS 并建立 CSS 物理行门禁。JS/JSX 仍沿用 ESLint 的 500 有效行规则;仓库现有 3 个物理行超过 500 的 JS/JSX 文件若要改成严格物理行口径,将另开 PR 拆分,避免与纯样式机械迁移混在一起。