Cleanup draggable-components.js to pass eslint.
Added checks, that Hogan templates are present on the page, to prevent
occasional failures if the script is included on a different page.
Refactored prototype modification.
Added TENANT_ID to global variables in .eslintrc
Partially implements: blueprint add-js-lint-jobs
Change-Id: I35e3cee2af3eb8ee34f4b9a97cd9e4e756cd6458
Since openstack-config for eslint is now published on npm we should use
it as basis for our linting rules. It is actually stricter, than our
current semi-default config as it enables some of the previously
unchecked rules.
Partially implements: blueprint add-js-lint-jobs
Change-Id: I0cb8247167a44f30a657693442f99a87f116350a
Added indentation check to .eslintrc
Cleaned up horizon.tables+reload.js, mixed-mode.js, submit-disabled.js,
upload_form.js, according to eslint rules.
Added missing license info to horizon.tables+reload.js
Partially implements: blueprint add-js-lint-jobs
Change-Id: If417405c24eaa0c65b8093e559730e83bd070b57
This commit adds a eslint tox environment, that installs eslint and
checks muranodashboard js code against it.
Eslint is the current linter of choice for horizon, because it is
capable of detecting both style and syntax errors (and does not have
license limitations of jshint).
To run: tox -e eslint
Partially implements: blueprint add-js-lint-jobs
Change-Id: I645f279ab6ac45b7d1d872ded803c126dd0a10e7