diff options
| author | John Heitmann <jheitmann@gmail.com> | 2018-12-04 13:59:27 -0800 |
|---|---|---|
| committer | John Heitmann <jheitmann@gmail.com> | 2018-12-04 15:46:15 -0800 |
| commit | 56ace3e870352f1b6c49426b1e40a6260b94b260 (patch) | |
| tree | 07d1601947b291c3ec626d46c54eb1a729b41207 /src/librustdoc/html/static/source-script.js | |
| parent | 431e0ab62f7730f11db693c23f48403e4c719f82 (diff) | |
| download | rust-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.js | 6 |
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("/"); |
