horizon/horizon
Michael Krotscheck c6c0352982 Switched from JSCS to ESLint
This patch switches horizon from using JSCS to using ESlint. It
adds the john papa style guides as an eslint plugin, and deactivates
additional linting rules so current cleanup efforts can focus on the
issues remaining from JSCS. Once that cleanup effort is complete,
we can switch our linting job to voting and move forward from there.

YAML for .eslintrc was chosen because the JSON specification does
not allow comments, and having comments (including rule links) will
make it easier to discuss linting changes.

Deactivated eslint rules have each been annotated with a # TODO
statement, so we can address them in the future. Links in the
documentation have been updated to new contributor guidelines, which
will be updated after this patch lands.

Linting may be executed by first installing npm dependencies using
`npm install`, and then executing `npm run lint` at any time in the
future. No python venv is required.

For clarification: We are switching to ESLint because JSCS explicitly
focuses on code-style, not on language use errors. For that purpose,
JSCS explicitly defers to JSHint, which due to the 'do no evil' license is
not usable. Since ESLint provides both the codestyle functionality, and
the language use checks, of both JSCS and JSHint, it was deemed the
only viable tool,

http://lists.openstack.org/pipermail/openstack-dev/2015-June/067030.html

Change-Id: Ib4c3f77f8cc3cdaa3c7558b7bc3a6d1299b6dcbe
Partially-Implements: blueprint jscs-cleanup
2015-06-30 23:00:29 -07:00
..
browsers Fix Flake8 style warnings in horizon/ 2014-07-29 20:38:49 +00:00
conf Revert "Refactoring the exceptions lists" 2015-04-06 16:49:17 -05:00
contrib Datepicker locale support 2014-09-23 14:24:48 +00:00
forms Fix common misspellings 2015-03-23 14:38:32 +01:00
locale Imported Translations from Transifex 2015-06-29 06:04:59 +00:00
management Updating startpanel for pluggables 2015-01-14 16:11:00 -07:00
static Switched from JSCS to ESLint 2015-06-30 23:00:29 -07:00
tables fix delete action always cause error 2015-06-24 12:15:53 +02:00
tabs Merge "Allow to hide tab title bar when only one tab is available" 2015-03-07 00:07:56 +00:00
templates Applying auto-file-discovery partially 2015-06-29 16:04:14 -06:00
templatetags Refactor quota limit summary template 2015-05-26 11:39:52 +01:00
test Applying auto-file-discovery partially 2015-06-29 16:04:14 -06:00
utils Utils for auto-file-discovery 2015-06-15 23:59:00 -07:00
workflows Fix setting Primary Project for new user once the project was created 2015-01-16 20:51:31 +03:00
__init__.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
base.py Made HorizonComponent class Python3 compatible 2015-05-19 20:09:11 +00:00
context_processors.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
decorators.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
exceptions.py Removed the '_safe_message' variable from the API exceptions 2015-05-06 15:33:10 +00:00
karma.conf.js JSCS cleanup - style guide cleanup for karma.config.js files 2015-06-24 10:18:28 -07:00
loaders.py Add Django-1.7 support 2015-03-18 08:42:10 +01:00
messages.py Uniquify horizon messages returned in a single response 2014-09-17 13:45:07 +00:00
middleware.py Horizon login page contains DOS attack mechanism 2014-12-08 16:38:37 -07:00
models.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
site_urls.py Applying auto-file-discovery partially 2015-06-29 16:04:14 -06:00
version.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
views.py Document and improve PageTitleMixin readability 2015-02-11 16:16:20 +00:00