[SERVER-28550] Add no-unused-vars ESLint rule to find unused variables in Server code Created: 29/Mar/17  Updated: 06/Dec/22  Resolved: 11/May/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Eddie Louie Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Won't Fix Votes: 0
Labels: stm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-23728 Enable the no-unused-expressions ESLi... Closed
Assigned Teams:
Server Tooling & Methods
Participants:

 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.



 Comments   
Comment by Ryan Timmons [ 11/May/20 ]

Closing as wont-fix to indicate that there is currently no intention of doing this. Please re-open if there is priority for this. Perhaps this change could self-service by an appropriate server team if this is necessary rather than having to go thru the STM prioritization queue.

Generated at Thu Feb 08 04:18:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.