resourceloader: Configure eslint to disallow $ and require inside startup
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 8 Sep 2018 21:41:02 +0000 (22:41 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 8 Sep 2018 22:02:03 +0000 (23:02 +0100)
commit1292e80d4000a1a19beaa19621586938cb630bf0
treeddaa6453b5b36cbd528db6cfc7f8520925081750
parent7c66b040048874513722aedcd22eb30ce9169214
resourceloader: Configure eslint to disallow $ and require inside startup

Would help statically detect accidental use of jQuery ($) before
it is defined within startup. It would also let ESLint in my editor
catch the issue I keep running into where I use a local variable
called 'module' in mediawiki.js before it is defined, which it
doesn't detect because 'module' is whitelisted in the project's
main .eslintrc file. None of the predefined globals for regular
modules are available inside the startup module.

Follows-up dec800968.

Bug: T192623
Change-Id: Icc102d59fff8eb7cd3f4d55f5c8b64866f2bc8af
resources/src/startup/.eslintrc.json [new file with mode: 0644]
resources/src/startup/mediawiki.log.js
resources/src/startup/mediawiki.requestIdleCallback.js
resources/src/startup/profiler.js
resources/src/startup/startup.js