Uh oh!
There was an error while loading. Please reload this page.
chore(lint): clear baseline lint errors in components (#2713 Wave 3.5) - #2745
Merged
Conversation
…Wave 3) No behavior change; warnings out of scope. - rules-of-hooks: react-page hoists 4 hooks above the capability gate AND guards the runtime import (disabled builds still never load it); empty / action-bar / action-menu unwrap try/catch around provider-safe useObjectTranslation - static-components: ComponentRegistry.get / resolveIcon lookups in action-bar / action-group x2 / action-menu + 5 test helpers -> scoped disables - purity: sidebar decorative skeleton Math.random (once per mount) -> disable - no-empty-object-type: ShimmerSkeletonProps -> type alias - no-useless-assignment: test-utils maxDepth dead init -> const - no-require-imports: config-panel test uses top-level import React - stale eslint-disable: drop jsx-a11y/alt-text directive (plugin not loaded) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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 freeto 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.
Wave 3 of the #2713 lint-gate restoration.
@object-ui/componentswas red at baseline onmain. Errors only; no behavior change.What changed (per rule)
react-hooks/rules-of-hooksreact-pageReactKindPage: a capability-gate early return sat before four hooks — including auseEffectthatimport()s@object-ui/react-runtime. Naively moving the gate down would load the gated runtime even when disabled (the gate is default-closed in OSS/untrusted builds). Instead: hoisted the hooks above the gate and guarded the import (if (!capabilityEnabled) returninside the effect, dep[capabilityEnabled]), with the disabled notice returned after the hooks. So hook order is stable and the runtime is still never loaded when disabled.empty/action-bar/action-menu: translation helpers unwrap a try/catch around the provider-safeuseObjectTranslation(the feat(fields): select+multiple → multi-value chip picker; restore fields/core lint gates #2709 fix).react-hooks/static-components— dynamic renderer/icon lookups (ComponentRegistry.get,resolveIcon) inaction-bar,action-group(×2),action-menu, and the five__tests__helpers that render a registry-resolved component. All stable references → justified scoped disables.react-hooks/purity—ui/sidebarskeleton width usesMath.random()once per mount (useMemo([])) for a decorative placeholder → justified scoped disable.@typescript-eslint/no-empty-object-type—ShimmerSkeletonPropsempty extend →typealias.no-useless-assignment—test-utilsmaxDepthdead initializer → singleconstat its assignment.no-require-imports—config-panel-renderertest now uses a top-levelimport Reactinstead of an in-testrequire.eslint-disable— removed ajsx-a11y/alt-textdirective inelementswhose plugin isn't loaded (unknown-rule reference → ESLint v10 error).No lint config was loosened.
Verification
eslint→ 0 errors (21 at baseline).turbo run build→ 8/8 tasks green.componentssuite green — 304 passed / 33 files, including the five touched test helpers,config-panel-renderer, and the action renderers.Refs #2713 · follows #2730, #2737, #2738, #2740, #2741, #2744 · pattern from #2709
🤖 Generated with Claude Code