Skip to content

Clean up globals in JS files #10506

Description

@micpap25

What problem are you trying to solve with Submitty

A lot of JS files looks very bad because important variables are not declared as global, so almost half of the relevant functions are just ESlint comments.

Describe the way you'd like to solve this problem

Declare important (used more than once) variables / functions as globals and remove all ESLint comments that used to be required.

List of files

  • docker_interface.js (9)
  • forum.js (64)
  • latedays.js (7)
  • plagiarism.js (8)
  • server.js (8)
  • user-profile.js (11)
  • PDFInitToolbar.js (4)

Additional context

An example of what some functions look like right now.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions