Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28550

Add no-unused-vars ESLint rule to find unused variables in Server code

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:

      Description

      We should add this ESLint rule to the .eslintrc.yml file to prevent Server engineers from inadvertently introducing unused variables. These could indicate a potential error or cause confusion for future readers of the code.

      no-unused-vars: [2, {"args": "none", "vars": "local"}]
      

      http://eslint.org/docs/rules/no-unused-vars

      Currently when run with this rule there are 207 errors.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-stm Backlog - Server Tooling and Methods (STM)
              Reporter:
              eddie.louie Eddie Louie
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: