Fix remaining "var" usages in JS to enable "no-var" lint rule

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I anticipate that around 150 usages will need to be hand-edited.

      "npx eslint src/mongo jstests" finds:

      ✖ 9777 problems (9777 errors, 0 warnings)
        8754 errors and 0 warnings potentially fixable with the `--fix` option.
      

      I suspect many will be simple replacements, while the remainder will be exceptioned via "eslint-disable-next-line" sort of pragmas.

      This will close the gap and allow us to enable "no-var" across all JS code in 10gen/mongo.

            Assignee:
            Steve McClure
            Reporter:
            Steve McClure
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: