Repository navigation
chore: replace Biome with Vite+ checks (Oxlint/Oxfmt) - #11
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca201a0897
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ) { | ||
| frame.score += 1; | ||
| } | ||
| frame.logical = node.type === "LogicalExpression" ? node.operator : null; |
There was a problem hiding this comment.
Preserve logical-chain state while visiting operands
For right-grouped conditions such as a && (b && c), visiting the first identifier resets frame.logical, so the nested && is counted again even though it continues the same logical sequence. Exercising this visitor with 20 independent if statements reports complexity 60 for right-grouped conditions, while the equivalent left-grouped conditions pass with complexity 40. Consequently, harmless grouping can make the new check reject functions below the repository's cognitive-complexity limit. Track logical sequences structurally rather than resetting their state on every non-logical node.
AGENTS.md reference: AGENTS.md:L122-L122
Useful? React with 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Changes
@weaverse/biomeand Biome with Vite+ 1.7.0 (vp check,vp fmt). Keep the existing Vite builder, runtime plugins and unrelated manifest and lockfile resolutions unchanged.npm run check. Keep the previous JavaScript/TypeScript style (double quotes, semicolons, trailing commas, width 80) and leave CSS and generated types alone.npm run lintas a compatibility entry point to the Vite+ static check.Rule parity
ultraciteinstalled. Biome 2.5 reads the direct@weaverse/biomeconfig but does not recurse into itsextendslist. The baseline is the version's recommended defaults (excluding unconfigured nursery rules), the installed preset and this theme's overrides. Enabling the SDK's whole rule set would add rules.parseIntorparseFloat. Type-aware rules are enabled where needed; the separate typecheck is unchanged.no-deprecated(more than import sites) andarray-type(additional type shapes). No warning was promoted to an error.Theme overrides retained
.weaverse/, the preset's generated/ignored paths, and.gitignore.useThrowNewErrorstays a warning.useSortedAttributesstays off.noNoninteractiveElementInteractions,noStaticElementInteractions,useKeyWithClickEvents,noExcessiveLinesPerFunction,noUnusedVariables,useUniqueElementIds,noNamespaceImport,useTopLevelRegex,noDangerouslySetInnerHtml,noDescendingSpecificity,noMagicNumbers,noNestedTernary,noParameterAssign,useConsistentArrowReturn,useConsistentTypeDefinitions,useFilenamingConvention,useNamingConvention,noAlert,noArrayIndexKey,noConsole,noExplicitAny,noUnnecessaryConditions,useAwait.Not mapped
noExtraBooleanCast,noFlatMapIdentity,noUselessConstructor,noUselessContinue,noUselessEmptyExport,noUselessEscapeInRegex,noUselessFragments,noUselessLabel,noUselessLoneBlockStatements,noUselessRename,noUselessStringRaw,noUselessSwitchCase,noUselessTernary,noUselessThisAlias,noUselessTypeConstraint,noUselessUndefinedInitialization,useArrayLiterals,useExponentiationOperator,useFlatMap,useIndexOf,useNodejsImportProtocol,useShorthandFunctionType.noDeprecatedMediaType,noDuplicateArgumentNames,noDuplicateAtImportRules,noDuplicateAttributes,noDuplicateCustomProperties,noDuplicateEnumValueNames,noDuplicateFields,noDuplicateFontNames,noDuplicateInputFieldNames,noDuplicateProperties,noDuplicateSelectorsKeyframeBlock,noDuplicateVariableNames,noEmptyBlock,noImportantInKeyframe,noImportantStyles,noInvalidDirectionInLinearGradient,noInvalidGridAreas,noInvalidPositionAtImportRule,noMissingVarFunction,noShorthandPropertyOverrides,noUnknownAtRules,noUnknownFunction,noUnknownMediaFeatureName,noUnknownProperty,noUnknownPseudoClass,noUnknownPseudoElement,noUnknownTypeSelector,noUnknownUnit,noUnmatchableAnbSelector,useGenericFontNames,useGraphqlNamedOperations,useLoneAnonymousOperation.noDynamicNamespaceImportAccess,noEmptyTypeParameters,noEvolvingTypes,noExportedImports,noImplicitAnyLet,noOctalEscape,noReactForwardRef,noRedundantUseStrict,noStringCaseMismatch,noSuspiciousSemicolonInJsx,noThisInStatic,noVoidTypeReturn,useImageSize,useSimpleNumberKeys.noQuickfixBiome.noBiomeFirstException,useBiomeIgnoreFolder.noDuplicateParameters.useDeprecatedReason.noDelete.noRedeclare.Verification
Base
1ef92692c7f1→ head1c30de8fc416. Local command exit codes and test counts:000(0 errors, 17 warnings)0(0 errors, 94 warnings)0000(10 passed)0(10 passed)00Refs Weaverse/pilot#200