refactor(lint): Fix lint violations#40965
Merged
viceice merged 2 commits intorenovatebot:mainfrom Feb 6, 2026
Merged
Conversation
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Changes
Fix underlying lint violations so ESLint passes without disable comments. Remaining suppressions (where the code is correct but lint disagrees) are left for a follow-up.
Comment-only removals
/* eslint-disable */from.markdownlint-cli2.mjs(ESLint doesn't lint this file)Code fixes
voidprefix instead ofeslint-disable(lib/renovate.ts,tools/generate-schema.ts)async: Remove fromhelmfile/utils.ts(already returnsPromisevialocalPathExists())presets/local/index.spec.ts(throws synchronously), replaceasyncarrow withPromise.resolve()inbranch/index.spec.tsthrow lastError: Add non-null assertion ingit/index.tsandbitbucket-server/index.ts(guaranteed set by retry loop)'local' | (string & {})preserves autocomplete (config/types.ts)Record<string, ...>(util/stats.ts)Test fixes
no-conditional-expect: Unwind single-element loop inkotlin-script/index.spec.ts; replace manual assertions with Zod schema validation inversioning-metadata.spec.tsno-sparse-arrays: Explicitundefinedvalues inpr/labels.spec.tsno-commented-out-tests: Delete dead commented-out test blocks incodecommit/index.spec.tsno-standalone-expect: Remove unnecessary precondition assertion fromgit/index.spec.tsbeforeAllContext
AI assistance disclosure
Documentation (please check one with an [x])
How I've tested my work (please select one)