Skip to content

[Refactor: #10506 ] Globalize variables/functions, clean ESLint#1

Open
ParmodKumar-tech wants to merge 1 commit into
mainfrom
fix-global-vars-eslint-cleanup
Open

[Refactor: #10506 ] Globalize variables/functions, clean ESLint#1
ParmodKumar-tech wants to merge 1 commit into
mainfrom
fix-global-vars-eslint-cleanup

Conversation

@ParmodKumar-tech

@ParmodKumar-tech ParmodKumar-tech commented Nov 23, 2025

Copy link
Copy Markdown
Owner

Purpose

This PR refactors several JavaScript files to declare frequently-used variables and functions as global. It also cleans up unnecessary ESLint comments, improving code clarity and maintainability for future contributors and reviewers.

Changes

  • Updated global declarations in forum.js, server.js, user-profile.js, docker_interface.js, plagiarism.js, lastdays.js,
  • Removed redundant ESLint disable comments where global declarations now address previous linter issues.
  • Ensured variables/functions used in multiple places are accessible in the file’s global scope.

Why

Declaring these items as global reduces redundancy, improves linting compliance, and makes the codebase easier to review and extend.

Issue Closed

Closes Submitty#10506

Note: The file PDFInitToolbar.js was listed in the task documentation, but it does not exist in this project repository. i think name of file changed, No changes were made to PDFInitToolbar.js.

@ParmodKumar-tech ParmodKumar-tech changed the title [Refactor:System] Globalize variables/functions, clean ESLint [Refactor: #10506 ] Globalize variables/functions, clean ESLint Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up globals in JS files

1 participant