JS linting round 3: fix remaining no-undef findings #1588#1589
Open
davmlaw wants to merge 1 commit into
Open
Conversation
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.
🤖 Written by Claude
Addresses #1588 (stacked on #1585 — diff shows only this round's changes).
Triages all 149 remaining
no-undefwarnings: ESLint is now clean apart from the 29 intentionally-kept errors (json2csv.js, include_jqgrid.js, global.js debounce, phenotype.js).Bug fixes
citations.js: error-branch abstract appended to undefineddetailContainer→citDomdatatable_definition.js:$(separator)→$(settings.separator)inTableFormat.combinevc_form.js: removed deadswitchassigning unused undeclarediconMissing local declarations (added
const/let, verified no cross-file/template readers):flags.js,vc_form.js,vc_diff.js,panel_app.js,venn_intersect.js,analysis_nodes.js,datatable_definition.jsShared state given a proper home
eKeysBase→ declared in VCForm IIFE scope besideeKeysSIDE_LENGTH/DEFAULT_SHADOW_COLOR→ top-levelconst(samplenode.js is page-loaded everywhere)EMPTY_LINK→ top-levelconst(note: currently unused, deletion candidate)seen_igv_error,RAISED_GET_ANALYSIS_WINDOW_JS_ERROR,VENN_TOGGLE_WIDGET_CLASS,venn_id,freq) kept as plain assignments, declaredwritablein eslint.config.mjseslint.config.mjs: declared cross-file first-party functions and template-injected globals (analysis.html and related), each annotated with its defining file.
All touched files pass
node --check.🤖 Generated with Claude Code