about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorJohn Heitmann <jheitmann@gmail.com>2018-12-04 13:59:27 -0800
committerJohn Heitmann <jheitmann@gmail.com>2018-12-04 15:46:15 -0800
commit56ace3e870352f1b6c49426b1e40a6260b94b260 (patch)
tree07d1601947b291c3ec626d46c54eb1a729b41207 /src/librustdoc/html/static/source-script.js
parent431e0ab62f7730f11db693c23f48403e4c719f82 (diff)
downloadrust-56ace3e870352f1b6c49426b1e40a6260b94b260.tar.gz
rust-56ace3e870352f1b6c49426b1e40a6260b94b260.zip
Added a bare-bones eslint config (removing jslint)
This change removes the small bit of jslint config, replacing it
with eslint. I've currently configured eslint to mostly only report
the more serious of lints, although there are still some style nits
turned on.

Upcoming changes will start fixing lints.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
-rw-r--r--src/librustdoc/html/static/source-script.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/source-script.js b/src/librustdoc/html/static/source-script.js
index 1db8218dae6..03b0955a34c 100644
--- a/src/librustdoc/html/static/source-script.js
+++ b/src/librustdoc/html/static/source-script.js
@@ -10,6 +10,12 @@
  * except according to those terms.
  */
 
+// From rust:
+/* global sourcesIndex */
+
+// Local js definitions:
+/* global addClass, getCurrentValue, hasClass, removeClass, updateLocalStorage */
+
 function getCurrentFilePath() {
     var parts = window.location.pathname.split("/");
     var rootPathParts = window.rootPath.split("/");