Created by: jontewks
This stems from a discussion on PR #18146 about an undefined variable that wasn't caught by the linter.
This PR adds the rule to the .eslintrc, resolves the errors, one of which was included in #18146, and also adds an npm script to run the linting in the future with npm run lint
.