Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hsvtt: Add eslint support; fix most findings #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

hsvtt: Add eslint support; fix most findings #17

wants to merge 1 commit into from

Conversation

matt-jordan
Copy link
Contributor

This patch adds eslint support to the project. That includes an eslintrc file
that is based on the Airbnb standard, as well as an eslintignore file. This
patch opts for an ES5 'legacy' standard, as the lack of a transpiler for the
front-end Javascript code prevents using ES6.

A few warnings and errors have been left unresolved. These include:

  • A single console statement indicating that the app is running. This should
    be replaced with a logger, such a bunyan.
  • A few references to undefined variables. The intent of this function could
    not be determined, nor how it functioned.
  • An unused variable 'orderedStops', which appears to either have no purpose
    or should be the variable that is returned from a particular function.

It's important to note that despite the scope of the changes, no semantic
changes should have been introduced in this patch. However, given the scope of
the changes, significant testing should be done before deploying the results
of this patch into a production environment.

This patch adds eslint support to the project. That includes an eslintrc file
that is based on the Airbnb standard, as well as an eslintignore file. This
patch opts for an ES5 'legacy' standard, as the lack of a transpiler for the
front-end Javascript code prevents using ES6.

A few warnings and errors have been left unresolved. These include:
* A single console statement indicating that the app is running. This should
  be replaced with a logger, such a bunyan.

* A few references to undefined variables. The intent of this function could
  not be determined, nor how it functioned.

* An unused variable 'orderedStops', which appears to either have no purpose
  or should be the variable that is returned from a particular function.

It's important to note that despite the scope of the changes, no semantic
changes should have been introduced in this patch. However, given the scope of
the changes, significant testing should be done before deploying the results
of this patch into a production environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants