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

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Server Tooling & Methods

      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.

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

              Created:
              Updated:
              Resolved: