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

XMLWordPrintableJSON

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

      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 Tooling and Methods (STM) (Inactive)
            Reporter:
            Eddie Louie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: